1 // File : SALOMEGUI_SetValueDlg.h
2 // Created : Wed Jan 21 16:38:42 2001
3 // Author : Vadim SANDLER
6 // Copyright : Open CASCADE
9 #ifndef SALOMEGUI_SETVALUEDLG_H
10 #define SALOMEGUI_SETVALUEDLG_H
19 //=================================================================================
20 // class : SALOMEGUI_SetValueDlg
21 // purpose : Common dialog box for setting integer, double and string values
22 //=================================================================================
23 class SALOMEGUI_SetValueDlg : public QDialog
26 static QString getString ( const QString& caption,
28 const QString& oldValue = QString::null,
30 QWidget* parent = 0 );
31 static int getInteger( const QString& caption,
33 const int oldValue = 0,
35 QWidget* parent = 0 );
36 static double getDouble ( const QString& caption,
38 const double oldValue = 0.0,
40 QWidget* parent = 0 );
43 SALOMEGUI_SetValueDlg( QWidget* parent = 0 );
44 ~SALOMEGUI_SetValueDlg();
46 void setValue( const QString& value );
48 void setValidator( QValidator* v );
49 void setLabel( const QString& label );
53 QLineEdit* myLineEdit;
54 QPushButton* myButtonOk;
55 QPushButton* myButtonCancel;
58 #endif // SALOMEGUI_SETVALUEDLG_H