mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-25 06:38:13 -05:00
Dock system selection improvements and fixes (#14305)
* Make sure we don't trigger another select when a view in the project tree is selected. * Fix for #14255 and related issues * Make sure we can close and open a main window, keeping the layout when reopened.
This commit is contained in:
12 files changed
+104
-30
No files matched your search
@@ -17,7 +17,12 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RiuPlotMainWindowTools.h"
|
||||
|
||||
#include "RiaGuiApplication.h"
|
||||
|
||||
#include "RimViewWindow.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
#include "RiuPlotMainWindow.h"
|
||||
|
||||
#include "cafPdmObject.h"
|
||||
@@ -156,3 +161,25 @@ void RiuPlotMainWindowTools::onObjectAppended( const caf::PdmObject* objectToSel
|
||||
|
||||
RiuPlotMainWindowTools::refreshToolbars();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuPlotMainWindowTools::remove3dViewsFromDocking()
|
||||
{
|
||||
if ( !RiaGuiApplication::isRunning() ) return;
|
||||
|
||||
if ( auto mainWnd = RiaGuiApplication::instance()->mainWindow() )
|
||||
{
|
||||
for ( auto view : mainWnd->viewWindows() )
|
||||
{
|
||||
if ( view->isDockedInPlotView() )
|
||||
{
|
||||
view->setShowWindow( false );
|
||||
view->removeWindowFromDock();
|
||||
view->dockAs3DViewWindow();
|
||||
view->updateConnectedEditors();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user