// 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
//
//
//
#ifndef DIALOGBOX_REVOLUTION_H
#define DIALOGBOX_REVOLUTION_H
+#include "SMESH_SMESHGUI.hxx"
+
#include "LightApp_SelectionMgr.h"
#include "SMESH_LogicalFilter.hxx"
class SMESHGUI_SpinBox;
class SVTK_ViewWindow;
class SVTK_Selector;
-
+class SALOME_Actor;
+class SMESHGUI_MeshEditPreview;
// IDL Headers
#include <SALOMEconfig.h>
// class : SMESHGUI_RevolutionDlg
// purpose :
//=================================================================================
-class SMESHGUI_RevolutionDlg : public QDialog
+class SMESHGUI_EXPORT SMESHGUI_RevolutionDlg : public QDialog
{
Q_OBJECT
void closeEvent (QCloseEvent*);
void enterEvent (QEvent*); /* mouse enter the QWidget */
void hideEvent (QHideEvent*); /* ESC key */
+ void keyPressEvent(QKeyEvent*);
int GetConstructorId();
bool IsAxisOk();
SMESH::SMESH_Mesh_var myMesh;
SMESH_Actor* myActor;
SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
+ SMESHGUI_MeshEditPreview* mySimulation;
+ SALOME_Actor* myPreviewActor;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton1;
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;
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();
void onTextChange (const QString&);
void onSelectMesh (bool toSelectMesh);
void onVectorChanged();
+ void toDisplaySimulation();
+ void onDisplaySimulation(bool toDisplayPreview);
protected:
QGridLayout* SMESHGUI_RevolutionDlgLayout;