Commit Graph

362 Commits

Author SHA1 Message Date
63d572bcbc Made all of the header inclussion conditionals consistent
svn path=/trunk/; revision=416
1998-09-30 19:08:39 +00:00
e6ffe37f19 Stuff that I forgot to commit yesterday.
Stuff that I forgot to commit yesterday.

Now the year view has a nifty pop-up view you can activate if you click on
a day with mouse button 1.  It will display a quick view of the appointments
in that day.  Also, reworked the marking and coloring code for month items
so that the year view is not glacially slow anymore when switching years.

It still is slow when first mapping or realizing the year view, I'm not sure why.
I will look into that.

1998-09-29  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* prop.c (fetch_color_spec): Changed name from fetch_prelight_spec
	and made it conform to the new prelighting mechanism.
	(fake_mark_days): Set the proper day attributes.
	(reconfigure_month): Use colorify_month_item().
	(fake_mark_days): Use mark_month_item_index().

	* mark.c (colorify_month_item): New public function to reset the
	colors in a month item.
	(get_attributes): New internal function that creates an array of
	attributes for the days in a month item.  This is the basis of all
	the new optimizations to month item marking.
	(unmark_month_item): Now it uses the attributes array to unmark
	only the days that need unmarking.
	(mark_event_in_month): Update the day attributes array.
	(month_item_prepare_prelight): Changed the definition of the
	prelight color query function.  Use the new function.
	(day_event): Do color changes based on the day attributes array.
	(mark_month_item_index): New public function to mark a single day
	by index.
	(mark_event_in_month): Use mark_month_item_index().

	* gnome-month-item.c (gnome_month_item_num2child): Now takes an
	int, not a GnomeMonthItemChild.
	(gnome_month_item_child2num): Now returns an int, not a
	GnomeMonthItemChild.
	(gnome_month_item_num2day): Now takes an int, not a
	GnomeMonthItemChild.

	* goto.c (goto_dialog): Create the days before the year spin
	button, because the year_changed callback expects the month item
	to be created.  The new semantics of the spin button cause it to
	emit a value_changed signal on the adjustment upon creation -- is
	this the behavior we want from it?
	(goto_dialog): Use gtk_window_set_modal() instead of the
	deprectaed gnome_dialog_set_modal().

	* quick-view.c (quick_view_new): Make it look not as crappy by
	putting the title inside the frame.
	(quick_view_do_popup): Fixed the pointer grab and added a cursor.
	(create_items_for_event): Query the text width/height from the
	text item using the new object arguments, so that the size of the
	popup window can be set properly.

	* year-view.c (do_quick_view_popup): Calculate a nice date string
	for the popup window.

svn path=/trunk/; revision=415
1998-09-30 16:44:14 +00:00
9e927267cd New routine to paint a little red triangle if the cell hsa notes.
1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_draw_comment): New routine to paint a little
	red triangle if the cell hsa notes.

	* src/cell.c (cell_destroy): Destroy the comment.
	(str_trim_spaces): New routine.  Trims the spaces on a string.
	(cell_draw): Trim the leading and trailing spaces on every string
	of a multi-line text.

	* src/color.c (color_init): Allocate a red for tagging the
	spreadhseet notes.

	* src/dialog-cell-format.c (format_list_fill): Apply the
	traslation when adding the format.

	* doc/tranlating.sgml: New document that describes how to
	internationalize and localize Gnumeric properly.

	* src/workbook.c (recalc_cmd): Provide a way to force a recomputation.
	(insert_current_time_cmd): New function.  insert the current time.
	(insert_current_date_cmd): New function.  insert the current date.
	(insert_at_cursor): New utility function.

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle control-home

svn path=/trunk/; revision=414
1998-09-30 05:51:35 +00:00
550314f75b New file that presents a quick view of the events in a particular day when
1998-09-28  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* quick-view.[ch]: New file that presents a quick view of the
	events in a particular day when the mouse is clicked on the year
	view.  Work in progress.

	* year-view.c (do_quick_view_popup): New function that creates a
	quick view for the events in a day.

	* Makefile.am (gnomecal_SOURCES): Added quick-view.[ch] to the
	list of sources.

svn path=/trunk/; revision=413
1998-09-29 00:54:21 +00:00
a73b55050b Make it accept libgtop >= 0.25.0 again.
1998-09-28  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Make it accept libgtop >= 0.25.0 again.

svn path=/trunk/; revision=410
1998-09-28 20:05:03 +00:00
b9e0e47fee Make the default not to build the LibGTope examples.
1998-09-28  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-sysdeps.m4: Make the default not to build the
	LibGTope examples.

svn path=/trunk/; revision=409
1998-09-28 19:18:32 +00:00
dcb862d546 New configure parameter to add `-Wunused' to the warning flags.
1998-09-28  Martin Baulig  <martin@home-of-linux.org>

	* compiler-flags.m4 (--enable-warn-unused): New configure parameter
	to add `-Wunused' to the warning flags.

svn path=/trunk/; revision=408
1998-09-28 15:25:28 +00:00
84cf91f615 Make it require libgtop >= 0.26.2.
1998-09-27  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Make it require libgtop >= 0.26.2.

svn path=/trunk/; revision=404
1998-09-27 11:38:34 +00:00
d781a3879c Hotkey for File/Exit should be C-q, not C-x.
1998-09-27  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* main.c: Hotkey for File/Exit should be C-q, not C-x.

svn path=/trunk/; revision=403
1998-09-27 10:25:18 +00:00
8b71e81b3f List fish file system
svn path=/trunk/; revision=400
1998-09-25 22:27:31 +00:00
e77b1d39aa Updates to the TODO - Federico
svn path=/trunk/; revision=399
1998-09-25 03:44:02 +00:00
9a44eaa384 New function to execute the popup menu in the year view. (day_event):
1998-09-24  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* year-view.c (do_popup_menu): New function to execute the popup
	menu in the year view.
	(day_event): Invoke the popup menu with the context set to days.
	(new_appointment): New function to create a new appointment from
	the year view.
	(do_jump): New function to do the appropriate view/date jumping
	from the popup menu.

	* main.c: Fixed two icons in the File menu.

svn path=/trunk/; revision=398
1998-09-25 02:45:31 +00:00
492f635013 Add checks for -lsocket -lnsl.
* gnome-ghttp-check.m4: Add checks for -lsocket -lnsl.

svn path=/trunk/; revision=397
1998-09-25 02:11:32 +00:00
8089200cb5 New:
New:

	- Bold button works properly (ie, it detects what sort of
	  stuff you have and presses/unpresses accordingly).

	- GNumeric now has operation modes: sheet and object.
	  Using delete/backspace/edit-cut will let you kill
	  objects.

	- Lots of the bug fixes reported by Adrian/Federico.

Here is the detailed changelog:

1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/xml-io.c: Destroy the extra style.

	* src/main.c (main): No need to init colors as they are auto-inited.

	* src/style.c (font_compute_hints): At font creation time store a
	couple of the font attributes for quick retrieval.

	* src/sheet-view.c (sheet_view_construct): Do not allow this
	button to have the focus either.

	* src/item-bar.c (item_bar_draw): If the whole sheet is selected,
	draw all of the columns in pressed presenstation

	* src/sheet.c (sheet_is_all_selected): Return wheter all the sheet
	is selected.

	* src/utils.c (cell_name): Fixed cell name computation.
	(parse_cell_name): Fixed parsing of the cell name.

svn path=/trunk/; revision=396
1998-09-24 02:45:43 +00:00
c9f3dfe29b Sync for version 0.30 - Federico
svn path=/trunk/; revision=393
1998-09-22 20:22:43 +00:00
b4364e08d2 sync - Federico
svn path=/trunk/; revision=392
1998-09-22 15:30:14 +00:00
b5a9926ce3 Added underlined shortcuts and accelerators to the main menu.
1998-09-21  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* main.c: Added underlined shortcuts and accelerators to the main menu.

svn path=/trunk/; revision=391
1998-09-22 03:02:45 +00:00
f6fd83536e When decoding a tree, include the argument separator. Also, loop properly
1998-09-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/expr.c (do_expr_decode_tree): When decoding a tree, include
	the argument separator.  Also, loop properly trough the arguments
	being decoded.

	(function_call_with_values, function_def_call_with_values): New
	functions: these ones are for the plugins so that a plugin can
	invoke other functions in Gnumeric.

	* src/fn-date.c (gnumeric_now): The serial number returned by
	NOW() should be relative to 1900/1/1, not year zero.

