Gui: add virtual method containsViewProvider to MDIView and re-implement it in some sub-classes
Improve Document::setActiveView to not always switch to the first 3D view but check the currently active view before
This commit is contained in:
@@ -72,6 +72,16 @@ void AbstractSplitView::deleteSelf()
|
||||
MDIView::deleteSelf();
|
||||
}
|
||||
|
||||
bool AbstractSplitView::containsViewProvider(const ViewProvider* vp) const
|
||||
{
|
||||
for (auto it = _viewer.begin(); it != _viewer.end(); ++it) {
|
||||
if ((*it)->containsViewProvider(vp))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void AbstractSplitView::setupSettings()
|
||||
{
|
||||
// attach Parameter Observer
|
||||
|
||||
Reference in New Issue
Block a user