comparison layer/Layer.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 241929c5d57c
children
comparison
equal deleted inserted replaced
591:0946feb81b79 592:a13aa5320221
127 127
128 virtual QString getLayerPresentationName() const; 128 virtual QString getLayerPresentationName() const;
129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); } 129 virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }
130 130
131 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; } 131 virtual int getVerticalScaleWidth(View *, QPainter &) const { return 0; }
132
133 //virtual int getHorizontalScaleHeight(View *, QPainter &) const { return 0; } //this causes the application to crash at startup?
134
132 virtual void paintVerticalScale(View *, QPainter &, QRect) const { } 135 virtual void paintVerticalScale(View *, QPainter &, QRect) const { }
133 136
134 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */, 137 virtual bool getCrosshairExtents(View *, QPainter &, QPoint /* cursorPos */,
135 std::vector<QRect> &) const { 138 std::vector<QRect> &) const {
136 return false; 139 return false;