Code

Commit LivePathEffect branch to trunk!
[inkscape.git] / src / live_effects / parameter / point.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H\r
2 #define INKSCAPE_LIVEPATHEFFECT_PARAMETER_POINT_H\r
3 \r
4 /*\r
5  * Inkscape::LivePathEffectParameters\r
6  *\r
7 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>\r
8  *\r
9  * Released under GNU GPL, read the file 'COPYING' for more information\r
10  */\r
11 \r
12 #include <glib/gtypes.h>\r
13 #include <2geom/point.h>\r
14 \r
15 #include "ui/widget/registry.h"\r
16 #include "ui/widget/registered-widget.h"\r
17 #include <gtkmm/tooltips.h>\r
18 \r
19 #include "live_effects/parameter/parameter.h"\r
20 \r
21 struct SPKnot;\r
22 \r
23 namespace Inkscape {\r
24 \r
25 namespace LivePathEffect {\r
26 \r
27 \r
28 class PointParam : public Geom::Point, public Parameter {\r
29 public:\r
30     PointParam(const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, Effect* effect);;\r
31     ~PointParam();\r
32 \r
33     Gtk::Widget * param_getWidget();\r
34 \r
35     bool param_readSVGValue(const gchar * strvalue);\r
36     gchar * param_writeSVGValue() const;\r
37 \r
38     void param_setValue(Geom::Point newpoint);\r
39 \r
40 private:\r
41     PointParam(const PointParam&);\r
42     PointParam& operator=(const PointParam&);\r
43 \r
44     Gtk::Widget * _widget;\r
45     Gtk::Tooltips * _tooltips;\r
46     Inkscape::UI::Widget::RegisteredPoint * pointwdg;\r
47     void on_button_click();\r
48 \r
49     SPKnot *knot;\r
50 };\r
51 \r
52 \r
53 }; //namespace LivePathEffect\r
54 \r
55 }; //namespace Inkscape\r
56 \r
57 #endif\r