aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gnome-cal.h
blob: da53f298824b665b6ee9118e10ae837138e2257f (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
 * 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 <gnome.h>

#include "calendar.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   *day_view;
    GtkWidget   *week_view;
    GtkWidget   *month_view;
    GtkWidget   *year_view;
    GtkWidget   *year_view_sw;
    void        *event_editor;
} GnomeCalendar;

typedef struct {
    GnomeAppClass parent_class;
} GnomeCalendarClass;

guint      gnome_calendar_get_type          (void);
GtkWidget *gnome_calendar_new               (char *title);
int        gnome_calendar_load              (GnomeCalendar *gcal,
                         char *file);
void       gnome_calendar_add_object        (GnomeCalendar *gcal,
                         iCalObject *obj);
void       gnome_calendar_remove_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);
void       gnome_calendar_dayjump           (GnomeCalendar *gcal,
                         time_t time);
/* Jumps to the current day */
void       gnome_calendar_goto_today            (GnomeCalendar *gcal);
void       gnome_calendar_tag_calendar          (GnomeCalendar *cal,
                         GtkCalendar *gtk_cal);
char      *gnome_calendar_get_current_view_name (GnomeCalendar *gcal);
void       gnome_calendar_set_view              (GnomeCalendar *gcal,
                         char *page_name);

/* Flags is a bitmask of CalObjectChange values */
void       gnome_calendar_object_changed        (GnomeCalendar *gcal,
                         iCalObject *obj,
                         int flags);

GnomeCalendar *gnome_calendar_locate            (const char *pathname);

/* Notifies the calendar that the time format has changed and it must update all its views */
void gnome_calendar_time_format_changed (GnomeCalendar *gcal);

/* Notifies the calendar that the todo list properties have changed and its time to update the views */
void 
gnome_calendar_colors_changed (GnomeCalendar *gcal);

/* Notifies the calendar that the todo list properties have changed and its time to update the views */
void 
gnome_calendar_todo_properties_changed (GnomeCalendar *gcal);


END_GNOME_DECLS

#endif
0/+4 * The KDE FreeBSD team is proud to announce the release of SIP-4.10 andfluffy2010-01-301-3/+3 * - Update py-qt4* to 4.6.2miwi2009-11-271-3/+3 * - Update py-qt4 to py-qt4.5.4miwi2009-08-051-3/+3 * Update PyQt4 ports to 4.4.4, new ports:makc2009-02-153-28/+22 * The first iteration of the py-qt4-* ports had a snapshot date as itsmiwi2008-07-261-0/+1 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - Update to 4.3.3miwi2008-03-202-13/+15 * - Update to 4.3.1miwi2007-10-022-4/+4 * - Update to PyQt-4.3miwi2007-09-144-200/+30 * - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1 * - Update to 4.2miwi2007-04-183-25/+42