|
Last change
on this file since 119 was 2, checked in by dmik, 20 years ago |
|
Imported xplatform parts of the official release 3.3.1 from Trolltech
|
-
Property svn:keywords
set to
Id
|
|
File size:
831 bytes
|
| Line | |
|---|
| 1 | /****************************************************************
|
|---|
| 2 | **
|
|---|
| 3 | ** Definition of LCDRange class, Qt tutorial 12
|
|---|
| 4 | **
|
|---|
| 5 | ****************************************************************/
|
|---|
| 6 |
|
|---|
| 7 | #ifndef LCDRANGE_H
|
|---|
| 8 | #define LCDRANGE_H
|
|---|
| 9 |
|
|---|
| 10 | #include <qvbox.h>
|
|---|
| 11 |
|
|---|
| 12 | class QSlider;
|
|---|
| 13 | class QLabel;
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 | class LCDRange : public QVBox
|
|---|
| 17 | {
|
|---|
| 18 | Q_OBJECT
|
|---|
| 19 | public:
|
|---|
| 20 | LCDRange( QWidget *parent=0, const char *name=0 );
|
|---|
| 21 | LCDRange( const char *s, QWidget *parent=0,
|
|---|
| 22 | const char *name=0 );
|
|---|
| 23 |
|
|---|
| 24 | int value() const;
|
|---|
| 25 | const char *text() const;
|
|---|
| 26 |
|
|---|
| 27 | public slots:
|
|---|
| 28 | void setValue( int );
|
|---|
| 29 | void setRange( int minVal, int maxVal );
|
|---|
| 30 | void setText( const char * );
|
|---|
| 31 |
|
|---|
| 32 | signals:
|
|---|
| 33 | void valueChanged( int );
|
|---|
| 34 |
|
|---|
| 35 | private:
|
|---|
| 36 | void init();
|
|---|
| 37 |
|
|---|
| 38 | QSlider *slider;
|
|---|
| 39 | QLabel *label;
|
|---|
| 40 | };
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | #endif // LCDRANGE_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.