diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2011-11-09 20:13:18 +0000 |
|---|---|---|
| committer | Johan Engelen <goejendaagh@zonnet.nl> | 2011-11-09 20:13:18 +0000 |
| commit | 519fdb8d3f3338f26db41292b2f0fb8f2efd14db (patch) | |
| tree | 6b7ce775dfeadc3187555dc2606c7af064786861 /src/ui/widget/scalar.cpp | |
| parent | add const just because it can :) (diff) | |
| download | inkscape-519fdb8d3f3338f26db41292b2f0fb8f2efd14db.tar.gz inkscape-519fdb8d3f3338f26db41292b2f0fb8f2efd14db.zip | |
lpe: add slider to scalar param optionally (does not work very well yet)
(bzr r10735)
Diffstat (limited to 'src/ui/widget/scalar.cpp')
| -rw-r--r-- | src/ui/widget/scalar.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/ui/widget/scalar.cpp b/src/ui/widget/scalar.cpp index 220498561..cc051599c 100644 --- a/src/ui/widget/scalar.cpp +++ b/src/ui/widget/scalar.cpp @@ -3,8 +3,9 @@ * Carl Hetherington <inkscape@carlh.net> * Derek P. Moore <derekm@hackunix.org> * Bryce Harrington <bryce@bryceharrington.org> + * Johan Engelen <j.b.c.engelen@alumnus.utwente.nl> * - * Copyright (C) 2004 Carl Hetherington + * Copyright (C) 2004-2011 authors * * Released under GNU GPL. Read the file 'COPYING' for more information. */ @@ -16,6 +17,7 @@ #include "scalar.h" #include "spinbutton.h" +#include <gtkmm/scale.h> namespace Inkscape { namespace UI { @@ -133,7 +135,12 @@ void Scalar::update() static_cast<SpinButton*>(_widget)->update(); } - +void Scalar::addSlider() +{ + Gtk::HScale *scale = new Gtk::HScale( * static_cast<SpinButton*>(_widget)->get_adjustment() ); + scale->set_draw_value(false); + add (*manage (scale)); +} Glib::SignalProxy0<void> Scalar::signal_value_changed() { |
