kmymoneyscheduleddatetbl.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           kmymoneyscheduleddatetbl.h  -  description
00003                              -------------------
00004     begin                : Thu Jul 3 2003
00005     copyright            : (C) 2000-2003 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 #ifndef KMYMONEYSCHEDULEDDATETBL_H
00023 #define KMYMONEYSCHEDULEDDATETBL_H
00024 
00025 
00026 // ----------------------------------------------------------------------------
00027 // QT Includes
00028 
00029 // ----------------------------------------------------------------------------
00030 // KDE Includes
00031 
00032 // ----------------------------------------------------------------------------
00033 // Project Includes
00034 
00035 #include "../widgets/kmymoneydatetbl.h"
00036 #include "../widgets/kmymoneybriefschedule.h"
00037 #include "../mymoney/mymoneyscheduled.h"
00038 
00043 class kMyMoneyScheduledDateTbl : public kMyMoneyDateTbl
00044 {
00045   Q_OBJECT
00046 public:
00047   kMyMoneyScheduledDateTbl(QWidget *parent=0,
00048          QDate date=QDate::currentDate(),
00049          const char* name=0, WFlags f=0);
00050 
00051   ~kMyMoneyScheduledDateTbl();
00052   void refresh();
00053   void filterBills(bool enable);
00054   void filterDeposits(bool enable);
00055   void filterTransfers(bool enable);
00056   void setFilterAccounts(const QStringList& list) { m_filterAccounts = list; repaintContents(false); }
00057 
00058 signals:
00059   void enterClicked(const MyMoneySchedule&, const QDate&);
00060   void skipClicked(const MyMoneySchedule&, const QDate&);
00061 
00062 protected:
00063   void drawCellContents(QPainter *painter, int row, int col, const QDate& theDate);
00064   void addDayPostfix(QString& text);
00065   void contentsMouseMoveEvent(QMouseEvent* e);
00066 
00067 private:
00068   bool m_filterBills, m_filterDeposits, m_filterTransfers;
00069   QStringList m_filterAccounts;
00070   KMyMoneyBriefSchedule briefWidget;
00071 };
00072 
00073 #endif

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