mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Observed Data : Select in tree view and expand imported object
This commit is contained in:
@@ -39,7 +39,7 @@ RimObservedData::RimObservedData()
|
||||
m_importedSummaryData.uiCapability()->setUiReadOnly(true);
|
||||
m_importedSummaryData.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_useCustomIdentifier, "UseCustomIdentifier", "Use Custom Identifier", "", "", "");
|
||||
CAF_PDM_InitField(&m_useCustomIdentifier, "UseCustomIdentifier", false, "Use Custom Identifier", "", "", "");
|
||||
CAF_PDM_InitField(&m_summaryCategory, "SummaryType", caf::AppEnum<RifEclipseSummaryAddress::SummaryVarCategory>(RifEclipseSummaryAddress::SUMMARY_WELL), "Summary Type", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&m_identifierName, "IdentifierName", "Identifier Name", "", "", "");
|
||||
}
|
||||
|
||||
@@ -19,14 +19,17 @@
|
||||
|
||||
#include "RimObservedDataCollection.h"
|
||||
|
||||
#include "RiaApplication.h"
|
||||
#include "RiaLogging.h"
|
||||
|
||||
#include "RifKeywordVectorParser.h"
|
||||
|
||||
#include "RimObservedEclipseUserData.h"
|
||||
#include "RimObservedData.h"
|
||||
#include "RimObservedEclipseUserData.h"
|
||||
#include "RimSummaryObservedDataFile.h"
|
||||
|
||||
#include "RiuMainPlotWindow.h"
|
||||
|
||||
#include "cafUtils.h"
|
||||
|
||||
#include <QFile>
|
||||
@@ -115,6 +118,13 @@ RimObservedData* RimObservedDataCollection::createAndAddObservedDataFromFileName
|
||||
observedData->updateMetaData();
|
||||
observedData->updateOptionSensitivity();
|
||||
|
||||
RiuMainPlotWindow* mainPlotWindow = RiaApplication::instance()->getOrCreateAndShowMainPlotWindow();
|
||||
if (mainPlotWindow)
|
||||
{
|
||||
mainPlotWindow->selectAsCurrentItem(observedData);
|
||||
mainPlotWindow->setExpanded(observedData, true);
|
||||
}
|
||||
|
||||
this->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user