Loading...
Searching...
No Matches
qwt_date_scale_draw.h
/******************************************************************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
*****************************************************************************/
#ifndef QWT_DATE_SCALE_DRAW_H
#define QWT_DATE_SCALE_DRAW_H
#include "qwt_global.h"
#include "qwt_scale_draw.h"
#include "qwt_date.h"
class QWT_EXPORT QwtDateScaleDraw : public QwtScaleDraw
{
public:
explicit QwtDateScaleDraw( Qt::TimeSpec = Qt::LocalTime );
virtual ~QwtDateScaleDraw();
void setDateFormat( QwtDate::IntervalType, const QString& );
QString dateFormat( QwtDate::IntervalType ) const;
void setTimeSpec( Qt::TimeSpec );
Qt::TimeSpec timeSpec() const;
void setUtcOffset( int seconds );
int utcOffset() const;
void setWeek0Type( QwtDate::Week0Type );
QwtDate::Week0Type week0Type() const;
virtual QwtText label( double ) const QWT_OVERRIDE;
QDateTime toDateTime( double ) const;
protected:
virtual QwtDate::IntervalType
intervalType( const QwtScaleDiv& ) const;
virtual QString dateFormatOfDate( const QDateTime&,
QwtDate::IntervalType ) const;
private:
class PrivateData;
PrivateData* m_data;
};
#endif
QwtAbstractScaleDraw::label
virtual QwtText label(double) const
Convert a value into its representing label.
Definition qwt_abstract_scale_draw.cpp:375
QwtDate::Week0Type
Week0Type
Definition qwt_date.h:50
QwtDate::IntervalType
IntervalType
Definition qwt_date.h:76
QwtDateScaleDraw
A class for drawing datetime scales.
Definition qwt_date_scale_draw.h:53
QwtScaleDiv
A class representing a scale division.
Definition qwt_scale_div.h:34
QwtScaleDraw
A class for drawing scales.
Definition qwt_scale_draw.h:36
QwtText
A class representing a text.
Definition qwt_text.h:52