Added constructor parameter to RimMultiPlotWindow for hiding contained plots in tree view

This commit is contained in:
sigurdp
2019-12-17 09:07:33 +01:00
committed by Magne Sjaastad
parent 3b1b7aafbb
commit 4ce07ebb23
2 changed files with 3 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ CAF_PDM_SOURCE_INIT( RimMultiPlotWindow, "MultiPlot" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimMultiPlotWindow::RimMultiPlotWindow()
RimMultiPlotWindow::RimMultiPlotWindow( bool hidePlotsInTreeView )
: m_acceptDrops( true )
{
CAF_PDM_InitObject( "Multi Plot", ":/WellLogPlot16x16.png", "", "" );
@@ -56,6 +56,7 @@ RimMultiPlotWindow::RimMultiPlotWindow()
CAF_PDM_InitFieldNoDefault( &m_plots, "Tracks", "", "", "", "" );
m_plots.uiCapability()->setUiHidden( true );
m_plots.uiCapability()->setUiTreeChildrenHidden( hidePlotsInTreeView );
CAF_PDM_InitFieldNoDefault( &m_columnCountEnum, "NumberOfColumns", "Number of Columns", "", "", "" );