Commit Graph

63 Commits

Author SHA1 Message Date
Federico Mena Quintero ca082de77a Added get_uids() method to get a list of UIDs based on object types.
2000-02-08  Federico Mena Quintero  <federico@helixcode.com>

	* evolution-calendar.idl (Cal): Added get_uids() method to get a
	list of UIDs based on object types.

	* cal-backend.c (cal_backend_get_uids): Implemented get_uids() in
	the backend.

	* cal.c (Cal_get_uids): Implemented get_uids() method.

	* cal-client.c (cal_client_get_uids): Implemented client-side
	function.

	* cal-util.c (cal_obj_instance_list_free): Doh.  Free the list,
	not the last link.
	(cal_obj_uid_list_free): New function to free a list of UIDs.

	* GnomeCal.idl (Repository): Removed unused method
	get_object_by_id_list().  This is just for cleanup purposes and to
	remind me exactly of what needs to be moved over to
	evolution-calendar.idl.
	(Repository): Removed unused get_objects() method.

	* corba-cal.c (init_calendar_repo_class): Removed the unused
	get_objects method.

	* calobj.h (CalObjFindStatus): New status value enumeration for
	the find function.

	* calobj.c (ical_object_find_in_string): New function to parse a
	complete calendar and find a calendar object in it.  This should
	be used instead ical_object_new_from_string() in the future.

	* evolution-calendar.idl (CalObjInstance): Added an uid field.
	Now the idea is that whenever calendar object strings are passed
	around, their UIDs are passed along with them so that the actual
	object can be pulled from the whole VCAL object using its UID to
	identify it.

	* cal-util.h (CalObjInstance): Added uid field.

	* cal-util.c (cal_obj_instance_list_free): Free the UIDs.

	* cal-backend.c (build_event_list): Store the object's UID in the
	instance structure.

	* cal.c (Cal_get_events_in_range): Copy the UID field to the CORBA
	structure.

	* cal-client.c (cal_client_get_events_in_range): Copy the UID
	field from the CORBA structure.

	* main.c (gnome_cal_file_menu): Removed unfinished html-month stuff.

	* Makefile.am (gnomecal_SOURCES): Removed html-month.c.

	* gnome-cal.c: #include "alarm.h"
	(mail_notify): Made static.

	* alarm.h: #include "calobj.h"

	* corba-cal-factory.h (init_corba_server): Fixed prototype.

	* quick-view.c (create_items_for_event): Made static.

	* gncal-todo.c (column_resized): Made static.

	* layout.c (find_index): Made static.

svn path=/trunk/; revision=1699
2000-02-09 08:04:33 +00:00
Russell Steinthal a6c4b53533 Add default alarm support, Beep on display alarms option
Since there are now some calls from prop.c into previously static functions in
eventedit.c, the code in those files should probably be reorganized.  Perhaps a
new alarm-utils.c file?  In any case, this commits working code to the
repository before we reorganize.

svn path=/trunk/; revision=1366
1999-11-03 02:36:31 +00:00
Arturo Espinosa 241a65b72b Small fix -miguel
svn path=/trunk/; revision=1265
1999-09-27 20:56:29 +00:00
Eskil Heyn Olsen 0c7bf54679 About to rehash conduit.
Changed pilotid in calobj to guint32.

svn path=/trunk/; revision=1240
1999-09-19 09:35:41 +00:00
Eskil Heyn Olsen 7251a2d2bc added sources to calendar-conduit
* gncal/Makefile.am: added sources to calendar-conduit

	* gncal/calendar-conduit.c: imported Miguels update_record
	function

	* gncal/corba-cal.c: fixed a grave bug in exception throwing,
	which cause ORBit to sigsegv.

svn path=/trunk/; revision=1229
1999-09-15 08:38:05 +00:00
Miguel de Icaza 1755ff603b Fix the hostname part.
1999-08-15  Miguel de Icaza  <miguel@gnu.org>

	* calobj.c (ical_gen_uid): Fix the hostname part.

