X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FVISUGUI%2FVisuGUI_Selection.h;h=c1976404996449c2e7bc899a31adb688d0d1cbe6;hb=1061d29ee79e59d7d6327ae7617a9148ab312dc3;hp=09e43574240b4e7ef2b17e2ecaecd3168636fb0f;hpb=c76448b4bd154155dae8cc5c7bedbf50d18fcde4;p=modules%2Fvisu.git diff --git a/src/VISUGUI/VisuGUI_Selection.h b/src/VISUGUI/VisuGUI_Selection.h index 09e43574..c1976404 100644 --- a/src/VISUGUI/VisuGUI_Selection.h +++ b/src/VISUGUI/VisuGUI_Selection.h @@ -29,21 +29,64 @@ #ifndef VisuGUI_Selection_HeaderFile #define VisuGUI_Selection_HeaderFile -#include "SALOMEconfig.h" -#include "QAD_Desktop.h" -#include "VISU_Actor.h" - -#include - -#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 + +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