2002-02-07 JP Rosevear <jpr@ximian.com> * 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
62 lines
2.0 KiB
C
62 lines
2.0 KiB
C
/* Evolution calendar - Event editor dialog
|
||
*
|
||
* Copyright (C) 2000 Ximian, Inc.
|
||
* Copyright (C) 2001 Ximian, Inc.
|
||
*
|
||
* Authors: Miguel de Icaza <miguel@ximian.com>
|
||
* Federico Mena-Quintero <federico@ximian.com>
|
||
* Seth Alves <alves@hungry.com>
|
||
*
|
||
* This program is free software; you can redistribute it and/or
|
||
* modify it under the terms of version 2 of the GNU General Public
|
||
* License as published by the Free Software Foundation.
|
||
*
|
||
* This program is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
* GNU General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU General Public License
|
||
* along with this program; if not, write to the Free Software
|
||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||
*/
|
||
|
||
#ifndef __EVENT_EDITOR_H__
|
||
#define __EVENT_EDITOR_H__
|
||
|
||
#include <libgnome/gnome-defs.h>
|
||
#include <gtk/gtkobject.h>
|
||
#include "comp-editor.h"
|
||
|
||
|
||
|
||
#define TYPE_EVENT_EDITOR (event_editor_get_type ())
|
||
#define EVENT_EDITOR(obj) (GTK_CHECK_CAST ((obj), TYPE_EVENT_EDITOR, EventEditor))
|
||
#define EVENT_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), TYPE_EVENT_EDITOR, EventEditorClass))
|
||
#define IS_EVENT_EDITOR(obj) (GTK_CHECK_TYPE ((obj), TYPE_EVENT_EDITOR))
|
||
#define IS_EVENT_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), TYPE_EVENT_EDITOR))
|
||
|
||
typedef struct _EventEditor EventEditor;
|
||
typedef struct _EventEditorClass EventEditorClass;
|
||
typedef struct _EventEditorPrivate EventEditorPrivate;
|
||
|
||
struct _EventEditor {
|
||
CompEditor parent;
|
||
|
||
/* Private data */
|
||
EventEditorPrivate *priv;
|
||
};
|
||
|
||
struct _EventEditorClass {
|
||
CompEditorClass parent_class;
|
||
};
|
||
|
||
GtkType event_editor_get_type (void);
|
||
EventEditor *event_editor_construct (EventEditor *ee);
|
||
EventEditor *event_editor_new (void);
|
||
void event_editor_show_meeting (EventEditor *ee);
|
||
|
||
|
||
|
||
#endif /* __EVENT_EDITOR_H__ */
|