svn path=/trunk/; revision=1116
1999-08-15 05:23:22 +00:00
Arturo Espinosa 094deb7bca Lots of more work on the sync stuff. It works pretty well now.
Lots of more work on the sync stuff.  It works pretty well now.

I dont know why my pilot is not accepting the events I send to it though

Miguel.

svn path=/trunk/; revision=1040
1999-07-29 00:26:11 +00:00
Miguel de Icaza e49e9cc175 New file. Implements PalmPilot syncronization with the Gnome Calendar.
1999-07-28  Miguel de Icaza  <miguel@gnu.org>

	* calendar-pilot-sync.c: New file.  Implements PalmPilot
	syncronization with the Gnome Calendar.

1999-07-27  Miguel de Icaza  <miguel@gnu.org>

	* calobj.c (ical_object_new_from_string): New function.  Creates
	an iCalObject from a vCalendar string that is supposed to contain
	only one vEvent.

	* calendar.c:
	(calendar_save): Split this routine in two.

	* gnome-cal.c (gnome_calendar_new): Create the corba server here.

	* main.c: Include gnorba.h, and corba-cal-factory.h here
	(close_cmd): Kill the calendar server on shutdown.

	* calobj.c (load_recur_yearly_day): Added a fixme comment.  WE
	need to handle intervals in the years.

	* calendar.c (calendar_object_find_in_list, calendar_object_find,
	calendar_object_find_todo, calendar_object_find_event): New
	functions for looking up information.

	* main.c (gnome_calendar_locate): New function.

	* corba-cal.c (calendar_create_object): New file.  Implements the
	corba server.

	* calendar.c (calendar_object_changed): Flag pilot-status as changed.

	* calobj.c (ical_object_to_vobject): Save pilot information for syncing.
	(ical_object_create_from_vobject): Load syncing information for
	pilot.  Do it in a way compatible with KOrganizer.

1999-07-26  Miguel de Icaza  <miguel@gnu.org>

	* calobj.c (ical_object_create_from_vobject): Generate unique IDs
	on Vevents we load that lack it.  WE need this for the old
	gnome calendar generated files (ie, before now :-).

svn path=/trunk/; revision=1038
1999-07-28 08:41:12 +00:00
Miguel de Icaza 8120715805 Generate unique IDs on Vevents we load that lack it. WE need this for the
1999-07-26  Miguel de Icaza  <miguel@gnu.org>

	* calobj.c (ical_object_create_from_vobject): Generate unique IDs
	on Vevents we load that lack it.  WE need this for the old
	gnome calendar generated files (ie, before now :-).

	Required to sync with the Palm

svn path=/trunk/; revision=1037
1999-07-26 23:06:35 +00:00
Miguel de Icaza e1c1c85819 Changed gnome-pim.keys to use the --file flag
Changed gnome-pim.keys to use the --file flag

1999-07-14  Miguel de Icaza  <miguel@gnu.org>

        * calobj.c (ical_gen_uid): Returns a UID.
        (ical_object_new): Use a UID when creating an event.  Should get
        syncing done easier.

1999-07-14  Nicholas J Kreucher <nick@poetic.com>

        * calobj.c (skip_numbers): Actually skip over the numbers.
        (ical_object_to_vobject): Test the proper variable for storing the
        proper information.

svn path=/trunk/; revision=1027
1999-07-16 19:15:34 +00:00
Miguel de Icaza 884efbf2a9 One line bug fix from Sergey I Panov.
1999-06-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (daynumberlist): One line bug fix from Sergey I Panov.

svn path=/trunk/; revision=969
1999-06-03 19:03:20 +00:00
Miguel de Icaza 30d70369cb Work around broken software that writes a broken month-of-day as "zero".
1999-06-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (daynumberlist): Work around broken software that
	writes a broken month-of-day as "zero".  Use the dtstart date for
	this on this event.

svn path=/trunk/; revision=963
1999-06-02 01:12:20 +00:00
Miguel de Icaza 9193140bcf Make intervals always exist. a 0 interval is wrong.
1999-05-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (load_recurrence): Make intervals always exist.  a 0
	interval is wrong.

