23 #ifndef KDGANTTABSTRACTGRID_H 24 #define KDGANTTABSTRACTGRID_H 32 class QAbstractItemModel;
49 QAbstractItemModel* model() const;
50 QModelIndex rootIndex() const;
52 virtual
Span mapToChart( const QModelIndex& idx ) const = 0;
53 virtual
bool mapFromChart( const
Span& span, const QModelIndex& idx,
55 virtual qreal mapToChart( const QVariant &value ) const;
56 virtual QVariant mapFromChart( qreal x ) const;
57 bool isSatisfiedConstraint( const
Constraint& c ) const;
59 virtual
void paintGrid( QPainter* painter, const QRectF& sceneRect, const QRectF& exposedRect,
61 virtual
void paintHeader( QPainter* painter, const QRectF& headerRect, const QRectF& exposedRect,
62 qreal offset,
QWidget* widget=0 ) = 0;
65 virtual
void setModel( QAbstractItemModel* model );
66 virtual
void setRootIndex( const QModelIndex& idx );
71 virtual
void drawBackground(QPainter* paint, const QRectF& rect);
72 virtual
void drawForeground(QPainter* paint, const QRectF& rect);
#define KDGANTT_DECLARE_PRIVATE_BASE_POLYMORPHIC(X)
Abstract baseclass for grids. A grid is used to convert between QModelIndex'es and gantt chart values...
A class used to represent a dependency.
A class representing a start point and a length.
Class only listed here to document inheritance of some KDChart classes.
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the ...