summaryrefslogtreecommitdiffstats
path: root/src/ui/toolbar/spray-toolbar.cpp
diff options
context:
space:
mode:
authorAlexander Valavanis <valavanisalex@gmail.com>2019-01-21 23:49:19 +0000
committerAlexander Valavanis <valavanisalex@gmail.com>2019-01-21 23:49:19 +0000
commit8aae510a98bb214192ec50688e44267751d49b1c (patch)
treedbf2cf229a7c584958f532c3f8ee68a9d00a58a2 /src/ui/toolbar/spray-toolbar.cpp
parentfix part of inbox:16 Spinbuttons look glitchy (diff)
downloadinkscape-8aae510a98bb214192ec50688e44267751d49b1c.tar.gz
inkscape-8aae510a98bb214192ec50688e44267751d49b1c.zip
Cleanup unused toolbar code
Diffstat (limited to 'src/ui/toolbar/spray-toolbar.cpp')
-rw-r--r--src/ui/toolbar/spray-toolbar.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/ui/toolbar/spray-toolbar.cpp b/src/ui/toolbar/spray-toolbar.cpp
index c0c945ffe..d409c34ed 100644
--- a/src/ui/toolbar/spray-toolbar.cpp
+++ b/src/ui/toolbar/spray-toolbar.cpp
@@ -93,11 +93,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Width"), _("Width:"), _("The width of the spray area (relative to the visible canvas area)"),
"/tools/spray/width", 15,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "altx-spray",
1, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_width_adj = Glib::wrap(ege_adjustment_action_get_adjustment(eact));
holder->_width_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::width_value_changed));
@@ -125,11 +123,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Focus"), _("Focus:"), _("0 to spray a spot; increase to enlarge the ring radius"),
"/tools/spray/mean", 0,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "spray-mean",
0, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_mean_adj = Glib::wrap(ege_adjustment_action_get_adjustment(eact));
holder->_mean_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::mean_value_changed));
@@ -146,11 +142,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
C_("Spray tool", "Scatter"), C_("Spray tool", "Scatter:"), _("Increase to scatter sprayed objects"),
"/tools/spray/standard_deviation", 70,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "spray-standard_deviation",
1, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_sd_adj = Glib::wrap(ege_adjustment_action_get_adjustment(eact));
holder->_sd_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::standard_deviation_value_changed));
@@ -216,11 +210,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Adjusts the number of items sprayed per click"),
"/tools/spray/population", 70,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "spray-population",
1, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_population_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_spray_population));
holder->_population_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::population_value_changed));
@@ -249,11 +241,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Variation of the rotation of the sprayed objects; 0% for the same rotation than the original object"),
"/tools/spray/rotation_variation", 0,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "spray-rotation",
0, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_rotation_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_spray_rotation));
holder->_rotation_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::rotation_value_changed));
@@ -271,11 +261,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Variation in the scale of the sprayed objects; 0% for the same scale than the original object"),
"/tools/spray/scale_variation", 0,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
true, "spray-scale",
0, 100, 1.0, 10.0,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr /*unit tracker*/, 1, 0 );
holder->_scale_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_spray_scale));
holder->_scale_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::scale_value_changed));
@@ -413,11 +401,9 @@ SprayToolbar::prep(SPDesktop *desktop, GtkActionGroup* mainActions)
_("Increase to segregate objects more (value in percent)"),
"/tools/spray/offset", 100,
GTK_WIDGET(desktop->canvas),
- nullptr, // dataKludge
FALSE, nullptr,
0, 1000, 1, 4,
labels, values, G_N_ELEMENTS(labels),
- nullptr, // callback
nullptr, 0 , 0);
holder->_offset_adj = Glib::wrap(ege_adjustment_action_get_adjustment(holder->_offset));
holder->_offset_adj->signal_value_changed().connect(sigc::mem_fun(*holder, &SprayToolbar::offset_value_changed));