From 4cb6cea812a9c2ac31402071005193dadecb646e Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 3 Jan 2005 14:47:17 +0000 Subject: new protos, signal 2005-01-03 JP Rosevear * itip-view.h: new protos, signal * itip-view.c (set_info_items): be more generic so both upper and lower setting can use it (set_upper_info_items): set the upper info items (set_lower_info_items): ditto for lower items (itip_view_destroy): clear both sets of info items (itip_view_class_init): add source selected signalo (itip_view_init): add separate upper and lower info item areas and a detail area (itip_view_add_upper_info_item): add upper info item (itip_view_remove_upper_info_item): remove a singal upper area info item (itip_view_clear_upper_info_items): clear them all (itip_view_add_lower_info_item): as above (itip_view_remove_lower_info_item): ditto (itip_view_clear_lower_info_items): ditto (source_selected_cb): emit the source selected signal when the source in the option menu changes (itip_view_set_source_list): take a source list and create an e-source-option-menu if its non-null (itip_view_get_source_list): get source list (itip_view_set_source): set a specific source in the source option menu (itip_view_get_source): obtain that source (itip_view_set_rsvp): get the rsvp status (itip_view_get_rsvp): set it (itip_view_set_show_rsvp): set visibility of rsvp check box (itip_view_get_show_rsvp): get the visibility of rsvp check box (itip_view_set_buttons_sensitive): set button sensitivity (itip_view_get_buttons_sensitive): get button sensitivity * itip-formatter.c (find_my_address): find the user's address in the list of attendees (set_buttons_sensitive): set the action buttons sensitivity appropriately (cal_opened_cb): use above (start_calendar_server): ditto (start_calendar_server_by_uid): de-sensitize buttons to start (source_selected_cb): ditto (find_cal_opened_cb): check for conflicting appointments; set informative info area items (find_server): create the sexp for determining conflicts (update_item): oset informative info area items (view_response_cb): implement some of the responses, start on implementing rsvp svn path=/trunk/; revision=28215 --- plugins/itip-formatter/itip-view.h | 30 ++++++++++++++++++++++++++---- 1 file changed, 26 insertions(+), 4 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 915b3286cb..c42a931b31 100644 --- a/plugins/itip-formatter/itip-view.h +++ b/plugins/itip-formatter/itip-view.h @@ -25,6 +25,7 @@ #include #include +#include G_BEGIN_DECLS @@ -73,13 +74,16 @@ typedef enum { struct _ItipView { GtkHBox parent_instance; - + ItipViewPrivate *priv; + + GtkWidget *action_vbox; }; struct _ItipViewClass { GtkHBoxClass parent_class; + void (* source_selected) (ItipView *view, ESource *selected_source); void (* response) (ItipView *view, int response); }; @@ -113,10 +117,28 @@ 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); +guint itip_view_add_upper_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +void itip_view_remove_upper_info_item (ItipView *view, guint id); +void itip_view_clear_upper_info_items (ItipView *view); + +guint itip_view_add_lower_info_item (ItipView *view, ItipViewInfoItemType, const char *message); +void itip_view_remove_lower_info_item (ItipView *view, guint id); +void itip_view_clear_lower_info_items (ItipView *view); + +void itip_view_set_source_list (ItipView *view, ESourceList *source_list); +ESourceList *itip_view_get_source_list (ItipView *view); + +void itip_view_set_source (ItipView *view, ESource *source); +ESource *itip_view_get_source (ItipView *view); + +void itip_view_set_rsvp (ItipView *view, gboolean rsvp); +gboolean itip_view_get_rsvp (ItipView *view); + +void itip_view_set_show_rsvp (ItipView *view, gboolean rsvp); +gboolean itip_view_get_show_rsvp (ItipView *view); -void itip_view_set_progress (ItipView *view, const char *message); +void itip_view_set_buttons_sensitive (ItipView *view, gboolean sensitive); +gboolean itip_view_get_buttons_sensitive (ItipView *view); G_END_DECLS -- cgit v1.2.3