#3558 Grid items in Project Tree : Mark show main grid as obsolete, and propagate setting to RimGridCollection

This commit is contained in:
Magne Sjaastad
2018-11-05 13:42:48 +01:00
parent 937dacd7df
commit b74a7b9683
4 changed files with 29 additions and 0 deletions

View File

@@ -82,6 +82,14 @@ void RimGridInfo::setIndex(int index)
m_gridIndex = index;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGridInfo::setActive(bool active)
{
m_isActive = active;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -399,6 +407,14 @@ void RimGridCollection::syncFromMainGrid()
updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimGridCollection::setMainGridActive(bool active)
{
m_mainGrid()->setActive(active);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------