Improved progress information when reading large projects

p4#: 20803
This commit is contained in:
Jacob Støren 2013-03-07 09:43:25 +01:00
parent 705bb185e0
commit fcdf14c0fa

View File

@ -250,20 +250,30 @@ bool RIApplication::loadProject(const QString& projectFileName)
m_preferences->lastUsedProjectFileName = projectFileName;
writePreferences();
caf::ProgressInfo caseProgress(m_project->reservoirs().size() , "Reading Cases");
size_t i;
for (i = 0; i < m_project->reservoirs().size(); ++i)
{
RimReservoir* ri = m_project->reservoirs()[i];
CVF_ASSERT(ri);
caseProgress.setProgressDescription(ri->caseName());
caf::ProgressInfo viewProgress(ri->reservoirViews().size() , "Creating Views");
size_t j;
for (j = 0; j < ri->reservoirViews().size(); j++)
{
RimReservoirView* riv = ri->reservoirViews()[j];
CVF_ASSERT(riv);
viewProgress.setProgressDescription(riv->name());
riv->loadDataAndUpdate();
viewProgress.incrementProgress();
}
caseProgress.incrementProgress();
}
}