1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : NETGENPluginGUI_SimpleCreator.h
21 // Author : Open CASCADE S.A.S.
24 #ifndef NETGENPluginGUI_SimpleCreator_H
25 #define NETGENPluginGUI_SimpleCreator_H
28 #include "NETGENPlugin_Defs.hxx"
29 #include <SMESHGUI_Hypotheses.h>
35 class SMESHGUI_SpinBox;
37 class NETGENPLUGIN_EXPORT NETGENPluginGUI_SimpleCreator : public SMESHGUI_GenericHypothesisCreator
42 NETGENPluginGUI_SimpleCreator(const QString& theHypType);
43 virtual ~NETGENPluginGUI_SimpleCreator();
45 virtual bool checkParams() const;
46 virtual QString helpPage() const;
49 virtual QFrame* buildFrame();
50 virtual void retrieveParams() const;
51 virtual QString storeParams() const;
53 virtual QString caption() const;
54 virtual QPixmap icon() const;
55 virtual QString type() const;
58 void onValueChanged();
63 QtxIntSpinBox* myNbSeg;
64 SMESHGUI_SpinBox* myLength;
65 QRadioButton* myNbSegRadioBut, *myLengthRadioBut;
67 QCheckBox* myLenFromEdgesCheckBox;
68 SMESHGUI_SpinBox* myArea;
70 QCheckBox* myLenFromFacesCheckBox;
71 SMESHGUI_SpinBox* myVolume;
75 #endif // NETGENPluginGUI_SimpleCreator_H