1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_SymmetryDlg.h
25 // Author : Michael ZORIN
29 #ifndef DIALOGBOX_SYMMETRY_H
30 #define DIALOGBOX_SYMMETRY_H
32 #include "SALOME_Selection.h"
33 #include "SMESH_LogicalFilter.hxx"
47 class SMESHGUI_SpinBox;
52 #include <SALOMEconfig.h>
53 #include CORBA_SERVER_HEADER(SMESH_Mesh)
56 //=================================================================================
57 // class : SMESHGUI_SymmetryDlg
59 //=================================================================================
60 class SMESHGUI_SymmetryDlg : public QDialog
65 SMESHGUI_SymmetryDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
66 ~SMESHGUI_SymmetryDlg();
70 void Init( bool ResetControls = true ) ;
71 void closeEvent( QCloseEvent* e ) ;
72 void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */
73 void hideEvent ( QHideEvent * ); /* ESC key */
74 int GetConstructorId();
77 SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */
78 SALOME_Selection* mySelection ; /* User shape selection */
79 int myNbOkElements ; /* to check when elements are defined */
82 QWidget* myEditCurrentArgument; /* Current LineEdit */
85 SMESH::SMESH_Mesh_var myMesh;
87 Handle(SMESH_LogicalFilter) myMeshOrSubMeshOrGroupFilter;
89 QButtonGroup* GroupConstructors;
90 QRadioButton* RadioButton1;
91 QRadioButton* RadioButton2;
92 QRadioButton* RadioButton3;
93 QGroupBox* GroupButtons;
94 QPushButton* buttonOk;
95 QPushButton* buttonCancel;
96 QPushButton* buttonApply;
97 QGroupBox* GroupArguments;
98 QGroupBox* GroupMirror;
99 QLabel* TextLabelElements;
100 QPushButton* SelectElementsButton;
101 QLineEdit* LineEditElements;
102 QCheckBox* CheckBoxMesh;
104 QLabel* TextLabelPoint;
105 QPushButton* SelectPointButton;
107 SMESHGUI_SpinBox* SpinBox_X;
109 SMESHGUI_SpinBox* SpinBox_Y;
111 SMESHGUI_SpinBox* SpinBox_Z;
112 QLabel* TextLabelVector;
113 QPushButton* SelectVectorButton;
115 SMESHGUI_SpinBox* SpinBox_DX;
117 SMESHGUI_SpinBox* SpinBox_DY;
119 SMESHGUI_SpinBox* SpinBox_DZ;
121 QCheckBox* CheckBoxCopy;
125 void ConstructorsClicked(int constructorId);
127 void ClickOnCancel();
129 void SetEditCurrentArgument() ;
130 void SelectionIntoArgument() ;
131 void DeactivateActiveDialog() ;
132 void ActivateThisDialog() ;
133 void onTextChange(const QString&);
134 void onSelectMesh(bool toSelectMesh);
135 void onVectorChanged();
138 QGridLayout* SMESHGUI_SymmetryDlgLayout;
139 QGridLayout* GroupConstructorsLayout;
140 QGridLayout* GroupButtonsLayout;
141 QGridLayout* GroupArgumentsLayout;
144 #endif // DIALOGBOX_SYMMETRY_H