1. 26 Mar, 1999 1 commit
    • Jukka-Pekka Iivonen's avatar
      dollarde, dollarfr, and npv added. · 71a4d158
      Jukka-Pekka Iivonen authored
      1999-03-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/fn-financial.c: dollarde, dollarfr, and npv added.
      
      	* src/fn-stat.c: correl, covar, mode, negbinomdist, rank, and
       	trimmean added.
      71a4d158
  2. 23 Mar, 1999 1 commit
    • Jukka-Pekka Iivonen's avatar
      avedev, confidence, critbinom, devsq, fisher, kurt, normdist, permut, · b21b68e0
      Jukka-Pekka Iivonen authored
      
      1999-03-21  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
              * src/fn-stat.c: avedev, confidence, critbinom, devsq, fisher,
              kurt, normdist, permut, skew, standardize, and weibull added.
      
              * src/fn-math.c, src/func.h: gnumeric_average and fact made public
              (used in src/fn-stat.c).
      
      1999-03-17  Vladimir Vuksan <vuksan@veus.hr>
      
              * src/fn-financial.c: Added new functions gnumeric_ipmt,
              gnumeric_ppmt, gnumeric_duration.
      
      1999-03-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
              * src/fn-math.c: combin added.
      
              * src/fn-stat.c: binomdist, harmean, and hypgeomdist added.
      b21b68e0
  3. 18 Mar, 1999 1 commit
    • Jukka-Pekka Iivonen's avatar
      combin added. · 43b833a9
      Jukka-Pekka Iivonen authored
      1999-03-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
       	* src/fn-math.c: combin added.
      
       	* src/fn-stat.c: binomdist, harmean, and hypgeomdist added.
      43b833a9
  4. 15 Mar, 1999 1 commit
    • Miguel de Icaza's avatar
      Detects integer over/under flow. · 32cf65a4
      Miguel de Icaza authored
      1999-03-14  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-math.c (callback_function_sum): Detects integer
      	over/under flow.
      
      	* src/expr.c (eval_expr): Add integer overflow code for addition
      	and substraction.
      32cf65a4
  5. 13 Mar, 1999 2 commits
  6. 11 Mar, 1999 1 commit
  7. 22 Feb, 1999 1 commit
    • Miguel de Icaza's avatar
      1999-02-22 Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu> · e712beb5
      Miguel de Icaza authored
      1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      
      1999-02-22  Tim Mooney  <mooney@dogbert.cc.ndsu.nodak.edu>
      
      	* plugins/guile/plugin.c (func_scm_apply): Initialization of
      	structure is done in the function body, rather thatn when it is
      	declared.  This is necessary because struct initializer must be
      	determinable at compile time, and those aren't.
      
      	* src/expr.c (eval_expr): Add at least one statement to the
      	default: handler in the case.
      
      	* src/fn-math.c: provide a break for default handlers.
      	* src/item-edit.c (entry_event): ditto
      
      	* src/dialog-cell-format.c (create_number_format_page): Initialize
      	in the body, like above.
      
      1999-02-22  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* plugins/guile/plugin.c (func_scm_apply): Initialize the
      e712beb5
  8. 19 Feb, 1999 1 commit
    • Miguel de Icaza's avatar
      Do not render the value if the result is an error. · f29179e1
      Miguel de Icaza authored
      1999-02-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/clipboard.c (paste_cell): Do not render the value if the
      	result is an error.
      
      	* src/cell.c (cell_copy): Do not copy the value of a cell when the
      	value is NULL (due to the cell having an error).
      
      	* src/expr.c (eval_expr): Evaluate binary operations in parts to
      	keep the correct error message on an operation if possible.
      	(eval_expr): Propagate errors.
      
      	* src/item-edit.c (item_edit_draw): Sync the before-cursor and
      	after-cursor Y-display text cordinate.
      
      	* src/expr.c (eval_funcall): Add type checking for the simple
      	functions.
      
      	* doc/C/Makefile.am (install-data-local): use topsrcdir here (fix
      	from Ian Campbell <ijc25@cam.ac.uk>
      
      	* src/fn-math.c (gnumeric_not): Implement NOT.
      f29179e1
  9. 17 Feb, 1999 1 commit
  10. 12 Feb, 1999 1 commit
  11. 17 Jan, 1999 1 commit
  12. 17 Nov, 1998 1 commit
  13. 06 Oct, 1998 1 commit
    • 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
  14. 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
  15. 03 Oct, 1998 1 commit
    • 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
  16. 29 Sep, 1998 2 commits
    • 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
  17. 22 Sep, 1998 3 commits
  18. 21 Sep, 1998 1 commit
  19. 19 Sep, 1998 1 commit
  20. 18 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      If there is a selection of columns or rows, change the sizes of all of the · f8ea4ab6
      Miguel de Icaza authored
      1998-09-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_row_size_changed,
      	sheet_view_col_size_changed): If there is a selection of columns
      	or rows, change the sizes of all of the columns.
      
      	* src/sheet.c (sheet_row_get_distance, sheet_col_get_distance):
      	optimized to be O(n) instead of O(n^2) using
      	(col_row_distance): new routine to compute distances.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region): Add the
      	scrolling offset to the x and y positions to draw properly
      
      	* src/xml-io.c (readXmlSheet): Call sheet_set_zoom_factor to
      	initialize the ->pixels field.
      f8ea4ab6
  21. 05 Sep, 1998 1 commit
  22. 03 Sep, 1998 2 commits
  23. 12 Aug, 1998 1 commit
  24. 08 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Today it probably does not compile, but I have to leave now. · 6b09bc61
      Arturo Espinosa authored
      
      
      Today it probably does not compile, but I have to leave now.
      
      This is basically the framework for getting computations working.
      
      My current approach is to register areas of interest for a cell.
      This is not perfect, but good enough:
      
      	The idea is to walk the expression tree and look for
      	cell references (cell references or ranges) and register
      	those areas of "interest" for a cell.
      
      	When a new text is entered into a cell, the "regions" of
      	interest list is checked and if a match is found, then
      	the cells on that region of interest are queued for
      	recomputation.
      
      Of course, I do not know yet how to handle the recursive references.
      
      One option is to keep a counter (that starts at zero) during
      recomputation, ie something like:
      
      eval_cell (Cell *cell)
      {
      	cell->use_count++;
      	if (cell->use_count > threshold)
      		return "Cycle too depth";
      	...
      	on value lookup:
      		eval_cell (cell);
      	...
      	cell->use_count--;
      }
      6b09bc61
  25. 07 Aug, 1998 1 commit