diff options
author | Damon Chaplin <damon@helixcode.com> | 2001-01-08 08:47:35 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-01-08 08:47:35 +0800 |
commit | a223b88a9034f0c33f2e979403e1352ff822f8a2 (patch) | |
tree | 180ec792800fb8d2468fb2ae6829b5c87cc7f5f8 /calendar/gui/e-tasks.h | |
parent | 45b8f9d767b5a178e0fdcb48901e664334fd8183 (diff) | |
download | gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar.gz gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar.bz2 gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar.lz gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar.xz gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.tar.zst gsoc2013-evolution-a223b88a9034f0c33f2e979403e1352ff822f8a2.zip |
added new source files for the Tasks folders.
2001-01-08 Damon Chaplin <damon@helixcode.com>
* gui/Makefile.am: added new source files for the Tasks folders.
* gui/e-tasks.[hc]: new widget to encapsulate the Tasks view.
* gui/tasks-control.[hc]: new files to implement the Tasks control.
* gui/tasks-control-factory.[hc]: new files to implement the factory
for the Tasks controls. (I think the way I've split the code up is a
lot cleaner than the GnomeCal implementation - the factory file just
contains the factory functions and the control file contains all the
control functions. Maybe we should make GnomeCal like this.)
* gui/main.c: initialize the Tasks control factory.
* gui/component-factory.c: added support for the Tasks control.
Also added a "create_folder" function so we can now create new Tasks
and Calendar folders within Evolution.
I'm not a Bonobo expert so someone might want to check these over.
* gui/calendar-config.[hc]: added convenience functions to configure
the common settings of ECalendar and EDateEdit widgets.
* gui/dialogs/task-editor.c (task_editor_create_date_edit):
* gui/gnome-cal.c (gnome_calendar_update_config_settings):
* gui/event-editor.c: used function to configure the ECalendars
and EDateEdits.
* gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event):
fixed minor bug in format strings.
svn path=/trunk/; revision=7297
Diffstat (limited to 'calendar/gui/e-tasks.h')
-rw-r--r-- | calendar/gui/e-tasks.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/calendar/gui/e-tasks.h b/calendar/gui/e-tasks.h new file mode 100644 index 0000000000..86dbb1ff56 --- /dev/null +++ b/calendar/gui/e-tasks.h @@ -0,0 +1,71 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* e-tasks.h + * + * Copyright (C) 2001 Helix Code, Inc. + * + * 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; either version 2 of the + * License, or (at your option) any later version. + * + * 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. + * + * Authors: Federico Mena Quintero <federico@helixcode.com> + * Damon Chaplin <damon@helixcode.com> + */ + +#ifndef _E_TASKS_H_ +#define _E_TASKS_H_ + +#include <cal-client/cal-client.h> + + +#define E_TYPE_TASKS (e_tasks_get_type ()) +#define E_TASKS(obj) (GTK_CHECK_CAST ((obj), E_TYPE_TASKS, ETasks)) +#define E_TASKS_CLASS(klass) (GTK_CHECK_CAST_CLASS ((klass), E_TYPE_TASKS, \ + ETasksClass)) +#define E_IS_TASKS(obj) (GTK_CHECK_TYPE ((obj), E_TYPE_TASKS)) +#define E_IS_TASKS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), E_TYPE_TASKS)) + +typedef struct _ETasks ETasks; +typedef struct _ETasksClass ETasksClass; +typedef struct _ETasksPrivate ETasksPrivate; + +struct _ETasks { + GtkTable table; + + /* Private data */ + ETasksPrivate *priv; +}; + +struct _ETasksClass { + GtkTableClass parent_class; +}; + + +typedef enum { + E_TASKS_OPEN, + E_TASKS_OPEN_OR_CREATE +} ETasksOpenMode; + +GtkType e_tasks_get_type (void); +GtkWidget *e_tasks_construct (ETasks *tasks); + +GtkWidget *e_tasks_new (void); + +gboolean e_tasks_open (ETasks *tasks, + char *file, + ETasksOpenMode gcom); + +CalClient *e_tasks_get_cal_client (ETasks *tasks); + + +#endif /* _E_TASKS_H_ */ |