|
Rapicorn - Experimental UI Toolkit - Source Code 10.08.1
|
00001 /* Rapicorn 00002 * Copyright (C) 2005 Tim Janik 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * A copy of the GNU Lesser General Public License should ship along 00015 * with this library; if not, see http://www.gnu.org/copyleft/. 00016 */ 00017 #ifndef __RAPICORN_SLIDER_HH__ 00018 #define __RAPICORN_SLIDER_HH__ 00019 00020 #include <ui/adjustment.hh> 00021 #include <ui/container.hh> 00022 00023 namespace Rapicorn { 00024 00025 class SliderArea : public virtual ContainerImpl { 00026 bool move (int); 00027 protected: 00028 virtual const CommandList& list_commands (); 00029 virtual const PropertyList& list_properties (); 00030 explicit SliderArea (); 00031 virtual void control (const String &command_name, 00032 const String &arg) = 0; 00033 virtual void slider_changed (); 00034 typedef Signal<SliderArea, void ()> SignalSliderChanged; 00035 public: 00036 virtual bool flipped () const = 0; 00037 virtual void flipped (bool flip) = 0; 00038 virtual Adjustment* adjustment () const = 0; 00039 virtual void adjustment (Adjustment &adjustment) = 0; 00040 virtual 00041 AdjustmentSourceType adjustment_source () const = 0; 00042 virtual void adjustment_source (AdjustmentSourceType adj_source) = 0; 00043 SignalSliderChanged sig_slider_changed; 00044 }; 00045 00046 } // Rapicorn 00047 00048 #endif /* __RAPICORN_SLIDER_HH__ */
1.7.4