36#include <tqdatetime.h>
37#include <tqtextstream.h>
43#include "KGanttRelation.h"
77 TotalHeightChanged = 8,
102 RelationAdded = 16384,
105 RelationRemoved = 32768
126 DrawHandleWSubitems = 32,
143 const TQDateTime& start, const TQDateTime& end);
152 const TQDateTime& start, long durationMin);
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;
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)
int getHeight() Get height.
TQPtrList< KGanttRelation > & getRelations() Get list of relations.
bool isEditable() Returns if item is editable.
TQString getText() Get text.
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.
|