kgantt

#include <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 ()
TQPen & getSelectPen ()
void setPen (const TQPen &pen)
TQPen & getPen ()
void setTextPen (const TQPen &pen)
TQPen & getTextPen ()
void setText (const TQString &text)
TQString getText ()
KGanttItemgetFrom ()
KGanttItemgetTo ()
void dump (TQTextOStream &cout, const TQString &pre)
TQString ChangeAsString (Change c)

Protected Member Functions

 KGanttRelation (KGanttItem *from, KGanttItem *to, const TQString &text)

Friends

class KGanttItem

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.

Member Enumeration Documentation

◆ Change

Enumerator
Selected 

Item has been selected.

Unselected 

Item has been unselected.

Definition at line 59 of file KGanttRelation.h.

Constructor & Destructor Documentation

◆ ~KGanttRelation()

KGanttRelation::~KGanttRelation ( )

Destructor.

Definition at line 37 of file KGanttRelation.cpp.

◆ KGanttRelation()

KGanttRelation::KGanttRelation ( KGanttItem * from,
KGanttItem * to,
const TQString & text )
protected

Constructor.

Definition at line 16 of file KGanttRelation.cpp.

Member Function Documentation

◆ ChangeAsString()

TQString KGanttRelation::ChangeAsString ( Change c)

Definition at line 142 of file KGanttRelation.cpp.

◆ changed

void KGanttRelation::changed ( KGanttRelation * ,
KGanttRelation::Change  )
signal

Item has changed.

This signal is emitted if any of the items properties have been changed.

◆ destroyed

void KGanttRelation::destroyed ( KGanttRelation * )
signal

Item will be deleted.

This signal will be emitted immediately before the object will be deleted.

◆ dump()

void KGanttRelation::dump ( TQTextOStream & cout,
const TQString & pre )

Dump to cout.

Definition at line 119 of file KGanttRelation.cpp.

◆ getFrom()

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.

◆ getPen()

TQPen & KGanttRelation::getPen ( )
inline

Definition at line 135 of file KGanttRelation.h.

◆ getSelectPen()

TQPen & KGanttRelation::getSelectPen ( )
inline

Get brush which has to be used for drawing this item as selected.

Definition at line 117 of file KGanttRelation.h.

◆ getText()

TQString KGanttRelation::getText ( )
inline

Get text.

Definition at line 173 of file KGanttRelation.h.

◆ getTextPen()

TQPen & KGanttRelation::getTextPen ( )
inline

Definition at line 155 of file KGanttRelation.h.

◆ getTo()

KGanttItem * KGanttRelation::getTo ( )

Get date of ending.

Definition at line 63 of file KGanttRelation.cpp.

◆ isEditable()

bool KGanttRelation::isEditable ( )
inline

Returns if item is editable.

See also setEditable().

Definition at line 107 of file KGanttRelation.h.

◆ itemDestroyed

void KGanttRelation::itemDestroyed ( KGanttItem * item)
slot

Definition at line 72 of file KGanttRelation.cpp.

◆ select()

void KGanttRelation::select ( bool f)

Select/unselect item.

Definition at line 93 of file KGanttRelation.cpp.

◆ setEditable()

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 97 of file KGanttRelation.h.

◆ setPen()

void KGanttRelation::setPen ( const TQPen & pen)

Set pen for border.

Definition at line 110 of file KGanttRelation.cpp.

◆ setText()

void KGanttRelation::setText ( const TQString & text)

Set text.

Definition at line 80 of file KGanttRelation.cpp.

◆ setTextPen()

void KGanttRelation::setTextPen ( const TQPen & pen)
inline

Definition at line 145 of file KGanttRelation.h.

◆ KGanttItem

friend class KGanttItem
friend

Definition at line 55 of file KGanttRelation.h.


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