1. 05 Jan, 2000 2 commits
    • Morten Welinder's avatar
      revamp the allocation and deallocation system. · 749b89f0
      Morten Welinder authored
      2000-01-03  Morten Welinder  <terra@diku.dk>
      
      	* parser.y: revamp the allocation and deallocation system.
      
      	* src/cell.c (cell_set_formula): Plug leak.
      
      	* src/solver-lp.c (solver_simplex): j not used.
      
      	* src/cell.c (cell_cleanout): Not static since prototyped in
       	cell.h.
      749b89f0
    • Jody Goldberg's avatar
      Initial version of undo. · 7667d632
      Jody Goldberg authored
      2000-01-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.[ch] : New files.
      
      	* src/workbook-view.c (workbook_view_set_undo_redo_state) : Take
      	  strings to use as suffixes to undo and redo.  NULL indicates
      	  disabled.
      
      	* src/sheet.c (sheet_set_current_value) : Use cmd_set_text to register
      	  undo.
      
      	* src/workbook.c (workbook_menu_view) : Make The formula toggle a
      	  toggle item.
      	(workbook_menu_insert) : Move the insert object menu item here,
      	  and adjust the selector characters to make more sense.
      	(undo_cmd, redo_cmd) : Enable.
      
      	(workbook_init) : Init the undo/redo lists.
      	(workbook_do_destroy) : Clear the undo/redo lists.
      	(wb_input_finished) : Delete.  It was the same as accept_input.
      7667d632
  2. 04 Jan, 2000 3 commits
    • Miguel de Icaza's avatar
      Do not check for cell->sheet and cell->sheet->workbook, these must be · 831920d7
      Miguel de Icaza authored
      2000-01-03  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell.c (cell_render_value): Do not check for cell->sheet and
      	cell->sheet->workbook, these must be true.
      
      2000-01-02  Martin Sheppard  <martin.sheppard@iname.com>
      
      	* src/workbook.h (struct _Workbook): add option to display text of
      	formulas instead of their value
      
      	* src/workbook.c (workbook_menu_edit): add menu oiption for toggling
      	the display of formulas
      	(toggle_formuals_cmd,cb_cell_rerender): new function to toggle the
      	display of formulas
      	(workbook_new): initialize the display formulas option
      
      	* src/cell.c (cell_render_value): implemented displaying formulas
      831920d7
    • Martin Sheppard's avatar
      fixed so that while parsing a formula, a quoted function is convered to a · 680b46f3
      Martin Sheppard authored
      2000-01-02  Martin Sheppard <martin.sheppard@iname.com>
      
      	* src/parser.{c,y} (yylex) : fixed so that while parsing a formula,
      	a quoted function is convered to a string token rather than a
      	function call token. i.e. so that things like "sin" work properly in
      	formulas.
      680b46f3
    • Martin Sheppard's avatar
      new function to escape strings (do_expr_decode_tree) : fixed so strings · 5260ac76
      Martin Sheppard authored
      2000-01-03  Martin Sheppard <martin.sheppard@iname.com>
      
      	* src/expr.c (strescape) : new function to escape strings
      	(do_expr_decode_tree) : fixed so strings are escaped properly
      5260ac76
  3. 03 Jan, 2000 4 commits
  4. 02 Jan, 2000 8 commits
  5. 31 Dec, 1999 3 commits
  6. 30 Dec, 1999 7 commits
    • Jody Goldberg's avatar
      Define a new command context state · ca14021c
      Jody Goldberg authored
      ca14021c
    • Ariel Rios's avatar
      Added guile documentation · 0314034c
      Ariel Rios authored
      0314034c
    • Jukka-Pekka Iivonen's avatar
      Cell ranges are now also accepted. · fbf44c3e
      Jukka-Pekka Iivonen authored
      1999-12-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/utils.c (parse_cell_name_list): Cell ranges are now also
       	accepted.
      fbf44c3e
    • Jukka-Pekka Iivonen's avatar
      Implemented Simplex algorithm. It can currently solve LP maximization · 77b2e049
      Jukka-Pekka Iivonen authored
      1999-12-30  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/solver-lp.c: Implemented Simplex algorithm.  It can
       	currently solve LP maximization problems of positive variables
       	having `<=' constraints.
      
      	* src/workbook.c: Added `Solver' tool.
      
      	* src/utils.c (parse_cell_name_list): Bug fix.  The last item on
       	the list was not included on the list.
      77b2e049
    • Miguel de Icaza's avatar
      New macro, copied from Evolution. We need to refactor our code in Gnumeric · 87152856
      Miguel de Icaza authored
      1999-12-30  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/gnumeric-type-util.h (GNUMERIC_MAKE_TYPE): New macro, copied
      	from Evolution.  We need to refactor our code in Gnumeric to use
      	this macro.
      
      	* src/workbook.c (workbook_do_destroy): Destroy the per-workbook
      	context here.  Hardcoded to be a GUI context for now.
      	(workbook_new): Create the context here.
      	(workbook_command_context_gui): This routine is now the one that
      	returns the command context.
      
      	* src/gnumeric.h: Added CommandCOntext typedef here.
      
      	* All files: renamed CmdContext to CommandContext.
      	renamed command_context_gui to workbook_command_context_gui.
      
      	* src/workbook-view.c: Removed the GUI_CmdContext class setup.
      	* src/command-context.c: Replaced the ad-hoc object system with a
      	GtkObject-based system.
      87152856
    • Jody Goldberg's avatar
      Have the file loaders return error messages. · 661da0e0
      Jody Goldberg authored
      1999-12-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/file.c (workbook_load_from) : The 'open' functions return error
      	  strings now.  Success == NULL, standard error == "", custom error
      	  which needs to be freed is everything else.
      	(workbook_try_read) : An optional argument in which to store error
      	  messages returned by the loaders.
      	(file_error_message) : Support the custom error messages.
      	(workbook_read) : Ditto.
      
      	* src/xml-io.c (xml_workbook_read) : Return simple error strings.
      661da0e0
    • Ariel Rios's avatar
      We change the location of the home gnumericrc to $HOME/.gnumerc/guile.scm · 9fa90372
      Ariel Rios authored
      1999-12-29  Ariel Rios  <jarios@usa.net>
      
      	* gnumeric_startup.scm (home-gnumericrc): We change the location of the home
      	  gnumericrc to $HOME/.gnumerc/guile.scm
      	* doc/guile-gnumeric.txt: Documentation for the guile plugin was added.
      9fa90372
  7. 29 Dec, 1999 3 commits
    • Jody Goldberg's avatar
      - Return enum from init_plugin. · 63577437
      Jody Goldberg authored
      - Suppress some warnings.
      63577437
    • Jody Goldberg's avatar
      - Initial usage of the new exception mechanisms. · f8206c57
      Jody Goldberg authored
      - Improve versioning of the plugins.
      - Some bug fixes.
      
      1999-12-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (command_context_gui,
      				gui_splits_array,
      				gui_plugin_problem,
      				command_context_gui_cast) : New functions.
      
      	* src/workbook.c (workbook_new) : Switch to using the workbook_view
      	  routines to manipulate the undo/redo and paste/paste_special menu
      	  items.
      
      	* src/func.c (function_iterate_argument_values) : Return an error
      	  for empty/missing arguments.
      
      	* plugins/*/Makefile.am : Define GNUMERIC_VERSION.
      
      	* plugins/*/*.c (init_plugin): Take a CmdContext for error reporting.
      	  Call plugin_version_mismatch to do some minimal version matching for
      	  plugins and the running application.
      
      	* src/Gnumeric.idl : Add PluginProblem.
      
      	* src/command-context.[ch] (gnumeric_error_splits_array,
      				    gnumeric_error_plugin_problem,
      				    command_context_vtbl_init) : New functions.
      
      	* src/plugin.c (plugin_version_mismatch) : New function.
      	  (plugin_load) : Hard code a GUI context for now.
      	                  Switch to using gnumeric_error_ routines.
      			  Pass a CmdContext to the init_plugin routines.
      			  Only produce an error if the plugin returns -1.
      			  Store the plugin filename.
      	  (plugin_unload) : Free the filename on exit.
      
      	* *.c : command_context_gui now takes a Workbook argument.
      	      : Switch from gnumeric_no_modify_array_notice
      	                 to gnumeric_error_splits_array in most places.
      f8206c57
    • Peter Moulder's avatar
      Currently, two-digit years are converted to four-digit years (ccyy) by · 7b7d8e95
      Peter Moulder authored
      1999-12-28  Peter Moulder <reiter@netspace.net.au>
      
      	* src/number-match.c: Currently, two-digit years are converted to
      	four-digit years (ccyy) by assuming that cc is the same as in the
      	current wall date.  The problem with that is that on 1999-12-31,
      	entering any future dates in two-digit-year form will be
      	misinterpreted; while on 2000-01-01, any past dates entered in
      	two-digit form will be misinterpreted.  (I use the term
      	"misinterpreted" with the assumption that one is much more likely
      	to intend a date a few days away than 99 years away.)
      7b7d8e95
  8. 28 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Fix some boneheadedly simple errors with plugins and begin to adopt a standard · b65f5041
      Jody Goldberg authored
      convention to avoid such sillyness in the future.
      
      1999-12-27  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Re-enable the python plugin by default.
      
      	* src/plugin.c (load_all_plugins) : Search in a version specific
      	  directory.
      
      	* plugins/*/Makefile.am : Install in
      	      <prefix>/lib/gnumeric/plugins/${VERSION}
      	  to decrease the number of silly version problems.
      	  Adjust the plugin names to follow the convention
      	      libgnum_<name>.so
      	  to avoid problems like the python plugin 'libpython.so'
      	  depending on the python libraries with the same name.
      b65f5041
  9. 27 Dec, 1999 1 commit
  10. 23 Dec, 1999 1 commit
    • JP Rosevear's avatar
      Use a gnome_dialog and stock icons (row_cb): Use · 24500712
      JP Rosevear authored
      1999-12-23  JP Rosevear  <jpr@arcavia.com>
      
      	* src/plugin-manager.c (plugin_manager_new): Use a gnome_dialog
      	and stock icons
      	(row_cb): Use gnome_dialog_set_sensitive instead of
      	gtk_widget_set_sensitive
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis): Use
      	stock ok item for ok button
      24500712
  11. 22 Dec, 1999 2 commits
  12. 21 Dec, 1999 3 commits
    • JP Rosevear's avatar
      Tidy and handle the case where the ranges don't intersect. · c03ad77a
      JP Rosevear authored
      1999-12-21  JP Rosevear <jpr@arcavia.com>
      
              * src/ranges.c (range_intersection) : Tidy and handle the case
              where the ranges don't intersect.
      
              * src/dialogs/dialog-cell-sort.c (dialog_cell_sort) : Use
              sheet_get_extent only if there are infinite ranges, so the user
              sees their manually selected range if possible.
      c03ad77a
    • Jody Goldberg's avatar
      Implicit intersection is done. · 7e7b6e01
      Jody Goldberg authored
      Now all we need is implicit iteration for array formulas.
      I've added a comment on a possible heuristic to use to evaluate the
      which for of iteration to use.
      
      1999-12-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_implicit_intersection) : New routine split from
      	  function_call_with_list.
      	(compare) : Handle intersection.
      	(eval_expr_real) : Ditto.  Add verbose comment on a possible heuristic
      	  for the final piece of this ugly evaluation mechanism, array
      	  interation.
      	(cell_ref_get_abs_col_row) : Adjust to take a CellPos.
      
      	* src/func.c (function_iterate_do_value) : Split the implicit
      	  intersection out into a new function.  Use intersection for
      	  strings as well as float & bool args.  Correct memory leak
      	  when intersetion was used.
      	(function_call_with_list) : Ditto.
      
      	* *.c : Adjust to change in EvalPosition to use CellPos.
      
      	* gnumeric.spec.in : Update the libglade dependancy.
      
      	* src/workbook.c (wb_edit_key_pressed) : Do not select the current
      	  cell address and do not move the cursor to the start of the cell
      	  address when F4 is hit.
      7e7b6e01
    • Jody Goldberg's avatar
      Bug 4606 · 2bc98e1e
      Jody Goldberg authored
      1999-12-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parser.y : Clean up for byacc.
      2bc98e1e
  13. 20 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Quick fix for workbooks exiting (and leaking a bit) when an import · d4430e2f
      Jody Goldberg authored
      failed.
      
      1999-12-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (file_open_cmd) : Handle failed opens.
      	(file_import_cmd) : Handle failed imports.
      
      	* src/item-bar.c (item_bar_start_resize) : Add resize marker on the
      	  other side of the row/col being resized.
      	(item_bar_init) : Init the marker to NULL.
      	(item_bar_end_resize) : Clear the marker.
      d4430e2f
  14. 19 Dec, 1999 1 commit
    • Jody Goldberg's avatar
      Bug 3289 · 276b98b5
      Jody Goldberg authored
      1999-12-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_cut) : Fix Typo.
      
      	* src/item-bar.c (item_bar_start_resize) : Don't bother setting the
      	  location of the line here.  Instead we set the correctly zoomed
      	  bounds of the static-dimension.
      	(item_bar_end_resize) : Clear the saved points.
      	(item_bar_init) : Init the guide and points to NULL;
      	(item_bar_event) : No need to call canvas to world.  We zoom manually.
      	(item_bar_get_line_points) : Delete.
      276b98b5