mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Depth plot as docking widget (#9909)
* Add docked depth result plot for eclipse data * Update dock layout defaults
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
#include "RimViewLinkerCollection.h"
|
||||
#include "RimViewWindow.h"
|
||||
|
||||
#include "RiuDepthQwtPlot.h"
|
||||
#include "RiuDockWidgetTools.h"
|
||||
#include "RiuMdiArea.h"
|
||||
#include "RiuMdiSubWindow.h"
|
||||
@@ -256,6 +257,7 @@ void RiuMainWindow::cleanupGuiCaseClose()
|
||||
setResultInfo( "" );
|
||||
|
||||
m_resultQwtPlot->deleteAllCurves();
|
||||
m_depthQwtPlot->deleteAllCurves();
|
||||
if ( m_relPermPlotPanel ) m_relPermPlotPanel->clearPlot();
|
||||
if ( m_pvtPlotPanel ) m_pvtPlotPanel->clearPlot();
|
||||
if ( m_mohrsCirclePlot ) m_mohrsCirclePlot->clearPlot();
|
||||
@@ -814,6 +816,14 @@ void RiuMainWindow::createDockPanels()
|
||||
bottomWidgets.push_back( dockWidget );
|
||||
}
|
||||
|
||||
{
|
||||
auto dockWidget = RiuDockWidgetTools::createDockWidget( "Depth Plot", RiuDockWidgetTools::mainWindowDepthPlotName(), dockManager() );
|
||||
|
||||
m_depthQwtPlot = new RiuDepthQwtPlot( dockWidget );
|
||||
dockWidget->setWidget( m_depthQwtPlot );
|
||||
rightWidgets.push_back( dockWidget );
|
||||
}
|
||||
|
||||
ads::CDockAreaWidget* leftArea = addTabbedWidgets( leftWidgets, ads::DockWidgetArea::LeftDockWidgetArea );
|
||||
ads::CDockAreaWidget* rightArea = addTabbedWidgets( rightWidgets, ads::DockWidgetArea::RightDockWidgetArea );
|
||||
ads::CDockAreaWidget* bottomArea =
|
||||
@@ -1149,6 +1159,14 @@ RiuResultQwtPlot* RiuMainWindow::resultPlot()
|
||||
return m_resultQwtPlot;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiuDepthQwtPlot* RiuMainWindow::depthPlot()
|
||||
{
|
||||
return m_depthQwtPlot;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1820,6 +1838,10 @@ void RiuMainWindow::applyFontSizesToDockedPlots()
|
||||
{
|
||||
m_resultQwtPlot->applyFontSizes( true );
|
||||
}
|
||||
if ( m_depthQwtPlot )
|
||||
{
|
||||
m_depthQwtPlot->applyFontSizes( true );
|
||||
}
|
||||
if ( m_mohrsCirclePlot )
|
||||
{
|
||||
m_mohrsCirclePlot->applyFontSizes( true );
|
||||
|
||||
Reference in New Issue
Block a user