X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPluginUtils%2FGeomSelectionTools.h;h=9c603b3aa9439acb8c83713dbba1204f7f14788f;hb=6d32f944a0a115b6419184c50b57bf7c4eef5786;hp=218a3d3e73ef32c8f39dabe5a47cb56cbb914cde;hpb=7a65c9fad427b1ccba6b9ccae612296e5092a324;p=modules%2Fsmesh.git diff --git a/src/PluginUtils/GeomSelectionTools.h b/src/PluginUtils/GeomSelectionTools.h index 218a3d3e7..9c603b3aa 100644 --- a/src/PluginUtils/GeomSelectionTools.h +++ b/src/PluginUtils/GeomSelectionTools.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -25,18 +25,10 @@ #ifndef _GEOMSELECTIONTOOLS_H_ #define _GEOMSELECTIONTOOLS_H_ -#ifdef WIN32 -# ifdef GeomSelectionTools_EXPORTS -# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllexport ) -# else -# define GEOMSELECTIONTOOLS_EXPORT __declspec( dllimport ) -# endif -#else -# define GEOMSELECTIONTOOLS_EXPORT -#endif +#include "SMESH_PluginUtils.h" -#include "SALOMEDSClient.hxx" -#include "SALOME_InteractiveObject.hxx" +#include +#include #include #include @@ -54,16 +46,12 @@ class LightApp_SelectionMgr; * */ -class GEOMSELECTIONTOOLS_EXPORT GeomSelectionTools +class PLUGINUTILS_EXPORT GeomSelectionTools { -private: - - _PTR(Study) myStudy; - public: - GeomSelectionTools(_PTR(Study)); + GeomSelectionTools(); static SalomeApp_Application* GetSalomeApplication(); static LightApp_SelectionMgr* selectionMgr(); SALOME_ListIO* getSelectedSalomeObjects(); @@ -75,7 +63,6 @@ public: TopAbs_ShapeEnum getFirstSelectedShapeType(); TopAbs_ShapeEnum entryToShapeType(std::string ); GeomAbs_SurfaceType getFaceInformation(TopoDS_Shape); - _PTR(Study) getMyStudy(); }; ////////////////////////////////////////// @@ -84,7 +71,7 @@ public: namespace PluginUtils { - GEOMSELECTIONTOOLS_EXPORT QString PrintDoubleValue( double, int = 16 ); + PLUGINUTILS_EXPORT QString PrintDoubleValue( double, int = 16 ); }; #endif // _GEOMSELECTIONTOOLS_H_