aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gnome-cal.h
blob: 053737fd4ffa7a4ed3777e1e25ea2e32341c3dbd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * GnomeCalendar widget
 * Copyright (C) 1998 the Free Software Foundation
 *
 * Author: Miguel de Icaza (miguel@kernel.org)
 */

#ifndef GNOME_CALENDAR_APP_H
#define GNOME_CALENDAR_APP_H

#include <libgnome/gnome-defs.h>
#include <libgnomeui/gnome-app.h>

BEGIN_GNOME_DECLS

#define GNOME_CALENDAR(obj)         GTK_CHECK_CAST(obj, gnome_calendar_get_type(), GnomeCalendar)
#define GNOME_CALENDAR_CLASS(class) GTK_CHECK_CAST_CLASS(class, gnome_calendar_get_type(), GnomeCalendarClass)
#define GNOME_IS_CALENDAR(obj)      GTK_CHECK_TYPE(obj, gnome_calendar_get_type())

typedef struct {
    GnomeApp    gnome_app;
    Calendar    *cal;
    time_t      current_display;
    
    GtkWidget   *notebook;
    GtkWidget   *week_view;
    GtkWidget   *day_view;
    GtkWidget   *year_view;
    GtkWidget   *task_view;
    void        *event_editor;
} GnomeCalendar;

typedef struct {
    GnomeAppClass parent_class;
} GnomeCalendarClass;

guint     gnome_calendar_get_type    (void);
GtkWidget *gnome_calendar_new        (char *title);
void      gnome_calendar_load        (GnomeCalendar *gcal, char *file);
void      gnome_calendar_add_object  (GnomeCalendar *gcal, iCalObject *obj);
void      gnome_calendar_next        (GnomeCalendar *gcal);
void      gnome_calendar_previous    (GnomeCalendar *gcal);
void      gnome_calendar_goto        (GnomeCalendar *gcal, time_t new_time);

END_GNOME_DECLS

#endif