X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_RemoveNodesDlg.h;h=68fb7817f2f00e4539a782683c3df5fa5e5a5c1c;hb=7d9ae6b54f5ec98fff137636f7ad2a60d10ce6b6;hp=1906c46027c3b5aea7d66f9c868b35b640159fb4;hpb=64ae2f71de80aad56ebd449db68b8d340bccd7bd;p=modules%2Fsmesh.git 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;