1. 02 Nov, 1998 1 commit
  2. 29 Oct, 1998 1 commit
  3. 28 Oct, 1998 5 commits
    • Miguel de Icaza's avatar
      Prepare for 0.4 release. · 46186608
      Miguel de Icaza authored
      
      
      1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* Prepare for 0.4 release.
      
      	* configure.in: Add test for new GTK+ selection code.
      
      	* src/clipboard.c: Make it work with both APIs: the old and the
      	new one.
      46186608
    • Daniel Veillard's avatar
      12477402
    • Miguel de Icaza's avatar
      Added keypad support. · fd8d903d
      Miguel de Icaza authored
      1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Added
      	keypad support.
      fd8d903d
    • Miguel de Icaza's avatar
      Updated to use the new symbol table. · 41a33482
      Miguel de Icaza authored
      1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/parser.y (dump_tree): Updated to use the new symbol table.
      41a33482
    • Miguel de Icaza's avatar
      Use extra argument. · 4443c9f4
      Miguel de Icaza authored
      1998-10-27  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/parser.c (dump_tree): Use extra argument.
      
      	* src/expr.c (function_call_with_values): Use the extra argument
      	to symbol_lookup
      
      	* src/func.c (constants_init): Use the extra argument to symbol_install.
      
      	* src/main.c (main): Invoke global_symbol_init.
      
      	* src/symbol.h: Symbol routines now take an extra argument; the
      	symboltable they work on.  Now the code can have multiple symbol
      	tables (this is required for the cell range name bindings in a
      	per-sheet fashion.
      4443c9f4
  4. 27 Oct, 1998 2 commits
  5. 19 Oct, 1998 1 commit
  6. 14 Oct, 1998 1 commit
  7. 13 Oct, 1998 3 commits
    • Miguel de Icaza's avatar
      Add some missing variables. · d5c038f6
      Miguel de Icaza authored
      1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/item-grid.h: Add some missing variables.
      d5c038f6
    • Jakub Jelinek's avatar
      New functions. (item_grid_event): If x or y is out of canvas bounds, do · 718822fb
      Jakub Jelinek authored
      1998-10-13  Jakub Jelinek  <jj@ultra.penguin.cz>
      
      	* src/item-grid.c (item_grid_stop_sliding,
      	item_grid_sliding_callback, item_grid_start_sliding):
      	New functions.
      	(item_grid_event): If x or y is out of canvas bounds,
      	do sliding for both cell and formula selection.
      	For button release from formula selection, make cell
      	being edited visible afterwards.
      	(item_grid_button_1): If not extending selection with
      	shift, make cursor cell visible.
      
      	* src/gnumeric-sheet.c (move_cursor,
      	gnumeric_sheet_key_mode_sheet): Make cursor cell visible.
      
      	* src/sheet.c (sheet_select_all): Make home visible.
      	(sheet_make_cell_visible): New function.
      	(sheet_cursor_move, sheet_cursor_set): Don't make cursor
      	visible, caller has to do it himself if desired.
      
      	* src/sheet.h (sheet_make_cell_visible): New prototype.
      
      	* src/workbook.c (workbook_parse_and_jump): Make cursor
      	cell visible.
      718822fb
    • Miguel de Icaza's avatar
      It is amazing the number of times I duplicated this code. I wonder if I · cd222d42
      Miguel de Icaza authored
      1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (col_name): It is amazing the number of times I
      	duplicated this code.  I wonder if I took prozac by accident.
      	This should fix the bug reported by Morten Welinder
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (vertical_scroll_event,
      	horizontal_scroll_event): Set the top column/row from the
      	adjustment as well.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_col,
      	gnumeric_sheet_set_top_row): Export these functions to improve the
      	scrolling behaviour.
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (cellref_name): Fixed another of column name
      	decoding.  I wonder when I will learn.
      cd222d42
  8. 12 Oct, 1998 2 commits
    • Miguel de Icaza's avatar
      Fixed another of column name decoding. I wonder when I will learn. · 70ef85f8
      Miguel de Icaza authored
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (cellref_name): Fixed another of column name
      	decoding.  I wonder when I will learn.
      70ef85f8
    • Jakub Jelinek's avatar
      Add base_col and base_row arguments. Move cursor to that location, so that · 4ded61c3
      Jakub Jelinek authored
      1998-10-07  Jakub Jelinek  <jj@ultra.penguin.cz>
      
      	* src/sheet.c (sheet_cursor_set): Add base_col and
      	base_row arguments. Move cursor to that location, so
      	that it really reflects base of the selection.
      
      	* src/sheet.h (sheet_cursor_set): Ditto.
      
      	* src/clipboard.c (x_selection_received): Callers changed.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_selection): Ditto.
      	(move_cursor): Ditto.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Ditto.
      	(item_cursor_init): Fix a typo.
      4ded61c3
  9. 09 Oct, 1998 1 commit
  10. 08 Oct, 1998 2 commits
    • Miguel de Icaza's avatar
      Make sure the column is allocated (so that the column size change picks up · 0a16f723
      Miguel de Icaza authored
      1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_col_selection_changed): Make sure
      	the column is allocated (so that the column size change picks up
      	the column during the iteration).
      	(sheet_view_row_selection_changed): Same
      0a16f723
    • Miguel de Icaza's avatar
      New routine: loads a couple of default fonts to be used in Gnumeric. · 1e3d41ad
      Miguel de Icaza authored
      1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.c (font_init): New routine: loads a couple of default
      	fonts to be used in Gnumeric.
      
      	* src/item-bar.c (bar_draw_cell): Make the SELECTION cells display
      	with a bold font.
      	(item_bar_realize, item_bar_unrealize): reference and unreference
      	the gnumeric_default_bold_font.
      
      1998-10-07  Jakub Jelinek  <jj@ultra.linux.cz>
      
      	* src/item-grid.c (item_grid_button_1): Handle shift+click
      	on cells (removes last selection and selects from last base
      	to current mouse location).
      	(item_grid_event): Don't lock up if mouse is moved during
      	selection behind left or top margin of sheet canvas (later
      	on we should move the current view).
      
      	* src/cell.c (cell_formula_changed): Cast void * to something
      	reasonable.
      
      	* src/item-bar.c (draw_bar_cell): Switch from 2 state bars
      	to 3 state: whole column/row is selected in one of the current
      	selections, some cells are selected in one of the selections
      	or nothing is selected. Get rid of ci->selected, compute it
      	from the selections.
      	(item_bar_draw): Ditto.
      
      	* src/cell.h (selected): Ditto.
      
      	* src/sheet.c (sheet_init_default_styles, sheet_init_dummy_stuff):
      	Ditto.
      	(sheet_selection_row_extend_to, sheet_selection_col_extend_to):
      	Remove.
      	(sheet_all_is_selected): True if any of the selections covers whole
      	sheet.
      	(sheet_col_selection_type, sheet_row_selection_type): New functions.
      	(sheet_selection_set): New function.
      
      	* src/sheet-view.c (sheet_view_row_set_selection,
      	sheet_view_col_set_selection): Remove.
      	(sheet_view_col_selection_changed, sheet_view_row_selection_changed):
      	Handle shift+click and ctrl+click on whole columns/bars as well.
      	(sheet_view_col_size_changed, sheet_view_row_size_changed): Use
      	sheet_*_selection_type instead of ci->selected.
      
      	* src/item-bar.h (ItemBarSelectionType): Enum for the new 3 state
      	column/row titles.
      	(ItemBarClass): selection_changed takes modifier mask as argument.
      
      	* src/sheet-view.h (sheet_view_*_set_selection): Remove prototypes.
      
      	* src/sheet.h (sheet_selection_*_extend_to): Ditto.
      	(sheet_selection_set, sheet_*_selection_type): New prototypes.
      
      1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      1e3d41ad
  11. 06 Oct, 1998 2 commits
    • Miguel de Icaza's avatar
      Cells from the clipboard do not have a Sheet parameter attached. · 85cff8c7
      Miguel de Icaza authored
      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.
      85cff8c7
    • Adrian Likins's avatar
      gifs for documenting the button bar doc updates, some prelim info on file · 3ceff682
      Adrian Likins authored
      1998-10-06 Adrian Likins <adrian@gimp.or>
      
              * doc/images/*.gif: gifs for documenting the button bar
              * doc/editing.sgml, files.sgml, formulas.sgml, gnumeric.sgml,
              number-format.sgml, worksheet.sgml: doc updates, some prelim
              info on file loading/saving
      
      -adrian
      3ceff682
  12. 05 Oct, 1998 1 commit
    • 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
  13. 03 Oct, 1998 6 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
    • Nuno Ferreira's avatar
      Modified hack that patches libtool to work with srcdir != builddir · 1c304953
      Nuno Ferreira authored
      	* autogen.sh: Modified hack that patches libtool to work with
      	srcdir != builddir
      1c304953
    • Richard Hestilow's avatar
      added new function NVARIANCE for division by N instead of N - 1, fixed div · 6994b58a
      Richard Hestilow authored
      1998-10-02  Richard Hestilow <hestgray@ionet.net>
      
              * plugins/stat/stat.c: added new function NVARIANCE
              for division by N instead of N - 1, fixed div by 0 error if
              variance of a single value was taken, free'd up some mem leaks.
              (Thanks to Morten Welinder for noticing these)
      6994b58a
    • Richard Hestilow's avatar
      Added new statistics plugin · e38de134
      Richard Hestilow authored
      1998-10-02  Richard Hestilow <hestgray@ionet.net>
      
              * Added new statistics plugin
      e38de134
    • 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
  14. 02 Oct, 1998 3 commits
    • Vincent Renardias's avatar
      Use the std. format for country-dependant locales. · a1823a91
      Vincent Renardias authored
      * Use the std. format for country-dependant locales.
      a1823a91
    • Adrian Likins's avatar
      guess what? doc updates.. mainly info on formatting cells. · d67bf3db
      Adrian Likins authored
      1998-10-01 Adrian Likins <adrian@gimp.org>
      
              * src/*.sgml: guess what? doc updates.. mainly
      	  info on formatting cells.
      
              * src/images/number-format-*.jpg: more images
      
      -adrian
      d67bf3db
    • 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
  15. 01 Oct, 1998 4 commits
  16. 30 Sep, 1998 3 commits
    • Adrian Likins's avatar
      Minor updates, new info on formatting, spelling and formatting fixes. · 408a1251
      Adrian Likins authored
      1998-09-39 Adrian Likins <adrian@gimp.org>
      
              * doc/autofill.sgml, sell_refer.sgml, editing.sgml,
                gnumeric.sgml, number-format.sgml, worksheet.sgml:
                  Minor updates, new info on formatting, spelling
                  and formatting fixes.
      
              * doc/selection.sgml, selections.sgml: removed selection.sgml
              and added selections.sgml.
      
              * doc/images/worksheet-data-[1234].jpg,
              worksheet-running-calc-1.jpg, number-format-dialog-1.jpg:
              more pics to go along with the docs.
      
      
      I got a ton of merge conflicts on my last update, so i may
      have missed some of the new stuff when I was correcting them,
      but I think I got everything. Everything should be spellchecked
      now an formatted correctly.
      
      -adrian
      408a1251
    • Arturo Espinosa's avatar
      Minor bugglettes fixed · 31ed8ca5
      Arturo Espinosa authored
      31ed8ca5
    • 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
  17. 29 Sep, 1998 2 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
    • 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