1 // File : GeometryGUI_WhatisDlg.h
2 // Created : Mon Mar 04 14:49:51 2002
3 // Author : Nicolas REJNERI
7 // Copyright : Open CASCADE 2002
10 #ifndef DIALOGBOX_WHATIS_H
11 #define DIALOGBOX_WHATIS_H
13 #include "SALOME_Selection.h"
14 #include "GEOM_ShapeTypeFilter.hxx"
16 #include <TopoDS_Shape.hxx>
33 //=================================================================================
34 // class : DialogBox_PROPERTIES
36 //=================================================================================
37 class GeometryGUI_WhatisDlg : public QDialog
42 GeometryGUI_WhatisDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
43 ~GeometryGUI_WhatisDlg();
47 void Init( SALOME_Selection* Sel ) ;
48 void closeEvent( QCloseEvent* e ) ;
49 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
50 void CalculateWhatis(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;
70 QGroupBox* GroupButtons;
71 QPushButton* buttonApply;
72 QPushButton* buttonOk;
73 QPushButton* buttonCancel;
77 void ConstructorsClicked(int constructorId);
79 void SetEditCurrentArgument() ;
80 void LineEditReturnPressed() ;
81 void SelectionIntoArgument() ;
82 void DeactivateActiveDialog() ;
83 void ActivateThisDialog() ;
86 QGridLayout* GeometryGUI_WhatisDlgLayout;
87 QGridLayout* GroupConstructorsLayout;
88 QGridLayout* GroupConstructor1Layout;
89 QGridLayout* GroupButtonsLayout;
92 #endif // DIALOGBOX_WHATIS_H