summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/bool.h
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-08-29 19:13:13 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-08-29 19:13:13 +0000
commit7c65bdb7564116d3c556d9138fffb793d0a5dd7e (patch)
tree7fc921581c0abed4808aff3eab5a1477585807d1 /src/live_effects/parameter/bool.h
parentIn ellipse and rect tool: include info about width/height ratio in status mes... (diff)
downloadinkscape-7c65bdb7564116d3c556d9138fffb793d0a5dd7e.tar.gz
inkscape-7c65bdb7564116d3c556d9138fffb793d0a5dd7e.zip
Add BoolParam for LPE's
(bzr r3610)
Diffstat (limited to 'src/live_effects/parameter/bool.h')
-rw-r--r--src/live_effects/parameter/bool.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/live_effects/parameter/bool.h b/src/live_effects/parameter/bool.h
new file mode 100644
index 000000000..cf8c9c94d
--- /dev/null
+++ b/src/live_effects/parameter/bool.h
@@ -0,0 +1,57 @@
+#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_H
+#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_H
+
+/*
+ * Inkscape::LivePathEffectParameters
+ *
+* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <glib/gtypes.h>
+
+#include "ui/widget/registry.h"
+#include "ui/widget/registered-widget.h"
+
+#include "live_effects/parameter/parameter.h"
+
+namespace Inkscape {
+
+namespace LivePathEffect {
+
+
+class BoolParam : public Parameter {
+public:
+ BoolParam( const Glib::ustring& label,
+ const Glib::ustring& tip,
+ const Glib::ustring& key,
+ Inkscape::UI::Widget::Registry* wr,
+ Effect* effect,
+ bool default_value = false);
+ ~BoolParam();
+
+ Gtk::Widget * param_getWidget();
+
+ bool param_readSVGValue(const gchar * strvalue);
+ gchar * param_writeSVGValue() const;
+
+ void param_setValue(bool newvalue);
+ void param_set_default();
+
+private:
+ BoolParam(const BoolParam&);
+ BoolParam& operator=(const BoolParam&);
+
+ Inkscape::UI::Widget::RegisteredCheckButton * checkwdg;
+
+ bool value;
+ bool defvalue;
+};
+
+
+} //namespace LivePathEffect
+
+} //namespace Inkscape
+
+#endif