Mercurial > hg > svgui
comparison view/PaneStack.cpp @ 682:1a0dfcbffaf1
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:06:40 +0000 |
parents | 156a120345ae |
children | 502fe55c2184 25b3d5802e6e |
comparison
equal
deleted
inserted
replaced
681:eaf4446a1bef | 682:1a0dfcbffaf1 |
---|---|
256 break; | 256 break; |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 if (!found) { | 260 if (!found) { |
261 std::cerr << "WARNING: PaneStack::deletePane(" << pane << "): Pane not found in visible or hidden panes, not deleting" << std::endl; | 261 cerr << "WARNING: PaneStack::deletePane(" << pane << "): Pane not found in visible or hidden panes, not deleting" << endl; |
262 return; | 262 return; |
263 } | 263 } |
264 } | 264 } |
265 | 265 |
266 emit paneAboutToBeDeleted(pane); | 266 emit paneAboutToBeDeleted(pane); |
281 } | 281 } |
282 | 282 |
283 void | 283 void |
284 PaneStack::showOrHidePaneAccessories() | 284 PaneStack::showOrHidePaneAccessories() |
285 { | 285 { |
286 std::cerr << "PaneStack::showOrHidePaneAccessories: count == " << getPaneCount() << std::endl; | 286 cerr << "PaneStack::showOrHidePaneAccessories: count == " << getPaneCount() << endl; |
287 | 287 |
288 bool multi = (getPaneCount() > 1); | 288 bool multi = (getPaneCount() > 1); |
289 for (std::vector<PaneRec>::iterator i = m_panes.begin(); | 289 for (std::vector<PaneRec>::iterator i = m_panes.begin(); |
290 i != m_panes.end(); ++i) { | 290 i != m_panes.end(); ++i) { |
291 i->xButton->setVisible(multi); | 291 i->xButton->setVisible(multi); |
333 return; | 333 return; |
334 } | 334 } |
335 ++i; | 335 ++i; |
336 } | 336 } |
337 | 337 |
338 std::cerr << "WARNING: PaneStack::hidePane(" << pane << "): Pane not found in visible panes" << std::endl; | 338 cerr << "WARNING: PaneStack::hidePane(" << pane << "): Pane not found in visible panes" << endl; |
339 } | 339 } |
340 | 340 |
341 void | 341 void |
342 PaneStack::showPane(Pane *pane) | 342 PaneStack::showPane(Pane *pane) |
343 { | 343 { |
357 return; | 357 return; |
358 } | 358 } |
359 ++i; | 359 ++i; |
360 } | 360 } |
361 | 361 |
362 std::cerr << "WARNING: PaneStack::showPane(" << pane << "): Pane not found in hidden panes" << std::endl; | 362 cerr << "WARNING: PaneStack::showPane(" << pane << "): Pane not found in hidden panes" << endl; |
363 } | 363 } |
364 | 364 |
365 void | 365 void |
366 PaneStack::setCurrentPane(Pane *pane) // may be null | 366 PaneStack::setCurrentPane(Pane *pane) // may be null |
367 { | 367 { |
396 | 396 |
397 if (found || pane == 0) { | 397 if (found || pane == 0) { |
398 m_currentPane = pane; | 398 m_currentPane = pane; |
399 emit currentPaneChanged(m_currentPane); | 399 emit currentPaneChanged(m_currentPane); |
400 } else { | 400 } else { |
401 std::cerr << "WARNING: PaneStack::setCurrentPane(" << pane << "): pane is not a visible pane in this stack" << std::endl; | 401 cerr << "WARNING: PaneStack::setCurrentPane(" << pane << "): pane is not a visible pane in this stack" << endl; |
402 } | 402 } |
403 } | 403 } |
404 | 404 |
405 void | 405 void |
406 PaneStack::setCurrentLayer(Pane *pane, Layer *layer) // may be null | 406 PaneStack::setCurrentLayer(Pane *pane, Layer *layer) // may be null |
600 remaining -= each; | 600 remaining -= each; |
601 } | 601 } |
602 } | 602 } |
603 | 603 |
604 /* | 604 /* |
605 std::cerr << "sizes: "; | 605 cerr << "sizes: "; |
606 for (int i = 0; i < sizes.size(); ++i) { | 606 for (int i = 0; i < sizes.size(); ++i) { |
607 std::cerr << sizes[i] << " "; | 607 cerr << sizes[i] << " "; |
608 } | 608 } |
609 std::cerr << std::endl; | 609 cerr << endl; |
610 */ | 610 */ |
611 | 611 |
612 m_splitter->setSizes(sizes); | 612 m_splitter->setSizes(sizes); |
613 } | 613 } |
614 | 614 |