Commit Graph

90 Commits

Author SHA1 Message Date
2c95c4d8e9 added virtual method to get a VTIMEZONE component given a TZID. We need
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* pcs/cal-backend.[hc]: added virtual method to get a VTIMEZONE
	component given a TZID. We need this to resolve TZIDs when expanding
	an event using cal_recur_generate_instances() in query.c.

	* pcs/cal-backend-file.c (cal_backend_file_get_timezone): implemented
	virtual method.
	(cal_backend_file_update_object): fixed bug, kind -> child_kind.

	* pcs/query.c (func_occur_in_time_range): use the virtual method for
	resolving TZIDs. The other way didn't work anyway, as we didn't have
	the entire VCALENDAR with VTIMEZONEs in it.

	* gui/dialogs/recurrence-page.c (init_widgets):
	(make_ending_until_special): moved the call to
	e_date_edit_set_get_time_callback() from init_widgets to
	make_ending_until_special(), since that is where the widget gets
	created.

	* gui/e-timezone-entry.c (e_timezone_entry_set_timezone): handle zone
	being NULL.

svn path=/trunk/; revision=10732
2001-07-03 06:06:18 +00:00
eb52ee5a86 New files with the alarm options dialog; this configures the
2001-07-02  Federico Mena Quintero  <federico@ximian.com>

	* gui/dialogs/alarm-options.[ch]: New files with the alarm options
	dialog; this configures the repeat/duration properties and the
	options specific to each alarm action type.

	* gui/dialogs/alarm-page.c (AlarmPagePrivate): Added the alarm
	options button.  Also, keep an alarm structure which we are
	editing and an alarm options dialog.
	(init_widgets): Connect to the options button.
	(add_clicked_cb): Clone the component we are editing instead of
	creating a new one so that we preserve the data from the alarm
	options dialog.
	(button_options_clicked_cb): Pop up the alarm options dialog.

	* cal-util/cal-component.c (cal_component_alarm_new): Doh,
	initialize the other fields in the new alarm.

svn path=/trunk/; revision=10731
2001-07-03 04:48:06 +00:00
642d32d63f cal-client/cal-client.[hc] cal-util/cal-component.c
2001-07-03  Damon Chaplin  <damon@ximian.com>

	* cal-client/cal-client.[hc]
	* cal-util/cal-component.c
	* cal-util/cal-recur.[hc]
	* cal-util/test-recur.c
	* cal-util/timeutil.c
	* gui/calendar-config.c
	* gui/calendar-model.[hc]
	* gui/comp-util.[hc]
	* gui/e-calendar-table.c
	* gui/e-day-view-main-item.c
	* gui/e-day-view-top-item.c
	* gui/e-day-view.[hc]
	* gui/e-itip-control.c
	* gui/e-timezone-entry.[hc]
	* gui/e-week-view.[hc]
	* gui/gnome-cal.[hc]
	* gui/goto.c
	* gui/tag-calendar.[hc]
	* gui/dialogs/cal-prefs-dialog.c
	* gui/dialogs/comp-editor-page.[hc]
	* gui/dialogs/comp-editor-util.[hc]
	* gui/dialogs/comp-editor.c
	* gui/dialogs/e-timezone-dialog.[hc]
	* gui/dialogs/event-page.c
	* gui/dialogs/meeting-page.c
	* gui/dialogs/recurrence-page.c
	* gui/dialogs/task-details-page.c
	* gui/dialogs/task-details-page.glade
	* gui/dialogs/task-page.c
	* idl/evolution-calendar.idl
	* pcs/cal-backend-file.c
	* pcs/cal-backend.c
	* pcs/cal-backend.h
	* pcs/cal.c
	* pcs/query.c: timezone changes everywhere. There's still quite a
	few things to update, and its not working well at present.

svn path=/trunk/; revision=10729
2001-07-03 04:21:37 +00:00
d1d0712ae2 publish free/busy information for the currently viewed time range
2001-07-02  JP Rosevear  <jpr@ximian.com>

	* gui/calendar-commands.c (publish_freebusy_cmd): publish
	free/busy information for the currently viewed time range

svn path=/trunk/; revision=10723
2001-07-03 03:48:53 +00:00
07dacea3ed Support for repeat/duration properties in alarm components.
2001-07-02  Federico Mena Quintero  <federico@ximian.com>

	Support for repeat/duration properties in alarm components.

	* cal-util/cal-component.h (CalAlarmRepeat): New structure that
	pairs the repeat/duration values of an alarm component, which must
	be set both together or not set at all.

	* cal-util/cal-component.c (CalComponentAlarm): Added fields for
	the repeat and duration properties.
	(scan_alarm_property): Scan the DURATION and REPEAT properties.
	(make_alarm): Nullify/initialize all the fields in the alarm.
	(cal_component_alarm_get_repeat): New function.
	(cal_component_alarm_set_repeat): New function.

	* gui/dialogs/alarm-page.glade: Changed the label of display
	alarms from "Show a dialog" to "Display a message".

svn path=/trunk/; revision=10706
2001-07-02 21:46:36 +00:00
b006d69369 fill in delegated from field
2001-07-02  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-details-page.c
	(task_details_page_fill_widgets): fill in delegated from field

