X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_RevolutionDlg.h;h=add06b5c55cbfac938a830ec63d81c1b5896bfe7;hb=fae671f73ccd2faf0eccade10c2ffe475c82ec32;hp=31912fa8a0910c2732bdcf589a1b825fd648b750;hpb=b33324fe602b1fe1158c14a866c3802df12370fa;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_RevolutionDlg.h b/src/SMESHGUI/SMESHGUI_RevolutionDlg.h index 31912fa8a..add06b5c5 100644 --- a/src/SMESHGUI/SMESHGUI_RevolutionDlg.h +++ b/src/SMESHGUI/SMESHGUI_RevolutionDlg.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,9 @@ #ifndef DIALOGBOX_REVOLUTION_H #define DIALOGBOX_REVOLUTION_H -#include "SalomeApp_SelectionMgr.h" +#include "SMESH_SMESHGUI.hxx" + +#include "LightApp_SelectionMgr.h" #include "SMESH_LogicalFilter.hxx" @@ -51,7 +53,8 @@ class SMESH_Actor; class SMESHGUI_SpinBox; class SVTK_ViewWindow; class SVTK_Selector; - +class SALOME_Actor; +class SMESHGUI_MeshEditPreview; // IDL Headers #include @@ -62,7 +65,7 @@ class SVTK_Selector; // class : SMESHGUI_RevolutionDlg // purpose : //================================================================================= -class SMESHGUI_RevolutionDlg : public QDialog +class SMESHGUI_EXPORT SMESHGUI_RevolutionDlg : public QDialog { Q_OBJECT @@ -78,11 +81,12 @@ private: void closeEvent (QCloseEvent*); void enterEvent (QEvent*); /* mouse enter the QWidget */ void hideEvent (QHideEvent*); /* ESC key */ + void keyPressEvent(QKeyEvent*); int GetConstructorId(); bool IsAxisOk(); SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ - SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */ + LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */ int myNbOkElements; /* to check when elements are defined */ QString myElementsId; QWidget* myEditCurrentArgument; /* Current argument */ @@ -92,6 +96,8 @@ private: SMESH::SMESH_Mesh_var myMesh; SMESH_Actor* myActor; SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter; + SMESHGUI_MeshEditPreview* mySimulation; + SALOME_Actor* myPreviewActor; QButtonGroup* GroupConstructors; QRadioButton* RadioButton1; @@ -100,12 +106,18 @@ private: QPushButton* buttonOk; QPushButton* buttonCancel; QPushButton* buttonApply; + QPushButton* buttonHelp; QGroupBox* GroupArguments; QGroupBox* GroupAxis; QLabel* TextLabelElements; QPushButton* SelectElementsButton; QLineEdit* LineEditElements; QCheckBox* CheckBoxMesh; + QCheckBox* MakeGroupsCheck; + QButtonGroup* GroupAngle; + QRadioButton* RadioButton3; + QRadioButton* RadioButton4; + QCheckBox* CheckBoxPreview; QLabel* TextLabelPoint; QPushButton* SelectPointButton; @@ -131,12 +143,15 @@ private: QLabel* TextLabelTolerance; SMESHGUI_SpinBox* SpinBox_Tolerance; + QString myHelpFileName; + private slots: void ConstructorsClicked (int constructorId); void ClickOnOk(); void ClickOnCancel(); void ClickOnApply(); + void ClickOnHelp(); void SetEditCurrentArgument(); void SelectionIntoArgument(); void DeactivateActiveDialog(); @@ -144,6 +159,8 @@ private slots: void onTextChange (const QString&); void onSelectMesh (bool toSelectMesh); void onVectorChanged(); + void toDisplaySimulation(); + void onDisplaySimulation(bool toDisplayPreview); protected: QGridLayout* SMESHGUI_RevolutionDlgLayout;