diff layer/SpectrumLayer.h @ 592:a13aa5320221 sonification

Extends the audio feedback of the piano scale to the Spectrum layer (horizontal piano keyboard). Increase of the piano keyboard width (SpectrogramLayer) and height (SpectrumLayer) for layout purposes. A get method should be added to obtain the scale size parameter outside the layer class.
author mathieub <mathieu.barthet@eecs.qmul.ac.uk>
date Wed, 06 Jul 2011 18:05:42 +0100
parents 369a197737c7
children
line wrap: on
line diff
--- a/layer/SpectrumLayer.h	Fri Jun 24 16:42:48 2011 +0100
+++ b/layer/SpectrumLayer.h	Wed Jul 06 18:05:42 2011 +0100
@@ -45,6 +45,8 @@
 
     virtual QString getFeatureDescription(View *v, QPoint &) const;
 
+    //virtual int getHorizontalScaleHeight(View *, QPainter &) const;
+
     virtual void paint(View *v, QPainter &paint, QRect rect) const;
 
     virtual VerticalPosition getPreferredFrameCountPosition() const {
@@ -96,6 +98,8 @@
     virtual void toXml(QTextStream &stream, QString indent = "",
                        QString extraAttributes = "") const;
 
+    virtual bool scaleClicked(const View *, QMouseEvent *);
+
 protected slots:
     void preferenceChanged(PropertyContainer::PropertyName name);