svn path=/trunk/; revision=10701
2001-07-02 20:39:33 +00:00
309177c38a use the new self-contained e_categories_config_open_dialog_for_entry()
2001-07-02  Rodrigo Moya <rodrigo@ximian.com>

	* gui/dialogs/task-page.c (categories_clicked_cb):
	* gui/dialogs/event-page.c (categories_clicked_cb): use the new
	self-contained e_categories_config_open_dialog_for_entry() function

	* gui/e-week-view-event-item.c (e_week_view_item_draw_icons):
	* gui/e-day-view-top-item.c (e_day_view_reshape_long_event):
	(e_day_view_reshape_day_event): ditto
	* gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event):
	use e_categories_config_get_icon_for() to retrieve the icon
	associated with each category

svn path=/trunk/; revision=10699
2001-07-02 19:44:16 +00:00
b4e780fd75 implement
2001-07-02  JP Rosevear  <jpr@ximian.com>

	* gui/e-itip-control.c (send_freebusy): implement

	* cal-util/cal-component.c (set_attendee_list): add the delto
	property rather than the delfrom property twice

	* gui/dialogs/task-editor.c (task_editor_edit_comp): show
	delegation info if appropriate
	(delegate_task_cmd): delegate command
	(cancel_task_cmd): cancel command
	(refresh_task_cmd): refresh command

	* gui/dialogs/task-details-page.c: Load new widgets
	(task_details_page_show_delegation): show/hide delegation info widgets

	* gui/dialogs/task-details-page.h: new proto

	* gui/dialogs/event-editor.c (event_editor_edit_comp): free
	attendee list when finished

	* gui/dialogs/comp-editor.c (setup_widgets): explicitly show the
	widgets, update pixmaps after the verbs have been added
	(comp_editor_focus): don't do a show all

svn path=/trunk/; revision=10697
2001-07-02 19:21:49 +00:00
a0afdf4f53 Fixes bug #1406.
2001-06-30  Federico Mena Quintero  <federico@ximian.com>

	Fixes bug #1406.

	* gui/calendar-config.c (config_read): Handle the options for the
	task list colors.
	(calendar_config_write): Ditto.
	(calendar_config_get_tasks_due_today_color): New function.
	(calendar_config_set_tasks_due_today_color): New function.
	(calendar_config_get_tasks_overdue_color): New function.
	(calendar_config_set_tasks_overdue_color): New function.
	(calendar_config_configure_e_calendar_table): Use
	e_table_model_changed() for the colors.

	* gui/dialogs/cal-prefs-dialog.glade: Updated the options for the
	task list and alarms.

	* gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_show_config):
	Update the task list settings.
	(cal_prefs_dialog_update_config): Ditto.

	* gui/calendar-model.c (get_color): Deal with tasks for today as
	well as overdue tasks.  Make it cleaner, even though we have to
	duplicate a chunk of is_overdue().

	* gui/calendar-commands.c (preferences_cmd): Renamed from
	properties_cmd().

svn path=/trunk/; revision=10648
2001-07-01 04:59:24 +00:00
03b231a20b Renamed the occur field to occur_start; added an occur_end field. This way
2001-06-26  Federico Mena Quintero  <federico@ximian.com>

	* idl/evolution-calendar.idl (CalAlarmInstance): Renamed the occur
	field to occur_start; added an occur_end field.  This way we can
	present the complete times for the occurrence from the server.

	* cal-util/cal-component.h (CalAlarmInstance): Likewise.

	* pcs/cal-backend-file.c (add_alarm_occurrences_cb): Fill the new
	fields appropriately.
	(generate_absolute_triggers): Likewise; we use -1 in case the
	component has no DTSTART or DTEND because there are no meaningful
	occurrence dates here.
	(fill_alarm_instances_seq): Fill in the new fields.

	* cal-client/cal-client.c (build_alarm_instance_list): Likewise.

	* gui/alarm-notify/alarm-notify-dialog.c (alarm_notify_dialog):
	Take in both the occur_start and occur_end times.

	* gui/goto.c (goto_dialog): Free the dlg structure on the bail-out
	cases.

	* gui/dialogs/event-page.c (get_widgets): Do not assert if we
	cannot find the main widget; just return FALSE.

	* gui/dialogs/alarm-page.c (get_widgets): Likewise.

	* gui/dialogs/task-page.c (get_widgets): Likewise.

	* gui/dialogs/task-details-page.c (get_widgets): Likewise.

	* gui/dialogs/meeting-page.c (get_widgets): Likewise.

