comparison widgets/Pane.cpp @ 48:97b0643bd799

* A bit more work on main window / document / commands stuff. This is still pretty unstable. * Enable CSV file reader also to read files with other separators (e.g. .lab files with space separators) * Show "(R)" on waveform display when resampling during playback * Add ability to import additional audio files (can't process them yet) * Fixes to spectrogram cache for multiple views * Fix to avoid floating-point exception in sparse model when resolution not set yet
author Chris Cannam
date Mon, 06 Mar 2006 17:20:25 +0000
parents ad214997dddb
children 2818ec5d1985
comparison
equal deleted inserted replaced
47:2e2ad8510e52 48:97b0643bd799
298 } 298 }
299 paint.drawText(x, y, text); 299 paint.drawText(x, y, text);
300 300
301 if (waveformModel) { 301 if (waveformModel) {
302 302
303 QString desc = tr("%1 / %2Hz") 303 QString desc = tr("%1 / %2Hz%3")
304 .arg(RealTime::frame2RealTime(waveformModel->getEndFrame(), 304 .arg(RealTime::frame2RealTime(waveformModel->getEndFrame(),
305 waveformModel->getSampleRate()) 305 sampleRate)
306 .toText(false).c_str()) 306 .toText(false).c_str())
307 .arg(waveformModel->getSampleRate()); 307 .arg(sampleRate)
308 .arg((m_manager &&
309 sampleRate != m_manager->getPlaybackSampleRate()) ? " (R)" : "");
308 310
309 paint.drawText(width() - paint.fontMetrics().width(desc) - 5, 311 paint.drawText(width() - paint.fontMetrics().width(desc) - 5,
310 height() - paint.fontMetrics().height() + 312 height() - paint.fontMetrics().height() +
311 paint.fontMetrics().ascent() - 6, 313 paint.fontMetrics().ascent() - 6,
312 desc); 314 desc);