svn path=/trunk/; revision=942
1999-05-25 22:24:08 +00:00
Steve Murphy 45fdeb790b Added this routine so Monthly recurrences use the weekday field as a
1999-04-01 Steve Murphy <murf@e-tools.com>

	* calobj.c (weekdaynum): Added this routine so Monthly recurrences
	use the weekday field as a simple integer for a single weekday.

	* calobj.c (load_recur_monthly_pos): Call weekdaynum instead of
	weekdaylist. The interface only lets the user input a single value
	anyway.

	* calobj.c (ical_object_to_vobject): instead of code to output day
	names from a bit array, use instead the value as an int and output
	a single dayname.

	* calobj.c (ical_object_generate_events): first_week_day gets the
	day int instead of the first entry in the bit field. I inserted a
	fair chunk of code to avoid calling generate if the day is out of
	range for a month. It may be unneccessary, because mktime will
	turn the extra days into a valid date the next month. But not all
	mktimes are equal, I fear.

	* eventedit.c (ee_store_recur_rule_to_ical): For case 3,
	(Monthly), I added code to set the interval slot of the recur
	struct; without this value, selecting a monthly recursing, by
	date, would lead to an infinite loop broken only by a failure to
	alloc more memory. Also, in the "by position" case, both
	u.month_pos and u.month_day were being assigned values. This is a
	mistake, as they are both part of an union, and the same
	thing. The weekday field should get the recur_rr_month_weekday
	value.

	* eventedit.c (ee_rp_init_rule): set default day from the weekday
	field instead of the u.month_day field, which is really the
	month_pos value.

	* gnome-cal.c (gnome_calendar_tag_calendar): Month days start with
	1, not 0; thus, setting tm.tm_mday = 0, and then calling mktime
	will generate a time corresponding to the end of the previous
	month, which may have a mday anywhere from 28 to 31. The end time
	just adds 1 to the month, so your end time may not cover the last
	few days of this month, depending on what the biggest mday of last
	month was. I changed it so tm_mday is set to 1 instead.

1999-03-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

svn path=/trunk/; revision=792
1999-04-03 23:57:14 +00:00
Nuno Ferreira 7a81d47b87 Include <config.h> so that strings get translated. Correct spelling.
1999-03-27  Nuno Ferreira  <nmrf@rnl.ist.utl.pt>

	* gncal/calobj.c: Include <config.h> so that strings get translated.
	* po/pt.po: Correct spelling.

svn path=/trunk/; revision=781
1999-03-27 16:26:28 +00:00
Tomas Ogren 6dca9d9fe0 Added 2 paranthesis.. "foobar = d / 60*60" is _NOT_ the same as "foobar =
1999-03-23  Tomas Ogren  <stric@ing.umu.se>

* gnomecal/calobj.c: Added 2 paranthesis..
"foobar = d / 60*60" is _NOT_ the same as "foobar = d / (60*60)"
which caused heavy alarm-corruption with alarms between 2 hrs and
2 days.

svn path=/trunk/; revision=776
1999-03-23 22:30:59 +00:00
Arturo Espinosa 20bba8a8f6 1999-03-10 Craig A Soules (soules+@andrew.cmu.edu)
* timeutil.c, calendar.c, calobj.c, gncal-day-panel.c: Add support
	for daylight time savings.

svn path=/trunk/; revision=756
1999-03-11 01:35:52 +00:00
Miguel de Icaza 89ef5539d9 Save the owner/organizer of the event. (ical_object_create_from_vobject):
1999-02-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (ical_object_to_vobject): Save the owner/organizer of
	the event.
	(ical_object_create_from_vobject): Load the owner/organizer of the event.

	* gncal-full-day.c (delete_occurance): Assign child to data (fixes
	crash on "delete this occurrance").

svn path=/trunk/; revision=689
1999-02-24 00:40:15 +00:00
Michael Fulbright 3f9e4e7024 GNOME PIM lives
Dr Mike <drmike@redhat.com>