svn path=/trunk/; revision=10517
2001-06-27 00:12:28 +00:00
2c1887f5fe Converted to use BonoboXObject.
2001-06-24  Federico Mena Quintero  <federico@ximian.com>

	* gui/alarm-notify/alarm-notify.c: Converted to use BonoboXObject.

	* gui/gnome-cal.c (gnome_calendar_open): Ask the alarm
	notification service to add the calendar and tasks URIs.
	(add_alarms): New function.

	* gui/alarm-notify/notify-main.c (main): Doh, fixed typo in the
	OAFIID.
	(main): Initialize and shut down gnome-vfs.

	* gui/Makefile.am (IDLS): Added evolution-calendar.idl, sigh.
	(evolution_calendar_SOURCES): Added the files generated from the IDL.

	* gui/alarm-notify/alarm-queue.c (alarm_trigger_cb): New function
	used when an alarm is triggered.

	* gui/dialogs/Makefile.am: Removed the alarm-notify-dialog files;
	they are now in gui/alarm-notify.

	* gui/alarm-notify/Makefile.am: Added the alarm-notify-dialog
	files.

	* pcs/cal.c (cal_forget_password): This was incorrectly named
	cal_client_forget_password(); renamed it.

	* gui/main.c (main): Initialize and shut down gnome-vfs.

svn path=/trunk/; revision=10453
2001-06-24 22:53:14 +00:00
91cc026904 Update the copyrights, replacing Helix Code with Ximian and
helixcode.com with ximian.com all over the place.

svn path=/trunk/; revision=10440
2001-06-23 08:52:02 +00:00
825502031f update to new call
2001-06-21  JP Rosevear  <jpr@ximian.com>

	* gui/main.c (main): update to new call

	* gui/e-itip-control.[hc]: break the widget bits out on their own
	into a proper object, basic stuff seems to be working again

	* gui/itip-control-factory.c: put the control specific bits here
	from e-itip-control.c

	* gui/itip-control-factory.h: new header

svn path=/trunk/; revision=10389
2001-06-22 02:40:59 +00:00
fce00ebfea add include path
2001-06-21  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/Makefile.am (gladedir): add include path

svn path=/trunk/; revision=10384
2001-06-21 20:41:00 +00:00
b6ef512a92 remove buttons and use evolution's standard ui config
2001-06-21  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (setup_widgets): remove buttons and
	use evolution's standard ui config

	* gui/print.c (print_comp_item): print description text

svn path=/trunk/; revision=10383
2001-06-21 20:39:58 +00:00
7aac092a0a print menu command (print_preview_cmd): ditto for print preview
2001-06-20  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor.c (print_cmd): print menu command
	(print_preview_cmd): ditto for print preview
	(print_setup_cmd): ditto for print setup
	(comp_editor_set_cal_client): listen for updated and removed
	signals
	(obj_updated_cb): if the item changes else where, query the user
	for the course of action
	(obj_removed_cb): ditto for removal

	* gui/print.c (print_setup): rudimentary page setup support
	(print_comp): rudimentary individual event/task printing support

	* gui/print.h: new protos

	* gui/dialogs/changed-comp.[hc]: dialog to query the user about
	what to do when a item is changed elsewhere

	* gui/dialogs/Makefile.am: build new files

	* gui/dialogs/send-comp.c (send_component_dialog): remove useless
	assignment

svn path=/trunk/; revision=10338
2001-06-20 16:59:31 +00:00
1c6b4a17d8 moved the function to check for a default timezone to calendar-config.c,
2001-06-20  Damon Chaplin  <damon@ximian.com>

	* gui/calendar-config.[hc]:
	* gui/gnome-cal.[hc]:
	* gui/tasks-control.c (tasks_control_activate):
	* gui/calendar-commands.c (calendar_control_activate): moved the
	function to check for a default timezone to calendar-config.c, and
	also used it in the tasks control.

	* gui/dialogs/e-timezone-dialog.h: #include <gtk/gtkwidget.h> fix.

svn path=/trunk/; revision=10325
2001-06-20 07:09:34 +00:00
541d52701f added code to show the timezone dialog if the user hasn't set a default
2001-06-20  Damon Chaplin  <damon@ximian.com>

	* gui/calendar-commands.c (calendar_control_activate):
	* gui/gnome-cal.[hc]: added code to show the timezone dialog if the
	user hasn't set a default timezone yet.

	* gui/dialogs/e-timezone-dialog.c (e_timezone_dialog_add_timezones):
	set the "None" item string before adding it to the combo, to stop the
	combo putting "None" in the entry initially.

svn path=/trunk/; revision=10324
2001-06-20 06:10:41 +00:00
5c82a04a9a if the timezones of the start and end of the event are the same, then if
2001-06-19  Damon Chaplin  <damon@ximian.com>

	* gui/dialogs/event-page.c: if the timezones of the start and end of
	the event are the same, then if the start timezone is changed we
	change the end timezone as well, since that is what most users will
	want.

svn path=/trunk/; revision=10323
2001-06-20 04:01:22 +00:00
c9e9b9a7bd added a 'Time zone' setting. Also rearranged a little, adding a new
2001-06-19  Damon Chaplin  <damon@ximian.com>

	* gui/dialogs/cal-prefs-dialog.c: added a 'Time zone' setting. Also
	rearranged a little, adding a new 'General' page, since we had too
	many settings on the 'Calendar' page.

	* gui/e-timezone-entry.[hc]:
	* gui/dialogs/e-timezone-dialog.[hc]:
	* gui/dialogs/comp-editor.c:
	* gui/dialogs/comp-editor-page.[hc]:
	* gui/dialogs/event-page.c:
	* gui/dialogs/task-details-page.c:
	* gui/dialogs/task-page.c: removed CalClient stuff. The timezone dialog
	now uses the timezone data directly from the client's libical library.

