From a767f8cee2be954d01f2dcb630db6e3846c15c2a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Wed, 29 Dec 2004 18:39:11 +0000 Subject: new protos 2004-12-29 JP Rosevear * itip-view.h: new protos * itip-view.c (format_date_and_time_x): don't draw the leading zero in 12hr clock mode for the hour (set_sender_text): make intro statements closer to the UI design (set_description_text): display description (set_info_items): show info items, messages with icons (set_progress_text): show progress text item (for loading/searching calendars) (set_one_button): add a response button (set_buttons): set response buttons based on mode (itip_view_destroy): clear info items (itip_view_class_init): add response signal (itip_view_init): new areas for description, info items, buttons (itip_view_set_description): accessor (itip_view_get_description): ditto (itip_view_add_info_item): add an info item to the display (itip_view_clear_info_items): clear all items (itip_view_set_progress): set the progress message * itip-formatter.c: move over calendar loading, searching code, set more itip view properties * org-gnome-itip-formatter.eplug.in: add a config page item, doesn't do much right now svn path=/trunk/; revision=28207 --- plugins/itip-formatter/itip-view.h | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'plugins/itip-formatter/itip-view.h') diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h index ac9305bf2e..915b3286cb 100644 --- a/plugins/itip-formatter/itip-view.h +++ b/plugins/itip-formatter/itip-view.h @@ -43,10 +43,13 @@ typedef enum { ITIP_VIEW_MODE_NONE, ITIP_VIEW_MODE_PUBLISH, ITIP_VIEW_MODE_REQUEST, + ITIP_VIEW_MODE_COUNTER, + ITIP_VIEW_MODE_DECLINECOUNTER, ITIP_VIEW_MODE_ADD, ITIP_VIEW_MODE_REPLY, ITIP_VIEW_MODE_REFRESH, - ITIP_VIEW_MODE_CANCEL + ITIP_VIEW_MODE_CANCEL, + ITIP_VIEW_MODE_ERROR } ItipViewMode; typedef enum { @@ -55,19 +58,29 @@ typedef enum { ITIP_VIEW_RESPONSE_TENTATIVE, ITIP_VIEW_RESPONSE_DECLINE, ITIP_VIEW_RESPONSE_UPDATE, - ITIP_VIEW_RESPONSE_SEND + ITIP_VIEW_RESPONSE_REFRESH, + ITIP_VIEW_RESPONSE_OPEN } ItipViewResponse; -struct _ItipView -{ +typedef enum { + ITIP_VIEW_INFO_ITEM_TYPE_NONE, + ITIP_VIEW_INFO_ITEM_TYPE_INFO, + ITIP_VIEW_INFO_ITEM_TYPE_WARNING, + ITIP_VIEW_INFO_ITEM_TYPE_ERROR, + ITIP_VIEW_INFO_ITEM_TYPE_PROGRESS +} ItipViewInfoItemType; + + +struct _ItipView { GtkHBox parent_instance; ItipViewPrivate *priv; }; -struct _ItipViewClass -{ +struct _ItipViewClass { GtkHBoxClass parent_class; + + void (* response) (ItipView *view, int response); }; GType itip_view_get_type (void); @@ -91,12 +104,20 @@ const char *itip_view_get_summary (ItipView *view); void itip_view_set_location (ItipView *view, const char *location); const char *itip_view_get_location (ItipView *view); +void itip_view_set_description (ItipView *view, const char *description); +const char *itip_view_get_description (ItipView *view); + void itip_view_set_start (ItipView *view, struct tm *start); const struct tm *itip_view_get_start (ItipView *view); void itip_view_set_end (ItipView *view, struct tm *end); const struct tm *itip_view_get_end (ItipView *view); +void itip_view_add_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +void itip_view_clear_info_items (ItipView *view); + +void itip_view_set_progress (ItipView *view, const char *message); + G_END_DECLS #endif -- cgit v1.2.3