Salome HOME
Dcq : Add MakeShell MakeSolid and New GUI Architecture
[modules/geom.git] / src / GEOMGUI / GeometryGUI_Skeleton.h
1 //  GEOM GEOMGUI : GUI for Geometry 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   : GeometryGUI_Skeleton.h
25 //  Author : Damine COQUERET
26 //  Module : GEOM
27 //  $Header: 
28
29 #ifndef GEOMETRYGUI_SKELETON_H
30 #define GEOMETRYGUI_SKELETON_H
31
32 #include "GeometryGUI_Skeleton_QTD.h"
33
34 #include "SALOME_Selection.h"
35 #include "GEOM_ShapeTypeFilter.hxx"
36
37 #include <qvariant.h>
38 #include <qdialog.h>
39 #include <qwidget.h>
40 #include <qgroupbox.h>
41 #include <qlineedit.h>
42 #include <qlayout.h>
43 #include <qradiobutton.h>
44 #include <qbuttongroup.h>
45
46 class GeometryGUI;
47
48 class GeometryGUI_Skeleton : public GeometryGUI_Skeleton_QTD
49
50     Q_OBJECT
51
52 public:
53     GeometryGUI_Skeleton(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0);
54     ~GeometryGUI_Skeleton();
55
56 private :
57     void Init(SALOME_Selection* Sel);
58
59 protected:
60     void closeEvent(QCloseEvent* e);
61
62     TopoDS_Shape mySimulationTopoDs;    /* Shape used for simulation display */
63     QLineEdit* myEditCurrentArgument;   /* Current LineEdit */
64     SALOME_Selection* mySelection ;     /* User shape selection */
65     GEOM::GEOM_Gen_var myGeom;          /* Current GeomI object */
66     GeometryGUI* myGeomGUI;             /* Current GeomGUI object */
67
68 protected slots:
69     void ClickOnCancel();
70     void LineEditReturnPressed();
71     void DeactivateActiveDialog();
72     void ActivateThisDialog();
73
74 };
75
76 #endif // GEOMETRYGUI_SKELETON_H