1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 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, or (at your option) any later version.
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
23 // SMESH SMESHGUI : GUI for SMESH component
24 // File : SMESHGUI_ExtrusionAlongPathDlg.h
25 // Author : Vadim SANDLER, Open CASCADE S.A.S.
27 #ifndef SMESHGUI_EXTRUSIONALONGPATHDLG_H
28 #define SMESHGUI_EXTRUSIONALONGPATHDLG_H
31 #include "SMESH_SMESHGUI.hxx"
32 #include "SMESHGUI_PreviewDlg.h"
35 #include <SALOMEconfig.h>
36 #include CORBA_SERVER_HEADER(SMESH_Mesh)
48 class LightApp_SelectionMgr;
50 class SMESHGUI_3TypesSelector;
51 class SMESHGUI_FilterDlg;
52 class SMESHGUI_IdValidator;
53 class SMESHGUI_SpinBox;
55 class SUIT_SelectionFilter;
58 //=================================================================================
59 // class : SMESHGUI_ExtrusionAlongPathDlg
61 //=================================================================================
62 class SMESHGUI_EXPORT SMESHGUI_ExtrusionAlongPathDlg : public SMESHGUI_PreviewDlg
70 SMESHGUI_ExtrusionAlongPathDlg( SMESHGUI* );
71 ~SMESHGUI_ExtrusionAlongPathDlg();
73 bool eventFilter( QObject*, QEvent* );
76 void Init( bool = true );
77 void enterEvent( QEvent* ); /* mouse enter the QWidget */
78 void keyPressEvent( QKeyEvent* );
79 void SetEditCurrentArgument( QPushButton* );
84 SMESH::double_array_var getAngles();
86 void updateLinearAngles();
88 SMESHGUI_IdValidator* myIdValidator;
89 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
90 SVTK_Selector* mySelector;
91 QWidget* myEditCurrentArgument; /* Current argument */
94 SMESH::SMESH_IDSource_var myPath;
95 SUIT_SelectionFilter* myPathMeshFilter;
96 QList<double> myAnglesList;
99 SMESHGUI_3TypesSelector* SelectorWdg;
100 QGroupBox* GroupArguments;
102 QPushButton* SelectPathMeshButton;
103 QLineEdit* PathMeshLineEdit;
104 QPushButton* SelectStartPointButton;
105 QLineEdit* StartPointLineEdit;
106 QCheckBox* LinearAnglesCheck;
107 QGroupBox* AnglesGrp;
108 QListWidget* AnglesList;
109 QToolButton* AddAngleButton;
110 QToolButton* RemoveAngleButton;
111 SMESHGUI_SpinBox* AngleSpin;
112 QGroupBox* BasePointGrp;
113 QPushButton* SelectBasePointButton;
114 SMESHGUI_SpinBox* XSpin;
115 SMESHGUI_SpinBox* YSpin;
116 SMESHGUI_SpinBox* ZSpin;
117 QCheckBox* MakeGroupsCheck;
119 QGroupBox* GroupButtons;
120 QPushButton* OkButton;
121 QPushButton* ApplyButton;
122 QPushButton* CloseButton;
123 QPushButton* HelpButton;
125 QString myHelpFileName;
129 virtual void onDisplaySimulation( bool );
135 void CheckIsEnable();
136 void SetEditCurrentArgument();
137 void SelectionIntoArgument();
138 void DeactivateActiveDialog();
139 void ActivateThisDialog();
140 void onTextChange( const QString& );
142 void OnAngleRemoved();
147 #endif // SMESHGUI_EXTRUSIONALONGPATHDLG_H