Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / VISUGUI / VisuGUI_Selection.h
index fe39ef1e41b6622ccb6465ac31056261a2ab3d97..467e9c182d810b2d6e45589fd95ced5cfa034824 100644 (file)
 #ifndef VisuGUI_Selection_HeaderFile
 #define VisuGUI_Selection_HeaderFile
 
-#include "SALOMEconfig.h"
-#include "QAD_Desktop.h"
-#include "VISU_Actor.h"
-#include "SALOME_Selection.h"
-       
-#include <vtkDataSet.h>
-
 #include <qdialog.h>
-#include <qwidgetstack.h>
-#include <qhbox.h>
-#include <qvbox.h>
-#include <qtable.h>
-#include <qlineedit.h>
 
+class QLabel;
+class QWidgetStack;
+class QVBox;
+class QLineEdit;
+class QTable;
+class LightApp_SelectionMgr;
+class SalomeApp_Application;
+class SalomeApp_Module;
 
 class VisuGUI_SelectionDlg: public QDialog {
   Q_OBJECT
-  
+
 public:
-  VisuGUI_SelectionDlg();
-  ~VisuGUI_SelectionDlg(){};
+  VisuGUI_SelectionDlg (const SalomeApp_Module* theModule);
+  virtual ~VisuGUI_SelectionDlg ();
 
 protected:
-  void closeEvent(QCloseEvent* theEvent);
+  void closeEvent (QCloseEvent* theEvent);
 
 private slots:
-  void onSelectionChange(int theId);
-  void onSelectionEvent();
-  void onPointIdEdit(const QString& theText);
-  void onCellIdEdit(const QString& theText);
+  void onSelectionChange (int theId);
+  void onSelectionEvent ();
+  void onPointIdEdit (const QString& theText);
+  void onCellIdEdit (const QString& theText);
 
  private:
-  void clearFields();
+  void clearFields ();
 
   QLabel* myMeshName;
   QLabel* myFieldName;
@@ -72,7 +68,7 @@ private slots:
   QLabel* myXValLbl;
   QLabel* myYValLbl;
   QLabel* myZValLbl;
-  
+
   QLineEdit* myIDValLbl;
   QLabel* myScalarValLbl;
   QLabel* myVectorValLbl;
@@ -90,9 +86,9 @@ private slots:
   QLabel* myDYLbl;
   QLabel* myDZLbl;
 
-  SALOME_Selection* mySelection;
+  const SalomeApp_Module* myModule;
+  LightApp_SelectionMgr* mySelectionMgr;
   bool myFl;
 };
 
-
 #endif