mySalomeConnector(theConnector),
myPropertyPanel(0),
myObjectBrowser(0),
- myDisplayer(0),
- myIsLoadingData(false)
+ myDisplayer(0)
{
myMainWindow = mySalomeConnector ? 0 : new AppElements_MainWindow();
return;
}
QApplication::setOverrideCursor(Qt::WaitCursor);
- myIsLoadingData = true;
aSession->closeAll();
aSession->load(myCurrentDir.toLatin1().constData());
myObjectBrowser->rebuildDataTree();
//displayAllResults();
updateCommandStatus();
- myIsLoadingData = false;
QApplication::restoreOverrideCursor();
}
return mySalomeConnector != 0;
}
- /// Returns true if the loading data process is started and has not been finished yet
- /// \return boolean result
- bool isLoadingData() const
- {
- return myIsLoadingData;
- };
-
//! Returns Object browser
XGUI_ObjectsBrowser* objectBrowser() const
{
XGUI_WorkshopListener* myEventsListener;
QString myCurrentDir;
-
- /// The flag is true when we loading a document
- bool myIsLoadingData;
};
#endif
aDisplayer->display(theObj, false);
if (aNb == 0)
myWorkshop->viewer()->fitAll();
- } else if (!aWorkshop->isLoadingData())
+ } else
aDisplayer->display(theObj, false);
return true;