~ubuntu-branches/ubuntu/oneiric/kdepim/oneiric-updates

« back to all changes in this revision

Viewing changes to kdgantt1/KDGanttViewSummaryItem.h

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2011-06-28 19:33:24 UTC
  • mfrom: (0.2.13) (0.1.13 sid)
  • Revision ID: package-import@ubuntu.com-20110628193324-8yvjs8sdv9rdoo6c
Tags: 4:4.7.0-0ubuntu1
* New upstream release
  - update install files
  - add missing kdepim-doc package to control file
  - Fix Vcs lines
  - kontact breaks/replaces korganizer << 4:4.6.80
  - tighten the dependency of kdepim-dev on libkdepim4 to fix lintian error

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C++ -*-
2
 
   $Id: KDGanttViewSummaryItem.h 836291 2008-07-22 04:34:42Z pradeepto $
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 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).
17
 
 ** 
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.
22
 
 ** 
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.
25
 
 **
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.
29
 
 **
30
 
 **********************************************************************/
31
 
 
32
 
 
33
 
#ifndef KDGANTTVIEWSUMMARYITEM_H
34
 
#define KDGANTTVIEWSUMMARYITEM_H
35
 
 
36
 
#include "KDGanttViewItem.h"
37
 
 
38
 
class KDGanttViewSummaryItem : public KDGanttViewItem
39
 
{
40
 
public:
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();
54
 
 
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 );
63
 
private:
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();
68
 
    void hideMe();
69
 
 
70
 
 
71
 
};
72
 
 
73
 
#endif