KDE PIM / Developers / API Docs / kgantt

KGantt Class Reference

Gantt Widget. More...

#include <KGantt.h>

Inherits QWidget.

List of all members.

Public Slots

Public Member Functions

Protected Member Functions


Detailed Description

Gantt Widget.

A gantt widget contains two parts, a list view and a bar view.


Constructor & Destructor Documentation

KGantt::KGantt KGanttItem toplevelitem = 0,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Constructor.

KGantt::~KGantt  ) 
 

Destructor.


Member Function Documentation

void KGantt::setToplevelItem KGanttItem item  )  [inline]
 

Set toplevel item.

If no toplevel item was specified at construction of this widget a toplevel item was created. This will be deleted by setting a new toplevel item. A toplevel item that was passed to the constructor will not be deleted.

KGanttItem* KGantt::getToplevelItem  )  [inline]
 

Get toplevel item.

xQGanttBarView* KGantt::barView  )  [inline]
 

Get bar view of items.

xQGanttListView* KGantt::listView  )  [inline]
 

Get list view of items.

KPopupMenu* KGantt::menu  )  [inline]
 

Get popup menu.

KToolBar* KGantt::toolbar QMainWindow *  mw = 0  )  [inline]
 

Add gantt toolbar to main window.

If you want to embed a toolbar with specific actions like zooming or configuring the gantt, you can add a toolbar automatically by invoking this method. You have to pass your mainwindow as a parameter if you call this method the first time because teh toolbar will be created then. If you you want to access the pointer to a already created toolbar you can invoke this method without any parameter.

void KGantt::dumpItems  ) 
 

Print to stdout.

void KGantt::getSelectedItems QPtrList< KGanttItem > &  list  )  [inline]
 

Get all selected items.

All selected KGanttItems will be added to the passed list.

void KGantt::showList  )  [inline, slot]
 

Show list view.

void KGantt::hideList  )  [inline, slot]
 

Hide list view.


The documentation for this class was generated from the following files: