diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1998-10-21 08:19:23 +0800 |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1998-10-21 08:19:23 +0800 |
commit | ca3be9e5c8b44e0c1d246c567e8a64730c7d3202 (patch) | |
tree | 8f51e2261cbfc3cbc4e5098e4067faecbd9115c2 /calendar/week-view.h | |
parent | 450e506e9d3040b3a54cd0554af2c33fbffec14f (diff) | |
download | gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar.gz gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar.bz2 gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar.lz gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar.xz gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.tar.zst gsoc2013-evolution-ca3be9e5c8b44e0c1d246c567e8a64730c7d3202.zip |
Week view work in progress - Federico
svn path=/trunk/; revision=455
Diffstat (limited to 'calendar/week-view.h')
-rw-r--r-- | calendar/week-view.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/calendar/week-view.h b/calendar/week-view.h new file mode 100644 index 0000000000..1bf6a4ed02 --- /dev/null +++ b/calendar/week-view.h @@ -0,0 +1,63 @@ +/* Week view display for gncal + * + * Copyright (C) 1998 The Free Software Foundation + * + * Author: Federico Mena <federico@nuclecu.unam.mx> + */ + +#ifndef WEEK_VIEW_H +#define WEEK_VIEW_H + +#include <libgnome/gnome-defs.h> +#include "gnome-cal.h" + +BEGIN_GNOME_DECLS + + +#define TYPE_WEEK_VIEW (week_view_get_type ()) +#define WEEK_VIEW(obj) (GTK_CHECK_CAST ((obj), TYPE_WEEK_VIEW, WeekView)) +#define WEEK_VIEW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), TYPE_WEEK_VIEW, WeekViewClass)) +#define IS_WEEK_VIEW(obj) (GTK_CHECK_TYPE ((obj), TYPE_WEEK_VIEW)) +#define IS_WEEK_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_WEEK_VIEW)) + + +typedef struct _WeekView WeekView; +typedef struct _WeekViewClass WeekViewClass; + +struct _WeekView { + GnomeCanvas canvas; + + GnomeCalendar *calendar; /* The calendar we are associated to */ + + time_t week; /* Start of the week we are viewing */ + + GnomeCanvasItem *title; /* The title of the week view */ +}; + +struct _WeekViewClass { + GnomeCanvasClass parent_class; +}; + + +/* Standard Gtk function */ +GtkType week_view_get_type (void); + +/* Creates a new week view associated to the specified calendar */ +GtkWidget *week_view_new (GnomeCalendar *calendar, time_t week); + +/* Notifies the week view that a calendar object has changed */ +void week_view_update (WeekView *wv, iCalObject *ico, int flags); + +/* Notifies the week view about a change of date */ +void week_view_set (WeekView *wv, time_t week); + +/* Notifies the week view that the time format has changed */ +void week_view_time_format_changed (WeekView *wv); + +/* Notifies the week view that the colors have changed */ +void week_view_colors_changed (WeekView *wv); + + +END_GNOME_DECLS + +#endif |