X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fslider.h;h=a95a6a57665fd905577d3e76f54afa76ef5313f1;hb=fa949807cca17c8c247e37a885e83b90c6176a21;hp=edaa5d8ad932bea7b5b64891d361f81c138754f7;hpb=2bdaf4955fdb94e73704adcdcf0adc2b353f0ff0;p=libs%2Fgltk.git diff --git a/source/slider.h b/source/slider.h index edaa5d8..a95a6a5 100644 --- a/source/slider.h +++ b/source/slider.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgltk -Copyright © 2007, 2010-2011 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GLTK_SLIDER_H_ #define MSP_GLTK_SLIDER_H_ @@ -22,11 +15,10 @@ variations. class Slider: public Widget { public: - class Loader: public Widget::Loader + class Loader: public DataFile::DerivedObjectLoader { public: Loader(Slider &); - Slider &get_object() const; }; sigc::signal signal_value_changed; @@ -40,6 +32,8 @@ protected: double drag_start_pos; double drag_start_value; unsigned drag_area_size; + unsigned drag_area_offset; + unsigned slider_size; Slider(); @@ -50,6 +44,7 @@ public: double get_value() const { return value; } protected: + void click(int); void start_drag(int); void drag(int); void end_drag();