aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gncal-week-view.h
blob: 151489050442186b5dc7348742157179be080ed0 (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
/* Week view composite widget for gncal
 *
 * Copyright (C) 1998 The Free Software Foundation
 *
 * Author: Federico Mena <quartic@gimp.org>
 */

#ifndef WEEK_VIEW_H
#define WEEK_VIEW_H


#include <gtk/gtktable.h>
#include <libgnome/gnome-defs.h>
#include <libgnomeui/gtkcalendar.h>
#include "gnome-cal.h"
#include "gncal-day-view.h"

BEGIN_GNOME_DECLS


#define GNCAL_WEEK_VIEW(obj)         GTK_CHECK_CAST (obj, gncal_week_view_get_type (), GncalWeekView)
#define GNCAL_WEEK_VIEW_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gncal_week_view_get_type (), GncalWeekViewClass)
#define GNCAL_IS_WEEK_VIEW(obj)      GTK_CHECK_TYPE (obj, gncal_week_view_get_type ())


typedef struct _GncalWeekView GncalWeekView;
typedef struct _GncalWeekViewClass GncalWeekViewClass;

struct _GncalWeekView {
    GtkVBox      box;

    GnomeCalendar *calendar;    /* the calendar we are associated to */

    struct tm start_of_week;

    GncalDayView *days[7];      /* the day view widgets */
    GtkCalendar  *gtk_calendar;     /* At least for now; see the FIXME comments in the .c file */
    GtkWidget    *label;
};

struct _GncalWeekViewClass {
    GtkVBoxClass parent_class;
};


guint      gncal_week_view_get_type       (void);
GtkWidget *gncal_week_view_new            (GnomeCalendar *calendar, time_t start_of_week);

void       gncal_week_view_update         (GncalWeekView *wview, iCalObject *ico, int flags);
void       gncal_week_view_set            (GncalWeekView *wview, time_t start_of_week);


END_GNOME_DECLS

#endif