Commit Graph

15 Commits

Author SHA1 Message Date
cd27c67fbc new ECalendarTable to show an ETable view for Todo/Event items.
2000-07-25  Damon Chaplin  <damon@helixcode.com>

	* gui/e-calendar-table.[hc]: new ECalendarTable to show an ETable view
	for Todo/Event items.

	* gui/task-assigned-to.xpm:
	* gui/task-recurring.xpm:
	* gui/task-assigned.xpm:
	* gui/task.xpm: new pixmaps (all the same at present) to go in the
	icon column of the ETable.

	* gui/event-editor.c: hid the silly 'Calendar' labels on the
	GnomeDateEdits and hid the times when you select 'All day event'.
	Also adjusted the time_t's so that when an all day event finishes on
	say midnight 13th May, we show 12th May in the dialog, since it
	implicitly includes all of that day up to midnight.

	* gui/dialogs/task-editor-dialog.glade:
	* gui/dialogs/task-editor.[hc]: unfinished dialog to edit tasks.

	* gui/gncal-todo.c: temporary hack so that we can use the simple dialog
	with our new ETable.

svn path=/trunk/; revision=4323
2000-07-25 19:49:15 +00:00
d97ccb4427 Szabolcs BAN <shooby@gnome.hu>
* Small typo fix in calendar/gui/event-editor.c

svn path=/trunk/; revision=4254
2000-07-21 09:51:28 +00:00
943862dd20 Added a get_n_objects() method.
2000-06-09  Federico Mena Quintero  <federico@helixcode.com>

	* idl/evolution-calendar.idl (Cal): Added a get_n_objects()
	method.

	* pcs/cal-backend.c (cal_backend_get_n_objects): New function.

	* pcs/cal-backend-imc.c (cal_backend_imc_get_n_objects):
	Implemented.

	* pcs/cal.c (Cal_get_n_objects): Implemented.

	* cal-client/cal-client.c (cal_client_get_uids): Free the ev.
	(cal_client_get_n_objects): Implemented.

	* cal-util/calobj.h (iCalObjectField): New enumeration to identify
	the fields in an iCalObject.

svn path=/trunk/; revision=3486
2000-06-09 07:04:09 +00:00
9886dd8e2d Added missing tooltips. We still need icons, though.
2000-06-07  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor.c (toolbar): Added missing tooltips.  We still
	need icons, though.

svn path=/trunk/; revision=3477
2000-06-08 14:35:56 +00:00
5c8c96c90d Implemented. (toolbar): Added an icon for the Save and Close command.
2000-06-02  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor.c (tb_save_and_close_cb): Implemented.
	(toolbar): Added an icon for the Save and Close command.
	(save_ical_object): Recompute the title of the window here.  Maybe
	it would be better to do it when we actually get the
	"object_changed" signal from the CalClient.
	(file_close_cb): Implemented.

svn path=/trunk/; revision=3382
2000-06-02 06:35:20 +00:00
9717e6f9ef Implemented. (gnome_calendar_add_object): Removed function, since it was
2000-06-02  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.c (save_ical_object_cb): Implemented.
	(gnome_calendar_add_object): Removed function, since it was
	identical to gnome_calendar_update_object().  Modified the rest
	of the code to use only the latter.
	(gnome_calendar_remove_object): Be more paranoid about the UID.
	(gnome_calendar_update_object): Ditto.  Also, renamed this
	function from gnome_calendar_object_changed(), for consistency
	with the lower-level CalClient interface.

	* gui/event-editor.c (event_editor_class_init): New
	"save_ical_object" signal to ask that our parent store the
	calendar object to the backend.
	(save_ical_object): New function to save the calendar object,
	actually if just emits the signal.
	(file_save_cb): Implemented.
	(dialog_to_ical_object): We want priv->
	alarm_program_run_program_entry (i.e. the entry inside the
	GnomeFileEntry), not the file entry itself.
	(dialog_to_ical_object): Only insert the recurrence ending date if
	the event is recurrent!

svn path=/trunk/; revision=3380
2000-06-02 05:48:02 +00:00
c91b4c129a Handler for the "editor_closed" signal of the event editor; we just
2000-06-01  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.c (editor_closed_cb): Handler for the
	"editor_closed" signal of the event editor; we just destroy it
	then.

	* gui/event-editor.c (app_delete_event_cb): Callback used when the
	dialog is closed.  Release the iCalObject here instead of the
	event editor's destroy handler, and emit the new "editor_closed"
	signal.

svn path=/trunk/; revision=3376
2000-06-02 04:40:44 +00:00
828df57f1f Change of plans. The toplevel GnomeApp is now generated with Glade instead
2000-06-01  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor-dialog.glade: Change of plans.  The toplevel
	GnomeApp is now generated with Glade instead of being created in
	the program code.  Otherwise we can't migrate the accelerators to
	the new toplevel and they won't work.

	* gui/event-editor.[ch]: EventEditor now derives from GtkObject.
	This lets us use the GnomeApp created by libglade and still have
	signals and stuff.

	* gui/event-editor.c (create_menu): Tell the UI handler that the
	menubar is the GnomeApp's existing one, not to create a new one.
	(create_toolbar): Tell the UI handler to use the GnomeApp's
	existing toolbar.
	(event_editor_focus): New function to raise/focus an event editor.

	* gui/gnome-cal.c (gnome_calendar_edit_object): Use
	event_editor_focus().

