+ //myDocumentShapeFilter.Nullify();
+}
+
+ModuleBase_ISelection* XGUI_ModuleConnector::selection() const
+{
+ return myWorkshop->selector()->selection();
+}
+
+ModuleBase_IModule* XGUI_ModuleConnector::module() const
+{
+ return myWorkshop->module();
+}
+
+ModuleBase_IViewer* XGUI_ModuleConnector::viewer() const
+{
+ return myWorkshop->viewer();
+}
+
+ModuleBase_Operation* XGUI_ModuleConnector::currentOperation() const
+{
+ return myWorkshop->operationMgr()->currentOperation();
+}
+
+
+void XGUI_ModuleConnector::activateSubShapesSelection(const QIntList& theTypes)
+{
+ XGUI_Displayer* aDisp = myWorkshop->displayer();
+ // Close context if it was opened in order to clear stsndard selection modes
+ //aDisp->closeLocalContexts(false);
+ //aDisp->openLocalContext();
+ // Convert shape types to selection types
+ QIntList aModes;
+ foreach(int aType, theTypes) {
+ aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)aType));
+ }
+ aDisp->activateObjects(aModes);
+ //TODO: We have to open Local context because at neutral point filters don't work (bug 25340)
+ //aDisp->addSelectionFilter(myDocumentShapeFilter);
+}
+
+void XGUI_ModuleConnector::deactivateSubShapesSelection()
+{
+ XGUI_Displayer* aDisp = myWorkshop->displayer();
+ // The document limitation selection has to be only during operation
+ //aDisp->removeSelectionFilter(myDocumentShapeFilter);
+ //aDisp->closeLocalContexts(false);