Work in progress

This commit is contained in:
jonjenssen authored and JJ committed 2026-06-17 13:55:32 +02:00
1 parent 122cb01592
commit ff40662366
16 files changed
+77 -56

No files matched your search

@@ -120,17 +120,17 @@ void RicSnapshotAllPlotsToFileFeature::exportSnapshotOfPlotsIntoFolder( const QS
//--------------------------------------------------------------------------------------------------
void RicSnapshotAllPlotsToFileFeature::onActionTriggered( bool isChecked )
{
QWidget* currentActiveWidget = nullptr;
QString currentActiveViewerName;
if ( RiaGuiApplication::activeViewWindow() )
{
currentActiveWidget = RiaGuiApplication::activeViewWindow()->viewWidget();
currentActiveViewerName = RiaGuiApplication::activeViewWindow()->dockWindowName();
}
RicSnapshotAllPlotsToFileFeature::saveAllPlots();
if ( currentActiveWidget )
if ( !currentActiveViewerName.isEmpty() )
{
RiuPlotMainWindowTools::setActiveViewer( currentActiveWidget );
RiuPlotMainWindowTools::setActiveViewer( currentActiveViewerName );
}
}
@@ -117,10 +117,11 @@ void RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( const QS
{
RiuViewer* viewer = riv->viewer();
if ( !viewer ) continue;
if ( !viewer->ownerViewWindow() ) continue;
RiaApplication::instance()->setActiveReservoirView( riv );
Riu3DMainWindowTools::setActiveViewer( viewer->layoutWidget() );
Riu3DMainWindowTools::setActiveViewer( viewer->ownerViewWindow()->dockWindowName() );
RiaViewRedrawScheduler::instance()->clearViewsScheduledForUpdate();
RiaPlotWindowRedrawScheduler::instance()->clearAllScheduledUpdates();
@@ -152,17 +153,17 @@ void RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( const QS
//--------------------------------------------------------------------------------------------------
void RicSnapshotAllViewsToFileFeature::onActionTriggered( bool isChecked )
{
QWidget* currentActiveWidget = nullptr;
QString currentActiveViewerName;
if ( RiaGuiApplication::activeViewWindow() )
{
currentActiveWidget = RiaGuiApplication::activeViewWindow()->viewWidget();
currentActiveViewerName = RiaGuiApplication::activeViewWindow()->dockWindowName();
}
RicSnapshotAllViewsToFileFeature::saveAllViews();
if ( currentActiveWidget )
if ( !currentActiveViewerName.isEmpty() )
{
Riu3DMainWindowTools::setActiveViewer( currentActiveWidget );
Riu3DMainWindowTools::setActiveViewer( currentActiveViewerName );
}
}