mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#396) Improved code related to well log plot name field
This commit is contained in:
parent
d1437ba849
commit
b1b428971e
@ -62,6 +62,7 @@ void RicNewWellLogPlotFeature::onActionTriggered(bool isChecked)
|
||||
plot->setDescription(QString("Well Log Plot %1").arg(wellLogPlotCollection()->wellLogPlots.size()));
|
||||
plot->loadDataAndUpdate();
|
||||
|
||||
plot->updateConnectedEditors();
|
||||
RiaApplication::instance()->project()->updateConnectedEditors();
|
||||
|
||||
RicNewWellLogPlotCurveFeature::addCurve(plotTrace);
|
||||
|
@ -48,7 +48,7 @@ RimWellLogPlot::RimWellLogPlot()
|
||||
CAF_PDM_InitField(&m_showWindow, "ShowWindow", true, "Show well log plot", "", "", "");
|
||||
m_showWindow.uiCapability()->setUiHidden(true);
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&m_userName, "PlotDescription", "Name", "", "", "");
|
||||
CAF_PDM_InitField(&m_userName, "PlotDescription", QString("Well Log Plot"),"Name", "", "", "");
|
||||
CAF_PDM_InitField(&m_minimumVisibleDepth, "MinimumDepth", 0.0, "Minimum depth", "", "", "");
|
||||
CAF_PDM_InitField(&m_maximumVisibleDepth, "MaximumDepth", 1000.0, "Maximum depth", "", "", "");
|
||||
|
||||
@ -121,7 +121,6 @@ void RimWellLogPlot::fieldChangedByUi(const caf::PdmFieldHandle* changedField, c
|
||||
}
|
||||
else if (changedField == &m_userName)
|
||||
{
|
||||
setUiName(m_userName);
|
||||
updateViewerWidgetWindowTitle();
|
||||
}
|
||||
}
|
||||
@ -281,7 +280,6 @@ void RimWellLogPlot::loadDataAndUpdate()
|
||||
|
||||
updateAvailableDepthRange();
|
||||
updateAxisRanges();
|
||||
setUiName(m_userName);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -345,7 +343,6 @@ void RimWellLogPlot::detachAllCurves()
|
||||
void RimWellLogPlot::setDescription(const QString& description)
|
||||
{
|
||||
m_userName = description;
|
||||
setUiName(description);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -62,6 +62,8 @@ public:
|
||||
void updateAxisRanges();
|
||||
void setVisibleDepthRangeFromContents();
|
||||
|
||||
virtual caf::PdmFieldHandle* userDescriptionField() { return &m_userName; }
|
||||
|
||||
protected:
|
||||
|
||||
// Overridden PDM methods
|
||||
|
Loading…
Reference in New Issue
Block a user