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