10#ifndef QWT_DATE_SCALE_ENGINE_H
11#define QWT_DATE_SCALE_ENGINE_H
13#include "qwt_global.h"
15#include "qwt_scale_engine.h"
48 void setTimeSpec( Qt::TimeSpec );
49 Qt::TimeSpec timeSpec()
const;
51 void setUtcOffset(
int seconds );
52 int utcOffset()
const;
57 void setMaxWeeks(
int );
61 int maxNumSteps,
double& x1,
double& x2,
62 double& stepSize )
const QWT_OVERRIDE;
66 int maxMajorSteps,
int maxMinorSteps,
67 double stepSize = 0.0 )
const QWT_OVERRIDE;
70 const QDateTime&,
const QDateTime&,
int maxSteps )
const;
72 QDateTime toDateTime(
double )
const;
75 virtual QDateTime alignDate(
const QDateTime&,
double stepSize,
79 QwtScaleDiv buildScaleDiv(
const QDateTime&,
const QDateTime&,
80 int maxMajorSteps,
int maxMinorSteps,
A scale engine for date/time values.
A scale engine for linear scales.
virtual void autoScale(int maxNumSteps, double &x1, double &x2, double &stepSize) const override
virtual QwtScaleDiv divideScale(double x1, double x2, int maxMajorSteps, int maxMinorSteps, double stepSize=0.0) const override
Calculate a scale division for an interval.
A class representing a scale division.