X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_aParameterDlg.h;h=7fd28a96f564bcf3b3e8cf03371a943cf709402e;hp=cd7a7e05641c533110756def361eb1e37e69d7d9;hb=b0105f0f9d05ef09ad770cf0d343901589cba620;hpb=3973ceea250d2a077cdb5a798eb7c6151fa9c568 diff --git a/src/SMESHGUI/SMESHGUI_aParameterDlg.h b/src/SMESHGUI/SMESHGUI_aParameterDlg.h index cd7a7e056..7fd28a96f 100644 --- a/src/SMESHGUI/SMESHGUI_aParameterDlg.h +++ b/src/SMESHGUI/SMESHGUI_aParameterDlg.h @@ -1,10 +1,29 @@ -// File : SMESHGUI_aParameterDlg.h -// Created : Wed Jun 12 21:04:41 2002 -// Author : Nicolas REJNERI - -// Project : SALOME -// Module : SMESH -// Copyright : Open CASCADE 2002 +// SMESH SMESHGUI : GUI for SMESH component +// +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SMESHGUI_aParameterDlg.h +// Author : Nicolas REJNERI +// Module : SMESH // $Header$ #ifndef SMESHGUI_aParameterDlg_H @@ -13,53 +32,51 @@ // 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(); + +protected slots: + virtual void onValueChanged(); + +private slots: + void ClickOnOk(); + void UpdateShown( const SMESHGUI_aParameterPtr, QWidget* ); private: - SMESHGUI* mySMESHGUI ; + SMESHGUI* mySMESHGUI; QPushButton* myButtonOk; QPushButton* myButtonCancel; - QLabel* myTextLabel; - QSpinBox* myIntSpin; - QAD_SpinBoxDbl* myDblSpin; + + std::list mySpinList, myLabelList; + std::list myParamList; }; #endif // SMESHGUI_aParameterDlg.h