kdgantt

KDGanttViewTaskItem.h
1/*
2 $Id$
3 KDGantt - a multi-platform charting engine
4*/
5
6/****************************************************************************
7 ** Copyright (C) 2002-2004 Klarälvdalens Datakonsult AB. All rights reserved.
8 **
9 ** This file is part of the KDGantt library.
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU General Public License version 2 as published by the Free Software
13 ** Foundation and appearing in the file LICENSE.GPL included in the
14 ** packaging of this file.
15 **
16 ** Licensees holding valid commercial KDGantt licenses may use this file in
17 ** accordance with the KDGantt Commercial License Agreement provided with
18 ** the Software.
19 **
20 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
21 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 **
23 ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
24 ** information about KDGantt Commercial License Agreements.
25 **
26 ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
27 ** licensing are not clear to you.
28 **
29 ** As a special exception, permission is given to link this program
30 ** with any edition of TQt, and distribute the resulting executable,
31 ** without including the source code for TQt in the source distribution.
32 **
33 **********************************************************************/
34
35
36#ifndef KDGANTTVIEWTASKITEM_H
37#define KDGANTTVIEWTASKITEM_H
38
39#include "KDGanttViewItem.h"
40class KDCanvasRectangle;
41class TQBrush;
42
44{
45public:
47 const TQString& lvtext = TQString(),
48 const TQString& name = TQString() );
50 const TQString& lvtext = TQString(),
51 const TQString& name = TQString() );
53 const TQString& lvtext = TQString(),
54 const TQString& name = TQString() );
56 const TQString& lvtext = TQString(),
57 const TQString& name = TQString() );
58 virtual ~KDGanttViewTaskItem();
59
60 void setStartTime( const TQDateTime& start );
61 void setEndTime( const TQDateTime& end );
62
63protected:
64 void showItem( bool show = true, int coordY = 0 );
65
66private:
67 void initItem();
68 void hideMe();
69 TQBrush myBrush, undefinedBrush;
70 bool _showUndefinedBrush;
71};
72
73#endif
KDGanttViewItem * parent() const
TQString name() const
void setStartTime(const TQDateTime &start)
KDGanttViewTaskItem(KDGanttView *view, const TQString &lvtext=TQString(), const TQString &name=TQString())
void setEndTime(const TQDateTime &end)