korganizer Library API Documentation

kotodoviewitem.h

00001 /* 00002 This file is part of KOrganizer. 00003 Copyright (c) 2000, 2001 Cornelius Schumacher <schumacher@kde.org> 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 */ 00019 #ifndef KOTODOVIEWITEM_H 00020 #define KOTODOVIEWITEM_H 00021 00022 #include <qfont.h> 00023 #include <qfontmetrics.h> 00024 #include <qlineedit.h> 00025 #include <qptrlist.h> 00026 #include <qstrlist.h> 00027 #include <qlistbox.h> 00028 #include <qpopupmenu.h> 00029 #include <qlabel.h> 00030 #include <qmap.h> 00031 #include <qlistview.h> 00032 #include <qpixmap.h> 00033 #include <qimage.h> 00034 #include <kglobalsettings.h> 00035 00036 #include <libkcal/calendar.h> 00037 #include <libkcal/todo.h> 00038 00039 using namespace KCal; 00040 00041 class KOTodoView; 00042 00050 class KOTodoViewItem : public QCheckListItem 00051 { 00052 public: 00059 KOTodoViewItem(QListView *parent, Todo *todo, KOTodoView *kotodo); 00060 KOTodoViewItem(KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo); 00061 virtual ~KOTodoViewItem() {} 00062 00063 void construct(); 00064 00065 Todo *todo() { return mTodo; } 00066 00067 QString key(int, bool) const; 00068 00069 void setSortKey(int column,const QString &key); 00070 00071 bool isAlternate(); 00072 00073 virtual void paintCell(QPainter *p, const QColorGroup &cg, 00074 int column, int width, int alignment); 00075 00076 protected: 00077 #if QT_VERSION >= 300 00078 void paintBranches(QPainter *p,const QColorGroup & cg,int w,int y,int h); 00079 #else 00080 #endif 00081 virtual void stateChange(bool); 00082 00083 private: 00084 Todo *mTodo; 00085 KOTodoView *mTodoView; 00086 00087 QMap<int,QString> mKeyMap; 00088 uint m_odd : 1; 00089 uint m_known : 1; 00090 uint m_unused : 30; 00091 bool m_init; 00092 }; 00093 00094 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:14 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003