#2224 Well Formations: Make Reloading the csv file work

This commit is contained in:
Rebecca Cox
2017-12-06 12:01:15 +01:00
parent 4bef3abda8
commit 8608e00b35
10 changed files with 206 additions and 2 deletions

View File

@@ -508,7 +508,7 @@ RimWellPath* RimWellPathCollection::newestAddedWellPath()
//--------------------------------------------------------------------------------------------------
void RimWellPathCollection::readWellPathFormationFiles()
{
caf::ProgressInfo progress(wellPaths.size(), "Reading well path formations from file");
caf::ProgressInfo progress(wellPaths.size(), "Reading well picks from file");
for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++)
{
@@ -525,6 +525,28 @@ void RimWellPathCollection::readWellPathFormationFiles()
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathCollection::reloadAllWellPathFormations()
{
caf::ProgressInfo progress(wellPaths.size(), "Reloading well picks from file");
for (size_t wpIdx = 0; wpIdx < wellPaths.size(); wpIdx++)
{
QString errorMessage;
if (!wellPaths[wpIdx]->reloadWellPathFormationsFile(&errorMessage, m_wellPathFormationsImporter))
{
QMessageBox::warning(RiuMainWindow::instance(),
"File open error",
errorMessage);
}
progress.setProgressDescription(QString("Reloading formation file %1").arg(wpIdx));
progress.incrementProgress();
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------