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.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : SMESHGUI_RotationDlg.h
23 // Author : Michael ZORIN, Open CASCADE S.A.S.
26 #ifndef SMESHGUI_ROTATIONDLG_H
27 #define SMESHGUI_ROTATIONDLG_H
30 #include "SMESH_SMESHGUI.hxx"
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Mesh)
48 class SMESHGUI_SpinBox;
50 class LightApp_SelectionMgr;
51 class SMESH_LogicalFilter;
53 //=================================================================================
54 // class : SMESHGUI_RotationDlg
56 //=================================================================================
57 class SMESHGUI_EXPORT SMESHGUI_RotationDlg : public QDialog
62 SMESHGUI_RotationDlg( SMESHGUI* );
63 ~SMESHGUI_RotationDlg();
66 void Init( bool = true );
67 void closeEvent( QCloseEvent* );
68 void enterEvent( QEvent* ); /* mouse enter the QWidget */
69 void hideEvent( QHideEvent* ); /* ESC key */
70 void keyPressEvent( QKeyEvent* );
72 void setNewMeshName();
74 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
75 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
76 int myNbOkElements; /* to check when elements are defined */
78 SVTK_Selector* mySelector;
80 QWidget* myEditCurrentArgument; /* Current LineEdit */
83 SMESH::SMESH_Mesh_var myMesh;
85 SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
87 QGroupBox* GroupConstructors;
88 QRadioButton* RadioButton1;
89 QGroupBox* GroupButtons;
90 QPushButton* buttonOk;
91 QPushButton* buttonCancel;
92 QPushButton* buttonApply;
93 QPushButton* buttonHelp;
94 QGroupBox* GroupArguments;
96 QLabel* TextLabelElements;
97 QPushButton* SelectElementsButton;
98 QLineEdit* LineEditElements;
99 QCheckBox* CheckBoxMesh;
101 QLabel* TextLabelPoint;
102 QPushButton* SelectPointButton;
104 SMESHGUI_SpinBox* SpinBox_X;
106 SMESHGUI_SpinBox* SpinBox_Y;
108 SMESHGUI_SpinBox* SpinBox_Z;
109 QLabel* TextLabelVector;
110 QPushButton* SelectVectorButton;
112 SMESHGUI_SpinBox* SpinBox_DX;
114 SMESHGUI_SpinBox* SpinBox_DY;
116 SMESHGUI_SpinBox* SpinBox_DZ;
118 QLabel* TextLabelAngle;
119 SMESHGUI_SpinBox* SpinBox_Angle;
120 //QCheckBox* CheckBoxCopy;
121 QGroupBox* ActionBox;
122 QButtonGroup* ActionGroup;
123 QCheckBox* MakeGroupsCheck;
124 QLineEdit* LineEditNewMesh;
126 QString myHelpFileName;
130 void ClickOnCancel();
133 void SetEditCurrentArgument();
134 void SelectionIntoArgument();
135 void DeactivateActiveDialog();
136 void ActivateThisDialog();
137 void onTextChange( const QString& );
138 void onSelectMesh( bool );
139 void onVectorChanged();
140 void onActionClicked( int );
143 #endif // SMESHGUI_ROTATIONDLG_H