Salome HOME
[SALOME platform 0013410]: SubMesh not taken into account with Netgen 1D-2D et 1D...
[plugins/netgenplugin.git] / src / GUI / NETGENPluginGUI_SimpleCreator.h
1 // Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
3 //
4 // This library is free software; you can redistribute it and/or 
5 // modify it under the terms of the GNU Lesser General Public 
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License. 
8 //
9 // This library is distributed in the hope that it will be useful, 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details. 
13 //
14 // You should have received a copy of the GNU Lesser General Public 
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20 // File   : NETGENPluginGUI_SimpleCreator.h
21 // Author : Open CASCADE S.A.S.
22 //
23
24 #ifndef NETGENPluginGUI_SimpleCreator_H
25 #define NETGENPluginGUI_SimpleCreator_H
26
27 // SMESH includes
28 #include "NETGENPlugin_Defs.hxx"
29 #include <SMESHGUI_Hypotheses.h>
30
31 class  QCheckBox;
32 class  QLineEdit;
33 class  QRadioButton;
34 class  QtxIntSpinBox;
35 class  SMESHGUI_SpinBox;
36
37 class NETGENPLUGIN_EXPORT NETGENPluginGUI_SimpleCreator : public SMESHGUI_GenericHypothesisCreator
38 {
39   Q_OBJECT
40
41 public:
42   NETGENPluginGUI_SimpleCreator(const QString& theHypType);
43   virtual ~NETGENPluginGUI_SimpleCreator();
44
45   virtual bool     checkParams() const;
46   virtual QString  helpPage() const;
47
48 protected:
49   virtual QFrame*  buildFrame();
50   virtual void     retrieveParams() const;
51   virtual QString  storeParams() const;
52
53   virtual QString  caption() const;
54   virtual QPixmap  icon() const;
55   virtual QString  type() const;
56
57 protected slots:
58   void             onValueChanged();
59
60 private:
61   QLineEdit       * myName;
62
63   QtxIntSpinBox*    myNbSeg;
64   SMESHGUI_SpinBox* myLength;
65   QRadioButton*     myNbSegRadioBut, *myLengthRadioBut;
66
67   QCheckBox*        myLenFromEdgesCheckBox;
68   SMESHGUI_SpinBox* myArea;
69
70   QCheckBox*        myLenFromFacesCheckBox;
71   SMESHGUI_SpinBox* myVolume;
72   
73 };
74
75 #endif // NETGENPluginGUI_SimpleCreator_H