Code

LPE: add Paste LPE verb + menu item. add scale ratios to curve stitch and path-along...
[inkscape.git] / src / live_effects / parameter / bool.h
1 #ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_H\r
2 #define INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_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 \r
14 #include "ui/widget/registry.h"\r
15 #include "ui/widget/registered-widget.h"\r
16 \r
17 #include "live_effects/parameter/parameter.h"\r
18 \r
19 namespace Inkscape {\r
20 \r
21 namespace LivePathEffect {\r
22 \r
23 \r
24 class BoolParam : public Parameter {\r
25 public:\r
26     BoolParam( const Glib::ustring& label,\r
27                const Glib::ustring& tip,\r
28                const Glib::ustring& key,\r
29                Inkscape::UI::Widget::Registry* wr,\r
30                Effect* effect,\r
31                bool default_value = false);\r
32     virtual ~BoolParam();\r
33 \r
34     virtual Gtk::Widget * param_getWidget();\r
35 \r
36     virtual bool param_readSVGValue(const gchar * strvalue);\r
37     virtual gchar * param_writeSVGValue() const;\r
38 \r
39     void param_setValue(bool newvalue);\r
40     virtual void param_set_default();\r
41 \r
42     bool get_value() { return value; };\r
43 \r
44 private:\r
45     BoolParam(const BoolParam&);\r
46     BoolParam& operator=(const BoolParam&);\r
47 \r
48     Inkscape::UI::Widget::RegisteredCheckButton * checkwdg;\r
49 \r
50     bool value;\r
51     bool defvalue;\r
52 };\r
53 \r
54 \r
55 } //namespace LivePathEffect\r
56 \r
57 } //namespace Inkscape\r
58 \r
59 #endif\r