comparison view/Pane.cpp @ 223:403bfb88d8d6

* Add display of selection extents in status bar when dragging a selection * Some build fixes after that i18n update
author Chris Cannam
date Wed, 07 Mar 2007 18:00:49 +0000
parents cd81066ac7ad
children 9465b5375235
comparison
equal deleted inserted replaced
222:cd81066ac7ad 223:403bfb88d8d6
382 if (e) { 382 if (e) {
383 paint.setClipRect(r); 383 paint.setClipRect(r);
384 } 384 }
385 385
386 const Model *waveformModel = 0; // just for reporting purposes 386 const Model *waveformModel = 0; // just for reporting purposes
387 int verticalScaleWidth = 0;
388 387
389 int fontHeight = paint.fontMetrics().height(); 388 int fontHeight = paint.fontMetrics().height();
390 int fontAscent = paint.fontMetrics().ascent(); 389 int fontAscent = paint.fontMetrics().ascent();
391 390
392 if (m_manager && 391 if (m_manager &&
594 sampleRate) 593 sampleRate)
595 .toText(false).c_str()) 594 .toText(false).c_str())
596 .arg(modelRate) 595 .arg(modelRate)
597 .arg(srNote); 596 .arg(srNote);
598 597
599 if (r.x() < verticalScaleWidth + 5 + paint.fontMetrics().width(desc)) { 598 if (r.x() < m_scaleWidth + 5 + paint.fontMetrics().width(desc)) {
600 drawVisibleText(paint, verticalScaleWidth + 5, 599 drawVisibleText(paint, m_scaleWidth + 5,
601 height() - fontHeight + fontAscent - 6, 600 height() - fontHeight + fontAscent - 6,
602 desc, OutlinedText); 601 desc, OutlinedText);
603 } 602 }
604 } 603 }
605 604