Mercurial > hg > svgui
diff view/PaneStack.cpp @ 1374:631897ba9fca zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 08:59:03 +0000 |
parents | d79e21855aef |
children | c8a6fd3f9dff |
line wrap: on
line diff
--- a/view/PaneStack.cpp Fri Oct 05 10:25:52 2018 +0100 +++ b/view/PaneStack.cpp Tue Nov 06 08:59:03 2018 +0000 @@ -286,7 +286,9 @@ void PaneStack::deletePane(Pane *pane) { - cerr << "PaneStack::deletePane(" << pane << ")" << endl; +#ifdef DEBUG_PANE_STACK + SVCERR << "PaneStack::deletePane(" << pane << ")" << endl; +#endif std::vector<PaneRec>::iterator i; bool found = false; @@ -322,7 +324,9 @@ emit paneAboutToBeDeleted(pane); unlinkAlignmentViews(); - cerr << "PaneStack::deletePane: about to delete parent " << pane->parent() << " of pane " << pane << endl; +#ifdef DEBUG_PANE_STACK + SVCERR << "PaneStack::deletePane: about to delete parent " << pane->parent() << " of pane " << pane << endl; +#endif // The property stack associated with the parent was initially // created with the same parent as it, so it would be deleted when @@ -353,7 +357,9 @@ void PaneStack::showOrHidePaneAccessories() { - cerr << "PaneStack::showOrHidePaneAccessories: count == " << getPaneCount() << endl; +#ifdef DEBUG_PANE_STACK + SVCERR << "PaneStack::showOrHidePaneAccessories: count == " << getPaneCount() << endl; +#endif bool multi = (getPaneCount() > 1); for (std::vector<PaneRec>::iterator i = m_panes.begin(); @@ -407,7 +413,7 @@ relinkAlignmentViews(); - cerr << "WARNING: PaneStack::hidePane(" << pane << "): Pane not found in visible panes" << endl; + SVCERR << "WARNING: PaneStack::hidePane(" << pane << "): Pane not found in visible panes" << endl; } void @@ -433,7 +439,7 @@ relinkAlignmentViews(); - cerr << "WARNING: PaneStack::showPane(" << pane << "): Pane not found in hidden panes" << endl; + SVCERR << "WARNING: PaneStack::showPane(" << pane << "): Pane not found in hidden panes" << endl; } void @@ -472,7 +478,7 @@ m_currentPane = pane; emit currentPaneChanged(m_currentPane); } else { - cerr << "WARNING: PaneStack::setCurrentPane(" << pane << "): pane is not a visible pane in this stack" << endl; + SVCERR << "WARNING: PaneStack::setCurrentPane(" << pane << "): pane is not a visible pane in this stack" << endl; } }