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