Commit Graph

168 Commits

Author SHA1 Message Date
feb0cdbe7a Misc. event handling fixes - Federico
svn path=/trunk/; revision=175
1998-04-21 03:59:50 +00:00
07239d418c Enhance the exception date handling -mig
svn path=/trunk/; revision=174
1998-04-21 03:22:09 +00:00
5fda22d839 Make the any-key-creates-new-appointment-at-selection thing actually work - Federico
svn path=/trunk/; revision=173
1998-04-21 03:11:42 +00:00
d57e1662cf Now any printable keystroke (not just Return) will activate the selected
1998-04-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (gncal_full_day_key_press): Now any printable
	keystroke (not just Return) will activate the selected range.

svn path=/trunk/; revision=172
1998-04-21 02:17:33 +00:00
65dbe3a385 Made it use the new paint_row function instead of painting everything
1998-04-20  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (paint_back): Made it use the new paint_row
	function instead of painting everything directly.  We calculate
	areas in a smarter way so there is even less flicker than before,
	especially when selecting regions.

	* eventedit.c: Sensitize recurrence widgets properly.

svn path=/trunk/; revision=171
1998-04-21 00:29:06 +00:00
e9a7215277 Fix compiler warnings - Federico
svn path=/trunk/; revision=170
1998-04-20 22:13:36 +00:00
3acbe7a46f more fixes -mig
svn path=/trunk/; revision=169
1998-04-20 19:53:21 +00:00
26e5915000 A lot of usability changes to GnomeCal -miguel
svn path=/trunk/; revision=168
1998-04-20 18:00:54 +00:00
efc1cef1db Use GNOME_STOCK_PIXMAP_HOME for today -mig
svn path=/trunk/; revision=167
1998-04-19 20:58:02 +00:00
d4f950c3fd added to ignore generated files.
Sun Apr 19 09:38:36 EDT 1998 Gregory McLean <gregm@comstar.net>

        * ee/doc/.cvsignore: added to ignore generated files.

svn path=/trunk/; revision=166
1998-04-19 13:33:37 +00:00
2a20ac7931 Updated the gtk check to check for 1.0.0
Sun Apr 19 01:35:53 EDT 1998 Gregory McLean <gregm@comstar.net>

        * gnome-x-checks.m4: Updated the gtk check to check for 1.0.0

svn path=/trunk/; revision=165
1998-04-19 05:28:13 +00:00
112b6d8f88 It works. I promise
svn path=/trunk/; revision=164
1998-04-19 02:02:43 +00:00
0fc535febd I missed this one as well
svn path=/trunk/; revision=163
1998-04-19 02:01:34 +00:00
e8bf10cb34 Duh forgot config.h here -mig
svn path=/trunk/; revision=162
1998-04-19 02:00:17 +00:00
7be750901d More touches -mig
svn path=/trunk/; revision=161
1998-04-19 01:59:53 +00:00
3b76de8bcd Various small fixes here and there -mig
svn path=/trunk/; revision=160
1998-04-19 01:16:59 +00:00
64a3522aca Update spanish translation for the Calendar.
Update spanish translation for the Calendar.

Added command line handling to the calendar program.  You can now
display your appointments for any given date from the command line
wihtout running X.

Added CVS's `getdate'.  This is a date parser for a bunch of formats.

Internationalized getdate.  You can even type date descriptions in
your native language.

Miguel.

svn path=/trunk/; revision=159
1998-04-19 00:19:48 +00:00
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
6329a627a9 Final steps.
svn path=/trunk/; revision=157
1998-04-18 04:40:59 +00:00
d4f4dc26fc Usability fixes -mig
svn path=/trunk/; revision=156
1998-04-18 04:22:57 +00:00
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
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
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
d55901c052 Year view, double click -mig
svn path=/trunk/; revision=152
1998-04-17 23:48:05 +00:00
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
470866a257 We load the alarms -mig
svn path=/trunk/; revision=150
1998-04-17 21:37:34 +00:00
2ec1fdc08f Save Recurrence rules -Miguel
svn path=/trunk/; revision=149
1998-04-17 21:24:10 +00:00
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
ad0347d16b Remove deadly excessive abuse of encapsulation -mig
svn path=/trunk/; revision=147
1998-04-17 05:08:55 +00:00
541c3a7a73 New event generation api in place -miguel
svn path=/trunk/; revision=146
1998-04-17 04:49:37 +00:00
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
fe316c1621 Changed exec name to gnomecal, not gncal
Dr Mike <msf@redhat.com>

svn path=/trunk/; revision=144
1998-04-16 18:28:16 +00:00
71df667488 XPM files for events with alarm and recurrence, respectively.
1998-04-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* bell.xpm recur.xpm: XPM files for events with alarm and
	recurrence, respectively.

1998-04-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (button_1): Preserve the up/down cursor while dragging.

svn path=/trunk/; revision=143
1998-04-16 05:18:12 +00:00
8a6f658300 Now children have a vertical handle as well. This can be used to move the
1998-04-15  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (child_draw): Now children have a vertical
	handle as well.  This can be used to move the child anytime, not
	only when it is focused.
	(recompute_motion): Modified for new drag behavior.

