kscheduledlistitem.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kscheduledlistitem.h  -  description
00003                              -------------------
00004     begin                : Sun Jan 27 2002
00005     copyright            : (C) 2000-2002 by Michael Edwardes
00006     email                : mte@users.sourceforge.net
00007                            Javier Campos Morales <javi_c@users.sourceforge.net>
00008                            Felix Rodriguez <frodriguez@users.sourceforge.net>
00009                            John C <thetacoturtle@users.sourceforge.net>
00010                            Thomas Baumgart <ipwizard@users.sourceforge.net>
00011                            Kevin Tambascio <ktambascio@users.sourceforge.net>
00012  ***************************************************************************/
00013 
00014 /***************************************************************************
00015  *                                                                         *
00016  *   This program is free software; you can redistribute it and/or modify  *
00017  *   it under the terms of the GNU General Public License as published by  *
00018  *   the Free Software Foundation; either version 2 of the License, or     *
00019  *   (at your option) any later version.                                   *
00020  *                                                                         *
00021  ***************************************************************************/
00022 
00023 #ifndef KSCHEDULEDLISTITEM_H
00024 #define KSCHEDULEDLISTITEM_H
00025 
00026 // ----------------------------------------------------------------------------
00027 // QT Includes
00028 
00029 #include <qpixmap.h>
00030 
00031 // ----------------------------------------------------------------------------
00032 // KDE Includes
00033 
00034 #include <klistview.h>
00035 
00036 // ----------------------------------------------------------------------------
00037 // Project Includes
00038 
00039 #include <kmymoney/mymoneyscheduled.h>
00040 
00046 class KScheduledListItem : public KListViewItem
00047 {
00048 public:
00066   KScheduledListItem(KListView *parent, const QString& description, const QPixmap& pixmap = QPixmap(), const QString& sortKey = QString());
00067 
00079   KScheduledListItem(KScheduledListItem *parent, const MyMoneySchedule& schedule/*, bool even*/);
00080 
00084   ~KScheduledListItem();
00085 
00094   const QString& scheduleId(void) const { return m_schedule.id(); }
00095 
00096   int compare(QListViewItem* i, int col, bool ascending) const;
00097 
00098 protected:
00099   void paintCell(QPainter* p, const QColorGroup& cg, int column, int width, int align);
00100 
00101 private:
00102   MyMoneySchedule m_schedule;
00103   QString         m_sortKey;
00104   MyMoneyMoney    m_amount;
00105 };
00106 
00107 #endif

Generated on Wed Jan 26 13:03:18 2011 for KMyMoney by  doxygen 1.5.6