comparison layer/PaintAssistant.h @ 220:8dc50f57d480

* Make the vertical scale a bit less thtoopid for many linear scale spectra * Don't forget to reload slice layer properties when loading a session, as well as spectrum layer (i.e. subclass) properties
author Chris Cannam
date Mon, 05 Mar 2007 13:04:52 +0000
parents 4a3bdde1ef13
children b66fb15de477
comparison
equal deleted inserted replaced
219:1fff998ae4a9 220:8dc50f57d480
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 float minVal, float maxVal,
31 Scale scale, 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, float value,
35 float minVal, float maxVal, 35 float minVal, float maxVal,
36 int minY, int height); 36 int minY, int height);