Mercurial > hg > svgui
comparison widgets/InteractiveFileFinder.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 |
---|---|
33 InteractiveFileFinder::m_instance; | 33 InteractiveFileFinder::m_instance; |
34 | 34 |
35 InteractiveFileFinder::InteractiveFileFinder() : | 35 InteractiveFileFinder::InteractiveFileFinder() : |
36 m_lastLocatedLocation("") | 36 m_lastLocatedLocation("") |
37 { | 37 { |
38 std::cerr << "Registering interactive file finder" << std::endl; | 38 DEBUG << "Registering interactive file finder" << endl; |
39 FileFinder::registerFileFinder(this); | 39 FileFinder::registerFileFinder(this); |
40 } | 40 } |
41 | 41 |
42 InteractiveFileFinder::~InteractiveFileFinder() | 42 InteractiveFileFinder::~InteractiveFileFinder() |
43 { | 43 { |
381 QString | 381 QString |
382 InteractiveFileFinder::find(FileType type, QString location, QString lastKnownLocation) | 382 InteractiveFileFinder::find(FileType type, QString location, QString lastKnownLocation) |
383 { | 383 { |
384 if (FileSource::canHandleScheme(location)) { | 384 if (FileSource::canHandleScheme(location)) { |
385 if (FileSource(location).isAvailable()) { | 385 if (FileSource(location).isAvailable()) { |
386 std::cerr << "InteractiveFileFinder::find: ok, it's available... returning" << std::endl; | 386 DEBUG << "InteractiveFileFinder::find: ok, it's available... returning" << endl; |
387 return location; | 387 return location; |
388 } | 388 } |
389 } | 389 } |
390 | 390 |
391 if (QFileInfo(location).exists()) return location; | 391 if (QFileInfo(location).exists()) return location; |
406 QString | 406 QString |
407 InteractiveFileFinder::findRelative(QString location, QString relativeTo) | 407 InteractiveFileFinder::findRelative(QString location, QString relativeTo) |
408 { | 408 { |
409 if (relativeTo == "") return ""; | 409 if (relativeTo == "") return ""; |
410 | 410 |
411 std::cerr << "Looking for \"" << location << "\" next to \"" | 411 DEBUG << "Looking for \"" << location << "\" next to \"" |
412 << relativeTo << "\"..." << std::endl; | 412 << relativeTo << "\"..." << endl; |
413 | 413 |
414 QString fileName; | 414 QString fileName; |
415 QString resolved; | 415 QString resolved; |
416 | 416 |
417 if (FileSource::isRemote(location)) { | 417 if (FileSource::isRemote(location)) { |