KGantt
9#ifndef KGANTTDATETIMEGRID_H
10#define KGANTTDATETIMEGRID_H
12#include "kganttabstractgrid.h"
20 class DateTimeScaleFormatter;
21 class DateTimeTimeLine;
63 void setStartDateTime(
const QDateTime& dt );
69 qreal dayWidth()
const;
75 void setDayWidth( qreal );
79 qreal mapFromDateTime(
const QDateTime& dt)
const;
108 void setFreeDaysBrush(
const QBrush brush);
113 QBrush freeDaysBrush()
const;
129 void setScale( Scale s );
167 bool rowSeparators()
const;
170 void setRowSeparators(
bool enable );
176 void setNoInformationBrush(
const QBrush& brush );
180 QBrush noInformationBrush()
const;
208 qreal mapToChart(
const QVariant& value )
const override;
214 QVariant mapFromChart( qreal x )
const override;
218 QWidget* widget =
nullptr )
override;
219 void paintHeader(
QPainter* painter,
221 qreal offset,
QWidget* widget =
nullptr )
override;
228 HeaderType sectionHandleAtPos(
int x,
int y,
const QRect &headerRect)
const;
234 virtual void paintHourScaleHeader(
QPainter* painter,
236 qreal offset,
QWidget* widget =
nullptr );
241 virtual void paintDayScaleHeader(
QPainter* painter,
243 qreal offset,
QWidget* widget =
nullptr );
248 virtual void paintWeekScaleHeader(
QPainter* painter,
250 qreal offset,
QWidget* widget =
nullptr );
255 virtual void paintMonthScaleHeader(
QPainter* painter,
257 qreal offset,
QWidget* widget =
nullptr );
259 virtual void paintUserDefinedHeader(
QPainter* painter,
280 QPair<QDateTime, QDateTime> dateTimeRange(
const QRectF& rect)
const;
282 void drawBackground(
QPainter* paint,
const QRectF& rect)
override;
283 void drawForeground(
QPainter* paint,
const QRectF& rect)
override;
366#ifndef QT_NO_DEBUG_STREAM
367QDebug KGANTT_EXPORT operator<<(
QDebug dbg, KGantt::DateTimeScaleFormatter::Range );
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...
A class representing a start point and a length.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:21 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.