kdgantt
KDGanttViewTaskItem.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef KDGANTTVIEWTASKITEM_H
00037 #define KDGANTTVIEWTASKITEM_H
00038
00039 #include "KDGanttViewItem.h"
00040 class KDCanvasRectangle;
00041 class QBrush;
00042
00043 class KDGanttViewTaskItem : public KDGanttViewItem
00044 {
00045 public:
00046 KDGanttViewTaskItem( KDGanttView* view,
00047 const QString& lvtext = QString::null,
00048 const QString& name = QString::null );
00049 KDGanttViewTaskItem( KDGanttViewItem* parent,
00050 const QString& lvtext = QString::null,
00051 const QString& name = QString::null );
00052 KDGanttViewTaskItem( KDGanttView* view, KDGanttViewItem* after,
00053 const QString& lvtext = QString::null,
00054 const QString& name = QString::null );
00055 KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after,
00056 const QString& lvtext = QString::null,
00057 const QString& name = QString::null );
00058 virtual ~KDGanttViewTaskItem();
00059
00060 void setStartTime( const QDateTime& start );
00061 void setEndTime( const QDateTime& end );
00062
00063 private:
00064 void showItem( bool show = true, int coordY = 0 );
00065 void initItem();
00066 void hideMe();
00067 QBrush myBrush, undefinedBrush;
00068 bool _showUndefinedBrush;
00069 };
00070
00071 #endif
|