svn path=/trunk/; revision=10321
2001-06-20 02:45:03 +00:00
0adb39b6b0 add ui (forward_cmd): implement forward command
2001-06-19  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-editor.c (task_editor_init): add ui
	(forward_cmd): implement forward command

	* gui/dialogs/comp-editor.c (save_as_ok): bug fix, seems to work
	now

svn path=/trunk/; revision=10315
2001-06-19 23:48:12 +00:00
ca603236ed itip/imip send dialog
2001-06-19  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/send-comp.c: itip/imip send dialog

	* gui/dialogs/send-comp.h: new proto

	* gui/dialogs/recurrence-page.c (recurrence_page_set_dates): only
	use the weekday picker if visible

	* gui/dialogs/meeting-page.c: just show the meeting list

	* gui/dialogs/event-editor.c (event_editor_edit_comp): remove the
	meeting page if no attendees
	(schedule_meeting_cmd): schedule a meeting menu item
	(refresh_meeting_cmd): refresh meeting request menu item
	(cancel_meeting_cmd): ditto for cancel
	(forward_cmd): send as attachment

	* gui/dialogs/comp-editor.c (comp_editor_remove_page): remove page
	from dialog
	(comp_editor_show_page): show a given page
	(comp_editor_get_current_comp): return a cal component
	representing the current widget state
	(comp_editor_save_comp): save the cal component
	(comp_editor_delete_comp): delete the cal component
	(comp_editor_send_comp): send the cal component
	(comp_editor_merge_ui): merge xml in to the bonobo gui
	(setup_widgets): use a bonobo window instead of a gtk window, add menus again
	(save_as_cmd): save to file on disk - still broken
	(save_close_cmd): close menu command
	(save_close_cmd): save and close menu command

	* gui/dialogs/comp-editor.h: new protos

	* gui/dialogs/cancel-comp.c (cancel_component_dialog): itip/imip
	cancellation dialog

	* gui/dialogs/cancel-comp.h: new proto

	* gui/dialogs/Makefile.am: build new files

	* gui/dialogs/comp-editor-page.c
	(comp_editor_page_notify_needs_send): emit needs_send signal

	* gui/dialogs/comp-editor-page.h: new signal protos

	* gui/itip-utils.c (itip_send_comp): new function to send cal
	components

	* gui/itip-utils.h: new proto

	* gui/e-itip-control.c (pstream_load): trim using cal-component
	wrapper stuff
	(accept_button_clicked_cb): use itip_send_comp
	(tentative_button_clicked_cb): ditto
	(decline_button_clicked_cb): ditto

	* gui/Makefile.am: compile select name idl stuff

	* cal-util/cal-component.c (cal_component_get_organizer): get the organizer
	(cal_component_set_organizer): set the organizer
	(cal_component_get_recurid): get the recurrence id
	(cal_component_set_recurid): set the recurrence id
	(set_attendee_list): actually set the attendee list
	(get_attendee_list): build the attendee list

	* cal-util/cal-component.h: new protos

svn path=/trunk/; revision=10299
2001-06-19 19:24:08 +00:00
4583098b34 Sync - Federico
svn path=/trunk/; revision=10293
2001-06-19 17:26:04 +00:00
84dc93b8de added timezone fields. Also moved the 'All Day' flag into an alignment so
2001-06-19  Damon Chaplin  <damon@ximian.com>

	* gui/dialogs/task-details-page.glade:
	* gui/dialogs/task-page.glade:
	* gui/dialogs/event-page.glade: added timezone fields. Also moved the
	'All Day' flag into an alignment so it doesn't mess up the height of
	the other widgets.

	* gui/dialogs/task-details-page.c:
	* gui/dialogs/task-page.c:
	* gui/dialogs/event-page.c: added code to handle the timezone fields.
	This still needs to be hooked up when the libical code is finished.

	* gui/dialogs/e-timezone-dialog.c (on_map_leave): new function to
	clear the preview label and turn off the highlighted point on the
	map when you move the mouse outside it.
	(find_selected_point): new function to try to find the point
	corresponding to the text in the combo.
	(on_combo_changed): call the above function to update the selected
	point.
	(on_map_leave): turn off the preview point & label when the mouse
	leaves the map.
	(e_timezone_dialog_set_cal_client): changed it so that selecting "None"
	clears the entry.

	* gui/dialogs/comp-editor-page.[hc]: added set_cal_client() virtual
	method since some pages need to access the CalClient to get timezone
	information. Also added comp_editor_page_set_cal_client() to call
	the virtual method.

	* gui/dialogs/comp-editor.c (comp_editor_set_cal_client): called
	comp_editor_page_set_cal_client() on each page.

	* gui/calendar-config.c: added functions to get & set the timezone.

