From e8fc80828146ad2bbc4794d61cfec472a3c8939f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Wed, 20 Aug 2008 17:46:33 +0000 Subject: [PATCH] Changed the tabbed dialog API to include an epilogue that can be used to display data common to all tabs, such as submit buttons. Removed recurring event support from TECH_PREVIEW and moved into the mainline code. Event editor tabs for Event/Attendees/Recurrence are now working, even though the Recurrence tab doesn't yet display an editor, for now it just displays the raw RRULE data. --- webcit/event.c | 87 ++++++++++++++++------------------ webcit/messages.c | 89 ++++++++++++++--------------------- webcit/siteconfig.c | 7 ++- webcit/static/t/trailing.html | 2 +- webcit/static/webcit.css | 2 +- webcit/tabs.c | 40 +++++++++++----- 6 files changed, 111 insertions(+), 116 deletions(-) diff --git a/webcit/event.c b/webcit/event.c index 05d08400a..cb6b75dda 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -79,9 +79,6 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("
\n"); wprintf("
"); -#ifndef TECH_PREVIEW - wprintf("
\n"); -#endif /************************************************************ * Uncomment this to see the UID in calendar events for debugging @@ -108,16 +105,14 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("\n", bstr("day")); -#ifdef TECH_PREVIEW - char *tabnames[] = { // FIXME localize these when the code is finished - "Event", - "Attendees", - "Recurrence" + char *tabnames[] = { + _("Event"), + _("Attendees"), + _("Recurrence") }; tabbed_dialog(3, tabnames); begin_tab(0, 3); -#endif /* Put it in a borderless table so it lines up nicely */ wprintf("\n"); @@ -193,7 +188,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("\n"); - /** + /* * If this is an all-day-event, set the end time to be identical to * the start time (the hour/minute/second will be set to midnight). * Otherwise extract or create it. @@ -211,7 +206,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, t_end = icalproperty_get_dtend(p); } else { - /** + /* * If this is not an all-day event and there is no * end time specified, make the default one hour * from the start time. @@ -325,7 +320,15 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, wprintf("\n"); - /** Attendees */ + + /** Done with properties. */ + wprintf("
\n"); + + end_tab(0, 3); + + /* Attendees tab (need to move things here) */ + begin_tab(1, 3); + wprintf("\n"); /* same table style as the event tab */ wprintf("
"); wprintf(_("Attendees")); wprintf("
" @@ -342,7 +345,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum, _("Attendees"), _("Contacts") ); - /** Pop open an address book -- end **/ + /* Pop open an address book -- end **/ wprintf("
" "