Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 101:0f36cdf407a6 sv1-v0.9rc1
* Make vertical scale alignment modes work in note layer as well as time-value
layer, and several significant fixes to it
* Make it possible to draw notes properly on the note layer
* Show units (and frequencies etc in note layer's case) in the time-value and
note layer description boxes
* Minor fix to item edit dialog layout
* Some minor menu rearrangement
* Comment out a lot of debug output
* Add SV website and reference URLs to Help menu, and add code to (attempt to)
open them in the user's preferred browser
author | Chris Cannam |
---|---|
date | Fri, 12 May 2006 14:40:43 +0000 |
parents | 4b98bda7e94d |
children | 47cb32bb35ab |
comparison
equal
deleted
inserted
replaced
100:0db5e7492ce8 | 101:0f36cdf407a6 |
---|---|
310 } | 310 } |
311 | 311 |
312 void | 312 void |
313 WaveformLayer::setChannel(int channel) | 313 WaveformLayer::setChannel(int channel) |
314 { | 314 { |
315 std::cerr << "WaveformLayer::setChannel(" << channel << ")" << std::endl; | 315 // std::cerr << "WaveformLayer::setChannel(" << channel << ")" << std::endl; |
316 | 316 |
317 if (m_channel == channel) return; | 317 if (m_channel == channel) return; |
318 m_channel = channel; | 318 m_channel = channel; |
319 m_cacheValid = false; | 319 m_cacheValid = false; |
320 emit layerParametersChanged(); | 320 emit layerParametersChanged(); |
346 if (m_model->isReady(&completion)) return 100; | 346 if (m_model->isReady(&completion)) return 100; |
347 return completion; | 347 return completion; |
348 } | 348 } |
349 | 349 |
350 bool | 350 bool |
351 WaveformLayer::getValueExtents(float &min, float &max, QString &unit) const | 351 WaveformLayer::getValueExtents(float &min, float &max, |
352 bool &log, QString &unit) const | |
352 { | 353 { |
353 if (m_scale == LinearScale) { | 354 if (m_scale == LinearScale) { |
354 min = 0.0; | 355 min = 0.0; |
355 max = 1.0; | 356 max = 1.0; |
356 unit = "V"; | 357 unit = "V"; |