svn path=/trunk/; revision=518
1998-12-09 05:53:19 +00:00
Miguel de Icaza f57edfbc19 Add ctype.h
1998-11-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c: Add ctype.h

svn path=/trunk/; revision=465
1998-11-07 00:39:32 +00:00
Federico Mena Quintero 96439bc6ff Changed name from time_start_of_day() to be consistent with the other
1998-10-02  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* timeutil.c (time_day_begin): Changed name from
	time_start_of_day() to be consistent with the other begin/end functions.
	(time_day_end): Likewise.

	* calobj.c (ical_object_get_first_weekday): New public function to
	get the first toggled day in a weekday mask.  Since we do not
	support multiple weekdays in a monthly-by-pos rule, we just fetch
	the first toggled one.
	(ical_object_generate_events): Added a missing break statement.

	* timeutil.c (time_month_end): Made it consistent with the rest of
	the time begin/end functions -- now it returns the first second of
	the *next* month.
	(time_week_end): Actually implemented this function.  It will be
	used when the week view is rewritten.

	* calobj.c (time_in_range): Fix off-by-one in the comparison of
	the time against the end time.

	* gncal-full-day.c (expand_space): Fixed bug where the columns not
	were being expanded due to a missing "slot + j".

svn path=/trunk/; revision=425
1998-10-02 23:59:35 +00:00
Arturo Espinosa 2e0a88042f Small fixes for calendar saving
svn path=/trunk/; revision=328
1998-08-21 21:44:22 +00:00
Miguel de Icaza 63057dd048 Fix for the weekly event generation. Was reported on the bug tracking
1998-05-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (ical_object_generate_events): Fix for the weekly event
	generation.  Was reported on the bug tracking system.

svn path=/trunk/; revision=237
1998-05-25 21:51:34 +00:00
Miguel de Icaza 418f8bfcb5 Bug free version of the range computation in place.
1998-05-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-cal.c (mark_gtk_calendar_day): Bug free version of the
	range computation in place.

	* gncal-year-view.c (year_view_mark_day): Use the same new version
	of the range computation here.

	* calobj.c (ical_object_generate_events): Fix the begin/end
	condition.

svn path=/trunk/; revision=215
1998-05-16 00:52:33 +00:00
Miguel de Icaza 3799134926 Do not add the spurious padding.
1998-05-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* timeutil.c (isodate_from_time_t): Do not add the spurious
	padding.

	* calobj.c (store_date_list): Bug fix:  I was using the wrong
	pointer when saving the exception date list.
	(set_date_list): Bug fix:  load correctly the complete exception
	date list.
	(set_date_list): Use ',' for the exception date separator as the
	versit people can not get their standard right.

	* gncal-full-day.c (unrecur_appointment): Support for making an
	existing recurrent event `movable' for a day.

	* calobj.c (ical_object_add_exdate): New routine, used to add
	exception dates.
	(ical_object_duplicate): New routine:  used to do the magic
	recur->no-recur event.

svn path=/trunk/; revision=214
1998-05-14 23:12:10 +00:00
Miguel de Icaza 4eafda3a14 Draw the day at startup. (gncal_day_panel_set): Fix selected-day display.
1998-05-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gncal-day-panel.c (update): Draw the day at startup.
	(gncal_day_panel_set): Fix selected-day display.
	(gncal_day_panel_new): Switch day on double clicks, not on single
	clicks.

	* calobj.c (ical_object_compute_end): Removed debug messages.

svn path=/trunk/; revision=205
1998-05-04 00:57:21 +00:00
Arturo Espinosa 07f873d107 Fixed alarm saving code. Fixed alarm loading code. New -partial-
Fixed alarm saving code.
Fixed alarm loading code.
New -partial- implementation of the mail alarm.
It is not working, I do not know what is closing stdin to sendmail

svn path=/trunk/; revision=194
1998-04-25 02:23:26 +00:00
Arturo Espinosa c79a97a8e1 Fixes for vTodo thingies -mig
svn path=/trunk/; revision=190
1998-04-23 02:32:32 +00:00
Miguel de Icaza 45abc2cbef Lots of changes:
Lots of changes:

1998-04-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	1. gEdit got Gnomified:  gnome-stock, gnome-app, i18n
	   tretment + integration into gnome-utils compilation.

	   Original configure.in is still there for Alex/Evans to
	   redistribute as Gtk App (I tried to ifdef gnome code).

	2. gHex:  warning fixes + crash fixes + i18n fixes.

	3. GnCal: week view shows date range (needs some fixing);
	   changed the day view order;  other stuff I dont remember

	4. GTop: more i18n treatmnet.

	5. Updated Spanish translation.

svn path=/trunk/; revision=178
1998-04-22 00:16:43 +00:00
Arturo Espinosa 07239d418c Enhance the exception date handling -mig
svn path=/trunk/; revision=174
1998-04-21 03:22:09 +00:00
Arturo Espinosa e9a7215277 Fix compiler warnings - Federico
svn path=/trunk/; revision=170
1998-04-20 22:13:36 +00:00
Arturo Espinosa 3acbe7a46f more fixes -mig
svn path=/trunk/; revision=169
1998-04-20 19:53:21 +00:00
Arturo Espinosa 26e5915000 A lot of usability changes to GnomeCal -miguel
svn path=/trunk/; revision=168
1998-04-20 18:00:54 +00:00
Miguel de Icaza 24f0de6340 Add Quoted printable property to items containing new lines. (duration):
1998-04-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* calobj.c (ical_object_to_vobject): Add Quoted printable property
	to items containing new lines.
	(duration): Use unsigned integers, to work around buggy calendar
	files generated by korganizer.

	* main.c (save_calendar_cmd): Do not ask for file name if we are
	saving.
	(save_as_calendar_cmd): New command.

svn path=/trunk/; revision=158
1998-04-18 21:37:45 +00:00
Arturo Espinosa 6329a627a9 Final steps.
svn path=/trunk/; revision=157
1998-04-18 04:40:59 +00:00
Arturo Espinosa f1b08663dd Yes.
Yes.

It works.

It loads, it saves, it does all that stuff.

It works, even if federico complains that we did not test close.

Repetition, alarms, all that stuff you all guys love.

It it is there.  We did minimal testing, but we know you will
happilly commit a fix if you find a problem, right?

Ok, we are off to a party now.

Miguel

svn path=/trunk/; revision=155
1998-04-18 04:02:46 +00:00
Federico Mena Quintero d79ee74dad Added mandatory status property. (ical_object_to_vobject): Only store
1998-04-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* calobj.c (ical_new): Added mandatory status property.
	(ical_object_to_vobject): Only store "related" list if it exists.
	(store_list): Add terminating null char and free the correct data.

svn path=/trunk/; revision=154
1998-04-18 02:09:54 +00:00
Federico Mena Quintero 36a42fc603 Added mandatory status property. (ical_object_to_vobject): Only store
1998-04-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* calobj.c (ical_new): Added mandatory status property.
	(ical_object_to_vobject): Only store "related" list if it exists.

	* main.c (save_calendar_cmd): Implemented calendar saving.
	(open_calendar_cmd): Implemented calendar loading.
	(new_calendar_cmd): Implemented calendar creation.
	(new_calendar): Don't load our test calendar by default.

	* gncal-full-day.c (delete_appointment): Delete appointment implemented.

svn path=/trunk/; revision=153
1998-04-18 02:03:07 +00:00
Arturo Espinosa d55901c052 Year view, double click -mig
svn path=/trunk/; revision=152
1998-04-17 23:48:05 +00:00
Federico Mena Quintero 4b926012c0 The event dialog is beautified, recurrences are saner.
1998-04-17  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* eventedit.c (ee_init_recurrence_page): New function that creates
	the recurrence page in the toplevel notebook.
	(ee_store_recur_values_to_ical): Now we can also store the recurrences.

svn path=/trunk/; revision=151
1998-04-17 23:22:50 +00:00
Arturo Espinosa 470866a257 We load the alarms -mig
svn path=/trunk/; revision=150
1998-04-17 21:37:34 +00:00
Arturo Espinosa 2ec1fdc08f Save Recurrence rules -Miguel
svn path=/trunk/; revision=149
1998-04-17 21:24:10 +00:00
Arturo Espinosa 55f88f14fe Large number of updates. Recurrence basically works now in most of its
Large number of updates.  Recurrence basically works now in most
of its forms (daily, weekly, month-by-position).

Miguel.

svn path=/trunk/; revision=148
1998-04-17 19:35:43 +00:00
Arturo Espinosa ad0347d16b Remove deadly excessive abuse of encapsulation -mig
svn path=/trunk/; revision=147
1998-04-17 05:08:55 +00:00
Arturo Espinosa 541c3a7a73 New event generation api in place -miguel
svn path=/trunk/; revision=146
1998-04-17 04:49:37 +00:00
Federico Mena Quintero fe09695939 Use menu_shell->children, not menu->children. Why does GtkMenu have a
1998-04-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* eventedit.c (ee_store_alarm): Use menu_shell->children, not
	menu->children.  Why does GtkMenu have a children field in the
	object structure?
	(check_dates): New function that insures that start_date < end_date.
	(check_times): In addition to checking whether the event spans the
	whole day, now it insures that start_time < end_time.

	* gncal-full-day.c (child_set_size): Now children get bigger
	temporarily while they are focused.  This allows the handles not
	to "overlap" the rows used by the child and thus allow editing of
	very thin events.
	(recompute_motion): Fix for new child coordinates.
	(gncal_full_day_expose): Make it use find_child_by_window()
	instead of looking for it by hand.

svn path=/trunk/; revision=145
1998-04-17 00:14:45 +00:00
Federico Mena Quintero 77d15722d2 The general_owner may be null. Do the proper thing when creating the
1998-04-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* eventedit.c (ee_init_general_page): The general_owner may be
	null.  Do the proper thing when creating the label.
	(ee_ok): Update the gnome calendar appropriately.

	* timeutil.h:
	* gncal-year-view.h: Add some missing prototypes.

	* gncal-full-day.c (child_popup_menu): Set the sensitivity of menu
	items according to whether the ical object is being edited or not.

	* eventedit.c (event_editor_new): Set the "being edited" flag on
	the ical object (stored as the ical object's user data).
	(event_editor_destroy): Release the flag.

	* calobj.h: The iCalObject structure now has a generic user_data pointer.
	* calobj.c (ical_object_set_user_data ical_object_get_user_data):
	Functions to set this data.

svn path=/trunk/; revision=140
1998-04-15 22:51:48 +00:00
Arturo Espinosa f89cf24d20 Year view marks ranges of new dates (on update view). Recurrence iterator
Year view marks ranges of new dates (on update view).
Recurrence iterator functions are here now (clap, clap, clap).

Microsoft Outlook's days are counted.

Miguel.

svn path=/trunk/; revision=139
1998-04-15 07:59:09 +00:00
Miguel de Icaza ca50d9fad9 Routine to destory rows array properly.
1998-04-15  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gncal-full-day.c (layout_kill_rows): Routine to destory rows
	array properly.

	* gncal-year-view.c (gncal_year_view_new): Add missing year in
	call to strftime.

	* calobj.c (ical_object_create_from_vobject): Fixed memory leaks
	from the return values of versit's fakeCString.

svn path=/trunk/; revision=136
1998-04-15 06:37:34 +00:00
Arturo Espinosa Aldama 0e5cfe78a5 New widget for the year view. added required compilation of the new files.
1998-04-14  Arturo Espinosa Aldama  <arturo@nuclecu.unam.mx>

        * gncal-year-view.[hc]: New widget for the year view.
	* Makefile.am: added required compilation of the new files.

svn path=/trunk/; revision=134
1998-04-15 02:40:24 +00:00