#5832 Add color legend data with import from LYR file.

This commit is contained in:
Stein Inge Dale
2020-04-30 16:54:25 +02:00
committed by Kristian Bendiksen
parent 3e5c77e79e
commit 6cb86d4792
24 changed files with 1114 additions and 24 deletions

View File

@@ -39,6 +39,7 @@
#include "RimCalcScript.h"
#include "RimCase.h"
#include "RimCaseCollection.h"
#include "RimColorLegendCollection.h"
#include "RimCommandObject.h"
#include "RimCompletionTemplateCollection.h"
#include "RimContextCommandBuilder.h"
@@ -129,6 +130,9 @@ RimProject::RimProject( void )
CAF_PDM_InitFieldNoDefault( &oilFields, "OilFields", "Oil Fields", "", "", "" );
oilFields.uiCapability()->setUiHidden( true );
CAF_PDM_InitFieldNoDefault( &colorLegendCollection, "ColorLegendCollection", "Color Legend Collection", "", "", "" );
colorLegendCollection = new RimColorLegendCollection();
CAF_PDM_InitFieldNoDefault( &scriptCollection, "ScriptCollection", "Octave Scripts", ":/octave.png", "", "" );
scriptCollection.uiCapability()->setUiHidden( true );
scriptCollection.xmlCapability()->disableIO();
@@ -1457,6 +1461,7 @@ void RimProject::defineUiTreeOrdering( caf::PdmUiTreeOrdering& uiTreeOrdering, Q
if ( oilField->annotationCollection() ) uiTreeOrdering.add( oilField->annotationCollection() );
}
uiTreeOrdering.add( colorLegendCollection() );
uiTreeOrdering.add( scriptCollection() );
}