Files
evolution/calendar/gui/dialogs/task-editor.h
Chenthill Palanisamy 300ec3f74d Add a boolean variable to denote assigned task and construct the meeting
2004-12-02  Chenthill Palanisamy  <pchenthill@novell.com>

	* gui/dialogs/task-editor.[ch] (task_editor_new), (task_editor_construct),
	(show_assignment):
	Add a boolean variable to denote assigned task and construct the
	meeting page only for the assigned task. Set it as a group item
	in component editor.
	(_TaskEditorPrivate): added the boolean variable (is_assigned).
	(task_editor_init): initialized the variable.
	* gui/dialogs/comp-editor.[ch]: Added functions to set and get whether comp
	 is a group item or individual item.
 	* gui/comp-editor.c (make_title_from_string), (make_title_from_comp):
	Set the Title for the appointment editor window as "Meeting" or "Assigned
	Task" if its a group calendar/task item.
	(_CompEditorPrivate): added a boolean variable (is_group_item).
	(comp_editor_init): initialized the same.
	* gui/dialogs/event-editor.c (event_editor_construct), (show_meeting): Set whether
	the component is a group item or not in comp editor.
	* gui/e-calendar-table.c (e_calendar_table_open_task), (e_calendar_table_open_selected),
	(open_task_by_row): Check whether the component being opened is an assigned task by
	checking for attendees and call open_task with proper value for boolean variable assign.
	* gui/comp-editor-factory.c (edit_existing):
	* gui/e-calendar-table.c (open_task):
	* gui/e-tasks.c (e_tasks_new_task):
	* gui/gnome-cal.c (gnome_calendar_new_task):
	* gui/tasks-component.c (create_new_todo):
	Called the function task_editor_new with a added argument.

svn path=/trunk/; revision=28044
2004-12-02 14:05:50 +00:00

62 lines
2.1 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Evolution calendar - Task 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 __TASK_EDITOR_H__
#define __TASK_EDITOR_H__
#include <gtk/gtkobject.h>
#include "comp-editor.h"
#define TYPE_TASK_EDITOR (task_editor_get_type ())
#define TASK_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TASK_EDITOR, TaskEditor))
#define TASK_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TASK_EDITOR, \
TaskEditorClass))
#define IS_TASK_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TASK_EDITOR))
#define IS_TASK_EDITOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TASK_EDITOR))
typedef struct _TaskEditor TaskEditor;
typedef struct _TaskEditorClass TaskEditorClass;
typedef struct _TaskEditorPrivate TaskEditorPrivate;
struct _TaskEditor {
CompEditor parent;
/* Private data */
TaskEditorPrivate *priv;
};
struct _TaskEditorClass {
CompEditorClass parent_class;
};
GtkType task_editor_get_type (void);
TaskEditor *task_editor_construct (TaskEditor *te,
ECal *client, gboolean is_assigned);
TaskEditor *task_editor_new (ECal *client, gboolean is_assigned);
void task_editor_show_assignment(TaskEditor *te);
#endif /* __TASK_EDITOR_H__ */