36#include <tqdatetime.h>
37#include <tqtextstream.h>
43#include "KGanttRelation.h"
142 KGanttItem(KGanttItem* parentItem, const TQString& text,
143 const TQDateTime& start, const TQDateTime& end);
151 KGanttItem(KGanttItem* parentItem, const TQString& text,
152 const TQDateTime& start, long durationMin);
168 KGanttRelation* addRelation(KGanttItem* from, KGanttItem* to,
169 const TQString& text);
240 void setMode(Mode flag);
248 void setStyle( int flag, bool includeSubitems = false);
266 void setBrush( const TQBrush& brush);
294 void setPen( const TQPen& pen);
312 void setTextPen( const TQPen& pen) {
322 TQPen& getTextPen() {
332 void setText( const TQString& text);
350 TQDateTime getStart();
366 void setStart( const TQDateTime& start);
374 void setEnd( const TQDateTime& end);
383 void setHeight( int h);
405 int getTotalHeight();
453 void endTransaction();
461 static TQString ChangeAsString(Change c);
470 void dump(TQTextOStream& cout, const TQString& pre);
505 void init( KGanttItem* parentItem, const TQString& text,
506 const TQDateTime& start, const TQDateTime& end);
526 int _height, _style, _mode;
530 TQPtrList<KGanttItem> _subitems;
531 TQPtrList<KGanttRelation> _relations;
537 TQDateTime _start, _end, _minDateTime, _maxDateTime;
542 TQPen _pen, _textPen;
544 static TQBrush _selectBrush;
@ DrawNothing Set item invisible.
@ DrawHandleWSubitems Draw handle only if item contains subitems.
void destroyed(KGanttItem *) Item will be deleted.
TQPtrList< KGanttItem > & getSubItems() Get list of subitems.
void startTransaction() Start a transaction.
TQBrush & getSelectBrush() Get brush which has to be used for drawing this item as selected.
bool isOpen() Returns true if item is open (subitems has to be drawn).
KGanttItem(KGanttItem *parentItem, const TQString &text, const TQDateTime &start, const TQDateTime &end) Constructor.
int getHeight() Get height.
TQPtrList< KGanttRelation > & getRelations() Get list of relations.
bool isEditable() Returns if item is editable.
TQString getText() Get text.
@ HeightChanged Height for this item has changed.
@ StyleChanged Style for drawing has changed.
@ Unknown Changes may occurred but the types are unknown.
@ Selected Item has been selected.
@ Unselected Item has been unselected.
@ RelationRemoved Relation between two subitems has been removed.
@ Closed Draw item without subitems.
@ RelationAdded Relation between two subitems has been added.
@ TotalHeightChanged Total height has changed.
@ Opened Draw item including subitems.
void changed(KGanttItem *, KGanttItem::Change) Item has changed.
TQBrush & getBrush() Get brush that is used for filling the item.
void setEditable(bool f) Set item editable or not.
bool isSelected() Returns true if item is selected.
int getStyle() Get drawing style.
|