1 // File : GeometryGUI_PartitionDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_PARTITION_H
10 #define DIALOGBOX_PARTITION_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
27 //=================================================================================
28 // class : GeometryGUI_PartitionDlg
30 //=================================================================================
31 class GeometryGUI_PartitionDlg : public QDialog
36 GeometryGUI_PartitionDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
37 ~GeometryGUI_PartitionDlg();
41 void Init( SALOME_Selection* Sel ) ;
42 void closeEvent( QCloseEvent* e ) ;
43 void enterEvent ( QEvent * ) ; /* Mouse enter the QWidget */
45 GEOM::GEOM_Gen_var myGeom ; /* Current Geom object */
46 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
47 SALOME_Selection* mySelection ; /* User shape selection */
49 GEOM::GEOM_Gen::ListOfIOR myListShapes ;
50 GEOM::GEOM_Gen::ListOfIOR myListTools ;
51 GEOM::GEOM_Gen::ListOfIOR myListRemoveInside ;
52 GEOM::GEOM_Gen::ListOfIOR myListKeepInside ;
54 bool myOkListShapes ; /* to check when argument is defined */
55 bool myOkListTools ; /* to check when argument is defined */
56 bool myOkKeepShape ; /* to check when argument is defined */
57 bool myOkRemoveShape ; /* to check when argument is defined */
59 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
62 QGroupBox* GroupButtons;
63 QPushButton* buttonOk;
64 QPushButton* buttonCancel;
65 QPushButton* buttonApply;
67 /* constructor radiobuttons */
68 QButtonGroup* GroupConstructors;
69 QRadioButton* Constructor1;
73 QLineEdit* LineEditC1A1;
74 QLabel* TextLabelC1A1;
75 QPushButton* SelectButtonC1A1;
76 QLineEdit* LineEditC1A2;
77 QLabel* TextLabelC1A2;
78 QPushButton* SelectButtonC1A2;
82 QLabel* TextLabelComboBox1;
84 /* Keep Inside and Remove Inside feilds */
86 QLineEdit* LineEditC2A1;
87 QLabel* TextLabelC2A1;
88 QPushButton* SelectButtonC2A1;
89 QLineEdit* LineEditC2A2;
90 QLabel* TextLabelC2A2;
91 QPushButton* SelectButtonC2A2;
95 //void ConstructorsClicked(int constructorId);
99 void SetEditCurrentArgument() ;
100 void LineEditReturnPressed() ;
101 void SelectionIntoArgument() ;
102 void DeactivateActiveDialog() ;
103 void ActivateThisDialog() ;
104 void ComboTextChanged() ;
107 #endif // DIALOGBOX_PARTITION_H