Mercurial > hg > svgui
comparison layer/PaintAssistant.h @ 944:78c152e4db95
Merge from branch tonioni
author | Chris Cannam |
---|---|
date | Mon, 20 Apr 2015 09:12:17 +0100 |
parents | b66fb15de477 |
children | ee01a4062747 |
comparison
equal
deleted
inserted
replaced
896:78e041e45ff0 | 944:78c152e4db95 |
---|---|
25 { | 25 { |
26 public: | 26 public: |
27 enum Scale { LinearScale, MeterScale, dBScale }; | 27 enum Scale { LinearScale, MeterScale, dBScale }; |
28 | 28 |
29 static void paintVerticalLevelScale(QPainter &p, QRect rect, | 29 static void paintVerticalLevelScale(QPainter &p, QRect rect, |
30 float minVal, float maxVal, | 30 double minVal, double maxVal, |
31 Scale scale, int &multRtn, | 31 Scale scale, int &multRtn, |
32 std::vector<int> *markCoordRtns = 0); | 32 std::vector<int> *markCoordRtns = 0); |
33 | 33 |
34 static int getYForValue(Scale scale, float value, | 34 static int getYForValue(Scale scale, double value, |
35 float minVal, float maxVal, | 35 double minVal, double maxVal, |
36 int minY, int height); | 36 int minY, int height); |
37 }; | 37 }; |
38 | 38 |
39 #endif | 39 #endif |