summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/divecartesianaxis.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 11:15:57 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-15 11:15:57 -0800
commit6be62c1d90b064b1400dc3e76bc2a4c2f20904c5 (patch)
tree325b0e5eb768a01ec4e58d416aeacc1c39ebc5b6 /qt-ui/profile/divecartesianaxis.h
parent980737221d471bb73e50946de40b2b7e303f286b (diff)
downloadsubsurface-6be62c1d90b064b1400dc3e76bc2a4c2f20904c5.tar.gz
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>
Diffstat (limited to 'qt-ui/profile/divecartesianaxis.h')
-rw-r--r--qt-ui/profile/divecartesianaxis.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/profile/divecartesianaxis.h b/qt-ui/profile/divecartesianaxis.h
index d9b9e0b9e..cd359788b 100644
--- a/qt-ui/profile/divecartesianaxis.h
+++ b/qt-ui/profile/divecartesianaxis.h
@@ -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 {