Commit Graph

289 Commits

Author SHA1 Message Date
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
5f869ecc19 Now we support selecting a range in the main window (by
1998-04-11  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (recompute_motion): Now we support selecting a
	range in the main window (by clicking+dragging).  It flickers
	horribly and is not perfect, but it is a start.

svn path=/trunk/; revision=125
1998-04-11 06:28:01 +00:00
6caeba2849 Oops, compilation fixes plus more work - Federico
svn path=/trunk/; revision=123
1998-04-11 01:18:21 +00:00
6cffb55b8d Gnome cal enhancemnets -mig
svn path=/trunk/; revision=122
1998-04-11 01:12:58 +00:00
ecfd18d871 More work in progress - Federico
svn path=/trunk/; revision=121
1998-04-10 19:41:15 +00:00
a4b297a8d4 Show instead of just map the child widget (otherwise the text widget gets
1998-04-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (child_map): Show instead of just map the child
	widget (otherwise the text widget gets confused and will not focus).

	* calobj.c (ical_object_to_vobject): Quote chars as 'x', not "x".

	* calobj.h: Added prototype for ical_object_to_vobject().

	* gnome-cal.c (gnome_calendar_object_changed): New function.  This
	should be called when a calendar object is changed.

	* gncal-full-day.c (update_from_drag_info): Call
	gnome_calendar_object_changed() instead of updating manually.

	* calendar.c (calendar_add_object):
	(calendar_remove_object): Set the modified flag to true.

	* gncal-full-day.c (gncal_full_day_draw): Finished implementing
	this function.

svn path=/trunk/; revision=120
1998-04-09 07:36:54 +00:00
8e5a66e2c3 Also run AC_HEADER_DIRENT.
* gnome-support.m4: Also run AC_HEADER_DIRENT.

svn path=/trunk/; revision=118
1998-04-09 00:20:07 +00:00
95839b6f9a Update to list newer versions of packages. Add `scandir'.
* autogen.sh: Update to list newer versions of packages.
* gnome-support.m4 (AC_REPLACE_FUNCS): Add `scandir'.

svn path=/trunk/; revision=117
1998-04-08 23:54:06 +00:00
9bb0572b2c The full day widget now gets updated correctly when you add an
appointment from the menus.  - Federico

svn path=/trunk/; revision=116
1998-04-08 23:24:29 +00:00
2e5812a2c1 Say #if 0', not #ifdef 0'.
* gncal.c (update_calendar): Say `#if 0', not `#ifdef 0'.

svn path=/trunk/; revision=115
1998-04-08 22:51:54 +00:00
82f62a2782 Updates - Fed
svn path=/trunk/; revision=114
1998-04-08 21:01:31 +00:00
d46d71aaf7 Added a TODO list to refresh my memory from time to time - Federico
svn path=/trunk/; revision=113
1998-04-08 20:54:12 +00:00
56ccb475f9 Wheee! Now you can drag events correctly - Federico
svn path=/trunk/; revision=112
1998-04-08 18:42:58 +00:00
1e19f2f580 More updates - Federico
svn path=/trunk/; revision=111
1998-04-08 08:19:24 +00:00
70143f6e1f Removed unused global variable parent_class.
1998-04-07  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* eventedit.c: Removed unused global variable parent_class.

	* eventedit.h: Renamed gtk_window field to window.
	Made the parent_class field in the EventEditorClass structure be a
	GtkWindowClass, not a gnome property box class.
	Added prototype for event_editor_get_type().

svn path=/trunk/; revision=110
1998-04-08 02:35:05 +00:00
b5a61327da More work in progress, wheeeee - Federico
svn path=/trunk/; revision=109
1998-04-07 19:01:42 +00:00
eaba896a14 New file.
* versit/.cvsignore: New file.

svn path=/trunk/; revision=108
1998-04-06 05:20:20 +00:00
45ebcc48ee vCalendar gets fully saved -mig
svn path=/trunk/; revision=107
1998-04-04 21:06:49 +00:00
524de5fe83 Include <config.h>.
Fri Apr  3 22:31:54 1998  Tom Tromey  <tromey@cygnus.com>

	* calendar.c: Include <config.h>.

svn path=/trunk/; revision=106
1998-04-04 05:49:09 +00:00
c050cb45aa lots more -mig
svn path=/trunk/; revision=105
1998-04-04 03:43:48 +00:00
bacbb08589 more and more fixes -mig
svn path=/trunk/; revision=104
1998-04-04 03:29:36 +00:00
f4295ffe09 Lots -mig
svn path=/trunk/; revision=103
1998-04-04 02:44:29 +00:00
1be7718e7d More work. Weee! -mig
svn path=/trunk/; revision=102
1998-04-03 08:07:17 +00:00
e2fbfd581d The "better" format string for strftime() wasn't better, after all :-(
1998-04-03  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* view-utils.c (view_utils_draw_events): The "better" format
	string for strftime() wasn't better, after all :-(

... plus more work on progress

svn path=/trunk/; revision=101
1998-04-03 08:05:35 +00:00
45a75ede7f add test.vcf, more code progress -mig
svn path=/trunk/; revision=100
1998-04-03 07:33:34 +00:00
197ca7ac5b New full-day widget. It is still a work in progress. It will be similar to
1998-04-02  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c: New full-day widget.  It is still a work in
	progress.  It will be similar to M$ Schedule's nifty full day view
	widget, but with Gtk's elegance :-)

	* Makefile.am (gnomecal_SOURCES): Added gncal-full-day.[ch] to the sources.

svn path=/trunk/; revision=99
1998-04-03 06:03:18 +00:00
dc90ad6b43 More calendar work -mig
svn path=/trunk/; revision=98
1998-04-03 04:53:51 +00:00
01b4ff7532 Use better format specifier for strftime().
1998-04-02  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* view-utils.c (view_utils_draw_events): Use better format
	specifier for strftime().
	(view_utils_draw_textured_frame): Ultra-nifty function to draw
	textured "metal" frames, like Netscape's handles.


HEAR YE!  HEAR YE!  GtkHandleBox could use this last function to draw
a prettier drag handle.  Any takers?

svn path=/trunk/; revision=97
1998-04-03 03:59:49 +00:00
2ff4c25c6c Various time fixes; lib fixes; cache fixes -mig
svn path=/trunk/; revision=96
1998-04-02 21:00:59 +00:00
f6963100c2 Day events are now cached inside the widget. They get initialized at this
1998-04-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gncal-day-view.c (gncal_day_view_update): Day events are now
	cached inside the widget.  They get initialized at this time.

	* view-utils.c (view_utils_draw_events): Use the list of events.

svn path=/trunk/; revision=95
1998-04-02 20:35:12 +00:00