+ myWorkshop->selector()->setSelected(theValues);
+ }
+}
+
+void XGUI_ModuleConnector::setStatusBarMessage(const QString& theMessage)
+{
+ myWorkshop->setStatusBarMessage(theMessage);
+}
+
+bool XGUI_ModuleConnector::canStartOperation(QString theId, bool& isCommitted)
+{
+ return myWorkshop->operationMgr()->canStartOperation(theId, isCommitted);
+}
+
+void XGUI_ModuleConnector::processLaunchOperation(ModuleBase_Operation* theOperation)
+{
+ XGUI_OperationMgr* anOperationMgr = workshop()->operationMgr();
+
+ if (anOperationMgr->startOperation(theOperation)) {
+ ModuleBase_OperationFeature* aFOperation =
+ dynamic_cast<ModuleBase_OperationFeature*>(theOperation);
+ if (aFOperation) {
+ workshop()->propertyPanel()->updateContentWidget(aFOperation->feature());
+ workshop()->propertyPanel()->createContentPanel(aFOperation->feature());
+ }
+ if (!theOperation->getDescription()->hasXmlRepresentation()) {
+ if (theOperation->commit())
+ workshop()->updateCommandStatus();
+ }
+ }
+}
+
+ModuleBase_Operation* XGUI_ModuleConnector::findStartedOperation(const QString& theId)
+{
+ return myWorkshop->operationMgr()->findOperation(theId);
+}
+
+bool XGUI_ModuleConnector::canStopOperation(ModuleBase_Operation* theOperation)
+{
+ return myWorkshop->operationMgr()->canStopOperation(theOperation);
+}
+
+void XGUI_ModuleConnector::stopOperation(ModuleBase_Operation* theOperation,
+ bool& isCommitted)
+{
+ myWorkshop->operationMgr()->stopOperation(theOperation, isCommitted);
+}
+
+void XGUI_ModuleConnector::updateCommandStatus()
+{
+ myWorkshop->updateCommandStatus();
+}
+
+QMainWindow* XGUI_ModuleConnector::desktop() const
+{
+ return myWorkshop->desktop();
+}
+
+bool XGUI_ModuleConnector::hasSHIFTPressed() const
+{
+ return myWorkshop->operationMgr()->hasSHIFTPressed();