mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
Work in progress
This commit is contained in:
1 parent
ff40662366
commit
fce05bdb81
19 files changed
+82
-255
No files matched your search
@@ -126,16 +126,6 @@ void RiuMainWindowBase::setActiveViewer( QString viewerName )
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
ads::CDockWidget* RiuMainWindowBase::createDockViewWindow()
|
||||
{
|
||||
auto widget = RiuDockWidgetTools::createDockWidget( "3D view", "3dview", this );
|
||||
|
||||
return widget;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -339,52 +329,6 @@ void RiuMainWindowBase::removeViewerFromDockArea( QWidget* viewer )
|
||||
}
|
||||
}
|
||||
|
||||
////--------------------------------------------------------------------------------------------------
|
||||
/////
|
||||
////--------------------------------------------------------------------------------------------------
|
||||
// void RiuMainWindowBase::removeViewerFromMdiArea( RiuMdiArea* mdiArea, QWidget* viewer )
|
||||
//{
|
||||
// bool removedSubWindowWasActive = false;
|
||||
// bool wasMaximized = true;
|
||||
//
|
||||
// if ( QMdiSubWindow* subWindowBeingClosed = findMdiSubWindow( viewer ) )
|
||||
// {
|
||||
// wasMaximized = subWindowBeingClosed->isMaximized();
|
||||
//
|
||||
// if ( subWindowBeingClosed->isActiveWindow() )
|
||||
// {
|
||||
// // If we are removing the active window, we will need a new active window
|
||||
// // Start by making the window inactive so Qt doesn't pick the active window itself
|
||||
// mdiArea->setActiveSubWindow( nullptr );
|
||||
// removedSubWindowWasActive = true;
|
||||
// }
|
||||
// mdiArea->removeSubWindow( subWindowBeingClosed );
|
||||
//
|
||||
// // These two lines had to be introduced after themes was used
|
||||
// // Probably related to polish/unpolish of widgets in an MDI setting
|
||||
// // https://github.com/OPM/ResInsight/issues/6676
|
||||
// subWindowBeingClosed->hide();
|
||||
// subWindowBeingClosed->deleteLater();
|
||||
// }
|
||||
//
|
||||
// QList<QMdiSubWindow*> subWindowList = mdiArea->subWindowList( QMdiArea::ActivationHistoryOrder );
|
||||
// if ( !subWindowList.empty() )
|
||||
// {
|
||||
// if ( removedSubWindowWasActive )
|
||||
// {
|
||||
// mdiArea->setActiveSubWindow( nullptr );
|
||||
// // Make the last activated window the current activated one
|
||||
// mdiArea->setActiveSubWindow( subWindowList.back() );
|
||||
// }
|
||||
// if ( wasMaximized && mdiArea->currentSubWindow() )
|
||||
// {
|
||||
// mdiArea->currentSubWindow()->showMaximized();
|
||||
// }
|
||||
//
|
||||
// mdiArea->applyTiling();
|
||||
// }
|
||||
// }
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -419,10 +363,17 @@ void RiuMainWindowBase::slotDockWidgetToggleViewActionTriggered()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindowBase::slotDockViewerVisibilityChanged( bool visible )
|
||||
{
|
||||
if ( visible ) return;
|
||||
|
||||
// TODO - handle undocking views
|
||||
if ( auto dockWidget = dynamic_cast<ads::CDockWidget*>( sender() ) )
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindowBase::slotDockViewerClosed()
|
||||
{
|
||||
if ( auto dockWidget = dynamic_cast<ads::CDockWidget*>( sender() ) )
|
||||
{
|
||||
auto mainWidget = dockWidget->widget();
|
||||
|
||||
Reference in new issue
Block a user