repository for casafeather app
Source
xxxxxxxxxx
22
22
//# 520 Edgemont Road
23
23
//# Charlottesville, VA 22903-2475 USA
24
24
//#
25
25
26
26
#ifndef ExternalAxis_H_
27
27
#define ExternalAxis_H_
28
28
29
29
#include <qwt/qwt_scale_draw.h>
30
30
31
31
class QPainter;
32
+
class QPen;
32
33
33
34
namespace casa {
34
35
35
36
/**
36
37
* Overrides methods of QwtScaleDraw so that the axis can be enabled
37
38
* (supported) but the one drawn by the plot will take up no space and
38
39
* be invisible so that we can draw our own.
39
40
*/
40
41
class ExternalAxis : public QwtScaleDraw {
41
42
public:
42
43
ExternalAxis( );
43
44
virtual void draw(QPainter* painter, const QPalette& palette) const;
45
+
#if QWT_VERSION >= 0x060000
46
+
virtual double extent( const QFont& font ) const;
47
+
#else
44
48
virtual int extent( const QPen& pen, const QFont& font ) const;
49
+
#endif
45
50
virtual ~ExternalAxis();
46
51
47
52
};
48
53
49
54
} /* namespace casa */
50
55
#endif /* ExternalAxis_H_ */