mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor RimPlotWindow and RimPlotInterface
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#include "RimPlotWindow.h"
|
||||
|
||||
#include "RimMultiPlot.h"
|
||||
#include "RimPlotWindow.h"
|
||||
|
||||
#include "RiuQwtPlotWidget.h"
|
||||
|
||||
#include "cafPdmObject.h"
|
||||
|
||||
namespace caf
|
||||
{
|
||||
template <>
|
||||
void RimPlotWindow::RowOrColSpanEnum::setUp()
|
||||
{
|
||||
addItem( RimPlotWindow::UNLIMITED, "UNLIMITED", "Unlimited" );
|
||||
addItem( RimPlotWindow::ONE, "ONE", "1" );
|
||||
addItem( RimPlotWindow::TWO, "TWO", "2" );
|
||||
addItem( RimPlotWindow::THREE, "THREE", "3" );
|
||||
addItem( RimPlotWindow::FOUR, "FOUR", "4" );
|
||||
addItem( RimPlotWindow::FIVE, "FIVE", "5" );
|
||||
setDefault( RimPlotWindow::ONE );
|
||||
}
|
||||
|
||||
} // namespace caf
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotWindow::updatePlotWindowLayout()
|
||||
{
|
||||
const caf::PdmObject* thisPdm = dynamic_cast<const caf::PdmObject*>( this );
|
||||
CAF_ASSERT( thisPdm );
|
||||
|
||||
RimMultiPlot* plotWindow;
|
||||
thisPdm->firstAncestorOrThisOfType( plotWindow );
|
||||
if ( plotWindow )
|
||||
{
|
||||
plotWindow->updateLayout();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user