1998-09-20  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/expr.c (eval_expr): Fix the way we computed expressions.

	* src/eval.c (cell_eval): Maintain a CELL_ERROR flag to know if
	the value is NULL due to an error or to the cell not being
	evaluated.

	* src/expr.c (funcion_call_with_values): Add a routine to allow
	plugins to call other functions defined in Gnumeric.

	* src/style.c: Handle the pattern property of the styles.

	* src/style.h: Pattern style is now just a 4 bit quantity, instead
	of a RefCounted structure.

	* src/plugin.c: Include gnumeric-util.h

svn path=/trunk/; revision=390
1998-09-21 05:18:05 +00:00
6d621a1f5d remove gnomecard from subdirs until it actually compiles
svn path=/trunk/; revision=389
1998-09-21 04:19:38 +00:00
0e5ef0d554 -)
* Say "Now type `make` to build $PKG_NAME", not "... the $PKG_NAME".  That
  was getting on my nerves :-)

svn path=/trunk/; revision=386
1998-09-20 19:19:24 +00:00
4bedda8d73 Use -W -Wno-unused
svn path=/trunk/; revision=385
1998-09-19 18:50:37 +00:00
40b5030acc Do not use -W as in the context of Gtk/Gnome, we get warnings for the
Do not use -W as in the context of Gtk/Gnome, we get warnings for
the unused parameters in callback funcions which we cant fix.

Miguel.

svn path=/trunk/; revision=384
1998-09-19 17:40:35 +00:00
e8c5cd3ae1 Remove commented out code.
* gnome-support.m4: Remove commented out code.

svn path=/trunk/; revision=383
1998-09-19 02:01:29 +00:00
c6af8ca073 Make libgnorba part of the build procedure. Fix the wrong gnome-popup-menu
Make libgnorba part of the build procedure.
Fix the wrong gnome-popup-menu commit.

Miguel.

svn path=/trunk/; revision=382
1998-09-18 05:12:37 +00:00
e0138f30b3 GNOME_ORBIT_CHECK now defines ORBIT_LIBS and ORBIT_INCLUDES
svn path=/trunk/; revision=381
1998-09-17 21:19:49 +00:00
3f33d7766a Include. Include.
* gncal-week-view.c (<gtk/gtklabel.h>): Include.
* gncal-week-view.h (<gtk/gtkvbox.h>): Include.

svn path=/trunk/; revision=380
1998-09-16 23:57:00 +00:00
8d5c52e66b Autofill lists work:
Autofill lists work:

	Integers, Floats, Formulas and constant strings works.

Todo:

	Lists of known strings and strings with numbers embedded

Miguel.

svn path=/trunk/; revision=379
1998-09-16 08:22:56 +00:00
99fcfec213 Use rm -f ... ; $(LN_S) ...' instead of ln -sf'.
svn path=/trunk/; revision=378
1998-09-15 08:16:11 +00:00
70fa0cb326 Got cursors working.
Got cursors working.

Use the cursors properly on the spreadhseet (gives good feedback
on what is going to happen).

More work on autofill.

miguel.

svn path=/trunk/; revision=377
1998-09-15 04:19:56 +00:00
95099ae101 Color attributes in formats work (ie, you can get colored cells now);
Color attributes in formats work (ie, you can get colored cells now);

My first -futile attempts- at getting various different cursors working on the
spreadsheet (we need a cross and various other cursors for a better emulation
of Excel).

The beginning of autofill, but I really need to see Excel live before implementing
this.

Miguel.

svn path=/trunk/; revision=376
1998-09-14 04:50:58 +00:00
1fad87fb62 Added (AC_SUBST): `libgtop_have_sysinfo'.
1998-09-12  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-sysdeps.m4: Added (AC_SUBST): `libgtop_have_sysinfo'.

