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 TQString description() { return i18n("Print What's Next"); }
00043 virtual TQString info() { return i18n("Prints a list of all upcoming events and todos."); }
00044 virtual int sortID() { return 50; }
00045 virtual TQWidget *createConfigWidget( TQWidget* );
00046
00047 public:
00048 virtual void print(TQPainter &p, int width, int height);
00049 virtual void readSettingsWidget();
00050 virtual void setSettingsWidget();
00051 virtual void loadConfig();
00052 virtual void saveConfig();
00053 virtual void setDateRange( const TQDate& from, const TQDate& to );
00054
00055 protected:
00056 bool mUseDateRange;
00057 };
00058
00059
00060 #endif
00061 #endif
|