mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8292 Add docking widget used to manage summary plots
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include "RimSummaryPlot.h"
|
||||
#include "RimSummaryPlotCollection.h"
|
||||
#include "RimSummaryPlotFilterTextCurveSetEditor.h"
|
||||
#include "RimSummaryPlotManager.h"
|
||||
#include "RimViewWindow.h"
|
||||
#include "RimWellAllocationPlot.h"
|
||||
#include "RimWellLogCurveCommonDataSource.h"
|
||||
@@ -105,6 +106,7 @@ RiuPlotMainWindow::RiuPlotMainWindow()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuPlotMainWindow::~RiuPlotMainWindow()
|
||||
{
|
||||
m_summaryCurveManagerView->showProperties( nullptr );
|
||||
setPdmRoot( nullptr );
|
||||
}
|
||||
|
||||
@@ -499,6 +501,22 @@ void RiuPlotMainWindow::createDockPanels()
|
||||
dockWidget->hide();
|
||||
}
|
||||
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget( "Curve Manager", this );
|
||||
dockWidget->setObjectName( RiuDockWidgetTools::summaryCurveManagerName() );
|
||||
|
||||
m_summaryCurveManagerView = new caf::PdmUiPropertyView( dockWidget );
|
||||
|
||||
auto curveManager = std::make_unique<RimSummaryPlotManager>();
|
||||
m_summaryCurveManagerView->showProperties( curveManager.get() );
|
||||
m_summaryCurveManagerView->installEventFilter( curveManager.get() );
|
||||
m_summaryCurveManager = std::move( curveManager );
|
||||
|
||||
dockWidget->setWidget( m_summaryCurveManagerView );
|
||||
addDockWidget( Qt::BottomDockWidgetArea, dockWidget );
|
||||
dockWidget->hide();
|
||||
}
|
||||
|
||||
if ( m_undoView && RiaPreferences::current()->useUndoRedo() )
|
||||
{
|
||||
QDockWidget* dockWidget = new QDockWidget( "Undo Stack", this );
|
||||
|
||||
Reference in New Issue
Block a user