/* Evolution calendar - Main calendar view widget * * Copyright (C) 1998 The Free Software Foundation * Copyright (C) 2000 Ximian, Inc. * Copyright (C) 2001 Ximian, Inc. * * Authors: Miguel de Icaza * Federico Mena-Quintero * Seth Alves * * 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 GNOME_CALENDAR_APP_H #define GNOME_CALENDAR_APP_H #include #include #include #include #include #include #include "e-calendar-table.h" G_BEGIN_DECLS #define GNOME_TYPE_CALENDAR (gnome_calendar_get_type ()) #define GNOME_CALENDAR(obj) (GTK_CHECK_CAST ((obj), GNOME_TYPE_CALENDAR, GnomeCalendar)) #define GNOME_CALENDAR_CLASS(klass) (GTK_CHECK_CAST_CLASS ((klass), GNOME_TYPE_CALENDAR, \ GnomeCalendarClass)) #define GNOME_IS_CALENDAR(obj) (GTK_CHECK_TYPE ((obj), GNOME_TYPE_CALENDAR)) #define GNOME_IS_CALENDAR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GNOME_TYPE_CALENDAR)) typedef struct _GnomeCalendar GnomeCalendar; typedef struct _GnomeCalendarClass GnomeCalendarClass; typedef struct _GnomeCalendarPrivate GnomeCalendarPrivate; /* View types */ typedef enum { GNOME_CAL_DAY_VIEW, GNOME_CAL_WORK_WEEK_VIEW, GNOME_CAL_WEEK_VIEW, GNOME_CAL_MONTH_VIEW } GnomeCalendarViewType; typedef enum { GNOME_CAL_GOTO_TODAY, GNOME_CAL_GOTO_DATE, GNOME_CAL_GOTO_FIRST_DAY_OF_MONTH, GNOME_CAL_GOTO_LAST_DAY_OF_MONTH, GNOME_CAL_GOTO_FIRST_DAY_OF_WEEK, GNOME_CAL_GOTO_LAST_DAY_OF_WEEK, GNOME_CAL_GOTO_SAME_DAY_OF_PREVIOUS_WEEK, GNOME_CAL_GOTO_SAME_DAY_OF_NEXT_WEEK } GnomeCalendarGotoDateType; struct _GnomeCalendar { GtkVBox vbox; /* Private data */ GnomeCalendarPrivate *priv; }; struct _GnomeCalendarClass { GtkVBoxClass parent_class; /* Notification signals */ void (* dates_shown_changed) (GnomeCalendar *gcal); void (* calendar_selection_changed) (GnomeCalendar *gcal); void (* taskpad_selection_changed) (GnomeCalendar *gcal); void (* calendar_focus_change) (GnomeCalendar *gcal, gboolean in); void (* taskpad_focus_change) (GnomeCalendar *gcal, gboolean in); void (* goto_date) (GnomeCalendar *day_view, GnomeCalendarGotoDateType date); }; GtkType gnome_calendar_get_type (void); GtkWidget *gnome_calendar_construct (GnomeCalendar *gcal); GtkWidget *gnome_calendar_new (void); void gnome_calendar_set_ui_component (GnomeCalendar *cal, BonoboUIComponent *ui_component); ECalendarTable *gnome_calendar_get_task_pad (GnomeCalendar *gcal); CalClient *gnome_calendar_get_cal_client (GnomeCalendar *gcal); CalClient *gnome_calendar_get_task_pad_cal_client(GnomeCalendar *gcal); gboolean gnome_calendar_open (GnomeCalendar *gcal, const char *str_uri); void gnome_calendar_set_query (GnomeCalendar *gcal, const char *sexp); void gnome_calendar_next (GnomeCalendar *gcal); void gnome_calendar_previous (GnomeCalendar *gcal); void gnome_calendar_goto (GnomeCalendar *gcal, time_t new_time); void gnome_calendar_dayjump (GnomeCalendar *gcal, time_t time); /* Jumps to the current day */ void gnome_calendar_goto_today (GnomeCalendar *gcal); GnomeCalendarViewType gnome_calendar_get_view (GnomeCalendar *gcal); void gnome_calendar_set_view (GnomeCalendar *gcal, GnomeCalendarViewType view_type, gboolean range_selected, gboolean grab_focus); GtkWidget *gnome_calendar_get_current_view_widget (GnomeCalendar *gcal); void gnome_calendar_setup_view_menus (GnomeCalendar *gcal, BonoboUIComponent *uic); void gnome_calendar_discard_view_menus (GnomeCalendar *gcal); EPopupMenu *gnome_calendar_setup_view_popup (GnomeCalendar *gcal); void gnome_calendar_discard_view_popup (GnomeCalendar *gcal, EPopupMenu *popup); void gnome_calendar_set_selected_time_range (GnomeCalendar *gcal, time_t start_time, time_t end_time); void gnome_calendar_get_selected_time_range (GnomeCalendar *gcal, time_t *start_time, time_t *end_time); void gnome_calendar_edit_object (GnomeCalendar *gcal, CalComponent *comp, gboolean meeting); void gnome_calendar_new_appointment (GnomeCalendar *gcal); void gnome_calendar_new_appointment_for (GnomeCalendar *cal, time_t dtstart, time_t dtend, gboolean all_day, gboolean meeting); void gnome_calendar_new_task (GnomeCalendar *gcal); /* Returns the selected time range for the current view. Note that this may be different from the fields in the GnomeCalendar, since the view may clip this or choose a more appropriate time. */ void gnome_calendar_get_current_time_range (GnomeCalendar *gcal, time_t *start_time, time_t *end_time); /* Gets the visible time range for the current view. Returns FALSE if no time range has been set yet. */ gboolean gnome_calendar_get_visible_time_range (GnomeCalendar *gcal, time_t *start_time, time_t *end_time); /* Returns the number of selected events (0 or 1 at present). */ gint gnome_calendar_get_num_events_selected (GnomeCalendar *gcal); /* Returns the number of selected tasks */ gint gnome_calendar_get_num_tasks_selected (GnomeCalendar *gcal); /* Tells the calendar to reload all config settings. initializing should be TRUE when we are setting the config settings for the first time. */ void gnome_calendar_update_config_settings (GnomeCalendar *gcal, gboolean initializing); /* Get the current timezone. */ icaltimezone *gnome_calendar_get_timezone (GnomeCalendar *gcal); /* Clipboard operations */ void gnome_calendar_cut_clipboard (GnomeCalendar *gcal); void gnome_calendar_copy_clipboard (GnomeCalendar *gcal); void gnome_calendar_paste_clipboard (GnomeCalendar *gcal); void gnome_calendar_delete_selection (GnomeCalendar *gcal); void gnome_calendar_delete_selected_occurrence (GnomeCalendar *gcal); void gnome_calendar_unrecur_selection (GnomeCalendar *gcal); void gnome_calendar_purge (GnomeCalendar *gcal, time_t older_than); G_END_DECLS #endif ='list nowrap'>Commit message (Expand)AuthorAgeFilesLines * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-0/+1 * Add MASTER_SITES, update WWW.jkoshy2003-12-062-3/+5 * Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.trevor2003-11-131-1/+1 * Fix build breakage with the GCC 3.3.1.jkoshy2003-08-152-1/+16 * Make this port build on 5-CURRENT.jkoshy2003-03-302-3/+40 * Clear moonlight beckons.ade2003-03-072-1/+1 * Mark this port as only for the i386 architecture.jkoshy2002-07-011-0/+2 * Install with the correct user:group.jkoshy2001-12-241-0/+2 * Update to v110.0.7.jkoshy2000-10-273-22/+28 * Fix a patch failure that affects non-ELF systems, for v110.0.6.jkoshy2000-10-111-4/+4 * Rename ${FILISDER}/patch-* to ${FILESDIRA}/extra-patch-*. (These patchesasami2000-10-081-2/+2 * Downgrade the sml-nj port to the current `release' version v110.0.6. Thejkoshy2000-06-143-87/+548 * Convert to the PORTNAME - PORTVERSION syntax.obrien2000-04-121-23/+22 * Fix building of SML/NJ under 4-CURRENT after 1999/7/25.jkoshy2000-01-282-3/+30 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * awk -> ${AWK}mharo1999-08-231-2/+2 * chmod -> ${CHMOD}mharo1999-08-231-2/+2 * Commit #3/4 to enforce caps, no period.hoek1999-06-271-1/+1 * Yet more WWW: additionsmharo1999-05-031-1/+1 * Correct stale patch.jkoshy1999-02-021-8/+8 * Forced commit to record unbreaking for ELF.jkoshy1999-02-021-1/+1 * Add patch for ELF support.jkoshy1999-02-021-0/+15 * Unbreak for ELF.jkoshy1999-02-022-3/+15 * Clean up MASTER_SITES. Remove unneeded patch.jkoshy1998-11-221-5/+9 * Upgrade to v110.9.1. Unbreak.jkoshy1998-11-206-47/+281 * Refer people needed a lighter weight implementation of ML to Chuck Robey'sjkoshy1998-08-031-0/+4 * Mark port as BROKEN till issues on library source paths, usage of thejkoshy1998-07-201-1/+3