• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

kdgantt1

KDGanttViewTaskItem.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002    $Id: KDGanttViewTaskItem.h 836291 2008-07-22 04:34:42Z pradeepto $
00003    KDGantt - a multi-platform charting engine
00004 */
00005 
00006 /****************************************************************************
00007  ** Copyright (C)  2002-2004 Klarälvdalens Datakonsult AB.  All rights reserved.
00008  **
00009  ** This file is part of the KDGantt library.
00010  **
00011  ** This file may be used under the terms of the GNU General Public
00012  ** License versions 2.0 or 3.0 as published by the Free Software
00013  ** Foundation and appearing in the files LICENSE.GPL2 and LICENSE.GPL3
00014  ** included in the packaging of this file.  Alternatively you may (at
00015  ** your option) use any later version of the GNU General Public
00016  ** License if such license has been publicly approved by
00017  ** Klarälvdalens Datakonsult AB (or its successors, if any).
00018  ** 
00019  ** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
00020  ** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
00021  ** A PARTICULAR PURPOSE. Klarälvdalens Datakonsult AB reserves all rights
00022  ** not expressly granted herein.
00023  ** 
00024  ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00025  ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00026  **
00027  ** As a special exception, permission is given to link this program
00028  ** with any edition of Qt, and distribute the resulting executable,
00029  ** without including the source code for Qt in the source distribution.
00030  **
00031  **********************************************************************/
00032 
00033 
00034 #ifndef KDGANTTVIEWTASKITEM_H
00035 #define KDGANTTVIEWTASKITEM_H
00036 
00037 #include "KDGanttViewItem.h"
00038 class QBrush;
00039 
00040 class KDGanttViewTaskItem : public KDGanttViewItem
00041 {
00042 public:
00043     KDGanttViewTaskItem( KDGanttView* view,
00044                             const QString& lvtext = QString(),
00045                             const QString& name = QString() );
00046     KDGanttViewTaskItem( KDGanttViewItem* parent,
00047                             const QString& lvtext = QString(),
00048                             const QString& name = QString() );
00049     KDGanttViewTaskItem( KDGanttView* view, KDGanttViewItem* after,
00050                             const QString& lvtext = QString(),
00051                             const QString& name = QString() );
00052     KDGanttViewTaskItem( KDGanttViewItem* parent, KDGanttViewItem* after,
00053                             const QString& lvtext = QString(),
00054                             const QString& name = QString() );
00055     virtual ~KDGanttViewTaskItem();
00056 
00057     virtual bool moveConnector( Connector, QPoint p );
00058     virtual Connector getConnector( QPoint p );
00059     void setStartTime( const QDateTime& start );
00060     void setEndTime( const QDateTime& end );
00061     unsigned int getTimeForTimespan( const QDateTime & start, const QDateTime & end );
00062 protected:
00063     virtual void showItem( bool show = true, int coordY = 0 );
00064 private:
00065     virtual KDGanttViewItem::Connector getConnector( QPoint p, bool linkMode );
00066     virtual void initItem();
00067     void hideMe();
00068     QBrush myBrush, undefinedBrush;
00069     bool _showUndefinedBrush;
00070 };
00071 
00072 #endif

kdgantt1

Skip menu "kdgantt1"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal