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

kdgantt1

KDGanttViewTaskLinkGroup.h

Go to the documentation of this file.
00001 /* -*- Mode: C++ -*-
00002    $Id: KDGanttViewTaskLinkGroup.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 #ifndef KDGANTTVIEWTASKLINKGROUP_H
00034 #define KDGANTTVIEWTASKLINKGROUP_H
00035 
00036 
00037 #include "kdgantt_qt3_compat.h"
00038 
00039 #include "KDGanttViewTaskLink.h"
00040 
00041 
00042 class KDTimeTableWidget;
00043 class KDGanttView;
00044 
00045 class KDGanttViewTaskLinkGroup : public QObject
00046 {
00047 public:
00048     KDGanttViewTaskLinkGroup( const QString& name );
00049     KDGanttViewTaskLinkGroup();
00050     ~KDGanttViewTaskLinkGroup();
00051     void insert (KDGanttViewTaskLink*) ;
00052     bool remove (KDGanttViewTaskLink*);
00053 
00054     void setVisible( bool show );
00055     bool visible() const;
00056 
00057     void setHighlight( bool highlight );
00058     bool highlight() const;
00059 
00060     void setColor( const QColor& color );
00061     QColor color() const;
00062     void setHighlightColor( const QColor& color );
00063     QColor highlightColor() const;
00064 
00065     static KDGanttViewTaskLinkGroup* find( const QString& name );
00066 
00067     void createNode( QDomDocument& doc,
00068                      QDomElement& parentElement );
00069     static KDGanttViewTaskLinkGroup* createFromDomElement( QDomElement& );
00070 
00071 private:
00072     friend class KDTimeTableWidget;
00073     friend class KDGanttViewTaskLink;
00074 
00075     bool isvisible,ishighlighted;
00076     QColor myColor, myColorHL;
00077     QPtrList<KDGanttViewTaskLink> myTaskLinkList;
00078     QString _name;
00079 
00080     void insertItem(KDGanttViewTaskLink*);
00081     void removeItem (KDGanttViewTaskLink*);
00082 
00083     static QDict<KDGanttViewTaskLinkGroup> sGroupDict;
00084 };
00085 
00086 #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