X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_RotationDlg.h;h=dcded2e239315df2adb93f1f472142ff7bb66c96;hp=7901d1ed9bcf0f74e74835d00122cabcb3bdd1f9;hb=c63ee099ad2b149bd70136839c973e8910137bc5;hpb=e4737e85f0da6d3f90fd08f6be1c2825195fe16f diff --git a/src/SMESHGUI/SMESHGUI_RotationDlg.h b/src/SMESHGUI/SMESHGUI_RotationDlg.h index 7901d1ed9..dcded2e23 100644 --- a/src/SMESHGUI/SMESHGUI_RotationDlg.h +++ b/src/SMESHGUI/SMESHGUI_RotationDlg.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,7 +29,8 @@ #ifndef DIALOGBOX_ROTATION_H #define DIALOGBOX_ROTATION_H -#include "SALOME_Selection.h" +#include "LightApp_SelectionMgr.h" + #include "SMESH_LogicalFilter.hxx" // QT Includes @@ -47,6 +48,9 @@ class SMESHGUI_SpinBox; class SMESHGUI; class SMESH_Actor; class SMESHGUI_SpinBox; +class SVTK_ViewWindow; +class SVTK_Selector; + // IDL Headers #include @@ -62,35 +66,39 @@ class SMESHGUI_RotationDlg : public QDialog Q_OBJECT public: - SMESHGUI_RotationDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 ); + SMESHGUI_RotationDlg( SMESHGUI*, + const char* name = 0, + bool modal = FALSE, + WFlags fl = 0); ~SMESHGUI_RotationDlg(); private: - - void Init( bool ResetControls = true ) ; - void closeEvent( QCloseEvent* e ) ; - void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */ - void hideEvent ( QHideEvent * ); /* ESC key */ + void Init (bool ResetControls = true); + void closeEvent (QCloseEvent*); + void enterEvent (QEvent*); /* mouse enter the QWidget */ + void hideEvent (QHideEvent*); /* ESC key */ bool IsAxisOk(); - - SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */ - SALOME_Selection* mySelection ; /* User shape selection */ - int myNbOkElements ; /* to check when elements are defined */ + + SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ + LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */ + int myNbOkElements; /* to check when elements are defined */ QString myElementsId; - - QWidget* myEditCurrentArgument; /* Current LineEdit */ + SVTK_Selector* mySelector; + + QWidget* myEditCurrentArgument; /* Current LineEdit */ int myConstructorId; bool myBusy; SMESH::SMESH_Mesh_var myMesh; SMESH_Actor* myActor; - Handle(SMESH_LogicalFilter) myMeshOrSubMeshOrGroupFilter; - + SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter; + QButtonGroup* GroupConstructors; QRadioButton* RadioButton1; QGroupBox* GroupButtons; QPushButton* buttonOk; QPushButton* buttonCancel; QPushButton* buttonApply; + QPushButton* buttonHelp; QGroupBox* GroupArguments; QGroupBox* GroupAxis; QLabel* TextLabelElements; @@ -118,19 +126,22 @@ private: QLabel* TextLabelAngle; SMESHGUI_SpinBox* SpinBox_Angle; QCheckBox* CheckBoxCopy; - - private slots: - void ConstructorsClicked(int constructorId); + QString myHelpFileName; + +private slots: + + void ConstructorsClicked (int constructorId); void ClickOnOk(); void ClickOnCancel(); void ClickOnApply(); - void SetEditCurrentArgument() ; - void SelectionIntoArgument() ; - void DeactivateActiveDialog() ; - void ActivateThisDialog() ; - void onTextChange(const QString&); - void onSelectMesh(bool toSelectMesh); + void ClickOnHelp(); + void SetEditCurrentArgument(); + void SelectionIntoArgument(); + void DeactivateActiveDialog(); + void ActivateThisDialog(); + void onTextChange (const QString&); + void onSelectMesh (bool toSelectMesh); void onVectorChanged(); protected: