Commit Graph

374 Commits

Author SHA1 Message Date
3b1a500fd3 Doh, add the files - Federico
svn path=/trunk/; revision=433
1998-10-08 00:21:47 +00:00
192c70b978 Sync sync sync
1998-10-07  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* layout.[ch]: New files that abstract the event layout code from
	gncal-full-day.c into something useful for other parts of the
	program.  Now all event layout is done here.

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

svn path=/trunk/; revision=432
1998-10-08 00:19:46 +00:00
79f1b787b5 Replaced the 'gnome_client_new_default' call with 'gnome_master_client'.
* main.c (main): Replaced the 'gnome_client_new_default' call with
'gnome_master_client'.

svn path=/trunk/; revision=431
1998-10-07 19:29:45 +00:00
d8354e1820 Cells from the clipboard do not have a Sheet parameter attached.
1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>

	* src/cell.c (cell_modified): Cells from the clipboard do not have
	a Sheet parameter attached.

	* src/sheet.c (sheet_cell_add): Check the computed style:  if the
	computed style includes a format, then turn on the cell flag for
	format is set to avoid the auto guess of cell content.
	(sheet_style_compute): Now can return the flags of the style that
	were not part of the default style.

	* src/file.c (dialog_query_load_file, workbook_save_as): Put the
	window close to the mouse.

	* src/workbook.c (sheet_check_dirty, workbook_close): Do not
	cancel without warning the user if the workbook has changed.
	(workbook_new, workbook_can_close, workbook_window_destroy,
	quit_cmd, close_cmd): Reorganized the code to suit the new code to
	prevent inadvertent quits.

svn path=/trunk/; revision=429
1998-10-06 23:17:23 +00:00
d615e93107 Added test for xlc, to run automake with --include-deps
svn path=/trunk/; revision=428
1998-10-06 05:01:50 +00:00
152fd20f32 Remove `-W'. (warn-unused): Remove.
* compiler-flags.m4 (warnCFLAGS): Remove `-W'.
(warn-unused): Remove.

svn path=/trunk/; revision=427
1998-10-05 23:26:49 +00:00
41b1aecf47 Fix typo while signaling the error.
1998-10-05  Karl Eichwalder <ke@suse.de>

	* gnome-xml-check.m4: Fix typo while signaling the error.

svn path=/trunk/; revision=426
1998-10-05 18:57:27 +00:00
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
e9a632c3c1 Use the font #defines. (month_view_new): Set the colors of the month view
1998-10-01  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* month-view.c (month_view_init): Use the font #defines.
	(month_view_new): Set the colors of the month view upon creation.
	(mark_current_day): New function to mark the current day in the
	month view.
	(month_view_set): Mark the current day.
	(month_view_colors_changed): Mark the current day and colorify the
	month item appropriately.

	* month-view.h: Added year and month fields to the MonthView
	structure.

	* main.c: Renamed the Appointments color property, since it will
	be used by the month view as well.

	* goto.c (update): Set the current day's font and color.

	* year-view.c (year_view_init): Set the fonts of the month items
	when creating them.

	* mark.h: Added new #defines for HEADING_FONT and TITLE_FONT.

	* year-view.c (year_view_init): Use the new font #defines.

	* prop.c (prop_apply_colors): Fixed to work with the
	I-am-paranoid-and-I-need-to-size-my-ints changes to
	GnomeColorPicker.
	(color_spec_from_picker): Likewise.

svn path=/trunk/; revision=424
1998-10-01 23:47:01 +00:00
e94162c0a4 Added `AC_SUBST(libgtop_postinstall)'. This is used in
1998-10-01  Martin Baulig  <martin@home-of-linux.org>

	* gnome-libgtop-sysdeps.m4 (libgtop_postinstall):
	Added `AC_SUBST(libgtop_postinstall)'. This is used in
	`src/daemon/Makefile.am' to make the server suid root or
	sgid kmem if required.

svn path=/trunk/; revision=420
1998-10-01 08:56:39 +00:00
7dae771114 Colorify the month item and prepare it for prelighting here.
1998-09-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* goto.c (create_days): Colorify the month item and prepare it for
	prelighting here.

	* main.c (color_props):  Changed the default colors to something
	not dull.

	* year-view.c (compute_min_size): New function to compute the
	minimum size of the year view properly.
	(year_view_size_request): Added two new fields to the year view
	structure that contain the minimum size.  Return this in the
	size_request method.
	(year_view_new): Call compute_min_size to save the minimum size
	for later use.
	(idle_handler): Make it resize the items correctly.

	* gnome-month-item.c (gnome_month_item_set_arg): Reshape when
	necessary.  This is needed becaues we now actually calculate a
	minimum size for the month item based on the font sizes and paddings.
	(check_heading_sizes): New function to calculate a minimum size
	based on the headings' dimensions.
	(check_day_sizes): New function to calculate a minimum size based
	on the day number labels' dimensions.
	(check_sizes): New function that computes a minimum size for the
	month item.
	(reshape): Now calls check_sizes() to ensure a minimum size for
	the month item.

svn path=/trunk/; revision=419
1998-10-01 01:32:47 +00:00
d1769d5646 New function to mark the current day in the year view.
1998-09-30  Federico Mena Quintero  <federico@nuclecu.unam.mx>

	* year-view.c (mark_current_day): New function to mark the current
	day in the year view.

	* mark.c: Removed mark_current_day from here.

svn path=/trunk/; revision=418
1998-09-30 20:37:06 +00:00
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