mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user