X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fslider.h;h=edaa5d8ad932bea7b5b64891d361f81c138754f7;hb=033732b500a35f3737bad515349d884cb3f123f0;hp=6c95526f13f2699f14c89049fe5f252510383a2e;hpb=c435423919a20a87d100e1ee4cd1fc6ce223040c;p=libs%2Fgltk.git diff --git a/source/slider.h b/source/slider.h index 6c95526..edaa5d8 100644 --- a/source/slider.h +++ b/source/slider.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgltk -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007, 2010-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -29,6 +29,8 @@ public: Slider &get_object() const; }; + sigc::signal signal_value_changed; + protected: double min, max; double value; @@ -39,16 +41,14 @@ protected: double drag_start_value; unsigned drag_area_size; -public: - sigc::signal signal_value_changed; + Slider(); -protected: - Slider(const Resources &); public: void set_value(double); void set_range(double, double); void set_step(double); double get_value() const { return value; } + protected: void start_drag(int); void drag(int);