Adds MSW name grouping pattern functionality

Implements a new command to set the MSW grouping pattern, and ensures that the pattern is only updated if a new value is set.
This commit is contained in:
Magne Sjaastad committed 2026-01-12 09:32:42 +01:00
1 parent e79ff8e7a7
commit c6ed12be92
3 files changed
+54 -2

No files matched your search

@@ -644,8 +644,16 @@ void RimWellPathCollection::deleteWell( RimWellPath* wellPath )
//--------------------------------------------------------------------------------------------------
void RimWellPathCollection::setMswWellPattern( const QString& pattern )
{
m_mswNameGrouping = MswGroupingMode::CUSTOM;
m_mswNameGroupingPattern = pattern;
if ( pattern.isEmpty() )
{
m_mswNameGrouping = MswGroupingMode::DISABLED;
m_mswNameGroupingPattern = "";
}
else
{
m_mswNameGrouping = MswGroupingMode::CUSTOM;
m_mswNameGroupingPattern = pattern;
}
}
//--------------------------------------------------------------------------------------------------