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