svn path=/trunk/; revision=10285
2001-06-19 05:23:16 +00:00
4517358deb new dialog for setting the time zone.
2001-06-14  Damon Chaplin  <damon@ximian.com>

	* gui/dialogs/e-timezone-dialog.[hc]:
	* gui/dialogs/e-timezone-dialog.glade: new dialog for setting the
	time zone.

	* gui/dialogs/Makefile.am: added timezone dialog files.

	* idl/evolution-calendar.idl: added CalTimezoneInfo struct and seq,
	and getBuiltinTimezoneInfo method.

	* pcs/cal.c (impl_Cal_get_builtin_timezone_info): implemented method.
	(cal_class_init): added method to epv.

	* cal-client/cal-client.c (struct CalClientPrivate): added
	timezone_info array to contain cached info on builtin timezone city
	names and coordinates.
	(cal_client_get_builtin_timezone_info): new function to get the info
	about builtin timezones.

	* cal-client/cal-client.h: added CalTimezoneInfo struct, to contain
	the city names and coords of the builtin timezones.

svn path=/trunk/; revision=10223
2001-06-14 06:00:21 +00:00
0a282de3b3 remove unnecessary space
2001-06-13  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor-util.c (comp_editor_date_label): remove
	unnecessary space

	* gui/dialogs/task-page.c (task_page_set_summary): indicate we are
	updating, Fixes #3307

svn path=/trunk/; revision=10210
2001-06-13 19:50:18 +00:00
6bbcfe4094 set the completed time in the date editor if appropriate
001-06-13  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-details-page.c (task_details_page_set_dates):
	set the completed time in the date editor if appropriate

	* gui/dialogs/task-page.c (task_page_set_dates): if we are
	updating, return
	(complete_date_changed): don't returns if we are updating - the
	guards are done in the calling function
	(status_changed): indicate when we are updating and when we are
	finished, round the completion time to the nearest minute
	(percent_complete_changed): indicate when are updating and when we
	are finished
	(percent_complete_changed): notify of the date change after the
	option menu is updated

svn path=/trunk/; revision=10208
2001-06-13 18:24:00 +00:00
0a74459499 Sync from laptop.
svn path=/trunk/; revision=10134
2001-06-06 18:48:09 +00:00
342de51c7d update the blocked/selected days if the starting day of the appointment
2001-06-04  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/recurrence-page.c (recurrence_page_set_dates):
	update the blocked/selected days if the starting day of the
	appointment changes, fixes #2188

	* gui/dialogs/task-details-page.h: tidy proto

svn path=/trunk/; revision=10113
2001-06-04 19:46:35 +00:00
411ebc2964 use new func
2001-06-01  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/event-page.c (make_date_edit): use new func

	* gui/dialogs/task-details-page.c (task_details_page_create_date_edit): ditto

	* gui/dialogs/recurrence-page.c (make_ending_until_special): ditto

	* gui/dialogs/comp-editor-util.c (comp_editor_new_date_edit):
	rename date_edit_new function

	* gui/dialogs/comp-editor-util.h: new proto

	* gui/dialogs/task-page.c (task_page_set_summary): no longer any
	need to block/unblock the handler
	(task_page_create_date_edit): use new func

