-void XGUI_SelectionMgr::selectedShapes(NCollection_List<TopoDS_Shape>& theList) const
-{
- if (myWorkshop->isSalomeMode()) {
- theList.Clear();
- Handle(AIS_InteractiveContext) aContext = myWorkshop->salomeConnector()->AISContext();
- for (aContext->InitSelected(); aContext->MoreSelected(); aContext->NextSelected()) {
- TopoDS_Shape aShape = aContext->SelectedShape();
- if (!aShape.IsNull())
- theList.Append(aShape);
- }
- } else {
- XGUI_Viewer* aViewer = myWorkshop->mainWindow()->viewer();
- aViewer->getSelectedShapes(theList);
- }
-}
\ No newline at end of file
+/*QFeatureList XGUI_SelectionMgr::selectedFeatures() const
+ {
+ return myWorkshop->objectBrowser()->selectedFeatures();
+ }
+
+ //**************************************************************
+ QModelIndexList XGUI_SelectionMgr::selectedIndexes() const
+ {
+ return myWorkshop->objectBrowser()->selectedIndexes();
+ }
+
+ //**************************************************************
+ void XGUI_SelectionMgr::selectedAISObjects(AIS_ListOfInteractive& theList) const
+ {
+ Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
+ theList.Clear();
+ for (aContext->InitSelected(); aContext->MoreSelected(); aContext->NextSelected())
+ theList.Append(aContext->SelectedInteractive());
+ }
+
+ //**************************************************************
+ void XGUI_SelectionMgr::selectedShapes(NCollection_List<TopoDS_Shape>& theList) const
+ {
+ theList.Clear();
+ Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
+ for (aContext->InitSelected(); aContext->MoreSelected(); aContext->NextSelected()) {
+ TopoDS_Shape aShape = aContext->SelectedShape();
+ if (!aShape.IsNull())
+ theList.Append(aShape);
+ }
+ }*/