00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef YQSlider_h
00022 #define YQSlider_h
00023
00024 #include <qslider.h>
00025 #include <qspinbox.h>
00026 #include <qlabel.h>
00027 #include <qvbox.h>
00028 #include <qhbox.h>
00029 #include <ycp/YCPString.h>
00030
00031 #include "YSlider.h"
00032
00033
00034 class QString;
00035 class QLabel;
00036 class QSlider;
00037
00038 class YQSlider : public QVBox, public YSlider
00039 {
00040 Q_OBJECT
00041
00042 public:
00043
00047 YQSlider( QWidget * parent,
00048 const YWidgetOpt & opt,
00049 const YCPString & label,
00050 int minValue,
00051 int maxValue,
00052 int initialValue );
00053
00058 void setEnabling( bool enabled );
00059
00064 long nicesize( YUIDimension dim );
00065
00070 void setSize( long newWidth, long newHeight );
00071
00077 void setLabel( const YCPString & label );
00078
00082 virtual bool setKeyboardFocus();
00083
00089 void setValue( int newValue );
00090
00091
00092 public slots:
00098 void setValueSlot( int newValue );
00099
00100
00101 protected:
00102
00103 QLabel * _qt_label;
00104 QSlider * _qt_slider;
00105 QSpinBox * _qt_spinbox;
00106 QHBox * _hbox;
00107 };
00108
00109
00110 #endif // YQSlider_h