]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
displayAllResults is obsolete
authornds <nds@opencascade.com>
Mon, 7 Sep 2015 06:00:06 +0000 (09:00 +0300)
committernds <nds@opencascade.com>
Mon, 7 Sep 2015 06:00:06 +0000 (09:00 +0300)
src/NewGeom/NewGeom_Module.cpp
src/XGUI/XGUI_Workshop.cpp

index 18188e57554be9bf8a7ec8bad0c4ebeb2d7aff09..79d725c642d2eb773a696a28f682b0446cbf7049 100644 (file)
@@ -173,9 +173,6 @@ bool NewGeom_Module::activateModule(SUIT_Study* theStudy)
       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();
index c8058f38d6fd5ac19d7bf62121dc95cca414dad2..ebe199c4be719929259ac2d868e2e013dc1bef7c 100644 (file)
@@ -631,7 +631,6 @@ void XGUI_Workshop::onOpen()
   aSession->closeAll();
   aSession->load(myCurrentDir.toLatin1().constData());
   myObjectBrowser->rebuildDataTree();
-  //displayAllResults();
   updateCommandStatus();
   QApplication::restoreOverrideCursor();
 }
@@ -1472,20 +1471,6 @@ void XGUI_Workshop::registerValidators() const
   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)
 {