Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 583:4c484636d5ec
Record and show any error that occurs during layer processing (e.g. spectrogram layer runs out of disc space for feature files)
author | Chris Cannam |
---|---|
date | Thu, 14 Apr 2011 15:21:21 +0100 |
parents | 9fc13f61ae74 |
children | 1fe7951a61e8 |
comparison
equal
deleted
inserted
replaced
582:bde4aa56862b | 583:4c484636d5ec |
---|---|
2903 std::cerr << "SpectrogramLayer::getCompletion: completion = " << completion << std::endl; | 2903 std::cerr << "SpectrogramLayer::getCompletion: completion = " << completion << std::endl; |
2904 #endif | 2904 #endif |
2905 return completion; | 2905 return completion; |
2906 } | 2906 } |
2907 | 2907 |
2908 QString | |
2909 SpectrogramLayer::getError(View *v) const | |
2910 { | |
2911 if (m_fftModels.find(v) == m_fftModels.end()) return ""; | |
2912 return m_fftModels[v].first->getError(); | |
2913 } | |
2914 | |
2908 bool | 2915 bool |
2909 SpectrogramLayer::getValueExtents(float &min, float &max, | 2916 SpectrogramLayer::getValueExtents(float &min, float &max, |
2910 bool &logarithmic, QString &unit) const | 2917 bool &logarithmic, QString &unit) const |
2911 { | 2918 { |
2912 if (!m_model) return false; | 2919 if (!m_model) return false; |