X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSVTK%2FSVTK_SetRotationPointDlg.h;h=65a37ea70beb30fc00fce651b51821a8db882279;hb=66361d5c4622d50741a14addc50c47895182c393;hp=526814d01079598e0e07f02a7eeefe35a25b0836;hpb=bb8609caf7881d966fbb88dec0a7822736da93f5;p=modules%2Fgui.git diff --git a/src/SVTK/SVTK_SetRotationPointDlg.h b/src/SVTK/SVTK_SetRotationPointDlg.h old mode 100755 new mode 100644 index 526814d01..65a37ea70 --- a/src/SVTK/SVTK_SetRotationPointDlg.h +++ b/src/SVTK/SVTK_SetRotationPointDlg.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2020 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 @@ -6,7 +6,7 @@ // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -28,11 +28,15 @@ #define SVTK_SETROTATIONPOINTDLG_H #include "SVTK.h" +#include "SVTK_Selection.h" #include #include +#include +#include + 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 myInteractorStyleList; + QMap 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();