9 #include "KGanttRelation.h"
10 #include "KGanttItem.h"
13 TQPen KGanttRelation::_selectPen(TQColor(255,0,0));
17 const TQString& text )
24 _pen = TQPen(TQColor(20,20,20),1);
41 printf( "-> delete Relation %s \n", getText().latin1() );
47 printf( "<- delete Relation %s \n", getText().latin1() );
83 if(!_editable) return;
96 if(!_editable) return;
121 cout << pre << "<Relation. text = [" << _text << "]>\n";
123 cout << pre << "| from : " << getFrom()-> getText().latin1() << endl;
124 cout << pre << "| to : " << getTo()-> getText().latin1() << endl;
127 cout << pre << "| - editable " << endl;
129 cout << pre << "| - not editable " << endl;
132 cout << pre << "| - selected " << endl;
134 cout << pre << "| - not selected " << endl;
136 cout << pre << "</Relation>\n";
142 KGanttRelation::ChangeAsString(Change c)
154 if(c & TextChanged) ret += "TextChanged, ";
168 #include "KGanttRelation.moc"
TQString getText() Get text.
void changed(KGanttRelation *, KGanttRelation::Change) Item has changed.
KGanttRelation(KGanttItem *from, KGanttItem *to, const TQString &text) Constructor.
void setPen(const TQPen &pen) Set pen for border.
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.
|