1. 06 Oct, 1998 1 commit
  2. 05 Oct, 1998 2 commits
    • Arturo Espinosa's avatar
      Fix typos · 2b2ddc82
      Arturo Espinosa authored
      2b2ddc82
    • Miguel de Icaza's avatar
      New function, used to tag a modified cell in a sheet. · 4a1b760f
      Miguel de Icaza authored
      1998-10-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/cell.c (cell_modified): New function, used to tag a modified
      	cell in a sheet.
      
      	* src/fn-math.c (gnumeric_average): Display error on division by
      	zero.  Make the code not depend on the types returned by
      	gnumeric_sum and gnumeric_count.
      	(callback_function_sum): Keep sum as integers as long as
      	possible instead of using floating point all the time.
      4a1b760f
  3. 03 Oct, 1998 3 commits
    • Miguel de Icaza's avatar
      Do not try to be smart about string content. Let the smartiness to other · eb3b3858
      Miguel de Icaza authored
      1998-10-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-math.c (callback_function_sum): Do not try to be smart
      	about string content.  Let the smartiness to other layers.
      	(gnumeric_average): Handle division by zero on average routine.
      
      	* src/number-match.c (create_option_list): Small bug fix:  First
      	translate, then move the pointer ahead.
      
      	* src/cell.c (str_trim_spaces): Trim space routine was removing
      	everything after the first space instead of removing only the
      	trailing space.
      	(cell_draw): Free the original string, not the modified copy.
      
      	* src/sheet.c (sheet_set_text): Test if the format has been
      	manually set by the user before trying to do format matching.
      
      	* src/cell.h: New flag: CELL_FORMAT_SET, used if the user has
      	manually specified a format. FIXME: This information should be
      	saved and loaded.
      
      	* src/cell.c (cell_set_format): Set the CELL_FORMAT_SET flag
      eb3b3858
    • Nuno Ferreira's avatar
      Added some more keys to navigate the menus. · f70e669e
      Nuno Ferreira authored
      	* src/workbook.c: Added some more keys to navigate the menus.
      
      	* gnumeric.desktop: Added Portuguese translations.
      
          * po/pt.po: Updated.
      f70e669e
    • Jakub Jelinek's avatar
      fix, fore_color was assigned twice, and back_color never. · d75141a4
      Jakub Jelinek authored
      1998-10-02  Jakub Jelinek <jj@sunsite.ms.mff.cuni.cz>
      
      	* src/dialog-cell-format.c (apply_coloring_format): fix,
      	fore_color was assigned twice, and back_color never.
      
      1998-10-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/item-grid.h: ItemGridSelectionType: new enumeration type
      	used for item_grid->selecting to avoid shutting down entirely the
      	formula selection range on mouse release.
      d75141a4
  4. 02 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Removed unused variables · e5d027e2
      Miguel de Icaza authored
      1998-10-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/item-grid.c (item_grid_event): Removed unused variables
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_start_cell_selection,
      	gnumeric_sheet_selection_extend,
      	gnumeric_sheet_selection_cursor_place): New routines for letting
      	the user use the mouse to select a cell range.  Invoked from
      	item-grid.c
      
      	* src/item-grid.c (item_grid_event): Clean and reorgranize the
      	event handler, remove unused variables.
      
      	* src/gnumeric-sheet.c (selection_expand_horizontal): -1 now means
      	"shrink the selection", which means Left/Up keys shrink.
      	Right/Down expand.
      	(selection_expand_vertical): likewise.
      
      	* src/format.c (format_number): Fixed memory leak: this is a
      	pretty bad construction: g_string_append (s, alloc_string()).  I
      	just did not see it coming.  Taking metal note of this.
      
      	* src/number-match.c (format_create_regexp): Fixed memory leaks.
      	The strings returned by create_option_list need to be released.
      
      	* src/style.c (style_color_new): Important bug fix:  The key I was
      	passing was a GdkColor, but our hash table stored StyleColors
      	inside.
      
      	* src/format.c (append_year): Better fix, suggested by Morten
      	Welinder <terra@diku.dk>
      e5d027e2
  5. 01 Oct, 1998 4 commits
  6. 30 Sep, 1998 6 commits
    • Arturo Espinosa's avatar
      Minor bugglettes fixed · 31ed8ca5
      Arturo Espinosa authored
      31ed8ca5
    • Arturo Espinosa's avatar
    • Vincent Renardias's avatar
      Wed, 30 Sep 1998 18:53:32 +0200 [Vincent] · df25d6e4
      Vincent Renardias authored
      * src/fn-date.c: corrected 6 typos.
      * po/fr.po: updated accordingly.
      df25d6e4
    • Arturo Espinosa's avatar
      Removed unused variables -mig · 34f0c4fa
      Arturo Espinosa authored
      34f0c4fa
    • Miguel de Icaza's avatar
      New routine to paint a little red triangle if the cell hsa notes. · 890ae3fd
      Miguel de Icaza authored
      
      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
      890ae3fd
    • Manish Singh's avatar
      Shut up cvs · fe055883
      Manish Singh authored
      -Yosh
      fe055883
  7. 29 Sep, 1998 8 commits
    • Raja R Harinath's avatar
      Update to change in `expr.h'. s/OP_/OPER_/g. · 8a6487ec
      Raja R Harinath authored
      * src/parser.y (dump_tree): Update to change in `expr.h'.
      s/OP_/OPER_/g.
      8a6487ec
    • Arturo Espinosa's avatar
    • Miguel de Icaza's avatar
      Changed the formatting of it to be like the rest of Gnumeric. · ef54b95e
      Miguel de Icaza authored
      1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/xml-io.c: Changed the formatting of it to be like the rest
      	of Gnumeric.
      
      	* src/fn-math.c, src/fn-date.c: Simplify routines to use
      	value_float and value_int.
      
      	* src/expr.c (value_float, value_int): New utility functions to
      	create values of type integer and float.
      
      	* src/sheet.c (sheet_set_text): Use the matching engine on entered text
      
      	* src/cell.c (cell_set_text_simple): New function.  Does not queue
      	cell computations nor queue any redraws
      	(cell_content_changed): New function: Queues recomputations for
      	cells that depend on the contents of the argument.
      	(cell_set_format_simple): New routine, like cell_set_format but
      	does not render the value nor queues a redraw.
      
      	* src/xml-io.c: Use workbook_recalc_all instead of workbook_recalc
      
      	* src/fn-math.c (gnumeric_log10, gnumeric_log, gnumeric_log2):
      	Range check fix was wrong.  The valid range does not include
      	zero.  Thanks to Morten Welinder for noticing this.
      	(gnumeric_cosh): Call cosh, not cos.
      	Reordered this file to have the help always before the function
      	that defines it.
      	(callback_function_or): Bug fix: any non-zero value is considered
      	to be TRUE.
      	(gnumeric_fact): Use exp (lgamma (n+1)) to compute large
      	factorials (this only applies to factorials over 40).
      
      	* src/about.c (dialog_about): Stop using gnome_dialog_set_modal.
      ef54b95e
    • Arturo Espinosa's avatar
      header file for number-match.c · 187cc5c1
      Arturo Espinosa authored
      187cc5c1
    • Miguel de Icaza's avatar
      Small bug fix. I was making 'mm' be parsed as 'mmm'. Support 'mmmm'. · 1ab9226b
      Miguel de Icaza authored
      1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/number-match.c (format_create_regexp): Small bug fix.  I was
      	making 'mm' be parsed as 'mmm'.  Support 'mmmm'.
      1ab9226b
    • Miguel de Icaza's avatar
      New: · f4929ca6
      Miguel de Icaza authored
      
      
      New:
      
      	- Excel-like magic on strings works.  This means that everytime
      	  a string appears in an expression, it will be tried to match
      	  against all of the stock formating codes in Gnumeric to see
      	  if there is a match (basically, the inverse to format.c).
      	  If there is one, then the input is converted to a float using
      	  the format rules and the format for the cell is set to the
      	  matching format.
      
      	  This basically means, you can do stuff like:
      		="1/1/1997"+200 and get "7/20/1997"
      
      	  It also works for hours and also lets you input in your own
      	  language (if the locale provides proper translation), ie,
      	  you can input:
      
      		="15 pesos" + 10
      
      	  And get the result.
      
      	- Made another autogen.sh hack to shutup the noisy libtool during
      	  final link stage.
      
      	- Abbreviated months and days now include an asterisk at the
      	  beginning to let translators provide unambiguated strings
      	  (like, may->may).
      
      Miguel.
      Full ChangeLogs:
      
      1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-date.c (gnumeric_now, gnumeric_date, gnumeric_today):
      	Note that jannuary 1st is day 1, not day zero.
      
      	* src/format.c (append_month): Fixed handling: tm_mon is zero based.
      	(split_time): Fixed silly mistake I did last time I looked at this code
      
      	* src/cell.c (cell_set_formula): Try to set the cell style if the
      	style is General.
      
      	* src/parser.y (return_symbol): Try to match the input with the
      	format matching engine.
      
      	* autogen.sh (PKG_NAME): Another hack to get rid of the annoying
      	extracing symbols list, which, slows down my link time :-)
      
      1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/number-match.c (compute_value): New file:  Implements a
      	smart way of parsing numbers:  From all of the registered formats,
      	it creates regexps for matching at the time the user inputs data.
      	If that data matches any of the regexps, then the input is
      	converted into a float, and a display format is assigned to it.
      
      	* src/format.c (append_day, append_month): Skip the -now included-
      	start at the begining for internationalization purposes.
      	(split_time): Fixed the hour and second renddering.
      	(format_number): Fix:  hour_seen was not being set.
      
      	* src/sheet-autofill.c (matches_list): Allow the lists to include
      	an asterisk to be able to distinguish between abbreviations and
      	full descriptions.
      f4929ca6
    • Arturo Espinosa's avatar
      6b9497a9
    • Arturo Espinosa's avatar
      Moving stuff around a little. · 6e7b6467
      Arturo Espinosa authored
      
      
      Moving stuff around a little.
      
      I am preparing my matching engine on input, so that Gnumeric will
      auto-convert stuff like "10/Jan" and "10:45am" into a serial number.
      
      Miguel
      6e7b6467
  8. 28 Sep, 1998 3 commits
    • Arturo Espinosa's avatar
      Fixed pasting from the X selection -mig · 7cf36748
      Arturo Espinosa authored
      7cf36748
    • Miguel de Icaza's avatar
      Allow the lists to include an asterisk to be able to distinguish between · 0551a214
      Miguel de Icaza authored
      
      
      1998-09-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-autofill.c (matches_list): Allow the lists to include
      	an asterisk to be able to distinguish between abbreviations and
      	full descriptions.
      
      	* src/clipboard.c (x_selection_to_cell_region): New routine.
      	Creates a CellRegion of type text based on the selection provided
      	by X.
      	(paste_cell_flags): New function, decoupled from
      	do_clipboard_paste_cell_region.   Handles new type in CellCopy.
      
      	* src/sheet.c (sheet_selection_paste): Simplified as most of the
      	work is now
      
      	* src/clipboard.c (x_selection_received): Perform the paste
      	operation, moved most of the logic from sheet.c.  This does both
      	internal paste and paste from the X selection (and everything
      	works the way the user expects it to behave).
      0551a214
    • Miguel de Icaza's avatar
      Check the return value from symbol_lookup. · ae3dda69
      Miguel de Icaza authored
      
      1998-09-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/expr.c (function_call_with_values): Check the return value
      	from symbol_lookup.
      
      1998-09-26  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-object.c (sheet_view_object_realize): Swap coordinates
      	before passing to the canvas item.
      
      	* plugins/python/python.c (init_plugin): Use the system
      	installation directory to load the python scripts.
      
      	* autogen.sh: Hack to make libtool add library dependcy
      	information (it modifies the libtool file after it has been
      	created).
      
      	* src/workbook.c (workbook_set_filename): New routine to set the
      	filename being edited of the workbook.
      
      	* src/sheet-object.c (create_object): Swap arguments to the
      	ellipse object to guarrantee we pass valid information.
      
      	* src/render-ascii.c (cell_region_render_ascii): Ok, remove the
      	leaks now.
      ae3dda69
  9. 27 Sep, 1998 1 commit
    • Raja R Harinath's avatar
      New check. (PYTHON_EXEC_PREFIX): Figure out `exec_prefix' where python was · ee52e3a2
      Raja R Harinath authored
      * configure.in (GNOME_COMPILE_WARNINGS): New check.
      (PYTHON_EXEC_PREFIX): Figure out `exec_prefix'
      where python was installed.
      (PYTHON_LIB_LOC): Use $PYTHON_EXEC_PREFIX instead of
      $PYTHON_PREFIX.
      
      * src/Makefile.am (CFLAGS): Comment out.
      * plugins/sample/Makefile.am (CFLAGS): Likewise.
      
      * plugins/python/Makefile.am (CFLAGS): Comment out.
      (libpython_la_LDFLAGS): Move $(PYTHON_LIB_LOC) here.
      ee52e3a2
  10. 26 Sep, 1998 4 commits
  11. 25 Sep, 1998 3 commits
    • Miguel de Icaza's avatar
      New version that makes sure the column information has been allocated. · d3276a42
      Miguel de Icaza authored
      1998-09-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_selection_row_extend_to,
      	sheet_selection_col_extend_to): New version that makes sure the
      	column information has been allocated.
      
      	* src/workbook.c (workbook_parse_and_jump): Maximum ranges were a
      	little bit off.
      
      	* src/parser.y (return_cellref): Fixed the same bug we had in
      	parse_cell_name:  The parsing of the column name to a column index
      	was wrong here too.
      
      	* src/sheet.c (sheet_row_info_set_height,
      	sheet_col_info_set_width): New functions based on the older
      	non-ColRowInfo versions.
      
      	* src/sheet-view.c (sheet_view_row_size_changed,
      	sheet_view_col_size_changed): Apply changes globaly if the whole
      	sheet is selected.
      d3276a42
    • Miguel de Icaza's avatar
      Do not handle Control-a here. · f0fbe9c5
      Miguel de Icaza authored
      1998-09-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Do not
      	handle Control-a here.
      
      	* src/workbook.c: Handle C-a with the GnomeApp accelerators
      f0fbe9c5
    • Arturo Espinosa's avatar
      oops · 9abbf5aa
      Arturo Espinosa authored
      9abbf5aa
  12. 24 Sep, 1998 4 commits