Code

Commit LivePathEffect branch to trunk!
[inkscape.git] / src / live_effects / parameter / path.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_PATH_H\r
2 #define INKSCAPE_LIVEPATHEFFECT_PARAMETER_PATH_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/path.h>\r
14 \r
15 #include "ui/widget/registry.h"\r
16 #include <gtkmm/tooltips.h>\r
17 \r
18 #include "live_effects/parameter/parameter.h"\r
19 \r
20 #include <sigc++/sigc++.h>\r
21 \r
22 namespace Inkscape {\r
23 \r
24 namespace LivePathEffect {\r
25 \r
26 class PathParam : public Geom::Piecewise<Geom::D2<Geom::SBasis> >, public Parameter {\r
27 public:\r
28     PathParam(const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Inkscape::UI::Widget::Registry* wr, Effect* effect);;\r
29     ~PathParam();\r
30 \r
31     Gtk::Widget * param_getWidget();\r
32 \r
33     bool param_readSVGValue(const gchar * strvalue);\r
34     gchar * param_writeSVGValue() const;\r
35 \r
36     sigc::signal <void> signal_path_pasted;\r
37 \r
38 private:\r
39     PathParam(const PathParam&);\r
40     PathParam& operator=(const PathParam&);\r
41 \r
42     Gtk::Widget * _widget;\r
43     Gtk::Tooltips * _tooltips;\r
44 \r
45     void param_write_to_repr(const char * svgd);\r
46 \r
47     void on_edit_button_click();\r
48     void on_paste_button_click();\r
49 };\r
50 \r
51 \r
52 }; //namespace LivePathEffect\r
53 \r
54 }; //namespace Inkscape\r
55 \r
56 #endif\r