Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
591:0946feb81b79 | 592:a13aa5320221 |
---|---|
42 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, | 42 virtual bool getCrosshairExtents(View *, QPainter &, QPoint cursorPos, |
43 std::vector<QRect> &extents) const; | 43 std::vector<QRect> &extents) const; |
44 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; | 44 virtual void paintCrosshairs(View *, QPainter &, QPoint) const; |
45 | 45 |
46 virtual QString getFeatureDescription(View *v, QPoint &) const; | 46 virtual QString getFeatureDescription(View *v, QPoint &) const; |
47 | |
48 //virtual int getHorizontalScaleHeight(View *, QPainter &) const; | |
47 | 49 |
48 virtual void paint(View *v, QPainter &paint, QRect rect) const; | 50 virtual void paint(View *v, QPainter &paint, QRect rect) const; |
49 | 51 |
50 virtual VerticalPosition getPreferredFrameCountPosition() const { | 52 virtual VerticalPosition getPreferredFrameCountPosition() const { |
51 return PositionTop; | 53 return PositionTop; |
94 bool getShowPeaks() const { return m_showPeaks; } | 96 bool getShowPeaks() const { return m_showPeaks; } |
95 | 97 |
96 virtual void toXml(QTextStream &stream, QString indent = "", | 98 virtual void toXml(QTextStream &stream, QString indent = "", |
97 QString extraAttributes = "") const; | 99 QString extraAttributes = "") const; |
98 | 100 |
101 virtual bool scaleClicked(const View *, QMouseEvent *); | |
102 | |
99 protected slots: | 103 protected slots: |
100 void preferenceChanged(PropertyContainer::PropertyName name); | 104 void preferenceChanged(PropertyContainer::PropertyName name); |
101 | 105 |
102 protected: | 106 protected: |
103 // make this SliceLayer method unavailable to the general public | 107 // make this SliceLayer method unavailable to the general public |