Salome HOME
+//#define MESSAGE(m) {cout<<m<<endl;}
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ConvToQuadDlg.h
1 //  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 //  Copyright (C) 2003-2007  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22 /**
23 *  SMESH SMESHGUI
24 *
25 *  Copyright (C) 2005  CEA/DEN, EDF R&D
26 *
27 *
28 *
29 *  File   : SMESHGUI_ConvToQuadDlg.h
30 *  Module : SMESH
31 */
32
33
34 #ifndef SMESHGUI_ConvToQuadDlg_H
35 #define SMESHGUI_ConvToQuadDlg_H
36
37 #include "SMESHGUI_Dialog.h"
38 /*#include <qframe.h>
39 #include <qstringlist.h>
40 #include <qmap.h>*/
41
42 //idl headers
43 #include <SALOMEconfig.h>
44 #include CORBA_SERVER_HEADER(SMESH_Mesh)
45
46 class QCheckBox;
47 class QRadioButton;
48 class QButtonGroup;
49
50 class SMESHGUI_ConvToQuadDlg : public SMESHGUI_Dialog
51
52   Q_OBJECT       
53         
54 public:
55            SMESHGUI_ConvToQuadDlg();
56   virtual ~SMESHGUI_ConvToQuadDlg();
57
58   bool     IsMediumNdsOnGeom() const;
59   void     SetMediumNdsOnGeom(const bool theCheck);
60   bool     IsEnabledCheck() const;
61   void     SetEnabledCheck( const bool theCheck );
62   void     SetEnabledGroup( const bool theCheck );
63   void     SetEnabledControls( const bool theCheck );
64   void     SetEnabledRB( const int idx, const bool theCheck );
65   int      CurrentRB();//returns the ID of the selected toggle button
66
67 signals:
68   void     onClicked( int );
69
70 private:
71
72   QCheckBox* myMedNdsOnGeom;
73   QButtonGroup* myBG;
74   QRadioButton* myRB1;
75   QRadioButton* myRB2;
76
77 };
78
79 #endif
80
81
82
83