svn path=/trunk/; revision=374
1998-09-12 17:51:46 +00:00
5716777409 Color implemtnation
svn path=/trunk/; revision=373
1998-09-12 00:32:51 +00:00
a05ffdfc39 Added sample plugin
svn path=/trunk/; revision=371
1998-09-10 23:06:39 +00:00
e366ebc208 Set minimum required LibGTop version to 0.26.1.
svn path=/trunk/; revision=370
1998-09-09 16:35:30 +00:00
83fe9208cc Added check for SMP support. (--with-libgtop-smp): New parameter, default
1998-09-09  Martin Baulig  <baulig@merkur.uni-trier.de>

	* gnome-libgtop-sysdeps.m4: Added check for SMP support.
	(--with-libgtop-smp): New parameter, default is to enable
	it only if you're running configure on a SMP system.
	Added (AC_DEFINE): `HAVE_LIBGTOP_SMP' if enabled.
	(LIBGTOP_SMP): New automake conditional.

svn path=/trunk/; revision=369
1998-09-09 12:23:22 +00:00
f69617a3d9 Moving imlib.m4 back where it belongs.
svn path=/trunk/; revision=368
1998-09-08 14:06:24 +00:00
f2b2ddc46b removed imlib.m4 from main imlib dostribution
added imlib.m4 to gnome macros dir

svn path=/trunk/; revision=367
1998-09-08 00:46:03 +00:00
92c122de80 New check macro for ORBit -mig
svn path=/trunk/; revision=366
1998-09-07 20:04:40 +00:00
a16706067d Fixed detection of xml in gnome-xml macros take 2 -mig
svn path=/trunk/; revision=365
1998-09-07 17:52:05 +00:00
3fc82537c5 Fixed detection of xml in gnome-xml macros -mig
svn path=/trunk/; revision=364
1998-09-07 17:30:43 +00:00
40be5aa2ab Fixed the bug reported about the mail notification not beint sent until
1998-09-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* gnome-cal.c (mail_notify): Fixed the bug reported about the mail
	notification not beint sent until the program was terminated.

svn path=/trunk/; revision=363
1998-09-07 02:58:08 +00:00
df67e4e802 Revamped the GNOME_XML_CHECK macro. Now acts (somewhat) like the
Revamped the GNOME_XML_CHECK macro.  Now acts (somewhat) like the GNOME_INIT
and GNOME_INIT_HOOK macros.  The GNOME_XML_CHECK macro will abort a config
if XML is not found.  GNOME_XML_HOOK will set GNOME_XML_LIB to the value
"iswwci"

Need to continue thinking how to better handle the not-found-but-I-can-survive-
without-it case a little more...

Mark Crichton

svn path=/trunk/; revision=362
1998-09-04 12:45:54 +00:00
84fa00e42a Finished with the properties dialog. You can jump to days from the year
Finished with the properties dialog.  You can jump to days from the year view
now.  I'm off to rewrite gnome-popupmenu and friends.

1998-09-03  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* gncal-full-day.c (gncal_full_day_forall): Updated foreach ->
	forall from Gtk changes, bleah.

	* year-view.c (day_event): New function to handle events from
	days.  Jumps to the day that is clicked.

	* main.c: Use a watch cursor while the previous/today/next
	functions are doing their job.

	* mark.c (month_item_prepare_prelight): New public utility
	function to prepare a month item for prelighting.  It will store
	the proper prelight information and attach the appropriate signals.
	(mark_current_day): Make the current day bold as well (useful for
	color-blind people, I guess).

	* prop.c (set_current_day): Reset the date in the sample calendar
	and mark the current day.
	(fake_mark_days): Mark fake events in the sample calendar.

	* year-view.c (year_view_set): Use the general prelighting engine.

	* goto.c (day_event): Just process button presses, as prelighting
	is done behind the scenes now.
	(update): Use the general prelighting engine.

	* prop.c (create_colors_page): We can now configure the colors of

svn path=/trunk/; revision=361
1998-09-04 00:43:06 +00:00
de704a7b45 Today: we can now configure the colors for the monthly items, courtesy of
Today:  we can now configure the colors for the monthly items, courtesy of
the canvas and GnomeColorPicker.  Look at the preferences dialog, it is
kind of nice.  There are still some bugs to be fixed, nothing major.

1998-09-03  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* prop.c (create_colors_page): We can now configure the colors of
	the monthly calendars!  Wheeeeee!  There are still some nits to be
	fixed, which are listed in the TODO file.
	(build_color_spec): New function to build color specifications.
	(parse_color_spec): New function to parse color specifications.

	* mark.c: Modified all functions to use the configured colors.
	* goto.c: Likewise.

	* main.c (colors_changed): New function that notifies all
	calendars that colors have changed.

	* gnome-cal.c (gnome_calendar_colors_changed): New function that
	notifies all the views that the colors have changed.

	* month-view.c (month_view_colors_changed): New function that
	notifies the month view that colors have changed.

	* year-view.c (year_view_colors_changed): New function that
	notifies the year view that colors have changed.

	* gnome-month-item.h (struct _GnomeMonthItem): Added fields for
	outline and day box colors.

	* gnome-month-item.c (gnome_month_item_set_arg): Added
	outline_color, outline_color_gdk, day_box_color, and
	day_box_color_gdk arguments to month items.  These are convenient
	to quickly set the colors of the month item.
	(gnome_month_item_get_arg): Likewise.

	* main.[ch]: Added a global array of structures for color preferences.

svn path=/trunk/; revision=360
1998-09-03 05:33:07 +00:00
0e94defc99 Remove check for `canonicalize_file_name'.
* gnome-support.m4: Remove check for `canonicalize_file_name'.

svn path=/trunk/; revision=359
1998-09-02 22:53:56 +00:00
2be214b598 Check for canonicalize_file_name () and realpath () and add
1998-09-02  Martin Baulig  <martin@home-of-linux.org>

	* gnome-support.m4: Check for canonicalize_file_name () and
 	realpath () and add `canonicalize.o' to LIBOBJS if required.

