kgantt
KGanttRelation Class Reference
#include <KGanttRelation.h>
Detailed Description
KGanttRelation.This class describes a item. It contains dates on which the item starts and ends. It also contains attributes that gouverns the graphical representation in a gantt diagramm.
Definition at line 48 of file KGanttRelation.h.
Public Types | |
enum | Change { NoChange = 0, TextChanged = 32, Selected = 2048, Unselected = 4096 } |
Public Slots | |
void | itemDestroyed (KGanttItem *item) |
Signals | |
void | changed (KGanttRelation *, KGanttRelation::Change) |
void | destroyed (KGanttRelation *) |
Public Member Functions | |
~KGanttRelation () | |
void | select (bool f) |
void | setEditable (bool f) |
bool | isEditable () |
QPen & | getSelectPen () |
void | setPen (const QPen &pen) |
QPen & | getPen () |
void | setTextPen (const QPen &pen) |
QPen & | getTextPen () |
void | setText (const QString &text) |
QString | getText () |
KGanttItem * | getFrom () |
KGanttItem * | getTo () |
void | dump (QTextOStream &cout, const QString &pre) |
QString | ChangeAsString (Change c) |
Protected Member Functions | |
KGanttRelation (KGanttItem *from, KGanttItem *to, const QString &text) | |
Friends | |
class | KGanttItem |
Member Enumeration Documentation
Definition at line 58 of file KGanttRelation.h.
Constructor & Destructor Documentation
KGanttRelation::~KGanttRelation | ( | ) |
KGanttRelation::KGanttRelation | ( | KGanttItem * | from, | |
KGanttItem * | to, | |||
const QString & | text | |||
) | [protected] |
Member Function Documentation
void KGanttRelation::select | ( | bool | f | ) |
void KGanttRelation::setEditable | ( | bool | f | ) | [inline] |
Set item editable or not.
If item is not editable these methods have no effect : setStart(), setEnd(), setText(), select(), setMode(), setStyle(), setHeight(),
Definition at line 96 of file KGanttRelation.h.
bool KGanttRelation::isEditable | ( | ) | [inline] |
Returns if item is editable.
See also setEditable().
Definition at line 106 of file KGanttRelation.h.
QPen& KGanttRelation::getSelectPen | ( | ) | [inline] |
Get brush which has to be used for drawing this item as selected.
Definition at line 116 of file KGanttRelation.h.
void KGanttRelation::setPen | ( | const QPen & | pen | ) |
void KGanttRelation::setText | ( | const QString & | text | ) |
QString KGanttRelation::getText | ( | ) | [inline] |
KGanttItem * KGanttRelation::getFrom | ( | ) |
Get date of starting.
If mode == ´Rubberband´ and this item contains subitems, start of the item is determined by the start of the earliest subitem.
Definition at line 54 of file KGanttRelation.cpp.
KGanttItem * KGanttRelation::getTo | ( | ) |
void KGanttRelation::dump | ( | QTextOStream & | cout, | |
const QString & | pre | |||
) |
void KGanttRelation::changed | ( | KGanttRelation * | , | |
KGanttRelation::Change | ||||
) | [signal] |
Item has changed.
This signal is emitted if any of the items properties have been changed.
void KGanttRelation::destroyed | ( | KGanttRelation * | ) | [signal] |
Item will be deleted.
This signal will be emitted immediately before the object will be deleted.
The documentation for this class was generated from the following files: