Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the model and to determine the row geometries. More...
#include <KDGanttAbstractRowController>
Public Member Functions | |
AbstractRowController () | |
virtual int | headerHeight () const =0 |
virtual QModelIndex | indexAbove (const QModelIndex &idx) const =0 |
virtual QModelIndex | indexAt (int height) const =0 |
virtual QModelIndex | indexBelow (const QModelIndex &idx) const =0 |
virtual bool | isRowExpanded (const QModelIndex &idx) const =0 |
virtual bool | isRowVisible (const QModelIndex &idx) const =0 |
virtual int | maximumItemHeight () const =0 |
virtual Span | rowGeometry (const QModelIndex &idx) const =0 |
virtual int | totalHeight () const =0 |
virtual | ~AbstractRowController () |
Abstract baseclass for row controllers. A row controller is used by the GraphicsView to nagivate the model and to determine the row geometries.
Definition at line 32 of file kdganttabstractrowcontroller.h.
AbstractRowController::AbstractRowController | ( | ) |
Constructor. Does nothing
Definition at line 35 of file kdganttabstractrowcontroller.cpp.
AbstractRowController::~AbstractRowController | ( | ) | [virtual] |
Destructor. Does nothing
Definition at line 40 of file kdganttabstractrowcontroller.cpp.
int AbstractRowController::headerHeight | ( | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
QModelIndex AbstractRowController::indexAbove | ( | const QModelIndex & | idx | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::DateTimeGrid::paintGrid().
virtual QModelIndex KDGantt::AbstractRowController::indexAt | ( | int | height | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::DateTimeGrid::paintGrid().
QModelIndex AbstractRowController::indexBelow | ( | const QModelIndex & | idx | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::DateTimeGrid::paintGrid().
virtual bool KDGantt::AbstractRowController::isRowExpanded | ( | const QModelIndex & | idx | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::GraphicsScene::updateRow().
bool AbstractRowController::isRowVisible | ( | const QModelIndex & | idx | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
virtual int KDGantt::AbstractRowController::maximumItemHeight | ( | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::GraphicsItem::updateItem().
Span AbstractRowController::rowGeometry | ( | const QModelIndex & | idx | ) | const [pure virtual] |
Span MyRowCtrlr::rowGeometry(const QModelIndex& idx) { return Span(idx.row()*10,10); }
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::DateTimeGrid::paintGrid(), and KDGantt::GraphicsScene::updateRow().
int AbstractRowController::totalHeight | ( | ) | const [pure virtual] |
Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.
Referenced by KDGantt::GraphicsView::resizeEvent(), and KDGantt::GraphicsView::updateSceneRect().