• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt

KDGantt::AbstractRowController

KDGantt::AbstractRowController Class Reference

#include <KDGanttAbstractRowController>

Inheritance diagram for KDGantt::AbstractRowController:

Inheritance graph
[legend]

List of all members.


Detailed Description

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.


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 isRowVisible (const QModelIndex &idx) const =0
virtual int maximumItemHeight () const =0
virtual Span rowGeometry (const QModelIndex &idx) const =0
virtual ~AbstractRowController ()

Constructor & Destructor Documentation

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.


Member Function Documentation

int AbstractRowController::headerHeight (  )  const [pure virtual]

Returns:
The height of the header part of the view.
Implement this to control how much space is reserved at the top of the view for a header

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

QModelIndex AbstractRowController::indexAbove ( const QModelIndex &  idx  )  const [pure virtual]

Returns:
The modelindex for the previous row before idx.
See also:
QTreeView::indexAbove

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

virtual QModelIndex KDGantt::AbstractRowController::indexAt ( int  height  )  const [pure virtual]

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

QModelIndex AbstractRowController::indexBelow ( const QModelIndex &  idx  )  const [pure virtual]

Returns:
The modelindex for the next row after idx.
See also:
QTreeView::indexBelow

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

bool AbstractRowController::isRowVisible ( const QModelIndex &  idx  )  const [pure virtual]

Returns:
true if the row containing index idx is visible in the view.
Implement this to allow KDGantt to optimise how items on screen are created. It is not harmful to always return true here, but the View will not perform optimally.

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

virtual int KDGantt::AbstractRowController::maximumItemHeight (  )  const [pure virtual]

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.

Span AbstractRowController::rowGeometry ( const QModelIndex &  idx  )  const [pure virtual]

Returns:
A Span consisting of the row offset and height for the row containing idx. A simple implementation might look like
 Span MyRowCtrlr::rowGeometry(const QModelIndex& idx)
 {
      return Span(idx.row()*10,10);
 }

Implemented in KDGantt::ListViewRowController, and KDGantt::TreeViewRowController.


The documentation for this class was generated from the following files:
  • kdganttabstractrowcontroller.h
  • kdganttabstractrowcontroller.cpp

kdgantt

Skip menu "kdgantt"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal