1 // File : GeometryGUI_BndBoxDlg.h
2 // Created : Mon Mar 04 13:12:22 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_BNDBOX_H
11 #define DIALOGBOX_BNDBOX_H
13 #include "SALOME_Selection.h"
14 #include "GEOM_ShapeTypeFilter.hxx"
30 //=================================================================================
31 // class : DialogBox_PROPERTIES
33 //=================================================================================
34 class GeometryGUI_BndBoxDlg : public QDialog
39 GeometryGUI_BndBoxDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
40 ~GeometryGUI_BndBoxDlg();
44 void Init( SALOME_Selection* Sel ) ;
45 void closeEvent( QCloseEvent* e ) ;
46 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
47 void CalculateAndDisplayBndBox(const TopoDS_Shape& S) ;
49 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
50 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
51 SALOME_Selection* mySelection ; /* User shape selection */
52 int myConstructorId ; /* Current constructor id = radio button id */
53 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
54 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
56 QButtonGroup* GroupConstructors;
57 QRadioButton* Constructor1;
58 QGroupBox* GroupConstructor1;
59 QLineEdit* LineEditC1A1;
60 QPushButton* SelectButtonC1A1;
61 QLabel* TextLabelC1A1;
63 QLabel* TextLabel_Min;
64 QLabel* TextLabel_Max;
70 QLineEdit* LineEdit_MinX;
71 QLineEdit* LineEdit_MinY;
72 QLineEdit* LineEdit_MinZ;
74 QLineEdit* LineEdit_MaxX;
75 QLineEdit* LineEdit_MaxY;
76 QLineEdit* LineEdit_MaxZ;
78 QGroupBox* GroupButtons;
79 QPushButton* buttonApply;
80 QPushButton* buttonOk;
81 QPushButton* buttonCancel;
85 void ConstructorsClicked(int constructorId);
87 void SetEditCurrentArgument() ;
88 void LineEditReturnPressed() ;
89 void SelectionIntoArgument() ;
90 void DeactivateActiveDialog() ;
91 void ActivateThisDialog() ;
94 QGridLayout* GeometryGUI_BndBoxDlgLayout;
95 QGridLayout* GroupConstructorsLayout;
96 QGridLayout* GroupConstructor1Layout;
97 QGridLayout* GroupButtonsLayout;
100 #endif // DIALOGBOX_BNDBOX_H