Salome HOME
NRI : First integration.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_aParameterDlg.h
1 //  File      : SMESHGUI_aParameterDlg.h
2 //  Created   : Wed Jun 12 21:04:41 2002
3 //  Author    : Nicolas REJNERI
4
5 //  Project   : SALOME
6 //  Module    : SMESH
7 //  Copyright : Open CASCADE 2002
8 //  $Header$
9
10 #ifndef SMESHGUI_aParameterDlg_H
11 #define SMESHGUI_aParameterDlg_H
12
13 // QT Includes
14 #include <qdialog.h>
15
16 class QLabel;
17 class QPushButton;
18 class QSpinBox;
19 class SMESHGUI;
20 class QAD_SpinBoxDbl;
21
22 //=================================================================================
23 // class    : SMESHGUI_aParameterDlg
24 // purpose  :
25 //=================================================================================
26 class SMESHGUI_aParameterDlg : public QDialog
27
28     Q_OBJECT
29
30 public:
31     SMESHGUI_aParameterDlg( QWidget*     parent   = 0,
32                             QString      title    = QString::null,
33                             QString      label    = QString::null,
34                             const double bottom   = -1E6,
35                             const double top      = +1E6,
36                             const int    decimals = 3,
37                             bool         modal    = TRUE );
38     SMESHGUI_aParameterDlg( QWidget*     parent   = 0,
39                             QString      title    = QString::null,
40                             QString      label    = QString::null,
41                             const int    bottom   = 0,
42                             const int    top      = 1000,
43                             bool         modal    = TRUE );
44
45     ~SMESHGUI_aParameterDlg();
46
47     void   setValue( const double val );
48     void   setValue( const int    val );
49     double getDblValue();
50     int    getIntValue();
51
52 protected:
53     void init( bool isDouble );
54
55 private:
56     SMESHGUI*       mySMESHGUI ;
57
58     QPushButton*    myButtonOk;
59     QPushButton*    myButtonCancel;
60     QLabel*         myTextLabel;
61     QSpinBox*       myIntSpin;
62     QAD_SpinBoxDbl* myDblSpin;
63 };
64
65 #endif // SMESHGUI_aParameterDlg.h