mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
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:
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;
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user