Mercurial > hg > svgui
diff view/ViewManager.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 | 77fa3fdbfc7e |
children | 917039d333bb d8fc9659a206 |
line wrap: on
line diff
--- a/view/ViewManager.cpp Tue Nov 26 11:16:45 2013 +0000 +++ b/view/ViewManager.cpp Tue Nov 26 14:06:40 2013 +0000 @@ -70,18 +70,18 @@ if (getGlobalDarkBackground()) { /* - std::cerr << "dark palette:" << std::endl; - std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << std::endl; - std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << std::endl; - std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << std::endl; - std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << std::endl; - std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << std::endl; - std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << std::endl; - std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << std::endl; - std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << std::endl; - std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << std::endl; - std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << std::endl; - std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << std::endl; + cerr << "dark palette:" << endl; + cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << endl; + cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << endl; + cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << endl; + cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << endl; + cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << endl; + cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << endl; + cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << endl; + cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << endl; + cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << endl; + cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << endl; + cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << endl; */ m_lightPalette = QPalette(QColor("#000000"), // WindowText QColor("#dddfe4"), // Button @@ -96,18 +96,18 @@ } else { /* - std::cerr << "light palette:" << std::endl; - std::cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << std::endl; - std::cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << std::endl; - std::cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << std::endl; - std::cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << std::endl; - std::cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << std::endl; - std::cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << std::endl; - std::cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << std::endl; - std::cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << std::endl; - std::cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << std::endl; - std::cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << std::endl; - std::cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << std::endl; + cerr << "light palette:" << endl; + cerr << "window = " << QApplication::palette().color(QPalette::Window).name() << endl; + cerr << "windowtext = " << QApplication::palette().color(QPalette::WindowText).name() << endl; + cerr << "base = " << QApplication::palette().color(QPalette::Base).name() << endl; + cerr << "alternatebase = " << QApplication::palette().color(QPalette::AlternateBase).name() << endl; + cerr << "text = " << QApplication::palette().color(QPalette::Text).name() << endl; + cerr << "button = " << QApplication::palette().color(QPalette::Button).name() << endl; + cerr << "buttontext = " << QApplication::palette().color(QPalette::ButtonText).name() << endl; + cerr << "brighttext = " << QApplication::palette().color(QPalette::BrightText).name() << endl; + cerr << "light = " << QApplication::palette().color(QPalette::Light).name() << endl; + cerr << "dark = " << QApplication::palette().color(QPalette::Dark).name() << endl; + cerr << "mid = " << QApplication::palette().color(QPalette::Mid).name() << endl; */ m_darkPalette = QPalette(QColor("#ffffff"), // WindowText QColor("#3e3e3e"), // Button @@ -129,7 +129,7 @@ ViewManager::getGlobalCentreFrame() const { #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::getGlobalCentreFrame: returning " << m_globalCentreFrame << std::endl; + cerr << "ViewManager::getGlobalCentreFrame: returning " << m_globalCentreFrame << endl; #endif return m_globalCentreFrame; } @@ -138,7 +138,7 @@ ViewManager::setGlobalCentreFrame(unsigned long f) { #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::setGlobalCentreFrame to " << f << std::endl; + cerr << "ViewManager::setGlobalCentreFrame to " << f << endl; #endif m_globalCentreFrame = f; emit globalCentreFrameChanged(f); @@ -148,7 +148,7 @@ ViewManager::getGlobalZoom() const { #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::getGlobalZoom: returning " << m_globalZoom << std::endl; + cerr << "ViewManager::getGlobalZoom: returning " << m_globalZoom << endl; #endif return m_globalZoom; } @@ -473,7 +473,7 @@ m_playbackFrame = m_playSource->getCurrentPlayingFrame(); #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::checkPlayStatus: Playing, frame " << m_playbackFrame << ", levels " << m_lastLeft << "," << m_lastRight << std::endl; + cerr << "ViewManager::checkPlayStatus: Playing, frame " << m_playbackFrame << ", levels " << m_lastLeft << "," << m_lastRight << endl; #endif emit playbackFrameChanged(m_playbackFrame); @@ -491,7 +491,7 @@ } #ifdef DEBUG_VIEW_MANAGER -// std::cerr << "ViewManager::checkPlayStatus: Not playing" << std::endl; +// cerr << "ViewManager::checkPlayStatus: Not playing" << endl; #endif } } @@ -509,7 +509,7 @@ View *v = dynamic_cast<View *>(sender()); #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::viewCentreFrameChanged(" << f << ", " << locked << ", " << mode << "), view is " << v << std::endl; + cerr << "ViewManager::viewCentreFrameChanged(" << f << ", " << locked << ", " << mode << "), view is " << v << endl; #endif if (locked) { @@ -538,7 +538,7 @@ ViewManager::seek(unsigned long f) { #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::seek(" << f << ")" << std::endl; + cerr << "ViewManager::seek(" << f << ")" << endl; #endif if (m_playSource && m_playSource->isPlaying()) { @@ -548,7 +548,7 @@ m_playbackFrame = f; m_playSource->play(f); #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::considerSeek: reseeking from " << playFrame << " to " << f << std::endl; + cerr << "ViewManager::considerSeek: reseeking from " << playFrame << " to " << f << endl; #endif emit playbackFrameChanged(f); } @@ -577,7 +577,7 @@ } #ifdef DEBUG_VIEW_MANAGER - std::cerr << "ViewManager::viewZoomLevelChanged(" << v << ", " << z << ", " << locked << ")" << std::endl; + cerr << "ViewManager::viewZoomLevelChanged(" << v << ", " << z << ", " << locked << ")" << endl; #endif emit viewZoomLevelChanged(v, z, locked);