X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_aParameterDlg.h;h=0c53672b2e01eaad64c34b11c5f040fb4cd09e2c;hp=c78aa9c1cdd896bbaad4aea8025b76d7ea23dec9;hb=0e020f2e93a8acfb51faccf221116530c23871ad;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa diff --git a/src/SMESHGUI/SMESHGUI_aParameterDlg.h b/src/SMESHGUI/SMESHGUI_aParameterDlg.h index c78aa9c1c..0c53672b2 100644 --- a/src/SMESHGUI/SMESHGUI_aParameterDlg.h +++ b/src/SMESHGUI/SMESHGUI_aParameterDlg.h @@ -32,53 +32,47 @@ // QT Includes #include +#include +#include "SMESHGUI_aParameter.h" + class QLabel; class QPushButton; -class QSpinBox; class SMESHGUI; -class QAD_SpinBoxDbl; +class QWidget; //================================================================================= // class : SMESHGUI_aParameterDlg // purpose : //================================================================================= class SMESHGUI_aParameterDlg : public QDialog -{ +{ Q_OBJECT public: - SMESHGUI_aParameterDlg( QWidget* parent = 0, - QString title = QString::null, - QString label = QString::null, - const double bottom = -1E6, - const double top = +1E6, - const int decimals = 3, - bool modal = TRUE ); - SMESHGUI_aParameterDlg( QWidget* parent = 0, - QString title = QString::null, - QString label = QString::null, - const int bottom = 0, - const int top = 1000, - bool modal = TRUE ); + SMESHGUI_aParameterDlg( SMESHGUI*, + std::list params, + QString title = QString::null, + bool modal = TRUE); ~SMESHGUI_aParameterDlg(); - void setValue( const double val ); - void setValue( const int val ); - double getDblValue(); - int getIntValue(); + /* Parameter function */ + static bool Parameters( SMESHGUI*, std::list params, const char *aTitle); protected: - void init( bool isDouble ); + void init(); + +private slots: + void ClickOnOk(); private: - SMESHGUI* mySMESHGUI ; + SMESHGUI* mySMESHGUI; QPushButton* myButtonOk; QPushButton* myButtonCancel; - QLabel* myTextLabel; - QSpinBox* myIntSpin; - QAD_SpinBoxDbl* myDblSpin; + + std::list mySpinList; + std::list myParamList; }; #endif // SMESHGUI_aParameterDlg.h