Mercurial > hg > svgui
comparison view/ViewManager.cpp @ 585:f4960f8ce798 debug-output
Convert many cerrs to DEBUGs
author | Chris Cannam |
---|---|
date | Mon, 16 May 2011 17:19:25 +0100 |
parents | 1fe7951a61e8 |
children | 4806715f7a19 |
comparison
equal
deleted
inserted
replaced
584:1fe7951a61e8 | 585:f4960f8ce798 |
---|---|
497 PlaybackFollowMode mode) | 497 PlaybackFollowMode mode) |
498 { | 498 { |
499 View *v = dynamic_cast<View *>(sender()); | 499 View *v = dynamic_cast<View *>(sender()); |
500 | 500 |
501 #ifdef DEBUG_VIEW_MANAGER | 501 #ifdef DEBUG_VIEW_MANAGER |
502 std::cerr << "ViewManager::viewCentreFrameChanged(" << f << ", " << locked << ", " << mode << "), view is " << v << std::endl; | 502 DEBUG << "ViewManager::viewCentreFrameChanged(" << f << ", " << locked << ", " << mode << "), view is " << v << endl; |
503 #endif | 503 #endif |
504 | 504 |
505 if (locked) { | 505 if (locked) { |
506 m_globalCentreFrame = f; | 506 m_globalCentreFrame = f; |
507 emit globalCentreFrameChanged(f); | 507 emit globalCentreFrameChanged(f); |
554 ViewManager::viewZoomLevelChanged(unsigned long z, bool locked) | 554 ViewManager::viewZoomLevelChanged(unsigned long z, bool locked) |
555 { | 555 { |
556 View *v = dynamic_cast<View *>(sender()); | 556 View *v = dynamic_cast<View *>(sender()); |
557 | 557 |
558 if (!v) { | 558 if (!v) { |
559 std::cerr << "ViewManager::viewZoomLevelChanged: WARNING: sender is not a view" << std::endl; | 559 DEBUG << "ViewManager::viewZoomLevelChanged: WARNING: sender is not a view" << endl; |
560 return; | 560 return; |
561 } | 561 } |
562 | 562 |
563 //!!! emit zoomLevelChanged(); | 563 //!!! emit zoomLevelChanged(); |
564 | 564 |