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

This commit is contained in:
sigurdp authored and Magne Sjaastad committed 2019-12-19 11:09:01 +01:00
1 parent 3b1b7aafbb
commit 4ce07ebb23
2 files changed
+3 -2

No files matched your search

@@ -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", "", "", "" );
@@ -50,7 +50,7 @@ public:
using ColumnCountEnum = caf::AppEnum<ColumnCount>;
public:
RimMultiPlotWindow();
RimMultiPlotWindow( bool hidePlotsInTreeView = false );
~RimMultiPlotWindow() override;
RimMultiPlotWindow& operator=( RimMultiPlotWindow&& rhs );