21 #ifndef KORG_CALENDARDECORATION_H
22 #define KORG_CALENDARDECORATION_H
25 #include <tqdatetime.h>
28 #include <klibloader.h>
43 static int interfaceVersion() { return 2; }
44 static TQString serviceType() { return "Calendar/Decoration"; }
46 typedef TQPtrList<CalendarDecoration> List;
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; }
76 class CalendarDecorationFactory : public PluginFactory
79 virtual CalendarDecoration *create() = 0;
|