Mercurial > hg > svgui
diff layer/ImageLayer.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 |
line wrap: on
line diff
--- a/layer/ImageLayer.cpp Thu May 12 17:31:43 2011 +0100 +++ b/layer/ImageLayer.cpp Mon May 16 17:19:25 2011 +0100 @@ -127,7 +127,7 @@ { if (!m_model) return ImageModel::PointList(); -// std::cerr << "ImageLayer::getLocalPoints(" << x << "," << y << "):"; +// DEBUG << "ImageLayer::getLocalPoints(" << x << "," << y << "):"; const ImageModel::PointList &points(m_model->getPoints()); ImageModel::PointList rv; @@ -155,7 +155,7 @@ int width = 32; if (m_scaled[v].find(p.image) != m_scaled[v].end()) { width = m_scaled[v][p.image].width(); -// std::cerr << "scaled width = " << width << std::endl; +// DEBUG << "scaled width = " << width << endl; } if (x >= px && x < px + width) { @@ -521,8 +521,8 @@ { bool need = false; -// std::cerr << "ImageLayer::getImage(" << v << ", " << name << ", (" -// << maxSize.width() << "x" << maxSize.height() << "))" << std::endl; +// DEBUG << "ImageLayer::getImage(" << v << ", " << name << ", (" +// << maxSize.width() << "x" << maxSize.height() << "))" << endl; if (!m_scaled[v][name].isNull() && ((m_scaled[v][name].width() == maxSize.width() && @@ -558,10 +558,10 @@ void ImageLayer::drawStart(View *v, QMouseEvent *e) { -// std::cerr << "ImageLayer::drawStart(" << e->x() << "," << e->y() << ")" << std::endl; +// DEBUG << "ImageLayer::drawStart(" << e->x() << "," << e->y() << ")" << endl; if (!m_model) { - std::cerr << "ImageLayer::drawStart: no model" << std::endl; + DEBUG << "ImageLayer::drawStart: no model" << endl; return; } @@ -582,7 +582,7 @@ void ImageLayer::drawDrag(View *v, QMouseEvent *e) { -// std::cerr << "ImageLayer::drawDrag(" << e->x() << "," << e->y() << ")" << std::endl; +// DEBUG << "ImageLayer::drawDrag(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; @@ -598,7 +598,7 @@ void ImageLayer::drawEnd(View *v, QMouseEvent *) { -// std::cerr << "ImageLayer::drawEnd(" << e->x() << "," << e->y() << ")" << std::endl; +// DEBUG << "ImageLayer::drawEnd(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; bool ok = false; @@ -644,7 +644,7 @@ void ImageLayer::editStart(View *v, QMouseEvent *e) { -// std::cerr << "ImageLayer::editStart(" << e->x() << "," << e->y() << ")" << std::endl; +// DEBUG << "ImageLayer::editStart(" << e->x() << "," << e->y() << ")" << endl; if (!m_model) return; @@ -686,7 +686,7 @@ void ImageLayer::editEnd(View *, QMouseEvent *) { -// std::cerr << "ImageLayer::editEnd(" << e->x() << "," << e->y() << ")" << std::endl; +// DEBUG << "ImageLayer::editEnd(" << e->x() << "," << e->y() << ")" << endl; if (!m_model || !m_editing) return; if (m_editingCommand) { @@ -906,7 +906,7 @@ void ImageLayer::checkAddSource(QString img) const { - std::cerr << "ImageLayer::checkAddSource(" << img << "): yes, trying..." << std::endl; + DEBUG << "ImageLayer::checkAddSource(" << img << "): yes, trying..." << endl; if (m_fileSources.find(img) != m_fileSources.end()) { return; @@ -938,7 +938,7 @@ void ImageLayer::fileSourceReady() { -// std::cerr << "ImageLayer::fileSourceReady" << std::endl; +// DEBUG << "ImageLayer::fileSourceReady" << endl; FileSource *rf = dynamic_cast<FileSource *>(sender()); if (!rf) return;