Salome HOME
Remove useless files; Use SALOMEDSClient classes instead of CORBA interfaces; fix...
[modules/visu.git] / src / VISUGUI / VisuGUI_Selection.h
index 09e43574240b4e7ef2b17e2ecaecd3168636fb0f..c1976404996449c2e7bc899a31adb688d0d1cbe6 100644 (file)
 #ifndef VisuGUI_Selection_HeaderFile
 #define VisuGUI_Selection_HeaderFile
 
-#include "SALOMEconfig.h"
-#include "QAD_Desktop.h"
-#include "VISU_Actor.h"
-       
-#include <vtkDataSet.h>
-#define SelectionPoint 1
-#define SelectionEdge  2
-#define SelectionCell  3
-#define SelectionActor 4
-
-namespace VisuGUI_Selection{
-  void PickingCell(QAD_Study *theActiveStudy, vtkDataSet *theDataSet);
-  void PickingPoint(QAD_Study *theActiveStudy, vtkDataSet *theDataSet);
-  void Highlight(QAD_Study *theActiveStudy, const Handle(SALOME_InteractiveObject)& theIO, int theId);
+#include <qdialog.h>
+
+class QLabel;
+class QWidgetStack;
+class QVBox;
+class QLineEdit;
+class QTable;
+class SalomeApp_SelectionMgr;
+class SalomeApp_Application;
+
+class VisuGUI_SelectionDlg: public QDialog {
+  Q_OBJECT
+
+public:
+  VisuGUI_SelectionDlg (QWidget*);
+  virtual ~VisuGUI_SelectionDlg ();
+
+protected:
+  void closeEvent (QCloseEvent* theEvent);
+
+private slots:
+  void onSelectionChange (int theId);
+  void onSelectionEvent ();
+  void onPointIdEdit (const QString& theText);
+  void onCellIdEdit (const QString& theText);
+
+ private:
+  void clearFields ();
+
+  QLabel* myMeshName;
+  QLabel* myFieldName;
+
+  QWidgetStack* myWidgetStack;
+  QVBox* myPointsPane;
+  QWidget* myCellsPane;
+  QLabel* myXValLbl;
+  QLabel* myYValLbl;
+  QLabel* myZValLbl;
+
+  QLineEdit* myIDValLbl;
+  QLabel* myScalarValLbl;
+  QLabel* myVectorValLbl;
+
+  QTable* myListPoints;
+  QLineEdit* myCellIDValLbl;
+  QLabel* myCellScalarValLbl;
+  QLabel* myCellVectorValLbl;
+
+  QVBox* myActorsPane;
+  QLabel* myXPosLbl;
+  QLabel* myYPosLbl;
+  QLabel* myZPosLbl;
+  QLabel* myDXLbl;
+  QLabel* myDYLbl;
+  QLabel* myDZLbl;
+
+  SalomeApp_SelectionMgr* mySelectionMgr;
+  bool myFl;
 };
 
 #endif