X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_WorkshopListener.h;h=3c767fc10dbb978b63bb8e226b8ccb48cc6eebb3;hb=50a8df0c6a66da8067b16155e5ae39f8f26a7ebc;hp=486d8f88903f36a150cfd084ab09c4e6abb2e336;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_WorkshopListener.h b/src/XGUI/XGUI_WorkshopListener.h old mode 100755 new mode 100644 index 486d8f889..3c767fc10 --- a/src/XGUI/XGUI_WorkshopListener.h +++ b/src/XGUI/XGUI_WorkshopListener.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef XGUI_WORKSHOP_LISTENER_H @@ -50,7 +49,7 @@ class XGUI_EXPORT XGUI_WorkshopListener : public QObject, public Events_Listener public: /// Constructor. Used only if the workshop is launched in Salome environment /// \param theWorkshop a reference to workshop. - XGUI_WorkshopListener(ModuleBase_IWorkshop* theWorkshop); + XGUI_WorkshopListener(XGUI_Workshop* theWorkshop); virtual ~XGUI_WorkshopListener(); /// Register this class in the events loop for several types of events @@ -91,13 +90,6 @@ protected: /// \return true if the object is displayed bool displayObject(ObjectPtr theObj); - /// Answer if the viewer needed to be fit all after the object visualization - /// The condition is there is not shown objects and the object is a group or body result - /// \param theObject a shown object - /// \param theNbOfShownObjects a count of already shown objects in the viewer - /// \return true if fit all should be done - bool neededFitAll(ObjectPtr theObject, const int theNbOfShownObjects); - /// Calls the module method of cusomize object for the feature of the current operation /// Perform cusomize if the force redisplay flag is true or the list of objects contains the /// current operation feature @@ -105,13 +97,13 @@ protected: /// if forced redisplay is false /// \param theForceRedisplay a flag to customize object even always /// \return true if the object is modified - bool customizeCurrentObject(const std::set& theObjects, bool theForceRedisplay); + bool customizeFeature(const std::set& theObjects, bool theForceRedisplay); /// Returns the workshop XGUI_Workshop* workshop() const; private: - ModuleBase_IWorkshop* myWorkshop; // the current workshop + XGUI_Workshop* myWorkshop; // the current workshop bool myUpdatePrefs; };