Qwt User's Guide 6.1.1

- 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
QwtDate::IntervalType
IntervalType
Definition: qwt_date.h:75
QwtScaleDraw
A class for drawing scales.
Definition: qwt_scale_draw.h:31
QwtText
A class representing a text.
Definition: qwt_text.h:51
QwtScaleDiv
A class representing a scale division.
Definition: qwt_scale_div.h:36
QwtAbstractScaleDraw::label
virtual QwtText label(double) const
Convert a value into its representing label.
Definition: qwt_abstract_scale_draw.cpp:374
QwtDateScaleDraw
A class for drawing datetime scales.
Definition: qwt_date_scale_draw.h:43
QwtDate::Week0Type
Week0Type
Definition: qwt_date.h:49