(#396) Disconnected EclipseResultDefiniton from EclipseView

So that it can be used in WellLogCurves
This commit is contained in:
Jacob Støren
2015-09-01 13:56:35 +02:00
parent c9887c26c6
commit 9df1e48543
7 changed files with 52 additions and 42 deletions

View File

@@ -41,26 +41,29 @@ public:
RimEclipseCellColors();
virtual ~RimEclipseCellColors();
virtual void setReservoirView(RimEclipseView* ownerReservoirView);
RimLegendConfig* legendConfig();
void setReservoirView(RimEclipseView* ownerReservoirView);
RimEclipseView* reservoirView();
RimLegendConfig* legendConfig();
caf::PdmChildField<RimTernaryLegendConfig*> ternaryLegendConfig;
// Overridden methods
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
virtual void setResultVariable(const QString& resultName);
virtual void setResultVariable(const QString& resultName);
protected:
// Overridden methods
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
friend class RimEclipseFaultColors;
virtual void initAfterRead();
virtual void initAfterRead();
private:
void changeLegendConfig(QString resultVarNameOfNewLegend);
void changeLegendConfig(QString resultVarNameOfNewLegend);
caf::PdmChildArrayField<RimLegendConfig*> m_legendConfigData;
caf::PdmPtrField<RimLegendConfig*> m_legendConfigPtrField;
caf::PdmPtrField<RimLegendConfig*> m_legendConfigPtrField;
caf::PdmPointer<RimEclipseView> m_reservoirView;
// Obsolete
caf::PdmChildField<RimLegendConfig*> obsoleteField_legendConfig;
};