summaryrefslogtreecommitdiffstats
path: root/src/live_effects/parameter/togglebutton.h
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-07-17 00:45:57 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-07-17 00:45:57 +0000
commit11ef8b4afc7dbfcc1dfbc26059a9dc3c18e80416 (patch)
tree34bfd9130736f77c36aa6ceae1bbd5b7c5384666 /src/live_effects/parameter/togglebutton.h
parentUpdate to experimental r13428 (diff)
parentUpdate togglebutton parameter to handle if you want: (diff)
downloadinkscape-11ef8b4afc7dbfcc1dfbc26059a9dc3c18e80416.tar.gz
inkscape-11ef8b4afc7dbfcc1dfbc26059a9dc3c18e80416.zip
Update to experimental r13429
(bzr r13090.1.90)
Diffstat (limited to 'src/live_effects/parameter/togglebutton.h')
-rw-r--r--src/live_effects/parameter/togglebutton.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/live_effects/parameter/togglebutton.h b/src/live_effects/parameter/togglebutton.h
index 753af6dbd..4e545bcfd 100644
--- a/src/live_effects/parameter/togglebutton.h
+++ b/src/live_effects/parameter/togglebutton.h
@@ -12,6 +12,8 @@
#include <sigc++/signal.h>
#include "live_effects/parameter/parameter.h"
+#include "icon-size.h"
+#include "ui/widget/registered-widget.h"
namespace Inkscape {
@@ -28,7 +30,11 @@ public:
const Glib::ustring& key,
Inkscape::UI::Widget::Registry* wr,
Effect* effect,
- bool default_value = false);
+ bool default_value = false,
+ const Glib::ustring& inactive_label = "",
+ char const * icon_active = NULL,
+ char const * icon_inactive = NULL,
+ Inkscape::IconSize icon_size = Inkscape::ICON_SIZE_SMALL_TOOLBAR);
virtual ~ToggleButtonParam();
virtual Gtk::Widget * param_newWidget();
@@ -50,9 +56,15 @@ private:
ToggleButtonParam(const ToggleButtonParam&);
ToggleButtonParam& operator=(const ToggleButtonParam&);
+ void refresh_button();
bool value;
bool defvalue;
-
+ const Glib::ustring inactiveLabel;
+ const char * iconActive;
+ const char * iconInactive;
+ Inkscape::IconSize iconSize;
+ Inkscape::UI::Widget::RegisteredToggleButton * checkwdg;
+
sigc::signal<void> _signal_toggled;
sigc::connection _toggled_connection;
};