From 56507b33b546f937f45407602e01148705fd4788 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Mon, 8 Oct 2007 21:52:21 +0000 Subject: [PATCH] display webcit calendar day view with bubble tooltips (incomplete) --- webcit/calendar_view.c | 57 +++++++++++++++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 12 deletions(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 2a25ec14b..ec9d274fb 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -634,6 +634,8 @@ void calendar_day_view_display_events(int year, int month, int inner, int dstart) { int i; icalproperty *p; + icalproperty *l; + icalproperty *n; icalproperty *pe = NULL; struct icaltimetype t; struct icaltimetype te; @@ -725,10 +727,34 @@ void calendar_day_view_display_events(int year, int month, else { wprintf("
"); } - wprintf("", + wprintf("disp_cal[i].cal_msgnum, year, month, day, hour ); + wprintf("%s ", _("Summary:")); + escputs((char *)icalproperty_get_comment(p)); + wprintf("
"); + + l = icalcomponent_get_first_property( + WC->disp_cal[i].cal, + ICAL_LOCATION_PROPERTY); + if (l) { + wprintf("%s ", _("Location:")); + escputs((char *)icalproperty_get_comment(l)); + wprintf("
"); + } + n = icalcomponent_get_first_property( + WC->disp_cal[i].cal, + ICAL_DESCRIPTION_PROPERTY); + if (n) { + wprintf("%s ", _("Notes:")); + escputs((char *)icalproperty_get_comment(n)); + wprintf("
"); + } + wprintf("\">"); escputs((char *) icalproperty_get_comment(p)); wprintf("
\n"); @@ -785,19 +811,20 @@ void calendar_day_view(int year, int month, int day) { wprintf("
"); /** Inner table (the real one) */ - wprintf(" \n"); + wprintf("
\n"); /** Innermost cell (contains hours etc.) */ - wprintf("
"); - wprintf("
"); + wprintf("
", (dayend - daystart) * 30, (dayend - daystart) * 30 @@ -905,6 +932,12 @@ void calendar_day_view(int year, int month, int day) { wprintf("
" /** end of inner table */ "
"); + wprintf("\n" + ); + + } /** * \brief Display today's events. -- 2.30.2