Added progress info when reading well path files

This commit is contained in:
Magne Sjaastad 2013-09-26 14:49:28 +02:00
parent c30d3bb27e
commit 517047c330

View File

@ -20,6 +20,7 @@
#include "cafAppEnum.h" #include "cafAppEnum.h"
#include "cafPdmFieldCvfColor.h" #include "cafPdmFieldCvfColor.h"
#include "cafProgressInfo.h"
#include "RimWellPathCollection.h" #include "RimWellPathCollection.h"
#include "RimWellPath.h" #include "RimWellPath.h"
@ -122,9 +123,14 @@ void RimWellPathCollection::setProject( RimProject* project )
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
void RimWellPathCollection::readWellPathFiles() void RimWellPathCollection::readWellPathFiles()
{ {
caf::ProgressInfo progress(wellPaths.size(), "Reading well paths from file");
for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++) for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++)
{ {
wellPaths[wpIdx]->readWellPathFile(); wellPaths[wpIdx]->readWellPathFile();
progress.setProgressDescription(QString("Reading file %1").arg(wellPaths[wpIdx]->name));
progress.incrementProgress();
} }
} }