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
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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user