kgantt Library API Documentation

KGantt Class Reference

Gantt Widget. More...

#include <KGantt.h>

Inheritance diagram for KGantt:

QWidget List of all members.

Public Slots

void setSelect ()
void setZoom ()
void setMove ()
void zoomIn ()
void zoomOut ()
void zoomAll ()
void selectAll ()
void unselectAll ()
void deleteSelectedItems ()
void insertIntoSelectedItem ()
void showList ()
void hideList ()

Public Methods

 KGantt (KGanttItem *toplevelitem=0, QWidget *parent=0, const char *name=0, WFlags f=0)
 ~KGantt ()
void setToplevelItem (KGanttItem *item)
KGanttItemgetToplevelItem ()
xQGanttBarViewbarView ()
xQGanttListViewlistView ()
QSplittersplitter ()
void zoom (double factor)
KPopupMenu * menu ()
KToolBar * toolbar (QMainWindow *mw=0)
void dumpItems ()
void getSelectedItems (QPtrList< KGanttItem > &list)
void addHoliday (int y, int m, int d)
void removeHoliday (int y, int m, int d)

Protected Methods

void resizeEvent (QResizeEvent *e)

Detailed Description

Gantt Widget.

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

Definition at line 89 of file KGantt.h.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 17 of file KGantt.cpp.

References QDateTime::currentDateTime(), xQGanttListView::setBarView(), and KGanttItem::setMode().

KGantt::~KGantt  
 

Destructor.

Definition at line 70 of file KGantt.cpp.


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.

Definition at line 122 of file KGantt.h.

KGanttItem* KGantt::getToplevelItem   [inline]
 

Get toplevel item.

Definition at line 134 of file KGantt.h.

xQGanttBarView* KGantt::barView   [inline]
 

Get bar view of items.

Definition at line 144 of file KGantt.h.

xQGanttListView* KGantt::listView   [inline]
 

Get list view of items.

Definition at line 154 of file KGantt.h.

KPopupMenu* KGantt::menu   [inline]
 

Get popup menu.

Definition at line 180 of file KGantt.h.

References xQGanttBarViewPort::menu(), and xQGanttBarView::viewport().

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.

Definition at line 196 of file KGantt.h.

References xQGanttBarViewPort::toolbar(), and xQGanttBarView::viewport().

void KGantt::dumpItems  
 

Print to stdout.

Definition at line 81 of file KGantt.cpp.

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

Get all selected items.

All selected KGanttItems will be added to the passed list.

Definition at line 214 of file KGantt.h.

References xQGanttBarViewPort::getSelectedItems(), and xQGanttBarView::viewport().

void KGantt::showList   [inline, slot]
 

Show list view.

Definition at line 281 of file KGantt.h.

void KGantt::hideList   [inline, slot]
 

Hide list view.

Definition at line 290 of file KGantt.h.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kgantt Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:37:42 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003