mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Animation (and other commands) refreshed on selection in the tree view
p4#: 21923
This commit is contained in:
@@ -134,12 +134,13 @@ RiuMainWindow* RiuMainWindow::instance()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RiuMainWindow::initializeGuiNewProjectLoaded()
|
void RiuMainWindow::initializeGuiNewProjectLoaded()
|
||||||
{
|
{
|
||||||
|
setPdmRoot(RiaApplication::instance()->project());
|
||||||
|
restoreTreeViewState();
|
||||||
slotRefreshFileActions();
|
slotRefreshFileActions();
|
||||||
slotRefreshEditActions();
|
slotRefreshEditActions();
|
||||||
slotRefreshViewActions();
|
slotRefreshViewActions();
|
||||||
refreshAnimationActions();
|
refreshAnimationActions();
|
||||||
refreshDrawStyleActions();
|
refreshDrawStyleActions();
|
||||||
setPdmRoot(RiaApplication::instance()->project());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -763,7 +764,7 @@ void RiuMainWindow::slotOpenProject()
|
|||||||
app->loadProject(fileName);
|
app->loadProject(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
restoreTreeViewState();
|
//restoreTreeViewState();
|
||||||
|
|
||||||
//m_mainViewer->setDefaultView();
|
//m_mainViewer->setDefaultView();
|
||||||
}
|
}
|
||||||
@@ -776,7 +777,7 @@ void RiuMainWindow::slotOpenLastUsedProject()
|
|||||||
RiaApplication* app = RiaApplication::instance();
|
RiaApplication* app = RiaApplication::instance();
|
||||||
app->loadLastUsedProject();
|
app->loadLastUsedProject();
|
||||||
|
|
||||||
restoreTreeViewState();
|
//restoreTreeViewState();
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@@ -1272,13 +1273,17 @@ void RiuMainWindow::slotCurrentChanged(const QModelIndex & current, const QModel
|
|||||||
if (rimReservoirView != activeReservoirView)
|
if (rimReservoirView != activeReservoirView)
|
||||||
{
|
{
|
||||||
RiaApplication::instance()->setActiveReservoirView(rimReservoirView);
|
RiaApplication::instance()->setActiveReservoirView(rimReservoirView);
|
||||||
refreshDrawStyleActions();
|
|
||||||
// Set focus in MDI area to this window if it exists
|
// Set focus in MDI area to this window if it exists
|
||||||
if (rimReservoirView->viewer())
|
if (rimReservoirView->viewer())
|
||||||
{
|
{
|
||||||
setActiveViewer(rimReservoirView->viewer());
|
setActiveViewer(rimReservoirView->viewer());
|
||||||
}
|
}
|
||||||
m_treeView->setCurrentIndex(current);
|
m_treeView->setCurrentIndex(current);
|
||||||
|
refreshDrawStyleActions();
|
||||||
|
refreshAnimationActions();
|
||||||
|
slotRefreshFileActions();
|
||||||
|
slotRefreshEditActions();
|
||||||
|
slotRefreshViewActions();
|
||||||
|
|
||||||
// The only way to get to this code is by selection change initiated from the project tree view
|
// The only way to get to this code is by selection change initiated from the project tree view
|
||||||
// As we are activating an MDI-window, the focus is given to this MDI-window
|
// As we are activating an MDI-window, the focus is given to this MDI-window
|
||||||
|
|||||||
Reference in New Issue
Block a user