]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMGUI/GeometryGUI_SpinBox.h
Salome HOME
NRI : First integration.
[modules/geom.git] / src / GEOMGUI / GeometryGUI_SpinBox.h
1 //  File      : GeometryGUI_SpinBox.h
2 //  Created   : 4 july 2002
3 //  Author    : Lucien PIGNOLONI
4 //  Project   : SALOME
5 //  Module    : GeometryGUI
6 //  Copyright : OPEN CASCADE
7 //  $Header$
8
9 #ifndef  GEOMSPINBOX_H
10 #define  GEOMSPINBOX_H
11
12 #include "QAD_SpinBoxDbl.h" 
13
14 class GeometryGUI ;
15
16 //=================================================================================
17 // class    : GeometryGUI_SpinBox
18 // purpose  : Derivated from QSpinBox class and modified to accept floats
19 //=================================================================================
20 class GeometryGUI_SpinBox : public QAD_SpinBoxDbl
21 {
22   Q_OBJECT
23
24 public :
25   GeometryGUI_SpinBox( QWidget* parent, const char* name = 0 );
26   ~GeometryGUI_SpinBox();
27   
28   void    RangeStepAndValidator( double         min = -1000000.0, 
29                                  double         max = +1000000.0, 
30                                  double         step = 100.0, 
31                                  unsigned short decimals = 3 );
32   void    SetValue( double v );
33   double  GetValue();
34   QString GetString();
35   
36 public slots:
37   void    SetStep( double newStep );
38
39 };
40 #endif //  GEOMSPINBOX_H