Salome HOME
Copyright update 2022
[modules/gui.git] / src / SVTK / SVTK_SetRotationPointDlg.h
old mode 100755 (executable)
new mode 100644 (file)
index 4553cdf..e4fb03d
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #define SVTK_SETROTATIONPOINTDLG_H
 
 #include "SVTK.h"
+#include "SVTK_Selection.h"
 
 #include <ViewerTools_DialogBase.h>
 
 #include <vtkSmartPointer.h>
 
+#include <QMap>
+#include <QList>
+
 class SVTK_ViewWindow;
 class SVTK_RenderWindowInteractor;
 
@@ -42,13 +46,15 @@ class QLineEdit;
 class QPushButton;
 class QGroupBox;
 class QCheckBox;
+class QAction;
 
 class vtkCallbackCommand;
+class vtkInteractorStyle;
 class vtkObject;
 
 class SVTK_EXPORT SVTK_SetRotationPointDlg : public ViewerTools_DialogBase
 {
-  Q_OBJECT;
+  Q_OBJECT
 
 public:
   SVTK_SetRotationPointDlg(QtxAction* theAction,
@@ -63,8 +69,10 @@ public:
 protected:
   SVTK_ViewWindow *myMainWindow;
   SVTK_RenderWindowInteractor* myRWInteractor;
-  bool myIsObserverAdded;
+  QList<vtkInteractorStyle*> myInteractorStyleList;
   
+  QMap<QAction*, Selection_Mode> mySelectActions;
+
   QCheckBox*    myIsBBCenter;
 
   QGroupBox   * myGroupBoxSel;
@@ -77,6 +85,7 @@ protected:
   QLineEdit* myZ;
 
   void setEnabled(QGroupBox* theGrp, const bool theState);
+  bool IsObserverAdded( vtkInteractorStyle* );
 
   //----------------------------------------------------------------------------
   // Priority at which events are processed
@@ -96,7 +105,7 @@ protected slots:
   void onBBCenterChecked();
   
   void onToOrigin();
-  void onSelectPoint();
+  void onSelectMenu( QAction* );
 
   void onCoordChanged();