Mercurial > hg > svgui
comparison layer/SpectrogramLayer.cpp @ 112:43b1ca9647e1
* Exceptions for file read etc
author | Chris Cannam |
---|---|
date | Wed, 28 Jun 2006 15:42:04 +0000 |
parents | ab55c427e068 |
children | 7a23edd831cb |
comparison
equal
deleted
inserted
replaced
111:ab55c427e068 | 112:43b1ca9647e1 |
---|---|
54 m_colourScheme(DefaultColours), | 54 m_colourScheme(DefaultColours), |
55 m_frequencyScale(LinearFrequencyScale), | 55 m_frequencyScale(LinearFrequencyScale), |
56 m_binDisplay(AllBins), | 56 m_binDisplay(AllBins), |
57 m_normalizeColumns(false), | 57 m_normalizeColumns(false), |
58 m_fftServer(0), | 58 m_fftServer(0), |
59 // m_fftServerChanged(true), | |
60 m_updateTimer(0), | 59 m_updateTimer(0), |
61 m_candidateFillStartFrame(0), | 60 m_candidateFillStartFrame(0), |
62 m_lastFillExtent(0), | 61 m_lastFillExtent(0), |
63 m_exiting(false) | 62 m_exiting(false) |
64 { | 63 { |
175 { | 174 { |
176 if (name == "Colour") return tr("Colour"); | 175 if (name == "Colour") return tr("Colour"); |
177 if (name == "Colour Scale") return tr("Colour Scale"); | 176 if (name == "Colour Scale") return tr("Colour Scale"); |
178 if (name == "Window Type") return tr("Window Type"); | 177 if (name == "Window Type") return tr("Window Type"); |
179 if (name == "Window Size") return tr("Window Size"); | 178 if (name == "Window Size") return tr("Window Size"); |
180 if (name == "Window Increment") return tr("Window Increment"); | 179 if (name == "Window Increment") return tr("Window Overlap"); |
181 if (name == "Normalize Columns") return tr("Normalize Columns"); | 180 if (name == "Normalize Columns") return tr("Normalize Columns"); |
182 if (name == "Bin Display") return tr("Bin Display"); | 181 if (name == "Bin Display") return tr("Bin Display"); |
183 if (name == "Threshold") return tr("Threshold"); | 182 if (name == "Threshold") return tr("Threshold"); |
184 if (name == "Gain") return tr("Gain"); | 183 if (name == "Gain") return tr("Gain"); |
185 if (name == "Colour Rotation") return tr("Colour Rotation"); | 184 if (name == "Colour Rotation") return tr("Colour Rotation"); |
401 return QString("%1").arg(32 << value); | 400 return QString("%1").arg(32 << value); |
402 } | 401 } |
403 if (name == "Window Increment") { | 402 if (name == "Window Increment") { |
404 switch (value) { | 403 switch (value) { |
405 default: | 404 default: |
406 case 0: return tr("1/1"); | 405 case 0: return tr("None"); |
407 case 1: return tr("3/4"); | 406 case 1: return tr("25 %"); |
408 case 2: return tr("1/2"); | 407 case 2: return tr("50 %"); |
409 case 3: return tr("1/4"); | 408 case 3: return tr("75 %"); |
410 case 4: return tr("1/8"); | 409 case 4: return tr("87.5 %"); |
411 case 5: return tr("1/16"); | 410 case 5: return tr("93.75 %"); |
412 } | 411 } |
413 } | 412 } |
414 if (name == "Zero Padding") { | 413 if (name == "Zero Padding") { |
415 if (value == 0) return tr("None"); | 414 if (value == 0) return tr("None"); |
416 return QString("%1x").arg(value + 1); | 415 return QString("%1x").arg(value + 1); |