11#ifndef KDGANTTDATETIMEGRID_H
12#define KDGANTTDATETIMEGRID_H
21class DateTimeScaleFormatter;
42 void setStartDateTime(
const QDateTime &dt);
44 qreal dayWidth()
const;
45 void setDayWidth(qreal);
47 qreal mapFromDateTime(
const QDateTime &dt)
const;
56 void setFreeDaysBrush(
const QBrush brush);
57 QBrush freeDaysBrush()
const;
59 void setScale(Scale s);
67 bool rowSeparators()
const;
68 void setRowSeparators(
bool enable);
70 void setNoInformationBrush(
const QBrush &brush);
71 QBrush noInformationBrush()
const;
76 qreal mapToChart(
const QVariant &value)
const override;
77 QVariant mapFromChart(qreal x)
const override;
81 QWidget *widget =
nullptr)
override;
84 qreal offset,
QWidget *widget =
nullptr)
override;
87 virtual void paintHourScaleHeader(
QPainter *painter,
89 qreal offset,
QWidget *widget =
nullptr);
90 virtual void paintDayScaleHeader(
QPainter *painter,
92 qreal offset,
QWidget *widget =
nullptr);
93 virtual void paintWeekScaleHeader(
QPainter *painter,
95 qreal offset,
QWidget *widget =
nullptr);
96 virtual void paintMonthScaleHeader(
QPainter *painter,
98 qreal offset,
QWidget *widget =
nullptr);
100 virtual void paintUserDefinedHeader(
QPainter *painter,
111 void drawBackground(
QPainter *paint,
const QRectF &rect)
override;
112 void drawForeground(
QPainter *paint,
const QRectF &rect)
override;
151#ifndef QT_NO_DEBUG_STREAM
Abstract baseclass for grids.
Abstract baseclass for row controllers.
This implementation of AbstractGrid works with QDateTime and shows days and week numbers in the heade...
A class representing a start point and a length.
QDebug KDGANTT_EXPORT operator<<(QDebug dbg, KDGantt::DateTimeScaleFormatter::Range)
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
#define KDGANTT_DECLARE_PRIVATE_DERIVED(X)