svn path=/trunk/; revision=142
1998-04-16 02:56:44 +00:00
96eeb8b74e run fix -mig
svn path=/trunk/; revision=141
1998-04-15 23:23:01 +00:00
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
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
3ef4dcf9bb TODO updates - Federico
svn path=/trunk/; revision=138
1998-04-15 07:48:57 +00:00
420485aafa Now using time_t for new and set. Random fixes, as well.
1998-04-15  Arturo Espinosa Aldama  <arturo@nuclecu.unam.mx>

        * gncal-year-view.[hc]: Now using time_t for new and set.
	Random fixes, as well.

svn path=/trunk/; revision=137
1998-04-15 06:47:33 +00:00
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
32c4768901 Argh
svn path=/trunk/; revision=135
1998-04-15 03:13:44 +00:00
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
3161696e57 Load recurrence rules; Paint the recurrence screen according to the rules.
Load recurrence rules;  Paint the recurrence screen according to the
rules.

-miguel

svn path=/trunk/; revision=133
1998-04-14 05:24:38 +00:00
49a388705e Now takes object and flags parameters. Likewise. Likewise.
1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-week-view.c (gncal_week_view_update): Now takes object and
	flags parameters.
	* gncal-day-view.c (gncal_day_view_update): Likewise.
	* gncal-full-day.c (gncal_full_day_update): Likewise.
	(child_focus_in): New function.  In conjunction with
	child_focus_out(), these only display the handles in the child
	when it is focused.  The result is that the user can see more of
	the child's text when nothing is focused, and we can also display
	fatter and nicer drag handles.

	* gnome-cal.c (gnome_calendar_object_changed): Now takes an
	additional flags parameter
	(gnome_calendar_update_all): Made function static.  Now takes
	changed object and flags parameters as well.
	(gnome_calendar_object_changed): Now takes additional flags
	parameter to indicate what changed in the specified object.

	* calobj.h (CalObjectChange): New enum with flags to describe what
	has been changed in an object.

svn path=/trunk/; revision=132
1998-04-14 04:06:58 +00:00
23ef00df35 New function to let the outside world decide which child to focus.
1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.h:
	* gncal-full-day.c (gncal_full_day_focus_child): New function to
	let the outside world decide which child to focus.
	(gncal_full_day_focus_child): Bleah.  We have to synthesize a
	click because GtkText will not set the cursor when you focus it.

	* gnome-cal.c (day_view_range_activated): Focus the new child in
	the full day widget.

svn path=/trunk/; revision=131
1998-04-14 00:59:30 +00:00
c9311c844f Re-aligned some widgets to make it look prettier. (ee_alarm_widgets):
1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* eventedit.c (event_editor_setup_time_frame): Re-aligned some
	widgets to make it look prettier.
	(ee_alarm_widgets): Likewise.
	(ee_init_general_page): Likewise.
	(ee_classification_widgets): Likewise.
	(event_editor_init_widgets): Likewise.

svn path=/trunk/; revision=130
1998-04-13 23:24:07 +00:00
235b7ca66c Create new object and add it to the calendar. You can now select a range
1998-04-13  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gnome-cal.c (day_view_range_activated): Create new object and
	add it to the calendar.  You can now select a range in the
	full-day view, hit Return, and a new event will be added at the
	selected range.  I still have to figure out how to focus this new child.

	* gncal-full-day.c (paint_back): Rewrote function to avoid
	painting an area more than once -- eliminate flicker.
	(paint_back_rows): New function that calls paint_back() only for
	the area of the specified rows.
	(gncal_full_day_button_press):
	(gncal_full_day_button_release):
	(gncal_full_day_motion): Made these functions use
	paint_back_rows() instead of paint_back(), to eliminate flicker.  Wheee!

svn path=/trunk/; revision=129
1998-04-13 22:21:17 +00:00
75c96db2e1 We now connect to the range_activated signal of the fullday widget instead
1998-04-12  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gnome-cal.c (setup_day_view): We now connect to the
	range_activated signal of the fullday widget instead of catching
	key presses ourselves.
	(day_view_range_activated): New function that creates a new
	iCalObject and inserts it into the calendar, not finished yet.

1998-04-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (get_time_from_rows): New function, calculates
	a pair of time_t values from the specified start and number of rows.

	* gncal-full-day.h (GncalFullDayClass): New signal
	"range_activated".  It is emitted when a range is selected and the
	user hits Return.
	(gncal_full_day_selection_range): New function, returns the
	selected range.

	* gncal-full-day.c (struct drag_info): Moved selection information
	to their own fields instead of sharing the child's drag fields.
	This allows us to keep the selection when a child is moved.
	(recompute_motion): Made the case when (row < di->sel_click_row)
	work correctly.

svn path=/trunk/; revision=128
1998-04-12 21:38:59 +00:00
fbc607b0ed Begginning of the create-appointment-on-range-selection-and-enter code -miguel
svn path=/trunk/; revision=127
1998-04-12 00:17:12 +00:00
b265b27dfc More work on the recurrence dialog box, day navigation -mig
svn path=/trunk/; revision=126
1998-04-11 23:32:49 +00:00