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

kdgantt

KDGantt::View

KDGantt::View Class Reference

This widget that consists of a QTreeView and a GraphicsView. More...

#include <KDGanttView>

Inheritance diagram for KDGantt::View:
Inheritance graph
[legend]

List of all members.

Public Slots

void setConstraintModel (ConstraintModel *)
void setGrid (AbstractGrid *)
void setItemDelegate (ItemDelegate *)
void setModel (QAbstractItemModel *model)
void setRootIndex (const QModelIndex &idx)
void setSelectionModel (QItemSelectionModel *smodel)

Public Member Functions

 View (QWidget *parent=0)
virtual ~View ()
ConstraintModel * constraintModel () const
QAbstractProxyModel * ganttProxyModel ()
const QAbstractProxyModel * ganttProxyModel () const
GraphicsView * graphicsView ()
const GraphicsView * graphicsView () const
AbstractGrid * grid () const
QModelIndex indexAt (const QPoint &pos) const
ItemDelegate * itemDelegate () const
QAbstractItemView * leftView ()
const QAbstractItemView * leftView () const
QAbstractItemModel * model () const
void print (QPainter *painter, const QRectF &target=QRectF(), const QRectF &source=QRectF(), bool drawRowLabels=true, bool drawHeader=true)
QModelIndex rootIndex () const
const AbstractRowController * rowController () const
AbstractRowController * rowController ()
QItemSelectionModel * selectionModel () const
void setLeftView (QAbstractItemView *)
void setRowController (AbstractRowController *)

Protected Member Functions

void resizeEvent (QResizeEvent *)

Detailed Description

This widget that consists of a QTreeView and a GraphicsView.

This is the easy to use, complete gantt chart widget. It consists of a QTreeView on the left and a KDGantt::GraphicsView on the right separated by a QSplitter. The two views share the same model.

Definition at line 44 of file kdganttview.h.


Constructor & Destructor Documentation

View::View ( QWidget *  parent = 0  )  [explicit]

Constructor. Creates a View with parent parent, a DateTimeGrid as default grid implementaion and no model etc.

Definition at line 191 of file kdganttview.cpp.

View::~View (  )  [virtual]

Definition at line 201 of file kdganttview.cpp.


Member Function Documentation

ConstraintModel * View::constraintModel (  )  const
Returns:
the KDGantt::ConstraintModel displayed by this view.

Definition at line 400 of file kdganttview.cpp.

QAbstractProxyModel * View::ganttProxyModel (  ) 

Definition at line 410 of file kdganttview.cpp.

const QAbstractProxyModel * View::ganttProxyModel (  )  const

Definition at line 405 of file kdganttview.cpp.

GraphicsView * View::graphicsView (  ) 

Definition at line 300 of file kdganttview.cpp.

const GraphicsView * KDGantt::View::graphicsView (  )  const
Returns:
a pointer to the GraphicsView

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 292 of file kdganttview.cpp.

AbstractGrid * View::grid (  )  const
Returns:
the AbstractGrid used by this view.

Definition at line 352 of file kdganttview.cpp.

QModelIndex View::indexAt ( const QPoint &  pos  )  const
Returns:
The QModelIndex for the item located at position pos in the view or an invalid index if no item was present at that position.
See also:
GraphicsView::indexAt

Definition at line 426 of file kdganttview.cpp.

ItemDelegate * View::itemDelegate (  )  const
Returns:
the ItemDelegate used by this view to render items

Definition at line 375 of file kdganttview.cpp.

QAbstractItemView * View::leftView (  ) 

Definition at line 284 of file kdganttview.cpp.

const QAbstractItemView * KDGantt::View::leftView (  )  const
Returns:
a pointer to the QAbstractItemView in the left part of the widget.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 276 of file kdganttview.cpp.

QAbstractItemModel * View::model (  )  const
Returns:
the current model displayed by this view

Definition at line 307 of file kdganttview.cpp.

void View::print ( QPainter *  painter,
const QRectF &  target = QRectF(),
const QRectF &  source = QRectF(),
bool  drawRowLabels = true,
bool  drawHeader = true 
)

Render the GanttView inside the rectangle target using the painter painter.

See also:
KDGantt::GraphicsView::print(QPainter* painter, const QRectF& target,bool drawRowLabels)

Definition at line 434 of file kdganttview.cpp.

void View::resizeEvent ( QResizeEvent *  ev  )  [protected]

Reimplemented from QWidget.

Definition at line 415 of file kdganttview.cpp.

QModelIndex View::rootIndex (  )  const
Returns:
the rootindex for this view.

Definition at line 359 of file kdganttview.cpp.

const AbstractRowController * View::rowController (  )  const

Definition at line 267 of file kdganttview.cpp.

AbstractRowController * KDGantt::View::rowController (  ) 
Returns:
a pointer to the current rowcontroller.
See also:
AbstractRowController

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 260 of file kdganttview.cpp.

QItemSelectionModel * View::selectionModel (  )  const
Returns:
the QItemSelectionModel used by this view

Definition at line 326 of file kdganttview.cpp.

void View::setConstraintModel ( ConstraintModel *  cm  )  [slot]

Sets the constraintmodel displayed by this view.

See also:
KDGantt::ConstraintModel.

Definition at line 392 of file kdganttview.cpp.

void View::setGrid ( AbstractGrid *  grid  )  [slot]

Sets the AbstractGrid for this view. The grid is an object that controls how QModelIndexes are mapped to and from the view and how the background and header is rendered.

See also:
AbstractGrid and DateTimeGrid.

Definition at line 345 of file kdganttview.cpp.

void View::setItemDelegate ( ItemDelegate *  delegate  )  [slot]

Sets the KDGantt::ItemDelegate used for rendering items on this view.

See also:
ItemDelegate and QAbstractItemDelegate.

Definition at line 383 of file kdganttview.cpp.

void View::setLeftView ( QAbstractItemView *  aiv  ) 
Parameters:
aiv The view to be used to the left, instead of the default tree view
See also:
setRowController()

Definition at line 211 of file kdganttview.cpp.

void View::setModel ( QAbstractItemModel *  model  )  [slot]

Sets the QAbstractItemModel to be displayed in this view to model.

See also:
GraphicsView::setModel

Definition at line 317 of file kdganttview.cpp.

void View::setRootIndex ( const QModelIndex &  idx  )  [slot]

Sets the root index of the model displayed by this view. Similar to QAbstractItemView::setRootIndex, default is QModelIndex().

Definition at line 367 of file kdganttview.cpp.

void View::setRowController ( AbstractRowController *  ctrl  ) 

Sets ctrl to be the rowcontroller used by this View. The default rowcontroller is owned by KDGantt::View and is suitable for the default treeview in the left part of the view. You probably only want to change this if you replace the treeview.

Definition at line 250 of file kdganttview.cpp.

void View::setSelectionModel ( QItemSelectionModel *  smodel  )  [slot]

Sets the QItemSelectionModel used by this view to manage selections. Similar to QAbstractItemView::setSelectionModel

Definition at line 334 of file kdganttview.cpp.


The documentation for this class was generated from the following files:
  • kdganttview.h
  • kdganttview.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
  •   akonadi_next
  •   clients
  •   kcal
  •   kcm
  •       libmaildir
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
Generated for kdepim by doxygen 1.5.9-20090814
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