Salome HOME
Initial version
[modules/gui.git] / src / Qtx / QtxIntSpinBox.h
1 // File:      QtxIntSpinBox.h
2 // Author:    Sergey TELKOV
3
4 #ifndef QTXINTSPINBOX_H
5 #define QTXINTSPINBOX_H
6
7 #include "Qtx.h"
8
9 #include <qspinbox.h>
10
11 class QTX_EXPORT QtxIntSpinBox : public QSpinBox
12 {
13     Q_OBJECT
14
15 public:
16     QtxIntSpinBox( QWidget* = 0, const char* = 0 );
17     QtxIntSpinBox( int, int, int = 1, QWidget* = 0, const char* = 0 );
18     virtual ~QtxIntSpinBox();
19     
20     bool         isCleared() const;
21     void         setCleared( const bool );
22     
23     virtual bool eventFilter( QObject*, QEvent* );
24     
25 public slots:
26     virtual void setValue( int );
27     
28 protected:
29     virtual void interpretText();
30     virtual void updateDisplay();
31     virtual void leaveEvent( QEvent* );
32     virtual void wheelEvent( QWheelEvent* );
33     
34 private:
35     bool         myCleared;
36 };
37
38 #endif