#3552 and #453 Tile windows by master/managed view + position if they have different positions

This commit is contained in:
Gaute Lindkvist
2018-10-24 11:30:34 +02:00
parent f80472ffa6
commit b316e1ee83
5 changed files with 109 additions and 8 deletions

View File

@@ -548,6 +548,21 @@ void RimViewLinker::addDependentView(RimGridView* view)
viewContr->setManagedView(view);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimViewLinker::isFirstViewDependentOnSecondView(const RimGridView* firstView, const RimGridView* secondView) const
{
for (const RimViewController* controller : m_viewControllers())
{
if (controller->masterView() == secondView && controller->managedView() == firstView)
{
return true;
}
}
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -56,8 +56,8 @@ public:
void setMasterView(RimGridView* view);
RimGridView* masterView() const;
void addDependentView(RimGridView* view);
bool isFirstViewDependentOnSecondView(const RimGridView* firstView, const RimGridView* secondView) const;
void updateDependentViews();
void removeViewController(RimViewController* viewController);