mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#2465 Property panel: Update UI fields from selected result on tree view object changed
This commit is contained in:
@@ -497,6 +497,14 @@ void RimCellEdgeColors::posNegClosestToZero(double& pos, double& neg)
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimCellEdgeColors::updateUiFieldsFromActiveResult()
|
||||
{
|
||||
m_singleVarEdgeResultColors->updateUiFieldsFromActiveResult();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -91,6 +91,9 @@ public:
|
||||
|
||||
void minMaxCellEdgeValues(double& min, double& max);
|
||||
void posNegClosestToZero(double& pos, double& neg);
|
||||
|
||||
void updateUiFieldsFromActiveResult();
|
||||
|
||||
protected:
|
||||
|
||||
virtual void initAfterRead();
|
||||
|
||||
@@ -97,6 +97,14 @@ RimEclipseCellColors* RimEclipseFaultColors::customFaultResult()
|
||||
return this->m_customFaultResultColors();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseFaultColors::updateUiFieldsFromActiveResult()
|
||||
{
|
||||
m_customFaultResultColors->updateUiFieldsFromActiveResult();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -46,6 +46,8 @@ public:
|
||||
bool hasValidCustomResult();
|
||||
RimEclipseCellColors* customFaultResult();
|
||||
|
||||
void updateUiFieldsFromActiveResult();
|
||||
|
||||
protected:
|
||||
virtual void initAfterRead();
|
||||
virtual caf::PdmFieldHandle* objectToggleField();
|
||||
|
||||
@@ -548,3 +548,11 @@ void RimEclipsePropertyFilter::initAfterRead()
|
||||
resultDefinition->setEclipseCase(parentContainer()->reservoirView()->eclipseCase());
|
||||
updateIconState();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipsePropertyFilter::updateUiFieldsFromActiveResult()
|
||||
{
|
||||
resultDefinition->updateUiFieldsFromActiveResult();
|
||||
}
|
||||
|
||||
@@ -49,8 +49,10 @@ public:
|
||||
void computeResultValueRange();
|
||||
void updateFromCurrentTimeStep();
|
||||
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
||||
virtual void initAfterRead();
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
virtual void initAfterRead() override;
|
||||
|
||||
void updateUiFieldsFromActiveResult();
|
||||
|
||||
protected:
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
||||
|
||||
@@ -1060,6 +1060,15 @@ void RimEclipseResultDefinition::setSelectedSouringTracers(const std::vector<QSt
|
||||
this->m_selectedSouringTracersUiField = selectedTracers;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimEclipseResultDefinition::updateUiFieldsFromActiveResult()
|
||||
{
|
||||
m_resultTypeUiField = m_resultType;
|
||||
m_resultVariableUiField = resultVariable();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -99,6 +99,7 @@ public:
|
||||
void setSelectedTracers(const std::vector<QString>& selectedTracers);
|
||||
void setSelectedSouringTracers(const std::vector<QString>& selectedTracers);
|
||||
|
||||
void updateUiFieldsFromActiveResult();
|
||||
|
||||
protected:
|
||||
virtual void updateLegendCategorySettings() {};
|
||||
|
||||
Reference in New Issue
Block a user