svn path=/trunk/; revision=358
1998-09-02 08:02:29 +00:00
0c255f1119 Added (AC_SUBST): `LIBGTOP_VERSION_CODE'. Added (AC_DEFINE_UNQUOTED):
1998-08-30  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Added (AC_SUBST): `LIBGTOP_VERSION_CODE'.
	Added (AC_DEFINE_UNQUOTED): `LIBGTOP_VERSION', `LIBGTOP_VERSION_CODE',
	`LIBGTOP_{MAJOR,MINOR,MICRO,SERVER}_VERSION'.

svn path=/trunk/; revision=353
1998-08-30 12:47:39 +00:00
5f228d1144 It helps to add the new files - Federico
svn path=/trunk/; revision=352
1998-08-30 01:30:00 +00:00
e0d99122ab Centralized marking of month items. We now have a little utility function
Centralized marking of month items.  We now have a little utility
function to colorify the days in a month item that have events
scheduled for them.  This is currently used by the year view and
the go-to dialog.  Fixed buglets here and there.

1998-08-29  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* mark.[ch]: New files with utility functions to mark calendars
	with their events.

	* mark.c (mark_month_item): New public function to mark a month
	item with events.
	(unmark_month_item): New public function to unmark all the days in
	a month item to their default appearance.

	* year-view.c (year_view_set): Use the new unmark_month_item() and
	mark_month_item() to mark the months with events.

	* goto.c (update): New function that updates the calendar in the
	Go-to dialog by marking the days.

	* timeutil.c (time_year_begin): Modified to take a time_t value.
	(time_year_end): Likewise.
	(time_month_begin): Actually implemented this function, which was
	in the header file but not here.
	(time_days_in_month): New public function that returns the number
	of days in a month.

	* Makefile.am (gnomecal_SOURCES): Added mark.[ch] to the sources.

	* year-view.c (unmark_days): Use unmark_month_item().

	* gncal-full-day.c (gncal_full_day_destroy): Fixed crash when
	destroying the full day view.  The full day's destroy method is
	unusual in that it destroys the list of child widgets itself, as
	it does not have a remove method, so it needs to reset the list to
	NULL.

svn path=/trunk/; revision=351
1998-08-30 01:29:19 +00:00
9b6991077b Make it require libgtop >= 0.26.0. Added (AC_SUBST):
1998-08-29  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-check.m4: Make it require libgtop >= 0.26.0.
	Added (AC_SUBST): `LIBGTOP_INTERFACE_AGE' and `LIBGTOP_BINARY_AGE'.

svn path=/trunk/; revision=350
1998-08-29 21:25:02 +00:00