Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
qwt
src
qwt_date_scale_draw.h
Go to the documentation of this file.
1
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2
* Qwt Widget Library
3
* Copyright (C) 1997 Josef Wilgen
4
* Copyright (C) 2002 Uwe Rathmann
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the Qwt License, Version 1.0
8
*****************************************************************************/
9
10
#ifndef _QWT_DATE_SCALE_DRAW_H_
11
#define _QWT_DATE_SCALE_DRAW_H_ 1
12
13
#include "
qwt_global.h
"
14
#include "
qwt_scale_draw.h
"
15
#include "
qwt_date.h
"
16
52
class
QWT_EXPORT
QwtDateScaleDraw
:
public
QwtScaleDraw
53
{
54
public
:
55
explicit
QwtDateScaleDraw
( Qt::TimeSpec = Qt::LocalTime );
56
virtual
~
QwtDateScaleDraw
();
57
58
void
setDateFormat(
QwtDate::IntervalType
,
const
QString & );
59
QString dateFormat(
QwtDate::IntervalType
)
const
;
60
61
void
setTimeSpec( Qt::TimeSpec );
62
Qt::TimeSpec timeSpec()
const
;
63
64
void
setUtcOffset(
int
seconds
);
65
int
utcOffset()
const
;
66
67
void
setWeek0Type(
QwtDate::Week0Type
);
68
QwtDate::Week0Type
week0Type()
const
;
69
70
virtual
QwtText
label
(
double
)
const
;
71
72
QDateTime toDateTime(
double
)
const
;
73
74
protected
:
75
virtual
QwtDate::IntervalType
76
intervalType(
const
QwtScaleDiv
& )
const
;
77
78
virtual
QString dateFormatOfDate(
const
QDateTime &,
79
QwtDate::IntervalType
)
const
;
80
81
private
:
82
class
PrivateData
;
83
PrivateData
*
d_data
;
84
};
85
86
#endif
QWT_EXPORT
#define QWT_EXPORT
Definition:
qwt_global.h:38
QwtDateScaleDraw
A class for drawing datetime scales.
Definition:
qwt_date_scale_draw.h:52
QwtScaleDiv
A class representing a scale division.
Definition:
qwt_scale_div.h:36
QwtDateScaleDraw::PrivateData
Definition:
qwt_date_scale_draw.cpp:12
qwt_date.h
seconds
std::chrono::duration< std::int_fast64_t > seconds
QwtDate::IntervalType
IntervalType
Definition:
qwt_date.h:75
qwt_global.h
QwtText
A class representing a text.
Definition:
qwt_text.h:51
QwtAbstractScaleDraw::label
virtual QwtText label(double) const
Convert a value into its representing label.
Definition:
qwt_abstract_scale_draw.cpp:374
QwtDate::Week0Type
Week0Type
Definition:
qwt_date.h:49
qwt_scale_draw.h
QwtScaleDraw
A class for drawing scales.
Definition:
qwt_scale_draw.h:31
QwtDateScaleDraw::d_data
PrivateData * d_data
Definition:
qwt_date_scale_draw.h:82
plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17