myWorkshop->objectBrowser()->rebuildDataTree();
myWorkshop->updateCommandStatus();
myIsOpened = false;
- // the display all results is not necessary anymore, it was commented in XGUI_Workshop,
- // so it should be commented here
- //QTimer::singleShot(1000, myWorkshop, SLOT(displayAllResults()));
}
else
myWorkshop->updateCommandStatus();
aSession->closeAll();
aSession->load(myCurrentDir.toLatin1().constData());
myObjectBrowser->rebuildDataTree();
- //displayAllResults();
updateCommandStatus();
QApplication::restoreOverrideCursor();
}
ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
}
-//**************************************************************
-/*void XGUI_Workshop::displayAllResults()
-{
- SessionPtr aMgr = ModelAPI_Session::get();
- DocumentPtr aRootDoc = aMgr->moduleDocument();
- displayDocumentResults(aRootDoc);
- for (int i = 0; i < aRootDoc->size(ModelAPI_ResultPart::group()); i++) {
- ObjectPtr aObject = aRootDoc->object(ModelAPI_ResultPart::group(), i);
- ResultPartPtr aPart = std::dynamic_pointer_cast<ModelAPI_ResultPart>(aObject);
- displayDocumentResults(aPart->partDoc());
- }
- myDisplayer->updateViewer();
-}*/
-
//**************************************************************
void XGUI_Workshop::displayDocumentResults(DocumentPtr theDoc)
{