1 // File : GeometryGUI_ScaleDlg.h
3 // Author : Lucien PIGNOLONI
5 // Module : GeometryGUI
6 // Copyright : OPEN CASCADE
9 #ifndef DIALOGBOX_SCALE_H
10 #define DIALOGBOX_SCALE_H
12 #include "SALOME_Selection.h"
13 #include "GEOM_ShapeTypeFilter.hxx"
32 //=================================================================================
33 // class : GeometryGUI_ScaleDlg
35 //=================================================================================
36 class GeometryGUI_ScaleDlg : public QDialog
41 GeometryGUI_ScaleDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
42 ~GeometryGUI_ScaleDlg();
46 void closeEvent( QCloseEvent* e ) ;
47 void enterEvent( QEvent* e );
48 void Init(SALOME_Selection* Sel) ;
49 void MakeScaleSimulationAndDisplay( const TopoDS_Shape& S ) ;
51 GEOM::GEOM_Gen_var myGeom ; /* Current GeomI object */
52 GeometryGUI* myGeomGUI ; /* Current GeomGUI object */
53 TopoDS_Shape mySimulationTopoDs ; /* Shape used for simulation display */
54 SALOME_Selection* mySelection ; /* User shape selection */
55 gp_Pnt myPoint1 ; /* Points containing the vector */
56 TopoDS_Shape myBaseTopo ;
57 GEOM::GEOM_Shape_var myGeomShape ; /* is myBaseTopo */
58 Standard_Real myFactor ;
59 bool myOkPoint1 ; /* true when myPoint1 is defined */
60 bool myOkBaseTopo ; /* true when myBaseTopo is defined */
61 int myConstructorId ; /* Current constructor id = radio button id */
62 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
63 Handle(GEOM_ShapeTypeFilter) myVertexFilter; /* filter for selection */
65 QButtonGroup* GroupConstructors;
66 QRadioButton* Constructor1;
68 QLabel* TextLabelC1A1;
69 QLabel* TextLabelC1A2;
70 QPushButton* SelectButtonC1A1;
71 QPushButton* SelectButtonC1A2;
72 QLineEdit* LineEditC1A1;
73 QLineEdit* LineEditC1A2;
74 QLineEdit* LineEditC1A3;
75 QLabel* TextLabelC1A3;
76 QGroupBox* GroupButtons;
77 QPushButton* buttonApply;
78 QPushButton* buttonOk;
79 QPushButton* buttonCancel;
83 void ConstructorsClicked(int constructorId);
87 void SetEditCurrentArgument() ;
88 void SelectionIntoArgument() ;
89 void LineEditReturnPressed() ;
90 void DeactivateActiveDialog() ;
91 void ActivateThisDialog() ;
92 void TextChangedInLineEdit(const QString& newText) ;
95 QGridLayout* GeometryGUI_ScaleDlgLayout;
96 QGridLayout* GroupConstructorsLayout;
97 QGridLayout* GroupC1Layout;
98 QGridLayout* GroupButtonsLayout;
101 #endif // DIALOGBOX_SCALE_H