korganizer
whatsnextprint.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef WHATSNEXTPRINT_H
00025 #define WHATSNEXTPRINT_H
00026
00027 #include <klocale.h>
00028 #include "calprintpluginbase.h"
00029
00030 #ifndef KORG_NOPRINTER
00031 namespace KCal {
00032 class Calendar;
00033 }
00034
00035 using namespace KCal;
00036
00037 class CalPrintWhatsNext : public CalPrintPluginBase
00038 {
00039 public:
00040 CalPrintWhatsNext():CalPrintPluginBase() {}
00041 virtual ~CalPrintWhatsNext() {}
00042 virtual QString description() { return i18n("Print What's Next"); }
00043 virtual QString info() { return i18n("Prints a list of all upcoming events and todos."); }
00044 virtual QWidget *createConfigWidget( QWidget* );
00045
00046 public:
00047 virtual void print(QPainter &p, int width, int height);
00048 virtual void readSettingsWidget();
00049 virtual void setSettingsWidget();
00050 virtual void loadConfig();
00051 virtual void saveConfig();
00052 virtual void setDateRange( const QDate& from, const QDate& to );
00053
00054 protected:
00055 bool mUseDateRange;
00056 };
00057
00058
00059 #endif
00060 #endif
|