00001 /*************************************************************************** 00002 kmymoneybriefschedule.h - description 00003 ------------------- 00004 begin : Sun Jul 6 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 KMYMONEYBRIEFSCHEDULE_H 00023 #define KMYMONEYBRIEFSCHEDULE_H 00024 00025 00026 // ---------------------------------------------------------------------------- 00027 // QT Includes 00028 #include <qwidget.h> 00029 #include <qstringlist.h> 00030 00031 // ---------------------------------------------------------------------------- 00032 // KDE Includes 00033 00034 // ---------------------------------------------------------------------------- 00035 // Project Includes 00036 #include "../widgets/kschedulebriefwidget.h" 00037 #include "../mymoney/mymoneyfile.h" 00038 00043 class KMyMoneyBriefSchedule : public kScheduleBriefWidget { 00044 Q_OBJECT 00045 public: 00046 KMyMoneyBriefSchedule(QWidget *parent=0, const char *name=0); 00047 ~KMyMoneyBriefSchedule(); 00048 void setSchedules(QValueList<MyMoneySchedule> list, const QDate& date); 00049 00050 signals: 00051 void enterClicked(const MyMoneySchedule&, const QDate&); 00052 void skipClicked(const MyMoneySchedule&, const QDate&); 00053 00054 protected slots: 00055 void slotPrevClicked(); 00056 void slotNextClicked(); 00057 void slotEnterClicked(); 00058 void slotSkipClicked(); 00059 00060 private: 00061 QValueList<MyMoneySchedule> m_scheduleList; 00062 unsigned int m_index; 00063 QDate m_date; 00064 00065 void loadSchedule(); 00066 }; 00067 00068 #endif