mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Further refactoring
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "RimPlot.h"
|
||||
|
||||
#include "RimMultiPlot.h"
|
||||
#include "RimMultiPlotWindow.h"
|
||||
#include "RimPlotWindow.h"
|
||||
|
||||
#include "RiuQwtPlotWidget.h"
|
||||
@@ -35,6 +35,11 @@ RimPlot::RimPlot()
|
||||
CAF_PDM_InitFieldNoDefault( &m_colSpan, "ColSpan", "Col Span", "", "", "" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimPlot::~RimPlot() {}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -75,6 +80,40 @@ void RimPlot::setColSpan( RowOrColSpan colSpan )
|
||||
m_colSpan = colSpan;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlot::removeFromMdiAreaAndCollection()
|
||||
{
|
||||
if ( isMdiWindow() )
|
||||
{
|
||||
revokeMdiWindowStatus();
|
||||
}
|
||||
doRemoveFromCollection();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlot::updateAfterInsertingIntoMultiPlot()
|
||||
{
|
||||
updateLegend();
|
||||
updateAxes();
|
||||
updateLayout();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlot::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering )
|
||||
{
|
||||
if ( !isMdiWindow() )
|
||||
{
|
||||
uiOrdering.add( &m_rowSpan );
|
||||
uiOrdering.add( &m_colSpan );
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -82,7 +121,6 @@ void RimPlot::fieldChangedByUi( const caf::PdmFieldHandle* changedField, const Q
|
||||
{
|
||||
if ( changedField == &m_colSpan || changedField == &m_rowSpan )
|
||||
{
|
||||
onRowOrColSpanChange();
|
||||
updateParentLayout();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user