Mercurial > hg > svgui
comparison layer/TimeValueLayer.cpp @ 67:c4fff27cd651
* Add auto-normalize option to waveform layer
* Various fixes to display of dB/metered levels in waveform layer.  Still need
  to fix to ensure they don't waste half the display
* Add mix channels option to waveform layer
* Use multiple transforms menus, one per transform type -- not sure about this
* Give centroid plugin two outputs, for log and linear frequency weightings
* Show scale units from plugin in time-value display
| author | Chris Cannam | 
|---|---|
| date | Wed, 29 Mar 2006 12:35:17 +0000 | 
| parents | e9eac9368e29 | 
| children | 193b569a975f | 
   comparison
  equal
  deleted
  inserted
  replaced
| 66:e9eac9368e29 | 67:c4fff27cd651 | 
|---|---|
| 36 m_model(0), | 36 m_model(0), | 
| 37 m_editing(false), | 37 m_editing(false), | 
| 38 m_originalPoint(0, 0.0, tr("New Point")), | 38 m_originalPoint(0, 0.0, tr("New Point")), | 
| 39 m_editingPoint(0, 0.0, tr("New Point")), | 39 m_editingPoint(0, 0.0, tr("New Point")), | 
| 40 m_editingCommand(0), | 40 m_editingCommand(0), | 
| 41 m_colour(Qt::black), | 41 m_colour(Qt::darkGreen), | 
| 42 m_plotStyle(PlotConnectedPoints), | 42 m_plotStyle(PlotConnectedPoints), | 
| 43 m_verticalScale(LinearScale) | 43 m_verticalScale(LinearScale) | 
| 44 { | 44 { | 
| 45 | 45 | 
| 46 } | 46 } | 
| 644 y - paint.fontMetrics().height() + paint.fontMetrics().ascent(), | 644 y - paint.fontMetrics().height() + paint.fontMetrics().ascent(), | 
| 645 label); | 645 label); | 
| 646 val += inc; | 646 val += inc; | 
| 647 } | 647 } | 
| 648 | 648 | 
| 649 if (m_model->getScaleUnits() != "") { | |
| 650 paint.drawText(5, 5 + paint.fontMetrics().ascent(), | |
| 651 m_model->getScaleUnits()); | |
| 652 } | |
| 649 } | 653 } | 
| 650 | 654 | 
| 651 void | 655 void | 
| 652 TimeValueLayer::drawStart(View *v, QMouseEvent *e) | 656 TimeValueLayer::drawStart(View *v, QMouseEvent *e) | 
| 653 { | 657 { | 
