diff options
Diffstat (limited to 'tutorial/t13/lcdrange.h')
-rw-r--r-- | tutorial/t13/lcdrange.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tutorial/t13/lcdrange.h b/tutorial/t13/lcdrange.h new file mode 100644 index 000000000..874dd169a --- /dev/null +++ b/tutorial/t13/lcdrange.h @@ -0,0 +1,42 @@ +/**************************************************************** +** +** Definition of LCDRange class, TQt tutorial 12 +** +****************************************************************/ + +#ifndef LCDRANGE_H +#define LCDRANGE_H + +#include <qwidget.h> + +class TQSlider; +class TQLabel; + + +class LCDRange : public TQWidget +{ + Q_OBJECT +public: + LCDRange( TQWidget *parent=0, const char *name=0 ); + LCDRange( const char *s, TQWidget *parent=0, const char *name=0 ); + + int value() const; + const char *text() const; + +public slots: + void setValue( int ); + void setRange( int minVal, int maxVal ); + void setText( const char * ); + +signals: + void valueChanged( int ); + +private: + void init(); + + TQSlider *slider; + TQLabel *label; +}; + + +#endif // LCDRANGE_H |