mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#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();
|
|
}
|
|
}
|