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