Salome HOME
updated copyright message
[modules/gui.git] / src / OCCViewer / OCCViewer_SetRotationPointDlg.h
index 18c1f654e1a386edc254e9458c4a63a8b55952b6..4ab89fb6f6a4a60c5e9c2d416a93534f3a36a2b8 100644 (file)
@@ -1,11 +1,14 @@
-// Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
+// Copyright (C) 2007-2023  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
 //
 // 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
+// This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 // Lesser General Public License for more details.
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 #ifndef OCCVIEWER_SETROTATIONPOINTDLG_H
 #define OCCVIEWER_SETROTATIONPOINTDLG_H
 
 #include "OCCViewer.h"
 
-#include <qdialog.h>
+#include <QDialog>
+#include <QMap>
+
+#include <TopAbs_ShapeEnum.hxx>
 
 class QtxAction;
 
 class QLineEdit;
 class QPushButton;
 class QGroupBox;
-class QButtonGroup;
 class QCheckBox;
+class QAction;
 
 class OCCViewer_ViewWindow;
 
@@ -38,8 +45,8 @@ class OCCVIEWER_EXPORT OCCViewer_SetRotationPointDlg : public QDialog
   Q_OBJECT
 
 public:
-  OCCViewer_SetRotationPointDlg(OCCViewer_ViewWindow* , QWidget* parent = 0, 
-                               const char* name = 0, bool modal = FALSE, WFlags fl = 0);
+  OCCViewer_SetRotationPointDlg(OCCViewer_ViewWindow* , 
+                                const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
   ~OCCViewer_SetRotationPointDlg();
 
   void SetAction( QtxAction* theAction ) { myAction = theAction; }
@@ -51,10 +58,11 @@ public:
 protected:
   OCCViewer_ViewWindow* myView;
   QtxAction* myAction;
+  QMap<QAction*, TopAbs_ShapeEnum> mySelectActions;
 
   QCheckBox*    myIsBBCenter;
 
-  QButtonGroup* myGroupSelButton;
+  QGroupBox   * myGroupBoxSel;
   QPushButton*  myToOrigin;
   QPushButton*  mySelectPoint;
 
@@ -69,7 +77,7 @@ protected slots:
   void onBBCenterChecked();
   
   void onToOrigin();
-  void onSelectPoint();
+  void onSelectMenu( QAction* );
 
   void onCoordChanged();
 
@@ -77,6 +85,9 @@ protected slots:
 
   void onViewShow();
   void onViewHide();
+
+protected:
+  void closeEvent( QCloseEvent* );
 };
 
 #endif // OCCVIEWER_SETROTATIONPOINTDLG_H