1 #ifndef _KGANTTRELATION_H_
2 #define _KGANTTRELATION_H_
32 #include <tqdatetime.h>
33 #include <tqtextstream.h>
34 #include <tqptrlist.h>
35 #include <tqpainter.h>
127 void setPen( const TQPen& pen);
145 void setTextPen( const TQPen& pen) {
155 TQPen& getTextPen() {
165 void setText( const TQString& text);
199 void dump(TQTextOStream& cout, const TQString& pre);
236 const TQString& text );
251 TQPen _pen, _textPen;
253 static TQPen _selectPen;
static TQString ChangeAsString(Change c) Return a given change as a string.
void changed(KGanttRelation *, KGanttRelation::Change) Item has changed.
KGanttRelation(KGanttItem *from, KGanttItem *to, const TQString &text) Constructor.
void setEditable(bool f) Set item editable or not.
void setPen(const TQPen &pen) Set pen for border.
bool isEditable() Returns if item is editable.
void dump(TQTextOStream &cout, const TQString &pre) Dump to cout.
KGanttItem * getFrom() Get date of starting.
void select(bool f) Select/unselect item.
@ Selected Item has been selected.
@ Unselected Item has been unselected.
TQString getText() Get text.
void setText(const TQString &text) Set text.
void destroyed(KGanttRelation *) Item will be deleted.
~KGanttRelation() Destructor.
KGanttItem * getTo() Get date of ending.
TQPen & getSelectPen() Get brush which has to be used for drawing this item as selected.
|