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_ExtrusionAlongPathDlg.h
25 // Author : Vadim SANDLER
29 #ifndef DIALOGBOX_EXTRUSION_PATH_H
30 #define DIALOGBOX_EXTRUSION_PATH_H
32 #include "LightApp_SelectionMgr.h"
33 #include "SUIT_SelectionFilter.h"
50 class SMESHGUI_SpinBox;
51 class SVTK_ViewWindow;
56 #include <SALOMEconfig.h>
57 #include CORBA_SERVER_HEADER(SMESH_Mesh)
59 //=================================================================================
60 // class : SMESHGUI_ExtrusionAlongPathDlg
62 //=================================================================================
63 class SMESHGUI_ExtrusionAlongPathDlg : public QDialog
69 SetBusy (SMESHGUI_ExtrusionAlongPathDlg* _dlg) { myDlg = _dlg; myDlg->myBusy = true; }
70 ~SetBusy() { myDlg->myBusy = false; }
72 SMESHGUI_ExtrusionAlongPathDlg* myDlg;
77 SMESHGUI_ExtrusionAlongPathDlg (SMESHGUI*,
79 ~SMESHGUI_ExtrusionAlongPathDlg();
81 bool eventFilter (QObject* object, QEvent* event);
84 void Init (bool ResetControls = true);
85 void enterEvent (QEvent*); /* mouse enter the QWidget */
86 int GetConstructorId();
87 void SetEditCurrentArgument (QToolButton* button);
89 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
90 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
91 SVTK_Selector* mySelector;
93 QWidget* myEditCurrentArgument; /* Current argument */
96 SMESH::SMESH_Mesh_var myMesh;
97 SMESH_Actor* myMeshActor;
98 SMESH::SMESH_IDSource_var myIDSource;
99 SMESH::SMESH_Mesh_var myPathMesh;
100 GEOM::GEOM_Object_var myPathShape;
101 SUIT_SelectionFilter* myElementsFilter;
102 SUIT_SelectionFilter* myPathMeshFilter;
106 QButtonGroup* GroupConstructors;
107 QRadioButton* Elements1dRB;
108 QRadioButton* Elements2dRB;
110 QGroupBox* GroupArguments;
112 QToolButton* SelectElementsButton;
113 QLineEdit* ElementsLineEdit;
114 QCheckBox* MeshCheck;
117 QToolButton* SelectPathMeshButton;
118 QLineEdit* PathMeshLineEdit;
119 QLabel* PathShapeLab;
120 QToolButton* SelectPathShapeButton;
121 QLineEdit* PathShapeLineEdit;
122 QLabel* StartPointLab;
123 QToolButton* SelectStartPointButton;
124 QLineEdit* StartPointLineEdit;
125 QCheckBox* AnglesCheck;
126 QGroupBox* AnglesGrp;
127 QListBox* AnglesList;
128 QToolButton* AddAngleButton;
129 QToolButton* RemoveAngleButton;
130 SMESHGUI_SpinBox* AngleSpin;
131 QCheckBox* BasePointCheck;
132 QGroupBox* BasePointGrp;
133 QToolButton* SelectBasePointButton;
135 SMESHGUI_SpinBox* XSpin;
137 SMESHGUI_SpinBox* YSpin;
139 SMESHGUI_SpinBox* ZSpin;
141 QGroupBox* GroupButtons;
142 QPushButton* OkButton;
143 QPushButton* ApplyButton;
144 QPushButton* CloseButton;
145 QPushButton* HelpButton;
147 QString myHelpFileName;
153 void ConstructorsClicked (int);
157 void SetEditCurrentArgument();
158 void SelectionIntoArgument();
159 void DeactivateActiveDialog();
160 void ActivateThisDialog();
161 void onTextChange (const QString&);
163 void onAnglesCheck();
164 void onBasePointCheck();
166 void OnAngleRemoved();
169 #endif // DIALOGBOX_EXTRUSION_PATH_H