Qwt User's Guide 6.1.0

- Main Page
- Related Pages
- Classes

All Classes Functions Variables Typedefs Enumerations Enumerator Pages
qwt_date_scale_draw.h
1 #ifndef _QWT_DATE_SCALE_DRAW_H_
2 #define _QWT_DATE_SCALE_DRAW_H_ 1
3
4 #include "qwt_global.h"
5 #include "qwt_scale_draw.h"
6 #include "qwt_date.h"
7
43 class QWT_EXPORT QwtDateScaleDraw: public QwtScaleDraw
44 {
45 public:
46 QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime );
47 virtual ~QwtDateScaleDraw();
48
49 void setDateFormat( QwtDate::IntervalType, const QString & );
50 QString dateFormat( QwtDate::IntervalType ) const;
51
52 void setTimeSpec( Qt::TimeSpec );
53 Qt::TimeSpec timeSpec() const;
54
55 void setUtcOffset( int seconds );
56 int utcOffset() const;
57
58 void setWeek0Type( QwtDate::Week0Type );
59 QwtDate::Week0Type week0Type() const;
60
61 virtual QwtText label( double ) const;
62
63 QDateTime toDateTime( double ) const;
64
65 protected:
66 virtual QwtDate::IntervalType
67 intervalType( const QwtScaleDiv & ) const;
68
69 virtual QString dateFormatOfDate( const QDateTime &,
70 QwtDate::IntervalType ) const;
71
72 private:
73 class PrivateData;
74 PrivateData *d_data;
75 };
76
77 #endif