1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
3 #include "XGUI_WorkshopListener.h"
4 #include "XGUI_Workshop.h"
5 #include "XGUI_Displayer.h"
6 #include "XGUI_ErrorMgr.h"
7 #include "XGUI_OperationMgr.h"
8 #include "XGUI_SalomeConnector.h"
9 #include "XGUI_ActionsMgr.h"
10 #include "XGUI_PropertyPanel.h"
11 #include "XGUI_ModuleConnector.h"
12 #include "XGUI_QtEvents.h"
15 #include <AppElements_MainWindow.h>
18 #include <ModuleBase_IModule.h>
20 #include <ModelAPI_Object.h>
21 #include <ModelAPI_Events.h>
22 #include <ModelAPI_Session.h>
23 #include <ModelAPI_Result.h>
24 #include <ModelAPI_Feature.h>
25 #include <ModelAPI_Data.h>
26 #include <ModelAPI_ResultBody.h>
27 #include <ModelAPI_ResultGroup.h>
28 #include <ModelAPI_ResultCompSolid.h>
29 #include <ModelAPI_Tools.h>
31 #include <Events_Loop.h>
32 #include <Events_Error.h>
33 #include <Events_LongOp.h>
35 #include <ModuleBase_IWorkshop.h>
37 #include <ModuleBase_Operation.h>
38 #include <ModuleBase_OperationDescription.h>
39 #include <ModuleBase_OperationFeature.h>
40 #include <ModuleBase_Tools.h>
41 #include <ModuleBase_IViewer.h>
42 #include <ModuleBase_FilterFactory.h>
44 #include <Config_FeatureMessage.h>
45 #include <Config_PointerMessage.h>
46 #include <Config_SelectionFilterMessage.h>
47 #include <Config_Keywords.h>
48 #include <Events_InfoMessage.h>
50 #include <QApplication>
51 #include <QMainWindow>
60 //#define DEBUG_FEATURE_CREATED
61 //#define DEBUG_FEATURE_REDISPLAY
62 //#define DEBUG_FEATURE_UPDATED
63 //#define DEBUG_RESULT_COMPSOLID
65 #ifdef DEBUG_FEATURE_REDISPLAY
66 const std::string DebugFeatureKind = "";//"Extrusion";
69 XGUI_WorkshopListener::XGUI_WorkshopListener(ModuleBase_IWorkshop* theWorkshop)
70 : myWorkshop(theWorkshop),
73 XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
76 //******************************************************
77 XGUI_WorkshopListener::~XGUI_WorkshopListener(void)
81 //******************************************************
82 void XGUI_WorkshopListener::initializeEventListening()
84 //Initialize event listening
85 Events_Loop* aLoop = Events_Loop::loop();
86 //aLoop->registerListener(this, Events_Error::errorID()); //!< Listening application errors.
87 aLoop->registerListener(this, Events_InfoMessage::errorID()); //!< Listening application errors.
88 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OPERATION_LAUNCHED));
89 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_UPDATED));
90 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_CREATED));
91 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_OBJECT_TO_REDISPLAY));
92 aLoop->registerListener(this, Events_LongOp::eventID());
93 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_PLUGIN_LOADED));
94 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_SELFILTER_LOADED));
96 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_UPDATE_VIEWER_BLOCKED));
97 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_UPDATE_VIEWER_UNBLOCKED));
98 aLoop->registerListener(this, Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION));
101 //******************************************************
102 void XGUI_WorkshopListener::processEvent(const std::shared_ptr<Events_Message>& theMessage)
104 if (QApplication::instance()->thread() != QThread::currentThread()) {
106 std::cout << "XGUI_Workshop::processEvent: " << "Working in another thread." << std::endl;
108 SessionPtr aMgr = ModelAPI_Session::get();
109 PostponeMessageQtEvent* aPostponeEvent = new PostponeMessageQtEvent(theMessage);
110 QApplication::postEvent(this, aPostponeEvent);
114 // Process creation of Part
115 if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_OBJECT_CREATED)) {
116 std::shared_ptr<ModelAPI_ObjectUpdatedMessage> aUpdMsg =
117 std::dynamic_pointer_cast<ModelAPI_ObjectUpdatedMessage>(theMessage);
118 onFeatureCreatedMsg(aUpdMsg);
120 XGUI_SalomeConnector* aSalomeConnector = workshop()->salomeConnector();
121 if (aSalomeConnector)
122 aSalomeConnector->createPreferences();
123 myUpdatePrefs = false;
126 else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_PLUGIN_LOADED)) {
127 myUpdatePrefs = true;
130 else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_OBJECT_TO_REDISPLAY)) {
131 std::shared_ptr<ModelAPI_ObjectUpdatedMessage> aUpdMsg =
132 std::dynamic_pointer_cast<ModelAPI_ObjectUpdatedMessage>(theMessage);
133 onFeatureRedisplayMsg(aUpdMsg);
134 } else if (theMessage->eventID() == Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION)) {
135 std::shared_ptr<ModelAPI_ObjectUpdatedMessage> aUpdMsg =
136 std::dynamic_pointer_cast<ModelAPI_ObjectUpdatedMessage>(theMessage);
137 onFeatureEmptyPresentationMsg(aUpdMsg);
139 //Update property panel on corresponding message. If there is no current operation (no
140 //property panel), or received message has different feature to the current - do nothing.
141 else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_OBJECT_UPDATED)) {
142 std::shared_ptr<ModelAPI_ObjectUpdatedMessage> anUpdateMsg =
143 std::dynamic_pointer_cast<ModelAPI_ObjectUpdatedMessage>(theMessage);
144 onFeatureUpdatedMsg(anUpdateMsg);
145 } else if (theMessage->eventID() == Events_LongOp::eventID()) {
146 if (Events_LongOp::isPerformed()) {
147 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
149 QApplication::restoreOverrideCursor();
152 //An operation passed by message. Start it, process and commit.
153 else if (theMessage->eventID() == Events_Loop::loop()->eventByName(EVENT_OPERATION_LAUNCHED)) {
154 std::shared_ptr<Config_PointerMessage> aPartSetMsg =
155 std::dynamic_pointer_cast<Config_PointerMessage>(theMessage);
156 //myPropertyPanel->cleanContent();
157 ModuleBase_Operation* anOperation = (ModuleBase_Operation*) aPartSetMsg->pointer();
158 XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
160 if (anOperationMgr->startOperation(anOperation)) {
161 ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>(anOperation);
163 workshop()->propertyPanel()->updateContentWidget(aFOperation->feature());
164 workshop()->propertyPanel()->createContentPanel(aFOperation->feature());
166 if (!anOperation->getDescription()->hasXmlRepresentation()) {
167 if (anOperation->commit())
168 workshop()->updateCommandStatus();
172 else if (theMessage->eventID() == Events_Loop::eventByName(EVENT_SELFILTER_LOADED)) {
173 std::shared_ptr<Config_SelectionFilterMessage> aMsg =
174 std::dynamic_pointer_cast<Config_SelectionFilterMessage>(theMessage);
176 ModuleBase_FilterFactory* aFactory = myWorkshop->selectionFilters();
177 if (!aMsg->attributeId().empty()) {
178 aFactory->assignFilter(aMsg->selectionFilterId(), aMsg->featureId(), aMsg->attributeId(),
182 } else if (theMessage->eventID() == Events_Loop::eventByName(EVENT_UPDATE_VIEWER_BLOCKED)) {
183 // the viewer's update context will not happens until viewer updated is emitted
184 workshop()->displayer()->enableUpdateViewer(false);
185 } else if (theMessage->eventID() == Events_Loop::eventByName(EVENT_UPDATE_VIEWER_UNBLOCKED)) {
186 // the viewer's update context is unblocked, the viewer's update works
187 XGUI_Displayer* aDisplayer = workshop()->displayer();
188 aDisplayer->enableUpdateViewer(true);
190 //Show error dialog if error message received.
191 std::shared_ptr<Events_InfoMessage> anIngfoMsg = std::dynamic_pointer_cast<Events_InfoMessage>(theMessage);
193 emit errorOccurred(anIngfoMsg);
198 SessionPtr aMgr = ModelAPI_Session::get();
199 AppElements_MainWindow* aMainWindow = workshop()->mainWindow();
200 if (aMgr->isModified() != aMainWindow->isModifiedState())
201 aMainWindow->setModifiedState(aMgr->isModified());
205 //******************************************************
206 void XGUI_WorkshopListener::onFeatureUpdatedMsg(
207 const std::shared_ptr<ModelAPI_ObjectUpdatedMessage>& theMsg)
209 #ifdef DEBUG_FEATURE_UPDATED
210 std::set<ObjectPtr> anObjects = theMsg->objects();
211 std::set<ObjectPtr>::const_iterator aIt;
213 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
214 anInfo.append(ModuleBase_Tools::objectInfo((*aIt)));
216 QString anInfoStr = anInfo.join(";\t");
217 qDebug(QString("onFeatureUpdatedMsg: %1, %2").arg(anObjects.size()).arg(anInfoStr).toStdString().c_str());
219 std::set<ObjectPtr> aFeatures = theMsg->objects();
220 XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
221 if (anOperationMgr->hasOperation()) {
222 ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
223 (anOperationMgr->currentOperation());
225 FeaturePtr aCurrentFeature = aFOperation->feature();
226 std::set<ObjectPtr>::const_iterator aIt;
227 for (aIt = aFeatures.begin(); aIt != aFeatures.end(); ++aIt) {
228 ObjectPtr aNewFeature = (*aIt);
229 if (aNewFeature == aCurrentFeature) {
230 workshop()->propertyPanel()->updateContentWidget(aCurrentFeature);
236 //anOperationMgr->onValidateOperation();
238 //if (myObjectBrowser)
239 // myObjectBrowser->processEvent(theMsg);
242 //******************************************************
243 void XGUI_WorkshopListener::onFeatureRedisplayMsg(const std::shared_ptr<ModelAPI_ObjectUpdatedMessage>& theMsg)
245 std::set<ObjectPtr> anObjects = theMsg->objects();
246 std::set<ObjectPtr>::const_iterator aIt;
248 #ifdef DEBUG_FEATURE_REDISPLAY
250 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
251 anInfo.append(ModuleBase_Tools::objectInfo((*aIt)));
253 QString anInfoStr = anInfo.join(";\t");
254 qDebug(QString("onFeatureRedisplayMsg: %1, %2").arg(anObjects.size()).arg(anInfoStr).toStdString().c_str());
257 XGUI_Workshop* aWorkshop = workshop();
258 XGUI_Displayer* aDisplayer = aWorkshop->displayer();
259 bool aFirstVisualizedBody = false;
261 bool aRedisplayed = false;
262 //std::list<ObjectPtr> aHiddenObjects;
263 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
264 ObjectPtr aObj = (*aIt);
266 // Hide the object if it is invalid or concealed one
267 bool aHide = !aObj->data() || !aObj->data()->isValid() ||
268 aObj->isDisabled() || (!aObj->isDisplayed());
269 if (!aHide) { // check that this is not hidden result
270 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aObj);
271 aHide = aRes && aRes->isConcealed();
273 // Hide the presentation with an empty shape. But isDisplayed state of the object should not
274 // be changed to the object becomes visible when the shape becomes not empty
275 if (!aHide && aRes.get())
276 aHide = !aRes->shape().get() || aRes->shape()->isNull();
279 #ifdef DEBUG_RESULT_COMPSOLID
280 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(aObj);
282 ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
283 if (aCompSolidRes.get()) {
284 qDebug(QString("COMPSOLID, numberOfSubs = %1").arg(aCompSolidRes->numberOfSubs()).toStdString().c_str());
286 if (ModelAPI_Tools::compSolidOwner(aRes))
287 qDebug("COMPSOLID sub-object");
290 #ifdef DEBUG_FEATURE_REDISPLAY
291 QString anObjInfo = ModuleBase_Tools::objectInfo((aObj));
292 FeaturePtr aFeature = ModelAPI_Feature::feature(aObj);
293 if (aFeature.get()) {
294 std::string aKind = aFeature->getKind();
295 if (aKind == DebugFeatureKind || DebugFeatureKind.empty()) {
296 qDebug(QString("visible=%1, hide=%2 : display= %2").arg(aDisplayer->isVisible(aObj))
297 .arg(aHide).arg(anObjInfo).toStdString().c_str());
302 //we should provide objects which are hidden in the viewer, e.g. sketch always should visualizes
303 // all sub-features, if some features are to be hidden, sould be proposed may be to removed #1223
304 //aHiddenObjects.push_back(aObj);
305 aRedisplayed = aDisplayer->erase(aObj, false) || aRedisplayed;
306 #ifdef DEBUG_FEATURE_REDISPLAY
307 // Redisplay the visible object or the object of the current operation
308 bool isVisibleObject = aDisplayer->isVisible(aObj);
310 QString anObjInfo = ModuleBase_Tools::objectInfo((aObj));
311 //qDebug(QString("visible=%1 : erase = %2").arg(isVisibleObject).arg(anObjInfo).toStdString().c_str());
315 // Redisplay the visible object or the object of the current operation
316 bool isVisibleObject = aDisplayer->isVisible(aObj);
317 #ifdef DEBUG_FEATURE_REDISPLAY
318 QString anObjInfo = ModuleBase_Tools::objectInfo((aObj));
319 //qDebug(QString("visible=%1 : display= %2").arg(isVisibleObject).arg(anObjInfo).toStdString().c_str());
322 if (isVisibleObject) { // redisplay visible object
323 //displayObject(aObj); // In order to update presentation
324 // in order to avoid the check whether the object can be redisplayed, the exact method
325 // of redisplay is called. This modification is made in order to have the line is updated
326 // by creation of a horizontal constraint on the line by preselection
327 if (ModelAPI_Tools::hasSubResults(std::dynamic_pointer_cast<ModelAPI_Result>(aObj))) {
328 aRedisplayed = aDisplayer->erase(aObj, false) || aRedisplayed;
331 aRedisplayed = aDisplayer->redisplay(aObj, false) || aRedisplayed;
332 // Deactivate object of current operation from selection
333 aWorkshop->deactivateActiveObject(aObj, false);
335 } else { // display object if the current operation has it
336 if (displayObject(aObj, aFirstVisualizedBody)) {
338 // Deactivate object of current operation from selection
339 aWorkshop->deactivateActiveObject(aObj, false);
344 // this processing should be moved in another place in order to do not cause problems in
345 // flush messages chain
346 //if (aHiddenObjects.size() > 0)
347 // myWorkshop->module()->processHiddenObject(aHiddenObjects);
349 bool isCustomized = customizeCurrentObject(anObjects, aRedisplayed);
350 if (aRedisplayed || isCustomized) {
351 Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION));
353 //VSV FitAll updated viewer by it self
354 if (aFirstVisualizedBody)
355 myWorkshop->viewer()->fitAll();
357 aDisplayer->updateViewer();
361 //******************************************************
362 void XGUI_WorkshopListener::onFeatureCreatedMsg(const std::shared_ptr<ModelAPI_ObjectUpdatedMessage>& theMsg)
364 std::set<ObjectPtr> anObjects = theMsg->objects();
365 std::set<ObjectPtr>::const_iterator aIt;
366 #ifdef DEBUG_FEATURE_CREATED
368 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
369 anInfo.append(ModuleBase_Tools::objectInfo((*aIt)));
371 QString anInfoStr = anInfo.join(";\t");
372 qDebug(QString("onFeatureCreatedMsg: %1, %2").arg(anObjects.size()).arg(anInfoStr).toStdString().c_str());
375 bool aFirstVisualizedBody = false;
377 //bool aHasPart = false;
378 bool aDisplayed = false;
379 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
380 ObjectPtr anObject = *aIt;
382 #ifdef DEBUG_RESULT_COMPSOLID
383 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
385 ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
386 if (aCompSolidRes.get()) {
387 qDebug(QString("COMPSOLID, numberOfSubs = %1").arg(aCompSolidRes->numberOfSubs()).toStdString().c_str());
389 if (ModelAPI_Tools::compSolidOwner(aRes))
390 qDebug("COMPSOLID sub-object");
393 // the validity of the data should be checked here in order to avoid display of the objects,
394 // which were created, then deleted, but flush for the creation event happens after that
395 // we should not display disabled objects
396 bool aHide = !anObject->data()->isValid() ||
397 anObject->isDisabled() ||
398 !anObject->isDisplayed();
399 if (!aHide) { // check that this is not hidden result
400 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(anObject);
401 bool isConcealed = aRes && aRes->isConcealed();
402 aHide = aRes && aRes->isConcealed();
403 // Hide the presentation with an empty shape. But isDisplayed state of the object should not
404 // be changed to the object becomes visible when the shape becomes not empty
405 if (!aHide && aRes.get())
406 aHide = !aRes->shape().get() || aRes->shape()->isNull();
409 // setDisplayed has to be called in order to synchronize internal state of the object
410 // with list of displayed objects
411 if (myWorkshop->module()->canDisplayObject(anObject)) {
412 anObject->setDisplayed(true);
413 aDisplayed = displayObject(*aIt, aFirstVisualizedBody);
415 anObject->setDisplayed(false);
419 bool isCustomized = customizeCurrentObject(anObjects, aDisplayed);
421 //if (myObjectBrowser)
422 // myObjectBrowser->processEvent(theMsg);
424 Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION));
425 //VSV FitAll updated viewer by it self
426 if (aFirstVisualizedBody)
427 myWorkshop->viewer()->fitAll();
429 workshop()->displayer()->updateViewer();
431 //if (aHasPart) { // TODO: Avoid activate last part on loading of document
432 // activateLastPart();
436 //******************************************************
437 void XGUI_WorkshopListener::onFeatureEmptyPresentationMsg(
438 const std::shared_ptr<ModelAPI_ObjectUpdatedMessage>& theMsg)
440 std::set<ObjectPtr> anObjects = theMsg->objects();
441 std::set<ObjectPtr>::const_iterator aIt;
442 #ifdef DEBUG_FEATURE_CREATED
444 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
445 anInfo.append(ModuleBase_Tools::objectInfo((*aIt)));
447 QString anInfoStr = anInfo.join(";\t");
448 qDebug(QString("onFeatureEmptyPresentationMsg: %1, %2").arg(anObjects.size()).arg(anInfoStr).toStdString().c_str());
451 XGUI_Workshop* aWorkshop = workshop();
452 XGUI_Displayer* aDisplayer = aWorkshop->displayer();
454 bool aRedisplayed = false;
455 for (aIt = anObjects.begin(); aIt != anObjects.end(); ++aIt) {
456 ObjectPtr anObject = *aIt;
457 aRedisplayed = aDisplayer->erase(anObject, false) || aRedisplayed;
461 aDisplayer->updateViewer();
464 bool XGUI_WorkshopListener::event(QEvent * theEvent)
466 PostponeMessageQtEvent* aPostponedEv = dynamic_cast<PostponeMessageQtEvent*>(theEvent);
468 std::shared_ptr<Events_Message> aEventPtr = aPostponedEv->postponedMessage();
469 processEvent(aEventPtr);
475 //**************************************************************
476 bool XGUI_WorkshopListener::displayObject(ObjectPtr theObj, bool& theFirstVisualizedBody)
478 #ifdef DEBUG_RESULT_COMPSOLID
479 ResultPtr aRes = std::dynamic_pointer_cast<ModelAPI_Result>(theObj);
480 if (aRes.get() && (ModelAPI_Tools::hasSubResults(aRes) || ModelAPI_Tools::compSolidOwner(aRes))) {
481 ResultCompSolidPtr aCompSolidRes = std::dynamic_pointer_cast<ModelAPI_ResultCompSolid>(aRes);
482 if (aCompSolidRes.get()) {
483 qDebug("COMPSOLID: displayObject");
488 bool aDisplayed = false;
489 XGUI_Workshop* aWorkshop = workshop();
490 // do not display the object if it has sub objects. They should be displayed separately.
491 if (!aWorkshop->module()->canDisplayObject(theObj) ||
492 ModelAPI_Tools::hasSubResults(std::dynamic_pointer_cast<ModelAPI_Result>(theObj)))
495 XGUI_Displayer* aDisplayer = aWorkshop->displayer();
496 int aNb = aDisplayer->objectsCount();
497 aDisplayed = aDisplayer->display(theObj, false);
499 ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(theObj);
500 if (aNb == 0 && aResult.get()) {
501 std::string aResultGroupName = aResult->groupName();
502 if (aResultGroupName == ModelAPI_ResultBody::group() ||
503 aResultGroupName == ModelAPI_ResultGroup::group()) {
504 std::shared_ptr<GeomAPI_Shape> aShapePtr = ModelAPI_Tools::shape(aResult);
505 theFirstVisualizedBody = aShapePtr.get() != NULL;
511 bool XGUI_WorkshopListener::customizeCurrentObject(const std::set<ObjectPtr>& theObjects,
512 bool theForceRedisplay)
514 XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
515 FeaturePtr aCurrentFeature;
516 if (anOperationMgr->hasOperation()) {
517 ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
518 (anOperationMgr->currentOperation());
520 aCurrentFeature = aFOperation->feature();
524 bool aCustomized = false;
525 if (aCurrentFeature.get()) {
526 // the customize presentation should be redisplayed if force redislayed is true or
527 // if a list of message objects contains the operation feature for case when
528 // the feature is hidden, but arguments of the feature are modified
529 // e.g. extrusion is hidden(h=0) but sketch is chosen
530 if (theForceRedisplay || theObjects.find(aCurrentFeature) != theObjects.end()) {
531 aCustomized = myWorkshop->module()->customizeObject(aCurrentFeature,
532 ModuleBase_IModule::CustomizeArguments, false) || aCustomized;
533 aCustomized = myWorkshop->module()->customizeObject(aCurrentFeature,
534 ModuleBase_IModule::CustomizeResults, false) || aCustomized;
535 aCustomized = myWorkshop->module()->customizeObject(aCurrentFeature,
536 ModuleBase_IModule::CustomizeHighlightedObjects, false) || aCustomized;
542 XGUI_Workshop* XGUI_WorkshopListener::workshop() const
544 XGUI_ModuleConnector* aConnector = dynamic_cast<XGUI_ModuleConnector*>(myWorkshop);
545 return aConnector->workshop();