summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-simplify.cpp
diff options
context:
space:
mode:
authorJabiertxof <jtx@jtx>2017-04-14 22:20:13 +0000
committerJabiertxof <jtx@jtx>2017-04-14 22:20:13 +0000
commit3103b99b4cf6c1048c89f75e280761d8cd0ca1c2 (patch)
treea79bdf40cb476839681f10c61f51a3c4d860fcbc /src/live_effects/lpe-simplify.cpp
parentEllipses in Inkscape are defined by the center and the radius, but the (diff)
downloadinkscape-3103b99b4cf6c1048c89f75e280761d8cd0ca1c2.tar.gz
inkscape-3103b99b4cf6c1048c89f75e280761d8cd0ca1c2.zip
Allow set and reset default values of LPE parameters
(bzr r15620.1.1)
Diffstat (limited to 'src/live_effects/lpe-simplify.cpp')
-rw-r--r--src/live_effects/lpe-simplify.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/live_effects/lpe-simplify.cpp b/src/live_effects/lpe-simplify.cpp
index 5de9816bb..5b5bbea6c 100644
--- a/src/live_effects/lpe-simplify.cpp
+++ b/src/live_effects/lpe-simplify.cpp
@@ -115,6 +115,21 @@ LPESimplify::newWidget()
++it;
}
vbox->pack_start(*buttons,true, true, 2);
+ if (show_default_widgets) {
+ Gtk::Label *default_label = Gtk::manage(new Gtk::Label(
+ Glib::ustring(_("<b>Defaults</b> set defaultable parameters")),
+ Gtk::ALIGN_START));
+ default_label->set_use_markup(true);
+ vbox->pack_start(*default_label, true, true, 2);
+ Gtk::HBox * defaultBox = Gtk::manage(new Gtk::HBox(true,0));
+ Gtk::Button *set_default = Gtk::manage(new Gtk::Button(Glib::ustring(_("Set"))));
+ set_default->signal_clicked().connect(sigc::mem_fun(*this, &LPESimplify::setDefaultParams));
+ Gtk::Button *reset_default = Gtk::manage(new Gtk::Button(Glib::ustring(_("Reset"))));
+ reset_default->signal_clicked().connect(sigc::mem_fun(*this, &LPESimplify::resetDefaultParams));
+ defaultBox->pack_start(*set_default, true, true, 2);
+ defaultBox->pack_start(*reset_default, true, true, 2);
+ vbox->pack_start(*defaultBox, true, true, 2);
+ }
return dynamic_cast<Gtk::Widget *>(vbox);
}