mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3920 Create Well Path: New well name not used in Completions
This commit is contained in:
parent
f4e0a154ee
commit
189234c0c9
@ -156,6 +156,17 @@ void RimWellPathCompletions::setWellNameForExport(const QString& name)
|
|||||||
m_wellNameForExport = n.remove(' ');
|
m_wellNameForExport = n.remove(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimWellPathCompletions::updateWellPathNameHasChanged(const QString& newWellPathName, const QString& previousWellPathName)
|
||||||
|
{
|
||||||
|
if (m_wellNameForExport == previousWellPathName)
|
||||||
|
{
|
||||||
|
m_wellNameForExport = newWellPathName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -59,6 +59,7 @@ public:
|
|||||||
std::vector<const RimWellPathComponentInterface*> allCompletions() const;
|
std::vector<const RimWellPathComponentInterface*> allCompletions() const;
|
||||||
|
|
||||||
void setWellNameForExport(const QString& name);
|
void setWellNameForExport(const QString& name);
|
||||||
|
void updateWellPathNameHasChanged(const QString& newWellPathName, const QString& previousWellPathName);
|
||||||
QString wellNameForExport() const;
|
QString wellNameForExport() const;
|
||||||
QString wellGroupNameForExport() const;
|
QString wellGroupNameForExport() const;
|
||||||
QString referenceDepthForExport() const;
|
QString referenceDepthForExport() const;
|
||||||
|
@ -347,6 +347,12 @@ void RimWellPath::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
|
|||||||
{
|
{
|
||||||
proj->reloadCompletionTypeResultsInAllViews();
|
proj->reloadCompletionTypeResultsInAllViews();
|
||||||
}
|
}
|
||||||
|
else if (changedField == &m_name)
|
||||||
|
{
|
||||||
|
QString previousName = oldValue.toString();
|
||||||
|
QString newName = newValue.toString();
|
||||||
|
m_completions->updateWellPathNameHasChanged(newName, previousName);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
||||||
|
Loading…
Reference in New Issue
Block a user