aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/event-editor.h
blob: 3cd00e9604a358b56612830543f6dee9692384e1 (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
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */

#ifndef __EVENT_EDITOR_DIALOG_H__
#define __EVENT_EDITOR_DIALOG_H__

#include "gnome-cal.h"
#include <glade/glade.h>
#include <libgnomeui/gnome-dialog.h>

typedef struct {

    /* The associated ical object */
    iCalObject *ical;

    /* The calendar owner of this event */
        GnomeCalendar *gnome_cal;

    /*
    char *description;
    char *host;
    int port;
    char *rootdn;
    */
} EventEditor;


GtkWidget *event_editor_new (GnomeCalendar *owner, iCalObject *ico);

/* Convenience function to create and show a new event editor for an
 * event that goes from day_begin to day_end of the specified day.
 */
void event_editor_new_whole_day (GnomeCalendar *owner, time_t day);

GtkWidget *make_date_edit (void);
GtkWidget *date_edit_new (time_t the_time, int show_time);

GtkWidget *make_spin_button (int val, int low, int high);



#endif /* __EVENT_EDITOR_DIALOG_H__ */