00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOINCIDENCETOOLTIP_H
00024 #define KOINCIDENCETOOLTIP_H
00025
00026 #include <tqtooltip.h>
00027
00028 namespace KCal
00029 {
00030 class Calendar;
00031 class Incidence;
00032 }
00033 using namespace KCal;
00034
00035 class KOAgendaItem;
00036
00040 class KOIncidenceToolTip : public TQToolTip
00041 {
00042 public:
00043 KOIncidenceToolTip( TQWidget *widget, Calendar *calendar, const TQDate &date, TQToolTipGroup *group = 0 )
00044 : TQToolTip (widget, group), mCalendar( calendar ), mDate( date ), mText(0) {}
00045
00046
00047 public:
00048 static void add ( TQWidget *widget, Calendar *calendar,
00049 Incidence *incidence, const TQDate &date=TQDate(),
00050 TQToolTipGroup *group = 0, const TQString &longText = "" );
00051 static void add( KOAgendaItem *item, Calendar *calendar,
00052 Incidence *incidence = 0, const TQDate &date=TQDate(),
00053 TQToolTipGroup *group = 0 );
00054
00055
00056 void maybeTip( const TQPoint &pos );
00057
00058 private:
00059 Calendar *mCalendar;
00060 TQDate mDate;
00061 TQString mText;
00062 };
00063
00064 #endif