X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_RemoveNodesDlg.h;h=68fb7817f2f00e4539a782683c3df5fa5e5a5c1c;hp=1906c46027c3b5aea7d66f9c868b35b640159fb4;hb=81a502af8470190be359d6491a20796dbad5bb97;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa diff --git a/src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h b/src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h index 1906c4602..68fb7817f 100644 --- a/src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h +++ b/src/SMESHGUI/SMESHGUI_RemoveNodesDlg.h @@ -29,14 +29,14 @@ #ifndef DIALOGBOX_REMOVE_NODES_H #define DIALOGBOX_REMOVE_NODES_H -#include "SALOME_Selection.h" +#include "LightApp_SelectionMgr.h" // QT Includes #include #include // Open CASCADE Includes -#include +#include class QVBoxLayout; class QHBoxLayout; @@ -47,7 +47,11 @@ class QLabel; class QLineEdit; class QPushButton; class QRadioButton; + class SMESHGUI; +class SMESH_Actor; +class SVTK_Selector; +class SVTK_ViewWindow; // IDL Headers #include @@ -58,27 +62,34 @@ class SMESHGUI; // purpose : //================================================================================= class SMESHGUI_RemoveNodesDlg : public QDialog -{ +{ Q_OBJECT public: - SMESHGUI_RemoveNodesDlg( QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0 ); + SMESHGUI_RemoveNodesDlg(SMESHGUI* theModule, + const char* name = 0, + bool modal = FALSE, + WFlags fl = 0); ~SMESHGUI_RemoveNodesDlg(); private: - void Init( SALOME_Selection* Sel ) ; + void Init() ; void closeEvent( QCloseEvent* e ) ; - void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */ + void enterEvent ( QEvent * ) ; /* mouse enter the QWidget */ + void hideEvent ( QHideEvent * ); /* ESC key */ + + LightApp_SelectionMgr* mySelectionMgr; + SVTK_Selector* mySelector; + SMESHGUI* mySMESHGUI; - SMESHGUI* mySMESHGUI ; /* Current SMESHGUI object */ - SALOME_Selection* mySelection ; /* User shape selection */ - bool myOkNodes ; /* to check when arguments is defined */ - int myConstructorId ; /* Current constructor id = radio button id */ - QLineEdit* myEditCurrentArgument; /* Current LineEdit */ + int myNbOkNodes; /* to check when arguments is defined */ + int myConstructorId; /* Current constructor id = radio button id */ + QLineEdit* myEditCurrentArgument; /* Current LineEdit */ + bool myBusy; SMESH::SMESH_Mesh_var myMesh; - TColStd_MapOfInteger myMapIndex; + SMESH_Actor* myActor; QButtonGroup* GroupConstructors; QRadioButton* Constructor1; @@ -101,6 +112,7 @@ private slots: void SelectionIntoArgument() ; void DeactivateActiveDialog() ; void ActivateThisDialog() ; + void onTextChange(const QString&); protected: QGridLayout* SMESHGUI_RemoveNodesDlgLayout;