1 #ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_H
2 #define INKSCAPE_LIVEPATHEFFECT_PARAMETER_BOOL_H
4 /*
5 * Inkscape::LivePathEffectParameters
6 *
7 * Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
8 *
9 * Released under GNU GPL, read the file 'COPYING' for more information
10 */
12 #include <glib/gtypes.h>
14 #include "ui/widget/registry.h"
15 #include "ui/widget/registered-widget.h"
17 #include "live_effects/parameter/parameter.h"
19 namespace Inkscape {
21 namespace LivePathEffect {
24 class BoolParam : public Parameter {
25 public:
26 BoolParam( const Glib::ustring& label,
27 const Glib::ustring& tip,
28 const Glib::ustring& key,
29 Inkscape::UI::Widget::Registry* wr,
30 Effect* effect,
31 bool default_value = false);
32 virtual ~BoolParam();
34 virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
36 virtual bool param_readSVGValue(const gchar * strvalue);
37 virtual gchar * param_writeSVGValue() const;
39 void param_setValue(bool newvalue);
40 virtual void param_set_default();
42 bool get_value() { return value; };
44 private:
45 BoolParam(const BoolParam&);
46 BoolParam& operator=(const BoolParam&);
48 Inkscape::UI::Widget::RegisteredCheckButton * checkwdg;
50 bool value;
51 bool defvalue;
52 };
55 } //namespace LivePathEffect
57 } //namespace Inkscape
59 #endif