1 // File : GeometryGUI_PropertiesDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_PROPERTIES_H
10 #define DIALOGBOX_PROPERTIES_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
15 #include <BRepGProp.hxx>
16 #include <GProp_GProps.hxx>
17 #include <GProp_PrincipalProps.hxx>
33 //=================================================================================
34 // class : GeometryGUI_PropertiesDlg
36 //=================================================================================
37 class GeometryGUI_PropertiesDlg : public QDialog
42 GeometryGUI_PropertiesDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
43 ~GeometryGUI_PropertiesDlg();
47 void Init( SALOME_Selection* Sel ) ;
48 void closeEvent( QCloseEvent* e ) ;
49 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
50 void CalculateAndDisplayProperties(const TopoDS_Shape& S) ;
52 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
53 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
54 SALOME_Selection* mySelection ; /* User shape selection */
55 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
57 int myConstructorId ; /* Current constructor id = radio button id */
58 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
60 QButtonGroup* GroupConstructors;
61 QRadioButton* Constructor1;
62 QGroupBox* GroupConstructor1;
63 QLineEdit* LineEditC1A1;
64 QPushButton* SelectButtonC1A1;
65 QLabel* TextLabelC1A1;
67 QLabel* TextLabel_Length;
68 QLabel* TextLabel_Surface;
69 QLabel* TextLabel_Volume;
71 QLineEdit* LineEdit_Length;
72 QLineEdit* LineEdit_Surface;
73 QLineEdit* LineEdit_Volume;
75 QGroupBox* GroupButtons;
76 QPushButton* buttonApply;
77 QPushButton* buttonOk;
78 QPushButton* buttonCancel;
82 void ConstructorsClicked(int constructorId);
84 void SetEditCurrentArgument() ;
85 void LineEditReturnPressed() ;
86 void SelectionIntoArgument() ;
87 void DeactivateActiveDialog() ;
88 void ActivateThisDialog() ;
91 QGridLayout* GeometryGUI_PropertiesDlgLayout;
92 QGridLayout* GroupConstructorsLayout;
93 QGridLayout* GroupConstructor1Layout;
94 QGridLayout* GroupButtonsLayout;
97 #endif // DIALOGBOX_PROPERTIES_H