Code

18ffe5321d7e6480281910d3c55fbcbc2dd0d143
[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,\r
29                 const Glib::ustring& tip,\r
30                 const Glib::ustring& key,\r
31                 Inkscape::UI::Widget::Registry* wr,\r
32                 Effect* effect,\r
33                 const gchar * defvalue = "M0,0 L1,1");\r
34     ~PathParam();\r
35 \r
36     Gtk::Widget * param_getWidget();\r
37 \r
38     bool param_readSVGValue(const gchar * strvalue);\r
39     gchar * param_writeSVGValue() const;\r
40 \r
41     sigc::signal <void> signal_path_pasted;\r
42 \r
43 private:\r
44     PathParam(const PathParam&);\r
45     PathParam& operator=(const PathParam&);\r
46 \r
47     Gtk::Widget * _widget;\r
48     Gtk::Tooltips * _tooltips;\r
49 \r
50     void param_write_to_repr(const char * svgd);\r
51 \r
52     void on_edit_button_click();\r
53     void on_paste_button_click();\r
54 };\r
55 \r
56 \r
57 } //namespace LivePathEffect\r
58 \r
59 } //namespace Inkscape\r
60 \r
61 #endif\r