mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#14737 Add reordering support to case collections
Add caf::PdmFieldReorderCapability to the child array fields holding RimCase objects: - RimEclipseCaseCollection::cases (grid models in Project Tree) - RimCaseCollection::reservoirs (statistics case groups) - RimGeoMechModels::m_cases (geomechanical models) This enables the built-in move up/down tree item controls for reordering cases, matching the pattern already used for e.g. RimSurfaceCollection and RimMultiPlot.
This commit is contained in:
1 parent
3ec1a2659c
commit
b922fd96a7
3 files changed
+8
No files matched your search
@@ -29,6 +29,8 @@
|
||||
#include "RimIntersectionResultDefinition.h"
|
||||
#include "RimIntersectionResultsDefinitionCollection.h"
|
||||
|
||||
#include "cafPdmFieldReorderCapability.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimGeoMechModels, "ResInsightGeoMechModels" );
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
@@ -38,6 +40,7 @@ RimGeoMechModels::RimGeoMechModels()
|
||||
CAF_PDM_InitObject( "Geomechanical Models", ":/GeoMechCases48x48.png" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_cases, "Cases", "" );
|
||||
caf::PdmFieldReorderCapability::addToField( &m_cases );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "RimIdenticalGridCaseGroup.h"
|
||||
#include "RimReservoirGridEnsemble.h"
|
||||
|
||||
#include "cafPdmFieldReorderCapability.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimCaseCollection, "RimCaseCollection" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -34,6 +36,7 @@ RimCaseCollection::RimCaseCollection()
|
||||
CAF_PDM_InitObject( "Derived Statistics" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &reservoirs, "Reservoirs", "Reservoirs ChildArrayField" );
|
||||
caf::PdmFieldReorderCapability::addToField( &reservoirs );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "RimReservoirGridEnsemble.h"
|
||||
|
||||
#include "cafCmdFeatureMenuBuilder.h"
|
||||
#include "cafPdmFieldReorderCapability.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimEclipseCaseCollection, "ResInsightAnalysisModels" );
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -45,6 +46,7 @@ RimEclipseCaseCollection::RimEclipseCaseCollection()
|
||||
CAF_PDM_InitObject( "Grid Models", ":/Cases16x16.png" );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &cases, "Reservoirs", "" );
|
||||
caf::PdmFieldReorderCapability::addToField( &cases );
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &caseGroups, "CaseGroups", "" );
|
||||
|
||||
|
||||
Reference in new issue
Block a user