1 // File : GeometryGUI_ArchimedeDlg.h
2 // Created : Mon Feb 25 11:13:13 CET 2002
3 // Author : Nicolas REJNERI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_ARCHIMEDE_H
10 #define DIALOGBOX_ARCHIMEDE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
17 #include <qvalidator.h>
31 //=================================================================================
32 // class : GeometryGUI_ArchimedeDlg
34 //=================================================================================
35 class GeometryGUI_ArchimedeDlg : public QDialog
40 GeometryGUI_ArchimedeDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
41 ~GeometryGUI_ArchimedeDlg();
45 void Init( SALOME_Selection* Sel ) ;
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
49 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
50 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
51 SALOME_Selection* mySelection ; /* User shape selection */
53 Handle(SALOME_InteractiveObject) myIO ;
55 Standard_Real myWeight ;
56 Standard_Real myWaterDensity ;
57 Standard_Real myMeshingDeflection ;
61 bool myOkWaterDensity ;
62 bool myOkMeshingDeflection ;
64 int myConstructorId ; /* Current constructor id = radio button id */
65 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
67 QDoubleValidator *myVa ; /* Double validator for numeric input */
68 QDoubleValidator *myVb ; /* Double validator for numeric input */
69 QDoubleValidator *myVc ; /* Double validator for numeric input */
71 QButtonGroup* GroupConstructors;
72 QRadioButton* Constructor1;
73 QGroupBox* GroupButtons;
74 QPushButton* buttonApply;
75 QPushButton* buttonOk;
76 QPushButton* buttonCancel;
78 QLineEdit* LineEditC1A1;
79 QLineEdit* LineEditC1A2;
80 QLineEdit* LineEditC1A3;
81 QLineEdit* LineEditC1A4;
82 QPushButton* SelectButtonC1A1;
83 QLabel* TextLabelC1A1;
84 QLabel* TextLabelC1A2;
85 QLabel* TextLabelC1A3;
86 QLabel* TextLabelC1A4;
90 void ConstructorsClicked(int constructorId);
94 void SetEditCurrentArgument() ;
95 void TextChangedInLineEdit(const QString&) ;
96 void SelectionIntoArgument() ;
97 void DeactivateActiveDialog() ;
98 void ActivateThisDialog() ;
101 QGridLayout* GeometryGUI_ArchimedeDlgLayout;
102 QGridLayout* GroupConstructorsLayout;
103 QGridLayout* GroupButtonsLayout;
104 QGridLayout* GroupC1Layout;
107 #endif // DIALOGBOX_ARCHIMEDE_H