svn path=/trunk/; revision=10093
2001-06-02 01:22:38 +00:00
f4e8698fdd renamed from editor-page for consistency, more complete implementation
2001-06-01  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/comp-editor-page.[hc]: renamed from editor-page for
	consistency, more complete implementation

	* gui/dialogs/comp-editor.[hc]: More complete implementation

	* gui/dialogs/*-page.*: The various pages needed to construct the
	event and task dialogs

	* gui/dialogs/comp-editor-util.[hc]: useful utility functions for the
	component editor pages to use

	* gui/dialogs/Makefile.am: Build and install new files

	* gui/event-editor*: Remove, obsoleted by the new comp-editor
	stuff

	* gui/dialogs/task-editor-dialog.glade: ditto

	* gui/e-calendar-table.c (open_task): update to use comp editor
	stuff

	* gui/e-tasks.c (e_tasks_new_task): ditto

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

	* gui/Makefile.am: don't build non-existent files nor try to
	install them

svn path=/trunk/; revision=10088
2001-06-01 23:54:43 +00:00
859c5d4573 For JPR - Federico
svn path=/trunk/; revision=10053
2001-05-30 19:55:26 +00:00
30dce44f38 Finished porting from the old event-editor.c. Made it store a clone of the
2001-05-23  Federico Mena Quintero  <federico@ximian.com>

	* gui/dialogs/recurrence-page.c: Finished porting from the old
	event-editor.c.  Made it store a clone of the component for when
	we need to expand the recurrence set.

2001-05-22  Federico Mena Quintero  <federico@ximian.com>

	* gui/dialogs/event-page.c (event_page_get_dates): New function.

	* gui/dialogs/editor-page.c (editor_page_set_dates): Renamed from
	editor_page_set_dtstart(); now sets both DTSTART and DTEND.

	* gui/dialogs/alarm-page.c (alarm_page_set_dates): Ahem, it is a

svn path=/trunk/; revision=9953
2001-05-23 21:17:41 +00:00
98c32c5c11 Fix bug #2829.
2001-05-18  Federico Mena Quintero  <federico@ximian.com>

	Fix bug #2829.

	* gui/dialogs/delete-comp.c (delete_component_dialog): Allow the
	caller to specify whether just one or many components are to be
	deleted.

	* gui/e-calendar-table.c (tasks_popup_one): Popup menu definition
	for when one and only one task is selected.
	(tasks_popup_many): Likewise, for more than one task.
	(e_calendar_table_on_right_click): Do not create a structure for
	the closure data; we can simply pass the cal_table.  Use a
	different menu depending on the number of selected tasks.
	(mark_as_complete_cb): Renamed; now iterates over the selected
	rows.
	(delete_selected_components): New function to delete all the
	selected components.
	(delete_cb): Adjusted for delete_component_dialog().
	(open_task): New function, simply open a CalComponent in the task
	editor.
	(open_task_by_row): Renamed; use open_task().

	* gui/e-week-view.c (e_week_view_on_delete_appointment): Updated
	for delete_component_dialog().

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

svn path=/trunk/; revision=9886
2001-05-19 03:05:25 +00:00
f00e936738 Split the event and task editors into different objects for the separate
2001-05-16  Federico Mena Quintero  <federico@ximian.com>

	Split the event and task editors into different objects for the
	separate pages; this way they can be shared by both editors.

	* gui/dialogs/editor-page.[ch]: New abstract class for a page in a
	calendar component editor.

	* gui/dialogs/event-page.[ch]: Main page of an event editor.

	* gui/dialogs/alarm-page.[ch]: Alarm page of a calendar component
	editor.

	* gui/dialogs/recurrence-page.[ch]: Recurrence page of a calendar
	component editor.

	* gui/dialogs/event-page.c (event_page_fill_widgets): Eeek, this
	was missing a bunch of break statements.
	(event_page_fill_component): Use a temporary variable rather than
	allocating a struct icaltimetype.

	* gui/dialogs/alarm-page.c (get_alarm_string): Do not use
	fixed-size buffers.
	(alarm_page_fill_widgets): Use cal_obj_uid_list_free().
	(append_reminder): Now the list stores the plain CalComponentAlarm
	structures in the row data.  We do *NOT* want to be frobbing the
	component's data directly.  Rather, we clone the alarms from the
	component and maintain them on our own.
	(alarm_page_fill_component): Clone the alarms before adding them
	to the component so that we maintain the invariant that the alarm
	structures in the list did *not* come from the component.

	* cal-util/cal-component.c (cal_component_add_alarm): Added
	documentation.
	(cal_component_remove_alarm): Added documentation.
	(cal_component_remove_alarm): Do a lookup in our hash table of
	alarms instead of scanning the whole component.
	(CalComponentAlarm): Removed the `parent' field, since it was
	unused.
	(cal_component_free_alarm_uids): Removed function, since
	cal_component_get_alarm_uids() is documented so that the user will
	know that he must use cal_obj_uid_list_free().
	(cal_component_alarm_clone): New function.

svn path=/trunk/; revision=9861
2001-05-16 23:38:58 +00:00
a703c61b47 use define from widgets/misc/e-filter-bar.h instead of own enumeration and
2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* gui/component/addressbook.c: use define from
	widgets/misc/e-filter-bar.h instead of own enumeration and search menu
	names.

	* gui/component/Makefile.am, gui/component/select-names/Makefile.am:
	removed EVOLUTION_VERSION.

2001-05-07  Gediminas Paulauskas <menesis@delfi.lt>

	* gui/event-editor.c (make_title_from_comp): conversion summary
	from utf8 here, use translated strings as is.
	(set_title_from_comp): reflect this, simplify.

	* gui/dialogs/task-editor.c: updated copies of above functions here.

	* gui/gnome-cal.c: use defines from widgets/misc/e-filter-bar.h for
	consistency in "Show all".

svn path=/trunk/; revision=9693
2001-05-07 17:33:31 +00:00
134f25cd59 Merge build fix from the branch:
Add `$(EXTRA_GNOME_CFLAGS)' to the include path list for building the
  dialogs (we use GAL there).

svn path=/trunk/; revision=9598
2001-04-26 21:39:23 +00:00
1fdd8e2b75 Hot builddir != srcdir loving action.
svn path=/trunk/; revision=9444
2001-04-18 16:12:36 +00:00
9462327e66 Connect to the "changed" signal of the categories entry so that they will
2001-04-17  Federico Mena Quintero  <federico@ximian.com>

	* gui/event-editor.c (init_widgets): Connect to the "changed"
	signal of the categories entry so that they will be applied
	correctly.
	(EventEditorPrivate): Added fields for the contacts button and
	entry.
	(init_widgets): Disable the contacts widgets as we do not support
	them yet.
	(get_widgets): Get the contacts widgets.

	* gui/dialogs/task-editor.c (get_widgets): Get the contacts
	button, which was missing.
	(init_widgets): Disable the contacts widgets as we do not support
	them yet.

	* pcs/query.c (matches_text_list): Use e_utf8_strstrcasedecomp()
	instead of plain e_utf8_strstrcase().
	(matches_summary): Likewise.

svn path=/trunk/; revision=9436
2001-04-18 01:52:45 +00:00
69dfa6b30b Display fixes, thanks to Kjartan for finding these.
2001-04-11  Gediminas Paulauskas <menesis@delfi.lt>

	Display fixes, thanks to Kjartan for finding these.

	* gui/event-editor.c: use simple (not e_utf8_) gtk_clist_append for
	strings which are never in utf-8.
	* dialogs/delete-comp.c (delete_component_dialog): convert only
	summary from utf-8 to gtk charset. Translated values are in correct
	craset already.

svn path=/trunk/; revision=9219
2001-04-11 01:20:10 +00:00
f66390af64 Here goes my additional simple include fixes.
svn path=/trunk/; revision=9191
2001-04-05 00:39:19 +00:00
7a4bd61930 Plug leak.
2001-04-02  Federico Mena Quintero  <federico@ximian.com>

	* gui/e-tasks.c (e_tasks_setup_menus): Plug leak.

	* gui/event-editor.c (obj_updated_cb): Do nothing for now until we
	think of something sensible to do.
	(obj_removed_cb): Likewise.

	* gui/dialogs/task-editor.c (obj_updated_cb): Likewise.
	(obj_removed_cb): Likewise.

	* gui/event-editor.c (dialog_to_comp_object): Plug leak.

svn path=/trunk/; revision=9124
2001-04-03 05:35:48 +00:00
5fe6e035ed Replace includes of <gnome.h>, <bonobo.h> and <gtk/gtk.h> with the needed
2001-03-26  Kjartan Maraas  <kmaraas@gnome.org>

	* cal-client/client-test.c: Replace includes of <gnome.h>, <bonobo.h>
	and <gtk/gtk.h> with the needed headers to speed up compile.
	* cal-util/test-recur.c: Same here for <gtk/gtk.h>
	* gui/calendar-commands.c: Replace <bonobo.h> and remove
	<libgnorba/gnorba.h>
	* gui/calendar-summary.c: Replace <gnome.h> and <bonobo.h>
	* gui/calendar-summary.h: Added <bonobo/bonobo-generic-factory.h>
	* gui/component-factory.c: Remove <bonobo.h>
	* gui/control-factory.c: Replace <bonobo.h>
	* gui/e-calendar-table.c: Remove <gnome.h>
	* gui/e-itip-control.c: Replace <gnome.h> and <bonobo.h>
	* gui/e-meeting-edit.c: Replace <bonobo.h>
	* gui/e-tasks.c: Replace <gnome.h>
	* gui/e-tasks.h: Replace <bonobo.h>
	* gui/gnome-cal.h: Remove <bonobo.h>
	* gui/main.c: Replace <bonobo.h> and <glade/glade.h>
	* gui/tasks-control-factory.c: Replace <bonobo.h>
	* gui/tasks-control.c: Replace <gnome.h> and <bonobo.h>
	* gui/weekday-picker.c: Add <string.h> and <libgnome/gnome-defs.h>
	* gui/alarm-notify/client-main.c: Remove <gnome.h> and <bonobo.h>
	* gui/alarm-notify/notify-main.c: Replace <gnome.h> and <bonobo.h>
	* gui/dialogs/alarm-notify-dialog.c: Replace <gnome.h>
	* pcs/cal-backend.c: Replace <gtk/gtk.h>

svn path=/trunk/; revision=8937
2001-03-26 11:14:13 +00:00
d842e1a20e keep list of all Tasks folders so we can update the preference settings
2001-03-05  Damon Chaplin  <damon@ximian.com>

	* gui/e-tasks.c: keep list of all Tasks folders so we can update the
	preference settings when necessary.

	* gui/gnome-cal.c: configure the TaskPad according to the settings.

	* gui/e-calendar-table.c: use ECellCombo and ECellDateEdit for fields,
	so the tasks folders is almost usable now.

	* gui/calendar-model.c: added support for the Status property.

	* gui/calendar-config.[hc]: added convenience functions to setup
	ECalendarTable and ECellDateEdit objects.

	* gui/calendar-commands.c: connected to "destroy" signal of calendars
	so we can remove them from all_calendars list.

	* gui/dialogs/cal-prefs-dialog.c (cal_prefs_dialog_update_config):
	call e_tasks_update_all_config_settings() to update all the settings
	in the Tasks folders as well.

	* cal-util/cal-component.h: added CAL_COMPONENT_FIELD_STATUS.

	* cal-util/cal-component.c (cal_component_get_transparency): fixed
	calls to strcasecmp so they check for '== 0'.

	Applied patch from Miguel...

2001-02-27  Miguel de Icaza  <miguel@ximian.com>

	* gui/e-day-view.c (e_day_view_on_event_right_click): Reorganize
	the menus to have entries always in a consistent fashion, as
	reported to the genepool mailing list.
	(e_day_view_on_event_right_click): Added a FIXME comment to the
	FIXME comment without a FIXME.

	Now we use e_popup_menu.  This allows us to hide/show items on
	demand, and to sensitize/de-sensitize items depending on their
	state.

	This will also let us add icon support (when we get nice icons for
	this)

	* gui/e-week-view.c (e_week_view_show_popup_menu): Ditto.

	The files popup-menu.c and popup-menu.h can now be removed.

svn path=/trunk/; revision=8549
2001-03-05 00:11:35 +00:00
ac9abd5e60 Getting almost full and proper use of xml-i18n-tools.
Removed all files where glade writes strings.
Changed Makefile.am to not distribute them.
Changed all glade files to not write strings to those files.

Removed *.desktop and evolution.keys files, because they are generated.
Added them to .cvsignore
Added *.desktop.in evolution.keys.in files without transalted strings.
Added all existing entries from desktop files to po files.
Changed Makefile.am to distribute only .in files, and merge translations into
desktop files.

Removed obsolete files from po/ dir

svn path=/trunk/; revision=8164
2001-02-11 02:56:16 +00:00
a0eb135926 Oops, remove old widget
2001-02-08  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-editor-dialog.glade: Oops, remove old widget

svn path=/trunk/; revision=8133
2001-02-09 00:52:03 +00:00
fd6e9b7570 fill in new classification stuff properly (get_widgets): load new class.
2001-02-08  JP Rosevear  <jpr@ximian.com>

	* gui/dialogs/task-editor.c (fill_widgets): fill in new classification stuff properly
	(get_widgets): load new class. widgets
	(init_widgets): if the class. widgets change, mark the dialog dirty
	(dialog_to_comp_object): set the comp class. from the new widgets

	* gui/dialogs/task-editor-dialog.glade: Make more consistent,
	fixing bugs 1247 and 1249

	* gui/dialogs/task-editor.c (fill_widgets):

	* gui/event-editor-dialog.glade: Gui tidying

	* gui/event-editor.c: Remove old alarm cruft

	* cal-util/cal-component.c (cal_component_set_url): Don't try and
	write an empty string as a property

svn path=/trunk/; revision=8132
2001-02-09 00:48:07 +00:00
67336a8d36 Pull up from 0.9 branch
2001-02-08  JP Rosevear  <jpr@ximian.com>

	* gui/event-editor.c: Remove assorted menu/bonobo stuff

	* gui/dialogs/task-editor.c: Remove assorted menu/bonobo stuff
	(task_editor_construct): no longer suck out the glade contents
	into a bonobo win, listen for apply and close signals
	(tedit_apply_event_cb): listen for apply signal and save object
	(tedit_close_event_cb): listen for close signal and prompt to save
	if need be
	(task_editor_focus): new function to bring the dialog to the front

	* gui/dialogs/task-editor.h: new prototype

	* gui/e-meeting-edit.c (schedule_button_clicked_cb): no need to
	update widgets in the event editor since the event editor won't be
	open
	(e_meeting_editor_new): don't need the event editor reference any
	more

	* gui/e-meeting-edit.h: Change prototype

	* gui/e-day-view.c (e_day_view_on_event_right_click): Make
	schedule meeting a new contextual menu item
	(e_day_view_on_schedule_meet): new routine to schedule a meeting
	from the contextual menu

	* gui/e-calendar-table.c (e_calendar_table_open_task): Call
	task_editor_focus

	* gui/event-editor-dialog.glade: Update to be a property box

	* gui/dialogs/task-editor-dialog.glade: Update to be a property
	box

svn path=/trunk/; revision=8115
2001-02-08 20:50:49 +00:00
a4c49f6c46 Pulling stuff up from the branch
2001-02-06  JP Rosevear  <jpr@ximian.com>

	* cal-util/cal-component.c (cal_component_set_categories): If the
	categories string is empty, remove the property
	(get_period_list): Fixes from clahey to handle the new rdate
	format in libical
	(set_period_list): ditto

2001-02-06  JP Rosevear  <jpr@ximian.com>

	* gui/event-editor.c (fill_reminder_widgets): Match new
	append_alarm signature
	(reminder_to_comp_object): only add alarms tagged as new, no
	longer delete all alarms first
	(append_reminder): the row data is now of type ReminderData,
	rename from append_alarm
	(reminder_add_cb): math new append_alarm signature
	(reminder_delete_cb): if the alarm existed before the dialog was
	loaded, delete it immediately from the cal component

2001-02-06  JP Rosevear  <jpr@ximian.com>

	* gui/event-editor-dialog.glade: Gui tweaks for bugs 1248 and 1246

	* gui/dialogs/task-editor-dialog.glade: ditto

2001-02-06  JP Rosevear  <jpr@ximian.com>

	* gui/e-week-view.c (e_week_view_show_popup_menu): Make the menus more
	consistent

	* gui/e-day-view.c (e_day_view_on_event_right_click): ditto

	* gui/e-calendar-table.c: ditto

svn path=/trunk/; revision=8037
2001-02-07 00:50:43 +00:00
16a400b44e gnome_dialog_grab_focus() on the Yes button. Fixes bug #1242.
2001-02-03  Federico Mena Quintero  <federico@ximian.com>

	* gui/dialogs/save-comp.c (save_component_dialog):
	gnome_dialog_grab_focus() on the Yes button.  Fixes bug #1242.

svn path=/trunk/; revision=7947
2001-02-03 19:51:15 +00:00