0b0d5f633e19a0528746bc5706086eb74ff60328
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 * default_value = "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 void param_set_default();\r
42 \r
43 sigc::signal <void> signal_path_pasted;\r
44 \r
45 private:\r
46 PathParam(const PathParam&);\r
47 PathParam& operator=(const PathParam&);\r
48 \r
49 Gtk::Widget * _widget;\r
50 Gtk::Tooltips * _tooltips;\r
51 \r
52 void param_write_to_repr(const char * svgd);\r
53 \r
54 void on_edit_button_click();\r
55 void on_paste_button_click();\r
56 \r
57 gchar * defvalue;\r
58 };\r
59 \r
60 \r
61 } //namespace LivePathEffect\r
62 \r
63 } //namespace Inkscape\r
64 \r
65 #endif\r