Salome HOME
The selections of elements corrected.
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_aParameterDlg.h
1 //  SMESH SMESHGUI : GUI for SMESH component
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SMESHGUI_aParameterDlg.h
25 //  Author : Nicolas REJNERI
26 //  Module : SMESH
27 //  $Header$
28
29 #ifndef SMESHGUI_aParameterDlg_H
30 #define SMESHGUI_aParameterDlg_H
31
32 // QT Includes
33 #include <qdialog.h>
34
35 #include <list>
36 #include "SMESHGUI_aParameter.h"
37
38 class QLabel;
39 class QPushButton;
40 class SMESHGUI;
41 class QWidget;
42
43 //=================================================================================
44 // class    : SMESHGUI_aParameterDlg
45 // purpose  :
46 //=================================================================================
47 class SMESHGUI_aParameterDlg : public QDialog
48 {
49     Q_OBJECT
50
51 public:
52     SMESHGUI_aParameterDlg( SMESHGUI*,
53                             std::list<SMESHGUI_aParameterPtr> params,
54                             QString                           title  = QString::null,
55                             bool                              modal  = TRUE);
56
57     ~SMESHGUI_aParameterDlg();
58
59     /* Parameter function */
60     static bool Parameters( SMESHGUI*, std::list<SMESHGUI_aParameterPtr> params, const char *aTitle);
61
62 protected:
63     void init();
64
65 private slots:
66     void ClickOnOk();
67
68 private:
69     SMESHGUI*       mySMESHGUI;
70
71     QPushButton*    myButtonOk;
72     QPushButton*    myButtonCancel;
73
74     std::list<QWidget*>               mySpinList;
75     std::list<SMESHGUI_aParameterPtr> myParamList;
76 };
77
78 #endif // SMESHGUI_aParameterDlg.h