2
$Id: KDGanttViewSummaryItem.h 836291 2008-07-22 04:34:42Z pradeepto $
3
KDGantt - a multi-platform charting engine
5
/****************************************************************************
6
** Copyright (C) 2002-2004 Klarälvdalens Datakonsult AB. All rights reserved.
8
** This file is part of the KDGantt library.
10
** This file may be used under the terms of the GNU General Public
11
** License versions 2.0 or 3.0 as published by the Free Software
12
** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
13
** included in the packaging of this file. Alternatively you may (at
14
** your option) use any later version of the GNU General Public
15
** License if such license has been publicly approved by
16
** Klarälvdalens Datakonsult AB (or its successors, if any).
18
** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
19
** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
20
** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
21
** not expressly granted herein.
23
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
24
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
26
** As a special exception, permission is given to link this program
27
** with any edition of Qt, and distribute the resulting executable,
28
** without including the source code for Qt in the source distribution.
30
**********************************************************************/
33
#ifndef KDGANTTVIEWSUMMARYITEM_H
34
#define KDGANTTVIEWSUMMARYITEM_H
36
#include "KDGanttViewItem.h"
38
class KDGanttViewSummaryItem : public KDGanttViewItem
41
KDGanttViewSummaryItem( KDGanttView* view,
42
const QString& lvtext = QString(),
43
const QString& name = QString() );
44
KDGanttViewSummaryItem( KDGanttViewItem* parent,
45
const QString& lvtext = QString(),
46
const QString& name = QString() );
47
KDGanttViewSummaryItem( KDGanttView* view, KDGanttViewItem* after,
48
const QString& lvtext = QString(),
49
const QString& name = QString() );
50
KDGanttViewSummaryItem( KDGanttViewItem* parent, KDGanttViewItem* after,
51
const QString& lvtext = QString(),
52
const QString& name = QString() );
53
virtual ~KDGanttViewSummaryItem();
55
virtual bool moveConnector( Connector, QPoint p );
56
virtual Connector getConnector( QPoint p );
57
void setMiddleTime( const QDateTime& );
58
QDateTime middleTime() const;
59
void setActualEndTime( const QDateTime& end );
60
QDateTime actualEndTime() const;
61
void setStartTime( const QDateTime& start );
62
void setEndTime( const QDateTime& end );
64
virtual KDGanttViewItem::Connector getConnector( QPoint p, bool linkMode );
65
virtual void showItem( bool show = true, int coordY = 0 );
66
QDateTime* myActualEndTime,*myMiddleTime;
67
virtual void initItem();