aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.h
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2003-07-24 22:58:40 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2003-07-24 22:58:40 +0800
commit3f060f07b401bad248daab957bbc79a6d21afb6c (patch)
treedfcf1194499596f2d95f70e727291c10bb263fd5 /calendar/gui/e-calendar-view.h
parent148cb18a9a6cb68aefc6cbe0c12f9c8616e46aec (diff)
downloadgsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.gz
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.bz2
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.lz
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.xz
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.tar.zst
gsoc2013-evolution-3f060f07b401bad248daab957bbc79a6d21afb6c.zip
define ECalViewEvent as the base struct for the other views.
2003-07-24 Rodrigo Moya <rodrigo@ximian.com> * gui/e-cal-view.h: define ECalViewEvent as the base struct for the other views. * gui/e-day-view.[ch]: EDayViewEvent is now based on ECalViewEvent. (e_day_view_get_selected_events): made it return a list of ECalViewEvent's, not CalComponent's, so that we can get more information about the events. * gui/e-week-view.[ch]: EWeekViewEvent is now based on ECalViewEvent. (e_week_view_get_selected_events): same as e_day_view_get_selected_events. * gui/e-cal-view.c (e_cal_view_cut_clipboard, e_cal_view_copy_clipboard, e_cal_view_delete_selected_event, e_cal_view_delete_selected_events, on_edit_appointment, on_save_as, on_print_event, on_meeting, on_forward, e_cal_view_create_popup_menu): * gui/calendar-commands.c (sensitize_calendar_commands): updated to read ECalViewEvent's instead of CalComponent's as returned by e_cal_view_get_selected_events(). svn path=/trunk/; revision=21946
Diffstat (limited to 'calendar/gui/e-calendar-view.h')
-rw-r--r--calendar/gui/e-calendar-view.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/calendar/gui/e-calendar-view.h b/calendar/gui/e-calendar-view.h
index 4f71669080..ba9376b467 100644
--- a/calendar/gui/e-calendar-view.h
+++ b/calendar/gui/e-calendar-view.h
@@ -47,6 +47,20 @@ typedef enum {
E_CAL_VIEW_POS_BOTTOM_EDGE
} ECalViewPosition;
+#define E_CAL_VIEW_EVENT_FIELDS \
+ GnomeCanvasItem *canvas_item; \
+ CalClient *client; \
+ CalComponent *comp; \
+ time_t start; \
+ time_t end; \
+ guint16 start_minute; \
+ guint16 end_minute; \
+ guint different_timezone : 1;
+
+typedef struct {
+ E_CAL_VIEW_EVENT_FIELDS
+} ECalViewEvent;
+
typedef struct _ECalView ECalView;
typedef struct _ECalViewClass ECalViewClass;
typedef struct _ECalViewPrivate ECalViewPrivate;
@@ -63,7 +77,7 @@ struct _ECalViewClass {
void (* selection_changed) (ECalView *cal_view);
/* Virtual methods */
- GList * (* get_selected_events) (ECalView *cal_view);
+ GList * (* get_selected_events) (ECalView *cal_view); /* a GList of ECalViewEvent's */
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);
gboolean (* get_visible_time_range) (ECalView *cal_view, time_t *start_time, time_t *end_time);