-// Copyright (C) 2014-2017 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// 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<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
#ifndef XGUI_WORKSHOP_LISTENER_H
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
/// 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<ObjectPtr>& theObjects, bool theForceRedisplay);
+ bool customizeFeature(const std::set<ObjectPtr>& theObjects, bool theForceRedisplay);
/// Returns the workshop
XGUI_Workshop* workshop() const;
private:
- ModuleBase_IWorkshop* myWorkshop; // the current workshop
+
+ void setDisplayed(ObjectPtr theObject, const bool theIsLoadedScript, bool& theDisplayed);
+
+ XGUI_Workshop* myWorkshop; // the current workshop
bool myUpdatePrefs;
};