From 8aae510a98bb214192ec50688e44267751d49b1c Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Mon, 21 Jan 2019 23:49:19 +0000 Subject: Cleanup unused toolbar code --- src/ui/toolbar/spray-toolbar.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/ui/toolbar/spray-toolbar.cpp') 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)); -- cgit v1.2.3