korganizer
- korganizer
- interfaces
- calendar
21#ifndef KORG_CALENDARDECORATION_H
22#define KORG_CALENDARDECORATION_H
25#include <tqdatetime.h>
28#include <klibloader.h>
40class CalendarDecoration : public Plugin
43 static int interfaceVersion() { return 2; }
44 static TQString serviceType() { return "Calendar/Decoration"; }
46 typedef TQPtrList<CalendarDecoration> List;
48 CalendarDecoration() {}
49 virtual ~CalendarDecoration() {}
54 virtual TQString shortText( const TQDate & ) { return TQString(); }
59 virtual TQString longText( const TQDate & ) { return TQString(); }
64 virtual TQPixmap smallPixmap( const TQDate &) { return TQPixmap(); }
68 virtual TQPixmap largePixmap( const TQDate &) { return TQPixmap(); }
73 virtual TQWidget * smallWidget( TQWidget *, const TQDate & ) { return 0; }
76class CalendarDecorationFactory : public PluginFactory
79 virtual CalendarDecoration *create() = 0;
virtual TQWidget * smallWidget(TQWidget *, const TQDate &) Return a small widget.
virtual TQString longText(const TQDate &) Return along text for a given date.
virtual TQString shortText(const TQDate &) Return a short text for a given date, ususally only a few words.
virtual TQPixmap largePixmap(const TQDate &) Return a large pixmap.
virtual TQPixmap smallPixmap(const TQDate &) Return a small pixmap.
|