#ifndef DIALOGBOX_REVOLUTION_H
#define DIALOGBOX_REVOLUTION_H
-#include "SALOME_Selection.h"
+#include "LightApp_SelectionMgr.h"
+
#include "SMESH_LogicalFilter.hxx"
+
// QT Includes
#include <qdialog.h>
class SMESHGUI;
class SMESH_Actor;
class SMESHGUI_SpinBox;
+class SVTK_ViewWindow;
+class SVTK_Selector;
+
// IDL Headers
#include <SALOMEconfig.h>
Q_OBJECT
public:
- SMESHGUI_RevolutionDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 );
+ SMESHGUI_RevolutionDlg (SMESHGUI*,
+ const char* name = 0,
+ bool modal = FALSE,
+ WFlags fl = 0);
~SMESHGUI_RevolutionDlg();
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 */
int GetConstructorId();
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 argument */
+ QWidget* myEditCurrentArgument; /* Current argument */
+ SVTK_Selector* mySelector;
bool myBusy;
SMESH::SMESH_Mesh_var myMesh;
SMESH_Actor* myActor;
- Handle(SMESH_LogicalFilter) myMeshOrSubMeshOrGroupFilter;
+ SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
QButtonGroup* GroupConstructors;
QRadioButton* RadioButton1;
QPushButton* buttonOk;
QPushButton* buttonCancel;
QPushButton* buttonApply;
+ QPushButton* buttonHelp;
QGroupBox* GroupArguments;
QGroupBox* GroupAxis;
QLabel* TextLabelElements;
QPushButton* SelectElementsButton;
QLineEdit* LineEditElements;
QCheckBox* CheckBoxMesh;
-
+
QLabel* TextLabelPoint;
QPushButton* SelectPointButton;
QLabel* TextLabelX;
SMESHGUI_SpinBox* SpinBox_DY;
QLabel* TextLabelDZ;
SMESHGUI_SpinBox* SpinBox_DZ;
-
+
QLabel* TextLabelAngle;
SMESHGUI_SpinBox* SpinBox_Angle;
QLabel* TextLabelNbSteps;
QLabel* TextLabelTolerance;
SMESHGUI_SpinBox* SpinBox_Tolerance;
- private slots:
+ QString myHelpFileName;
+
+private slots:
- void ConstructorsClicked(int constructorId);
+ void ConstructorsClicked (int constructorId);
void ClickOnOk();
void ClickOnCancel();
void ClickOnApply();
- void SetEditCurrentArgument() ;
- void SelectionIntoArgument() ;
- void DeactivateActiveDialog() ;
- void ActivateThisDialog() ;
- void onTextChange(const QString&);
+ void ClickOnHelp();
+ void SetEditCurrentArgument();
+ void SelectionIntoArgument();
+ void DeactivateActiveDialog();
+ void ActivateThisDialog();
+ void onTextChange (const QString&);
+ void onSelectMesh (bool toSelectMesh);
void onVectorChanged();
- void onSelectMesh(bool toSelectMesh);
protected:
QGridLayout* SMESHGUI_RevolutionDlgLayout;