aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-view.h
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-23 05:13:38 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-23 05:13:38 +0800
commit806e63b32a7fdca4899d89ba236a0eb64726707c (patch)
treeb16e3db0eb30e98b7a700d6854310f3a736c1062 /calendar/gui/e-cal-view.h
parent2c6ab566c91705955a8de51a2937fa97f2a79d91 (diff)
downloadgsoc2013-evolution-806e63b32a7fdca4899d89ba236a0eb64726707c.tar.gz
gsoc2013-evolution-806e63b32a7fdca4899d89ba236a0eb64726707c.tar.zst
gsoc2013-evolution-806e63b32a7fdca4899d89ba236a0eb64726707c.zip
added "get_selected_events", and "update_query" virtual methods.
2003-07-22 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-view.[ch]: added "get_selected_events", and "update_query" virtual methods. (e_cal_view_class_init): initialize new virtual methods. (e_cal_view_destroy): destroy new private members. (e_cal_view_get_selected_events, e_cal_view_set_cal_client, e_cal_view_get_cal_client): new functions. (e_cal_view_cut_clipboard, e_cal_view_copy_clipboard, e_cal_view_paste_clipboard): merged clipboard stuff. * gui/e-day-view.c (e_day_view_cut_clipboard, e_day_view_copy_clipboard, e_day_view_paste_clipboard): removed. (e_day_view_get_selected_events): made these private as the implementation of the 'get_selected_events' base class virtual method. * gui/e-week-view.c (e_week_view_get_selected_events): ditto. (e_week_view_cut_clipboard, e_week_view_copy_clipboard, e_week_view_paste_clipboard): removed. * gui/calendar-commands.c (sensitize_calendar_commands): call e_cal_view_get_selected_events. * gui/gnome-cal.c: removed a lot of redundant code thanks to the above changes. svn path=/trunk/; revision=21893
Diffstat (limited to 'calendar/gui/e-cal-view.h')
-rw-r--r--calendar/gui/e-cal-view.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-view.h b/calendar/gui/e-cal-view.h
index b43fa0301d..d188ee6659 100644
--- a/calendar/gui/e-cal-view.h
+++ b/calendar/gui/e-cal-view.h
@@ -51,15 +51,34 @@ struct _ECalViewClass {
/* Notification signals */
void (* selection_changed) (ECalView *cal_view);
+
+ /* Virtual methods */
+ GList * (* get_selected_events) (ECalView *cal_view);
+ void (* get_selected_time_range) (ECalView *cal_view, time_t *start_time, time_t *end_time);
+ void (* set_selected_time_range) (ECalView *cal_view, time_t start_time, time_t end_time);
+ void (* update_query) (ECalView *cal_view);
};
GType e_cal_view_get_type (void);
GnomeCalendar *e_cal_view_get_calendar (ECalView *cal_view);
void e_cal_view_set_calendar (ECalView *cal_view, GnomeCalendar *calendar);
+CalClient *e_cal_view_get_cal_client (ECalView *cal_view);
+void e_cal_view_set_cal_client (ECalView *cal_view, CalClient *client);
+const gchar *e_cal_view_get_query (ECalView *cal_view);
+void e_cal_view_set_query (ECalView *cal_view, const gchar *sexp);
void e_cal_view_set_status_message (ECalView *cal_view, const gchar *message);
+GList *e_cal_view_get_selected_events (ECalView *cal_view);
+void e_cal_view_get_selected_time_range (ECalView *cal_view, time_t *start_time, time_t *end_time);
+void e_cal_view_set_selected_time_range (ECalView *cal_view, time_t start_time, time_t end_time);
+void e_cal_view_update_query (ECalView *cal_view);
+
+void e_cal_view_cut_clipboard (ECalView *cal_view);
+void e_cal_view_copy_clipboard (ECalView *cal_view);
+void e_cal_view_paste_clipboard (ECalView *cal_view);
+
G_END_DECLS
#endif