diff options
author | Not Zed <NotZed@Ximian.com> | 2004-10-06 11:22:39 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-10-06 11:22:39 +0800 |
commit | 7501aec23887fe0d6e68620b00326c6f2fc3c260 (patch) | |
tree | 24ddc5d35c642a08ea93e8dc3c1c8c7b223e29c5 /calendar/gui/e-cal-popup.h | |
parent | f745553229591ed3f620761b91e7ed447d1800fa (diff) | |
download | gsoc2013-evolution-7501aec23887fe0d6e68620b00326c6f2fc3c260.tar.gz gsoc2013-evolution-7501aec23887fe0d6e68620b00326c6f2fc3c260.tar.zst gsoc2013-evolution-7501aec23887fe0d6e68620b00326c6f2fc3c260.zip |
cast warning away. (create_component_view): connect to popup_event rather
2004-10-01 Not Zed <NotZed@Ximian.com>
* gui/tasks-component.c (create_component_view): cast warning
away.
(create_component_view): connect to popup_event rather than
fill_popup_menu.
* gui/calendar-component.c (create_component_view): cast a warning
away.
* calendar-errors.xml: add prompt-delete-task-list.
* gui/tasks-component.c (fill_popup_menu_cb): renamed to
popup_event_cb, make use e-cal-popup.
(edit_task_list_cb, new_task_list_cb, delete_task_list_cb)
(copy_task_list_cb): deja-vu. update for api.
(add_popup_menu_item): killed. murdered. drawn and quatered.
(delete_task_list_cb): use e-error for the delete prompt.
* gui/calendar-component.c (create_component_view): hook onto
popup event instead of fill_popup_menu.
* calendar-errors.xml: added prompt-delete-calendar.
* gui/calendar-component.c (fill_popup_menu_cb): rename to
popup_event_cb, make use e-cal-popup.
(edit_calendar_cb, new_calendar_cb, delete_calendar_cb)
(copy_calendar_cb): fix for api changes.
(add_popup_menu_item): removed.
(delete_calendar_cb): use e-error for the delete thing.
* gui/e-cal-popup.[ch]: calendar popup driver.
svn path=/trunk/; revision=27467
Diffstat (limited to 'calendar/gui/e-cal-popup.h')
-rw-r--r-- | calendar/gui/e-cal-popup.h | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/calendar/gui/e-cal-popup.h b/calendar/gui/e-cal-popup.h new file mode 100644 index 0000000000..81d2d51976 --- /dev/null +++ b/calendar/gui/e-cal-popup.h @@ -0,0 +1,145 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +/* + * Authors: Michael Zucchi <notzed@ximian.com> + * + * Copyright 2004 Novell, Inc. (www.novell.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * 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 Street #330, Boston, MA 02111-1307, USA. + * + */ + +#ifndef __E_CAL_POPUP_H__ +#define __E_CAL_POPUP_H__ + +#include <glib-object.h> + +#include "e-util/e-popup.h" + +#ifdef __cplusplus +extern "C" { +#pragma } +#endif /* __cplusplus */ + +typedef struct _ECalPopup ECalPopup; +typedef struct _ECalPopupClass ECalPopupClass; + +/** + * enum _e_cal_popup_target_t - A list of mail popup target types. + * + * @E_CAL_POPUP_TARGET_SELECT: A selection of cards + * @E_CAL_POPUP_TARGET_SOURCE: A source selection. + * + * Defines the value of the targetid for all ECalPopup target types. + **/ +enum _e_cal_popup_target_t { + E_CAL_POPUP_TARGET_SELECT, + E_CAL_POPUP_TARGET_SOURCE, +}; + +/** + * enum _e_cal_popup_target_select_t - ECalPopupTargetSelect qualifiers. + * + * @E_CAL_POPUP_SELECT_ONE: Only one item is selected. + * @E_CAL_POPUP_SELECT_MANY: One ore more items are selected. + * + **/ +enum _e_cal_popup_target_select_t { + E_CAL_POPUP_SELECT_ONE = 1<<1, + E_CAL_POPUP_SELECT_MANY = 1<<2, +}; + +/** + * enum _e_cal_popup_target_source_t - ECalPopupTargetSource qualifiers. + * + * @E_CAL_POPUP_SOURCE_PRIMARY: Has a primary selection. + * @E_CAL_POPUP_SOURCE_SYSTEM: Is a 'system' folder. + * + **/ +enum _e_cal_popup_target_source_t { + E_CAL_POPUP_SOURCE_PRIMARY = 1<<0, + E_CAL_POPUP_SOURCE_SYSTEM = 1<<1, /* system folder */ + E_CAL_POPUP_SOURCE_USER = 1<<2, /* user folder (!system) */ +}; + +typedef struct _ECalPopupTargetSelect ECalPopupTargetSelect; +typedef struct _ECalPopupTargetSource ECalPopupTargetSource; + +/** + * struct _ECalPopupTargetSelect - A list of address cards. + * + * @target: Superclass. + * + * Used to represent a selection of appointments as context for a popup + * menu. + * + * FIXME: impelemnt me + **/ +struct _ECalPopupTargetSelect { + EPopupTarget target; +}; + +/** + * struct _ECalPopupTargetSource - A source target. + * + * @target: Superclass. + * @selector: Selector holding the source selection. + * + * This target is used to represent a source selection. + **/ +struct _ECalPopupTargetSource { + EPopupTarget target; + + struct _ESourceSelector *selector; +}; + +typedef struct _EPopupItem ECalPopupItem; + +/* The object */ +struct _ECalPopup { + EPopup popup; + + struct _ECalPopupPrivate *priv; +}; + +struct _ECalPopupClass { + EPopupClass popup_class; +}; + +GType e_cal_popup_get_type(void); + +ECalPopup *e_cal_popup_new(const char *menuid); + +ECalPopupTargetSelect *e_cal_popup_target_new_select(ECalPopup *eabp); +ECalPopupTargetSource *e_cal_popup_target_new_source(ECalPopup *eabp, struct _ESourceSelector *selector); + +/* ********************************************************************** */ + +typedef struct _ECalPopupHook ECalPopupHook; +typedef struct _ECalPopupHookClass ECalPopupHookClass; + +struct _ECalPopupHook { + EPopupHook hook; +}; + +struct _ECalPopupHookClass { + EPopupHookClass hook_class; +}; + +GType e_cal_popup_hook_get_type(void); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __E_CAL_POPUP_H__ */ |