kdgantt

KDGanttViewSummaryItem.h

00001 /* -*- Mode: C++ -*-
00002    $Id: KDGanttViewSummaryItem.h 297547 2004-03-21 13:34:17Z rogowski $
00003    KDGantt - a multi-platform charting engine
00004 */
00005 /****************************************************************************
00006  ** Copyright (C)  2002-2004 Klarälvdalens Datakonsult AB.  All rights reserved.
00007  **
00008  ** This file is part of the KDGantt library.
00009  **
00010  ** This file may be distributed and/or modified under the terms of the
00011  ** GNU General Public License version 2 as published by the Free Software
00012  ** Foundation and appearing in the file LICENSE.GPL included in the
00013  ** packaging of this file.
00014  **
00015  ** Licensees holding valid commercial KDGantt licenses may use this file in
00016  ** accordance with the KDGantt Commercial License Agreement provided with
00017  ** the Software.
00018  **
00019  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00020  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00021  **
00022  ** See http://www.klaralvdalens-datakonsult.se/Public/products/ for
00023  **   information about KDGantt Commercial License Agreements.
00024  **
00025  ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
00026  ** licensing are not clear to you.
00027  **
00028  ** As a special exception, permission is given to link this program
00029  ** with any edition of Qt, and distribute the resulting executable,
00030  ** without including the source code for Qt in the source distribution.
00031  **
00032  **********************************************************************/
00033 
00034 
00035 #ifndef KDGANTTVIEWSUMMARYITEM_H
00036 #define KDGANTTVIEWSUMMARYITEM_H
00037 
00038 #include "KDGanttViewItem.h"
00039 
00040 class KDGanttViewSummaryItem : public KDGanttViewItem
00041 {
00042 public:
00043     KDGanttViewSummaryItem( KDGanttView* view,
00044                             const QString& lvtext = QString::null,
00045                             const QString& name = QString::null );
00046     KDGanttViewSummaryItem( KDGanttViewItem* parent,
00047                             const QString& lvtext = QString::null,
00048                             const QString& name = QString::null );
00049     KDGanttViewSummaryItem( KDGanttView* view, KDGanttViewItem* after,
00050                             const QString& lvtext = QString::null,
00051                             const QString& name = QString::null );
00052     KDGanttViewSummaryItem( KDGanttViewItem* parent, KDGanttViewItem* after,
00053                             const QString& lvtext = QString::null,
00054                             const QString& name = QString::null );
00055     virtual ~KDGanttViewSummaryItem();
00056 
00057     void setMiddleTime( const QDateTime& );
00058     QDateTime middleTime() const;
00059     void setActualEndTime( const QDateTime& end );
00060     QDateTime actualEndTime() const;
00061     void setStartTime( const QDateTime& start );
00062     void setEndTime( const QDateTime& end );
00063 private:
00064     void showItem( bool show = true, int coordY = 0 );
00065     QDateTime* myActualEndTime,*myMiddleTime;
00066     void initItem();
00067     void hideMe();
00068 
00069 
00070 };
00071 
00072 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys