Salome HOME
Fix memory leaks
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI.h
index 8b6c32c78f1f8f3aa9e2270bf2675c1f3f6d4b89..581d10f7bc612b64d00eb655663ee6b1cec4851b 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2015  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
@@ -54,16 +54,13 @@ public:
   ~GEOMToolsGUI();
 
   bool         OnGUIEvent( int, SUIT_Desktop* );
+  bool         OnGUIEvent( int theCommandID, SUIT_Desktop*, const QVariant& );
+
   virtual void deactivate();
 
   enum ActionType { SHOWDLG, INCR, DECR };
 
-  static void  SetColor( const QString&, const QColor&, bool );
-
 private:
-  // Import and export topology methods
-  bool         Import();
-  bool         Export();
 
   void         OnEditDelete();
   void         OnCheckGeometry();
@@ -82,10 +79,16 @@ private:
   void         OnPublishObject() ;
   void         OnPointMarker();
   void         OnMaterialProperties();
+  void         OnMaterialsLibrary();
+  void         OnSetMaterial(const QVariant& );
   void         OnEdgeWidth();
   void         OnIsosWidth();
   void         OnBringToFront();
   void         OnClsBringToFront();
+  void         OnCreateFolder();
+  void         OnSortChildren();
+  void         OnShowDependencyTree();
+  void         OnReduceStudy();
 
   // Shortcut commands
   void         OnChangeTransparency( bool );
@@ -95,18 +98,6 @@ private:
                                          _PTR(Study),
                                          QList<SALOME_View*>,
                                          GEOM_Displayer* );
-
-  static void setVtkColor( SalomeApp_Study* study,
-                          int mgrId,
-                          SVTK_View* view,
-                          const Handle_SALOME_InteractiveObject& IO,
-                          const QColor& color );
-
-  static void setOccColor( SalomeApp_Study* study,
-                          int mgrId,
-                          const Handle_AIS_InteractiveContext& ic,
-                          const Handle_SALOME_InteractiveObject& IO,
-                          const QColor& color );
 };
 
 #endif // GEOMTOOLSGUI_H