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_ExtrusionAlongPathDlg.h
23 // Author : Vadim SANDLER, Open CASCADE S.A.S.
26 #ifndef SMESHGUI_EXTRUSIONALONGPATHDLG_H
27 #define SMESHGUI_EXTRUSIONALONGPATHDLG_H
30 #include "SMESH_SMESHGUI.hxx"
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Mesh)
51 class SMESHGUI_IdValidator;
52 class SMESHGUI_SpinBox;
54 class LightApp_SelectionMgr;
55 class SUIT_SelectionFilter;
57 //=================================================================================
58 // class : SMESHGUI_ExtrusionAlongPathDlg
60 //=================================================================================
61 class SMESHGUI_EXPORT SMESHGUI_ExtrusionAlongPathDlg : public QDialog
69 SMESHGUI_ExtrusionAlongPathDlg( SMESHGUI* );
70 ~SMESHGUI_ExtrusionAlongPathDlg();
72 bool eventFilter( QObject*, QEvent* );
75 void Init( bool = true );
76 void enterEvent( QEvent* ); /* mouse enter the QWidget */
77 void keyPressEvent( QKeyEvent* );
78 int GetConstructorId();
79 void SetEditCurrentArgument( QToolButton* );
83 void updateLinearAngles();
85 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
86 SMESHGUI_IdValidator* myIdValidator;
87 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
88 SVTK_Selector* mySelector;
90 QWidget* myEditCurrentArgument; /* Current argument */
93 SMESH::SMESH_Mesh_var myMesh;
94 SMESH_Actor* myMeshActor;
95 SMESH::SMESH_IDSource_var myIDSource;
96 SMESH::SMESH_Mesh_var myPathMesh;
97 GEOM::GEOM_Object_var myPathShape;
98 SUIT_SelectionFilter* myElementsFilter;
99 SUIT_SelectionFilter* myPathMeshFilter;
101 QList<double> myAnglesList;
104 QGroupBox* ConstructorsBox;
105 QButtonGroup* GroupConstructors;
106 QRadioButton* Elements1dRB;
107 QRadioButton* Elements2dRB;
109 QGroupBox* GroupArguments;
111 QToolButton* SelectElementsButton;
112 QLineEdit* ElementsLineEdit;
113 QCheckBox* MeshCheck;
115 QToolButton* SelectPathMeshButton;
116 QLineEdit* PathMeshLineEdit;
117 QToolButton* SelectPathShapeButton;
118 QLineEdit* PathShapeLineEdit;
119 QToolButton* SelectStartPointButton;
120 QLineEdit* StartPointLineEdit;
121 QCheckBox* LinearAnglesCheck;
122 QGroupBox* AnglesGrp;
123 QListWidget* AnglesList;
124 QToolButton* AddAngleButton;
125 QToolButton* RemoveAngleButton;
126 SMESHGUI_SpinBox* AngleSpin;
127 QGroupBox* BasePointGrp;
128 QToolButton* SelectBasePointButton;
129 SMESHGUI_SpinBox* XSpin;
130 SMESHGUI_SpinBox* YSpin;
131 SMESHGUI_SpinBox* ZSpin;
132 QCheckBox* MakeGroupsCheck;
134 QGroupBox* GroupButtons;
135 QPushButton* OkButton;
136 QPushButton* ApplyButton;
137 QPushButton* CloseButton;
138 QPushButton* HelpButton;
140 QString myHelpFileName;
146 void ConstructorsClicked( int );
150 void SetEditCurrentArgument();
151 void SelectionIntoArgument();
152 void DeactivateActiveDialog();
153 void ActivateThisDialog();
154 void onTextChange( const QString& );
157 void OnAngleRemoved();
160 #endif // SMESHGUI_EXTRUSIONALONGPATHDLG_H