Mercurial > hg > svgui
comparison layer/FlexiNoteLayer.h @ 656:902c7c9d77ea tonioni
vertical scale adapts to note range
author | matthiasm |
---|---|
date | Wed, 19 Jun 2013 22:05:45 +0100 |
parents | c572a0705223 |
children | 050404ae7799 |
comparison
equal
deleted
inserted
replaced
655:c572a0705223 | 656:902c7c9d77ea |
---|---|
140 virtual void toXml(QTextStream &stream, QString indent = "", | 140 virtual void toXml(QTextStream &stream, QString indent = "", |
141 QString extraAttributes = "") const; | 141 QString extraAttributes = "") const; |
142 | 142 |
143 void setProperties(const QXmlAttributes &attributes); | 143 void setProperties(const QXmlAttributes &attributes); |
144 | 144 |
145 void setVerticalRangeToNoteRange(); | 145 void setVerticalRangeToNoteRange(View *v); |
146 | 146 |
147 protected: | 147 protected: |
148 void getScaleExtents(View *, float &min, float &max, bool &log) const; | 148 void getScaleExtents(View *, float &min, float &max, bool &log) const; |
149 int getYForValue(View *v, float value) const; | 149 int getYForValue(View *v, float value) const; |
150 float getValueForY(View *v, int y) const; | 150 float getValueForY(View *v, int y) const; |