- 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 */
- LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
- int myNbOkElements; /* to check when elements are defined */
- QString myElementsId;
- SVTK_Selector* mySelector;
-
- QWidget* myEditCurrentArgument; /* Current LineEdit */
- int myConstructorId;
- bool myBusy;
- SMESH::SMESH_Mesh_var myMesh;
- SMESH_Actor* myActor;
- SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
-
- QButtonGroup* GroupConstructors;
- QRadioButton* RadioButton1;
- QGroupBox* GroupButtons;
- 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_X;
- QLabel* TextLabelY;
- SMESHGUI_SpinBox* SpinBox_Y;
- QLabel* TextLabelZ;
- SMESHGUI_SpinBox* SpinBox_Z;
- QLabel* TextLabelVector;
- QPushButton* SelectVectorButton;
- QLabel* TextLabelDX;
- SMESHGUI_SpinBox* SpinBox_DX;
- QLabel* TextLabelDY;
- SMESHGUI_SpinBox* SpinBox_DY;
- QLabel* TextLabelDZ;
- SMESHGUI_SpinBox* SpinBox_DZ;
-
- QLabel* TextLabelAngle;
- SMESHGUI_SpinBox* SpinBox_Angle;
- QCheckBox* CheckBoxCopy;
-
- QString myHelpFileName;
-
+ void Init( bool = true );
+ void enterEvent( QEvent* ); /* mouse enter the QWidget */
+ void keyPressEvent( QKeyEvent* );
+ bool IsAxisOk();
+ void setNewMeshName();
+
+ bool isValid();
+
+ SMESHGUI_IdValidator* myIdValidator;
+ LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
+ int myNbOkElements; /* to check when elements are defined */
+ QString myElementsId;
+ SVTK_Selector* mySelector;
+
+ QWidget* myEditCurrentArgument; /* Current LineEdit */
+ int myConstructorId;
+ bool myBusy;
+ SMESH_Actor* myActor;
+ SMESH_LogicalFilter* myMeshOrSubMeshOrGroupFilter;
+ QList<SMESH::SMESH_IDSource_var> myObjects;
+ QList<QString> myObjectsNames;
+ QList<SMESH::SMESH_Mesh_var> myMeshes;
+
+ QGroupBox* GroupConstructors;
+ QRadioButton* RadioButton1;
+ QGroupBox* GroupButtons;
+ 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_X;
+ QLabel* TextLabelY;
+ SMESHGUI_SpinBox* SpinBox_Y;
+ QLabel* TextLabelZ;
+ SMESHGUI_SpinBox* SpinBox_Z;
+ QLabel* TextLabelVector;
+ QPushButton* SelectVectorButton;
+ QLabel* TextLabelDX;
+ SMESHGUI_SpinBox* SpinBox_DX;
+ QLabel* TextLabelDY;
+ SMESHGUI_SpinBox* SpinBox_DY;
+ QLabel* TextLabelDZ;
+ SMESHGUI_SpinBox* SpinBox_DZ;
+
+ QLabel* TextLabelAngle;
+ SMESHGUI_SpinBox* SpinBox_Angle;
+ //QCheckBox* CheckBoxCopy;
+ QGroupBox* ActionBox;
+ QButtonGroup* ActionGroup;
+ QCheckBox* MakeGroupsCheck;
+ QLineEdit* LineEditNewMesh;
+
+ QString myHelpFileName;
+
+ QPushButton* myFilterBtn;
+ SMESHGUI_FilterDlg* myFilterDlg;
+
+protected slots:
+ virtual void onDisplaySimulation( bool );
+ virtual void reject();
+ void onFilterAccepted();
+