svn path=/trunk/; revision=3348
2000-06-01 23:55:32 +00:00
19150e7c7b Added a hash table to map calendar objects to their respective event
2000-05-31  Federico Mena Quintero  <federico@helixcode.com>

	* gui/gnome-cal.h (GnomeCalendar): Added a hash table to map
	calendar objects to their respective event editors.

	* gui/gnome-cal.c (gnome_calendar_init): Create the
	object_editor_hash.
	(gnome_calendar_destroy): Free the object_editor_hash.
	(gnome_calendar_edit_object): New function to centralize the
	launching of event editors; if one already exists for a particular
	calendar object, we just raise its window.
	(edit): Use gnome_calendar_edit_object().

	* gui/calendar-commands.c (display_objedit): Use
	gnome_calendar_edit_object().
	(display_objedit_today): Likewise.

	* gui/e-day-view.c (e_day_view_on_new_appointment): Likewise.
	(e_day_view_on_edit_appointment): Likewise.

	* gui/e-week-view.c (e_week_view_on_new_appointment): Likewise.
	(e_week_view_on_edit_appointment): Likewise.

	* gui/event-editor.c (event_editor_new): Do not take in an
	iCalObject; rather provide an event_editor_set_ical_object()
	function.  We need this because a single editor may be switched
	between different calendar objects.  Also, do not show the event
	editor; leave it up to the client code.
	(event_editor_construct): Likewise.
	(clear_widgets): New function to clear the widgets to default
	values.
	(fill_widgets): New function to fill in the widgets from the
	iCalObject.  We don't do this in init_widgets() anymore.
	(free_exception_clist_data): New function to free the exceptions
	clist data.  We were leaking the row data.
	(init_widgets): Hook to the destroy signal of the exceptions
	clist.
	(event_editor_set_ical_object): New function.  Now it also makes a
	copy of the calendar object for the event editor; clients do not
	need to copy it anymore.
	(event_editor_destroy): Unref the UI handler as well.
	(event_editor_class_init): New "ical_object_released" signal to
	notify the parent that we are no longer editing the calendar
	object.
	(make_title_from_ico): Handle NULL objects.

	* gui/event-editor.h (EventEditor): Removed fields that are no
	longer used.

svn path=/trunk/; revision=3317
2000-06-01 00:48:01 +00:00
c4fe21d4f6 Create the UI handler after we have constructed the parent GnomeApp.
2000-05-30  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor.c (event_editor_construct): Create the UI
	handler after we have constructed the parent GnomeApp.
	(main_menu): Menu template is now in place.
	(toolbar): Tollbar template is now in place.
	(create_toolbar): Turn off labels in the toolbar since it sucks;
	it should support non-homogeneous buttons with horizontal icons
	and text.

svn path=/trunk/; revision=3308
2000-05-31 02:30:24 +00:00
336efb38c6 Flush - Federico
svn path=/trunk/; revision=3280
2000-05-30 14:47:38 +00:00
144db69758 Put the main notebook directly under a simple GtkWindow. We are going to
2000-05-25  Federico Mena Quintero  <federico@helixcode.com>

	* gui/event-editor-dialog.glade: Put the main notebook directly
	under a simple GtkWindow.  We are going to pull out the notebook
	and slap it into our custom-built GnomeApp, anwyays.

	* gui/event-editor.c: Made the EventEditor derive from GnomeApp.
	Added a BonoboUIHandler for its menu and toolbar.
	(make_title_from_ico): Create a nice title for the window.
	(get_widgets): Fetch the Glade widgets here instead of all over
	the place.
	(event_editor_new): Temporary hack to show the dialog here, just
	so that I can test it.

	* gui/Makefile.am (EXTRA_DIST): Added the Glade messages file.

svn path=/trunk/; revision=3214
2000-05-26 14:22:52 +00:00
da0a13df5e hooked up more widget signals to callbacks to the gladified dialog acts
* gui/event-editor.c: hooked up more widget signals to callbacks
	to the gladified dialog acts more like the original one.

svn path=/trunk/; revision=3106
2000-05-17 17:27:12 +00:00
f8cb586400 hook the radio buttons to the pages of the notebook. (append_exception):
* gui/event-editor.c (recurrence_toggled): hook the radio buttons
	to the pages of the notebook.
	(append_exception):
	(recurrence_exception_added):
	(recurrence_exception_deleted):
	(recurrence_exception_changed): code to deal with the recurrence
	exception list.

	* gui/event-editor.[ch]: gladeified replacement for eventedit.c

	* gui/event-editor-utils.[ch]: utilities used by event-editor.c

	* gui/event-editor-dialog.glade: glade file used by event-editor.c

svn path=/trunk/; revision=3092
2000-05-16 16:35:44 +00:00
98317c6565 gladeified replacement for eventedit.c
* gui/event-editor.[ch]: gladeified replacement for eventedit.c

	* gui/event-editor-utils.[ch]: utilities used by event-editor.c

	* gui/event-editor-dialog.glade: glade file used by event-editor.c

svn path=/trunk/; revision=3046
2000-05-15 16:51:36 +00:00