First non-MDI version. Still some missing links and features.

This commit is contained in:
Jon Jenssen
2026-06-17 13:55:32 +02:00
committed by JJ
parent fee0599139
commit d2d7c6ac61
79 changed files with 421 additions and 1915 deletions
@@ -150,21 +150,21 @@ RimEclipseCase* RiaSocketServer::findReservoir( int caseId )
return eclipseView->eclipseCase();
}
// If the active mdi window is different from an Eclipse view, search through available mdi windows to find the
// last activated Eclipse view. The sub windows are returned with the most recent activated window at the back.
QList<QMdiSubWindow*> subWindows = RiuMainWindow::instance()->subWindowList( QMdiArea::ActivationHistoryOrder );
for ( int i = subWindows.size() - 1; i > -1; i-- )
{
RiuViewer* viewer = subWindows[i]->widget()->findChild<RiuViewer*>();
if ( viewer )
{
RimEclipseView* riv = dynamic_cast<RimEclipseView*>( viewer->ownerReservoirView() );
if ( riv )
{
return riv->eclipseCase();
}
}
}
//// If the active mdi window is different from an Eclipse view, search through available mdi windows to find the
//// last activated Eclipse view. The sub windows are returned with the most recent activated window at the back.
// QList<QMdiSubWindow*> subWindows = RiuMainWindow::instance()->subWindowList( QMdiArea::ActivationHistoryOrder );
// for ( int i = subWindows.size() - 1; i > -1; i-- )
//{
// RiuViewer* viewer = subWindows[i]->widget()->findChild<RiuViewer*>();
// if ( viewer )
// {
// RimEclipseView* riv = dynamic_cast<RimEclipseView*>( viewer->ownerReservoirView() );
// if ( riv )
// {
// return riv->eclipseCase();
// }
// }
// }
}
else
{