KDGanttViewSummaryItem.h
00001 /* -*- Mode: C++ -*- 00002 $Id$ 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 TQt, and distribute the resulting executable, 00030 ** without including the source code for TQt 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 TQString& lvtext = TQString(), 00045 const TQString& name = TQString() ); 00046 KDGanttViewSummaryItem( KDGanttViewItem* parent, 00047 const TQString& lvtext = TQString(), 00048 const TQString& name = TQString() ); 00049 KDGanttViewSummaryItem( KDGanttView* view, KDGanttViewItem* after, 00050 const TQString& lvtext = TQString(), 00051 const TQString& name = TQString() ); 00052 KDGanttViewSummaryItem( KDGanttViewItem* parent, KDGanttViewItem* after, 00053 const TQString& lvtext = TQString(), 00054 const TQString& name = TQString() ); 00055 virtual ~KDGanttViewSummaryItem(); 00056 00057 void setMiddleTime( const TQDateTime& ); 00058 TQDateTime middleTime() const; 00059 void setActualEndTime( const TQDateTime& end ); 00060 TQDateTime actualEndTime() const; 00061 void setStartTime( const TQDateTime& start ); 00062 void setEndTime( const TQDateTime& end ); 00063 private: 00064 void showItem( bool show = true, int coordY = 0 ); 00065 TQDateTime* myActualEndTime,*myMiddleTime; 00066 void initItem(); 00067 void hideMe(); 00068 00069 00070 }; 00071 00072 #endif