From 70398dd9e66a5b78c847ad45e42a168e99b5893a Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Thu, 7 Feb 2002 19:35:18 +0000 Subject: pass meeting boolean for gnome_calendar_edit_object and 2002-02-07 JP Rosevear * gui/e-day-view.c: pass meeting boolean for gnome_calendar_edit_object and gnome_calendar_new_appointment_for * gui/e-week-view-event-item.c: ditto * gui/e-week-view.c: ditto * gui/tasks-control.c (confirm_expunge): kill warning * gui/calendar-commands.c (new_meeting_cb): show a new meeting dialog (new_event_cb): pass new param * gui/gnome-cal.c (gnome_calendar_edit_object): take meeting boolean and show meeting page if true (gnome_calendar_new_appointment_for): takeing meeting param and pass to above (gnome_calendar_new_appointment): add new param * gui/gnome-cal.h: update proto * gui/component-factory.c (create_component): take a comp editor mode, determine vtype (sc_user_create_new_item_cb): check for meeting user creatable item (create_object): add meeting as user creatable item * gui/comp-editor-factory.c (edit_new): get a comp editor mode now, determine vtype and show meeting page if required (queue_edit_new): get comp editor mode (impl_editNew): ditto, plus queue the mode directly instead of determining the vtype * gui/dialogs/event-editor.c (show_meeting): new internal util function to show meeting page (event_editor_show_meeting): show the meeting (schedule_meeting_cmd): use show_meeting * gui/dialogs/event-editor.h: new proto * idl/evolution-calendar.idl: editNew takes a mode rather than a type now * cal-util/Makefile.am: fix includes svn path=/trunk/; revision=15595 --- calendar/idl/evolution-calendar.idl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'calendar/idl/evolution-calendar.idl') diff --git a/calendar/idl/evolution-calendar.idl b/calendar/idl/evolution-calendar.idl index d400f13c01..f38bc9b47a 100644 --- a/calendar/idl/evolution-calendar.idl +++ b/calendar/idl/evolution-calendar.idl @@ -328,12 +328,17 @@ module Calendar { exception BackendContactError {}; exception UnsupportedType {}; + typedef long CompEditorMode; + const CompEditorMode EDITOR_MODE_EVENT = 1 << 0; + const CompEditorMode EDITOR_MODE_MEETING = 1 << 1; + const CompEditorMode EDITOR_MODE_TODO = 1 << 2; + /* Loads a calendar and opens an editor for the specified object */ void editExisting (in string uri, in CalObjUID uid) raises (InvalidURI, BackendContactError); /* Loads a calendar and creates a new component of the specified type */ - void editNew (in string uri, in CalObjType type) + void editNew (in string uri, in CompEditorMode mode) raises (InvalidURI, BackendContactError, UnsupportedType); }; }; -- cgit v1.2.3