Rapicorn - Experimental UI Toolkit - Source Code
13.07.0
|
00001 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html 00002 #ifndef __RAPICORN_SLIDER_HH__ 00003 #define __RAPICORN_SLIDER_HH__ 00004 00005 #include <ui/adjustment.hh> 00006 #include <ui/container.hh> 00007 00008 namespace Rapicorn { 00009 00010 class SliderArea : public virtual ContainerImpl { 00011 bool move (MoveType); 00012 protected: 00013 virtual const CommandList& list_commands (); 00014 virtual const PropertyList& __aida_properties__ (); 00015 explicit SliderArea (); 00016 virtual void control (const String &command_name, 00017 const String &arg) = 0; 00018 virtual void slider_changed (); 00019 typedef Aida::Signal<void ()> SignalSliderChanged; 00020 public: 00021 virtual bool flipped () const = 0; 00022 virtual void flipped (bool flip) = 0; 00023 virtual Adjustment* adjustment () const = 0; 00024 virtual void adjustment (Adjustment &adjustment) = 0; 00025 virtual 00026 AdjustmentSourceType adjustment_source () const = 0; 00027 virtual void adjustment_source (AdjustmentSourceType adj_source) = 0; 00028 SignalSliderChanged sig_slider_changed; 00029 }; 00030 00031 } // Rapicorn 00032 00033 #endif /* __RAPICORN_SLIDER_HH__ */