kdgantt

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