X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_ExtrusionAlongPathDlg.h;h=c0b5b898ff6c3fcbd7ca278173f91ace0aeed92a;hp=951dbb3ef30e23abb7eb3a2ac5f8c2b3853a06a7;hb=79b1ac2b6df9117f16f11d444b1f165d477a1813;hpb=090aff07266d376ae028ae43434bdea7c0a0f9bb diff --git a/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h b/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h index 951dbb3ef..c0b5b898f 100644 --- a/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h +++ b/src/SMESHGUI/SMESHGUI_ExtrusionAlongPathDlg.h @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -29,9 +29,11 @@ #ifndef DIALOGBOX_EXTRUSION_PATH_H #define DIALOGBOX_EXTRUSION_PATH_H -#include "SALOME_Selection.h" -#include "SMESH_LogicalFilter.hxx" -#include "SMESH_TypeFilter.hxx" +#include "SMESH_SMESHGUI.hxx" + +#include "LightApp_SelectionMgr.h" +#include "SUIT_SelectionFilter.h" + // QT Includes #include @@ -44,9 +46,13 @@ class QLineEdit; class QCheckBox; class QListBox; class QPushButton; -class SMESHGUI_SpinBox; + class SMESHGUI; class SMESH_Actor; +class SMESHGUI_SpinBox; +class SVTK_ViewWindow; +class SVTK_Selector; + // IDL Headers #include @@ -56,13 +62,13 @@ class SMESH_Actor; // class : SMESHGUI_ExtrusionAlongPathDlg // purpose : //================================================================================= -class SMESHGUI_ExtrusionAlongPathDlg : public QDialog -{ +class SMESHGUI_EXPORT SMESHGUI_ExtrusionAlongPathDlg : public QDialog +{ Q_OBJECT class SetBusy { public: - SetBusy( SMESHGUI_ExtrusionAlongPathDlg* _dlg ) { myDlg = _dlg; myDlg->myBusy = true; } + SetBusy (SMESHGUI_ExtrusionAlongPathDlg* _dlg) { myDlg = _dlg; myDlg->myBusy = true; } ~SetBusy() { myDlg->myBusy = false; } private: SMESHGUI_ExtrusionAlongPathDlg* myDlg; @@ -70,39 +76,41 @@ class SMESHGUI_ExtrusionAlongPathDlg : public QDialog friend class SetBusy; public: - SMESHGUI_ExtrusionAlongPathDlg( QWidget* parent = 0, SALOME_Selection* Sel = 0, bool modal = FALSE ); + SMESHGUI_ExtrusionAlongPathDlg (SMESHGUI*, + bool modal = FALSE); ~SMESHGUI_ExtrusionAlongPathDlg(); - bool eventFilter( QObject* object, QEvent* event ); - -protected slots: - void reject(); + bool eventFilter (QObject* object, QEvent* event); private: - void Init( bool ResetControls = true ) ; - void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */ + void Init (bool ResetControls = true); + void enterEvent (QEvent*); /* mouse enter the QWidget */ + void keyPressEvent(QKeyEvent*); int GetConstructorId(); - void SetEditCurrentArgument( QToolButton* button ); + void SetEditCurrentArgument (QToolButton* button); + + SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ + LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */ + SVTK_Selector* mySelector; + + QWidget* myEditCurrentArgument; /* Current argument */ - SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */ - SALOME_Selection* mySelection ; /* User shape selection */ - QWidget* myEditCurrentArgument; /* Current argument */ - bool myBusy; - SMESH::SMESH_IDSource_var myIDSource; SMESH::SMESH_Mesh_var myMesh; SMESH_Actor* myMeshActor; + SMESH::SMESH_IDSource_var myIDSource; SMESH::SMESH_Mesh_var myPathMesh; GEOM::GEOM_Object_var myPathShape; - Handle(SMESH_LogicalFilter) myElementsFilter; - Handle(SMESH_TypeFilter) myPathMeshFilter; + SUIT_SelectionFilter* myElementsFilter; + SUIT_SelectionFilter* myPathMeshFilter; int myType; // widgets - QButtonGroup* ElementsTypeGrp; + QButtonGroup* GroupConstructors; QRadioButton* Elements1dRB; QRadioButton* Elements2dRB; - QGroupBox* ArgumentsGrp; + + QGroupBox* GroupArguments; QLabel* ElementsLab; QToolButton* SelectElementsButton; QLineEdit* ElementsLineEdit; @@ -117,6 +125,7 @@ private: QLabel* StartPointLab; QToolButton* SelectStartPointButton; QLineEdit* StartPointLineEdit; + QCheckBox* LinearAnglesCheck; QCheckBox* AnglesCheck; QGroupBox* AnglesGrp; QListBox* AnglesList; @@ -132,20 +141,29 @@ private: SMESHGUI_SpinBox* YSpin; QLabel* ZLab; SMESHGUI_SpinBox* ZSpin; - QGroupBox* ButtonsGrp; + QCheckBox* MakeGroupsCheck; + + QGroupBox* GroupButtons; QPushButton* OkButton; QPushButton* ApplyButton; QPushButton* CloseButton; - + QPushButton* HelpButton; + + QString myHelpFileName; + +protected slots: + void reject(); + private slots: - void TypeChanged( int type ); + void ConstructorsClicked (int); void ClickOnOk(); bool ClickOnApply(); + void ClickOnHelp(); void SetEditCurrentArgument(); void SelectionIntoArgument(); void DeactivateActiveDialog(); void ActivateThisDialog(); - void onTextChange(const QString&); + void onTextChange (const QString&); void onSelectMesh(); void onAnglesCheck(); void onBasePointCheck();