Salome HOME
EDF 2281 : Possibility to choose the division pattern for the cylinder and missing...
[modules/geom.git] / src / GEOMGUI / GeometryGUI.h
index 187f15d0e33d771c9e5715c7c43705bc0f140556..bde9446a7e13828f91237dc7399aa1f2d331346d 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2011  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012  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
@@ -18,6 +18,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
 
 // GEOM GEOMGUI : GUI for Geometry component
 // File   : GeometryGUI.h
@@ -28,7 +29,7 @@
 
 #include "GEOM_GEOMGUI.hxx"
 
-#include <CASCatch_OCCTVersion.hxx>
+#include <Basics_OCCTVersion.hxx>
 
 #include <SalomeApp_Module.h>
 
 #include "SALOMEconfig.h"
 #include CORBA_CLIENT_HEADER(SALOMEDS)
 
-// minimum allowed value for deflection coefficient
-#define DEFLECTION_MIN 1e-06
-
-//Define separators
-#define NAME_SEPARATOR  '_' // character used to separate parameter names
-#define DIGIT_SEPARATOR ':' // character used to separate numeric parameter values (color = r:g:b)
-
-#define VISIBILITY_PROP       "Visibility"      //Object visibility property
-#define OPACITY_PROP          "Opacity"         //Object opacity property
-#define TRANSPARENCY_PROP     "Transparency"    //Object transparency property
-#define DISPLAY_MODE_PROP     "DisplayMode"     //Object display mode property
-#define ISOS_PROP             "Isos"            //Number of the Isos property of the object
-#define COLOR_PROP            "Color"           //Color of the object 
-#define VECTOR_MODE_PROP      "VectorMode"      //Vector mode property
-#define DEFLECTION_COEFF_PROP "DeflectionCoeff" //Deflection coeff property
-#define MARKER_TYPE_PROP      "MarkerType"      // Marker type property
-
-
 class QDialog;
 class QMenu;
+class QAction;
 class GEOMGUI_OCCSelector;
 class LightApp_VTKSelector;
 class LightApp_Selection;
@@ -135,6 +119,7 @@ public:
   void                        ActiveWorkingPlane();
 
   virtual bool                renameObject( const QString&, const QString& );
+  virtual bool                renameAllowed( const QString& ) const;
 
   virtual void                windows( QMap<int, int>& ) const;
   virtual void                viewManagers( QStringList& ) const;
@@ -148,12 +133,15 @@ public:
   virtual void storeVisualParameters  (int savePoint);
   virtual void restoreVisualParameters(int savePoint);
 
+  QAction*                    getAction(const int id);
+
 public slots:
   virtual bool                deactivateModule( SUIT_Study* );
   virtual bool                activateModule( SUIT_Study* );
   virtual void                OnKeyPress  ( SUIT_ViewWindow*, QKeyEvent*   );
   virtual void                OnMousePress( SUIT_ViewWindow*, QMouseEvent* );
   virtual void                OnMouseMove ( SUIT_ViewWindow*, QMouseEvent* );
+  virtual void                OnMouseRelease ( SUIT_ViewWindow*, QMouseEvent* );
 
 protected slots:
   virtual void                onViewManagerAdded( SUIT_ViewManager* );