Code

Add checkbox for LPEs to temporarily disable them on canvas (but keep them applied...
[inkscape.git] / src / live_effects / parameter / bool.cpp
index 383dc8186a2c6af01b0080d76c40f6cb80749362..96859938cdda4d2936ceb9b3f7e789a5daf69558 100644 (file)
 #include "svg/stringstream.h"
 #include <gtkmm.h>
 #include "widgets/icon.h"
-
+#include "ui/widget/registered-widget.h"
 #include "inkscape.h"
 #include "verbs.h"
 #include "helper-fns.h"
 
-#define noLPEBOOLPARAM_DEBUG
-
 namespace Inkscape {
 
 namespace LivePathEffect {
@@ -55,9 +53,9 @@ BoolParam::param_writeSVGValue() const
 }
 
 Gtk::Widget *
-BoolParam::param_newWidget(Gtk::Tooltips * tooltips)
+BoolParam::param_newWidget(Gtk::Tooltips * /*tooltips*/)
 {
-    Inkscape::UI::Widget::RegisteredCheckButton * checkwdg = Gtk::manage( 
+    Inkscape::UI::Widget::RegisteredCheckButton * checkwdg = Gtk::manage(
         new Inkscape::UI::Widget::RegisteredCheckButton( param_label,
                                                          param_tooltip,
                                                          param_key,
@@ -67,6 +65,7 @@ BoolParam::param_newWidget(Gtk::Tooltips * tooltips)
                                                          param_effect->getSPDoc()) );
 
     checkwdg->setActive(value);
+    checkwdg->setProgrammatically = false;
     checkwdg->set_undo_parameters(SP_VERB_DIALOG_LIVE_PATH_EFFECT, _("Change bool parameter"));
 
     return dynamic_cast<Gtk::Widget *> (checkwdg);