Make font label scale a per axis property

This way the partial pressure graph can have smaller pressure labels than
all the other labels on the profile.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-02-15 11:15:57 -08:00
parent 980737221d
commit 6be62c1d90
3 changed files with 20 additions and 3 deletions

View file

@ -19,16 +19,18 @@ public:
enum Orientation{TopToBottom, BottomToTop, LeftToRight, RightToLeft};
DiveCartesianAxis();
virtual ~DiveCartesianAxis();
void setup(double minimum, double maximum, double interval, Orientation o, qreal tickSize, const QPointF& pos);
void setup(double minimum, double maximum, double interval, double labelFontScale, Orientation o, qreal tickSize, const QPointF& pos);
void setMinimum(double minimum);
void setMaximum(double maximum);
void setTickInterval(double interval);
void setOrientation(Orientation orientation);
void setTickSize(qreal size);
void setFontLabelScale(qreal scale);
double minimum() const;
double maximum() const;
double tickInterval() const;
double tickSize() const;
double fontLabelScale() const;
qreal valueAt(const QPointF& p) const;
qreal percentAt(const QPointF& p);
qreal posAtValue(qreal value);
@ -54,6 +56,7 @@ protected:
double tick_size;
QColor textColor;
bool textVisibility;
double labelScale;
};
class DepthAxis : public DiveCartesianAxis {