1. 28 Feb, 2000 6 commits
    • Jody Goldberg's avatar
      Improve the handling of backgrounds and selection in the presence of · bb5371b7
      Jody Goldberg authored
      Improve the handling of backgrounds and selection
      in the presence of spanning columns.
      Improve borders.  Somewhat more correct handling of double lined borders.
      Still mostly wrong, but its a start.
      2000-02-28  Jody Goldberg <jgoldberg@home.com>
      	* src/expr.h : Move FunctionDefinition to
      	* src/gnumeric.h : here.
      	* src/cellspan.c (col_hash) : Use GPOINTER_TO_INT.
      	(col_compare) : Ditto.
      	(row_init_span) : Delete.
      	(free_hash_value) : Renamed from free_hash_key.
      	(cell_register_span) : Register all cells in a span, malloc a
      	  CellSpanInfo to store a descriptor about the first and last cols.
      	(assemble_unregister_span_list) : Delete.
      	(span_remove) : New function for use by g_hash_table_foreach_remove.
      	(cell_unregister_span) : Use g_hash_table_foreach_remove.
      	(row_cell_get_displayed_at) : Adjust to new descriptor.
      	(row_span_get) : New function.
      	* src/cell.c (cell_calculate_span) : Renamed from cell_get_span.
      	* src/cell-draw.c (cell_draw) : Do not draw backgrounds here.
      	  Use new CellSpanInfo to avoid recomputing spans every time.
      	(cell_is_blank) : Remove hack about treating empty strings as empty.
      	* src/cellspan.h : New file.  Move span decls here.
      	* src/item-grid.c (item_grid_draw) : Rework to correctly handle
      	  backgrounds and borders for spanning columns.
      2000-02-27  Jody Goldberg <jgoldberg@home.com>
      	* src/cell.c (cell_is_blank) : Update.
      	* src/border.c (style_border_draw) : Make somewhat more correct.
      	  Still broken for non-top-left corners.
      	* src/item-grid.c (item_grid_draw_border) : Ditto.
      	(item_grid_draw_background) : Rename from item_grid_paint_empty_cell
      	  handle spans more cleanly.
      	(item_grid_draw_cell) : handle conditionals for displaying contents here.
      	  Remove all handling of backgrounds.
    • Michael Meeks's avatar
      disable solver xml write for now. · 2564cc1e
      Michael Meeks authored
    • Jukka-Pekka Iivonen's avatar
      Bug fix. Single cell constraints can be added again. · 926f1188
      Jukka-Pekka Iivonen authored
      2000-02-28  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/utils.c (parse_cell_name_or_range): Bug fix.  Single cell
      	constraints can be added again.
    • Jukka-Pekka Iivonen's avatar
      The Solver can now solve the negative variables too. · 02e2eb17
      Jukka-Pekka Iivonen authored
      2000-02-28  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/solver-lp.c (count_dimensions, make_solver_arrays,
      	solver_affine_scaling, solver_branch_and_bound): The Solver can
      	now solve the negative variables too.
      	* src/dialogs/dialog-solver.c (dialog_solver_options): Made the
      	`Assume non-negative' to be sensitive.
    • Morten Welinder's avatar
    • Dom Lachowicz's avatar
      catch DIV0 · 09f59d38
      Dom Lachowicz authored
      2000-02-24  Dom Lachowicz <dominicl@seas.upenn.edu>
       	* src/functions/fn-eng.c (convert): catch DIV0
       	* src/functions/fn-financial.c (gnumeric_accrint), (gnumeric_accrintm),
       	(gnumeric_intrate), (gnumeric_disc), (gnumeric_db),
       	(gnumeric_ddb), (gnumeric_mirr), (gnumeric_pv): More errors.
       	* src/function/fn-math.c (gnumeric_quotient): ditto.
       	* src/function/fn-stat.c (callback_function_stat),
      	(callback_function_chitest_theoretical, gnumeric_betadist),
      	(gnumeric_confidence, gnumeric_ftest): ditto.
  2. 27 Feb, 2000 1 commit
  3. 26 Feb, 2000 5 commits
    • Almer. S. Tigelaar's avatar
      html.c · 8a3c31de
      Almer. S. Tigelaar authored
      2000-02-26  Almer. S. Tigelaar.  <almer1@dds.nl>
      	* html.c
      	* (html_write_cell_str, html_write_cell32, html_write_cell40) :
      	* (html_write_wb_html32, html_write_wb_html40) :
      	Adjusted so it now uses sheet_style_computer and puts <BR>
      	tags in empty cells, this way the cells will _always_ render
      	in a browser so the 'style' information is not lost for
      	empty cells.
    • Jon K Hellan's avatar
      New file. Documents the Python plugin. · 56db4b61
      Jon K Hellan authored
      2000-02-26  Jon K Hellan  <hellan@acm.org>
      	* doc/python-gnumeric.txt: New file. Documents the Python plugin.
      	* plugins/python/python.c (convert_py_exception_to_string):
      	Move to top.
      	(convert_cell_ref_to_python): New function. Convert cell reference
      	to Python.
      	(convert_range_to_python): New function. Convert range to Python
      	(convert_value_to_python): Handle cell range, empty value, boolean
      	(convert_range_from_python): New function. Convert Python range to
      	gnumeric value.
      	(convert_cell_ref_from_python):  New function. Convert Python cell ref
      	to gnumeric ditto.
      	(convert_python_to_value): Simplify string handling. Handle cell
      	range, empty. Return exceptions as VALUE_ERROR.
      	(init_plugin): Add gnumeric python directory to
      	sys.path, so that we can install modules there.
      	* plugins/python/gnumeric_startup.py: Import gnumeric_defs
      	(help_py_mid, help_py_abs): Fix typo.
      	(run_user_init_file): Run user rc file in current global
      	* plugins/python/gnumeric_defs.py: New file.
      	(CellRef): Class for cell references
      	(CellRange): Class for cell ranges
    • Jukka-Pekka Iivonen's avatar
      New. (xml_write_solver): New. Added saving and loading of the Solver · aac126ce
      Jukka-Pekka Iivonen authored
      2000-02-26  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/xml-io.c (xml_read_solver): New. (xml_write_solver): New.
      	Added saving and loading of the Solver parameters.  The parameters
      	are per sheet.
      	* src/dialogs/dialog-solver.c: A few bug fixes and improvements.
    • Jody Goldberg's avatar
      Make the justification toolbar buttons update the same way the · 72e75554
      Jody Goldberg authored
      font buttons do.
    • Richard Hult's avatar
      Updated Swedish translation. · 90388819
      Richard Hult authored
  4. 25 Feb, 2000 8 commits
    • Miguel de Icaza's avatar
      Touchups · 3190f198
      Miguel de Icaza authored
    • Jukka-Pekka Iivonen's avatar
      Implemented Branch-And-Bound algorithm for integer programming. · aaabc07a
      Jukka-Pekka Iivonen authored
      2000-02-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/mathfunc.[ch]: Implemented Branch-And-Bound algorithm for
      	integer programming.
      	* src/solver-lp.c (count_dimensions): Wrote.
      	(make_solver_arrays): Wrote.
      	(make_int_array): Wrote.
      	(solver_branch_and_bound): Wrote.  Solver can now handle the
      	`Int' constraints too.
      	(solver_lp): Wrote.
      	* src/solver.h: Added prototype.
      	* src/dialogs/dialog-solver.c: Related changes.
    • Miguel de Icaza's avatar
      Removed iconsdir if it is not going to get used. · dea5c086
      Miguel de Icaza authored
      2000-02-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* src/Makefile.am (-DGNUMERIC_GLADEDIR): Removed iconsdir if it is
      	not going to get used.
      2000-02-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* src/widgets/widget-color-combo.c (color_combo_construct): Fix
      	* src/sheet-object-container.c (sheet_object_container_realize):
      	OOPS.  Add uih back.
      	* Fresh ChangeLog.
      2000-02-25  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* Makefile.am (-DGNUMERIC_ICONSDIR): GNUMERIC_ICONSDIR defined
      2000-02-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      	* graphic-type.c (graphic_type_boot): Fixety fix;  Create notebook
      	with previews, connect signals
    • Miguel de Icaza's avatar
      Make it work with latest Bonobo · efdde2d1
      Miguel de Icaza authored
    • Miguel de Icaza's avatar
      Add · 49270fc6
      Miguel de Icaza authored
    • Miguel de Icaza's avatar
      Add wizard.h · b67ec9e0
      Miguel de Icaza authored
    • Miguel de Icaza's avatar
      New ChangeLog · a6ce8a47
      Miguel de Icaza authored
    • Miguel de Icaza's avatar
      remove invocation to glade_gnome_init(), this is not required. · 5fb70574
      Miguel de Icaza authored
      2000-02-23  Miguel de Icaza  <miguel@helixcode.com>
      	* src/dialogs/dialog-stf.c (dialog_stf): remove invocation to
      	glade_gnome_init(), this is not required.
      	* src/sheet-object-container.c (sheet_object_container_realize):
      	Update to new Bonobo API.
      2000-02-19  Miguel de Icaza  <miguel@gnu.org>
      	* src/workbook.c (launch_graphics_wizard_cmd): New function, used
      	to launch the graphics wizard.
      	* src/wizard.h: New file.
      	* src/corba-workbook-factory.c (WorkbookFactory_read): Fixed
      	command_context_corba usage.  Kill memory leak.
      	* src/sheet-object.c (sheet_set_mode_type): Remove the sheet event
      	button binding code from here.
      	(sheet_object_bind_button_events): New function.  To here.
      	* src/sheet.h: New creation mode: SHEET_OBJECT_CREATE_COMPONENT.
      	The GRAPHICS one will be used only by the wizard.
      	* src/pixmaps.h: Include object.xpm.
      	* src/pixmaps/object.xpm: More Modern Art work from Miguel, this
      	image represents an object.  The object has suffered a lot and is
      	in pain as you can see by the colors chosen by the artist.
      2000-02-24  Miguel de Icaza  <miguel@helixcode.com>
      	* main.c (graphics_wizard): Grab focus, run mainloop,
      	(button_cancel): quit mainloop.
      	* graphic-type.c: Add the graphic types.
      	* graphic-context.c (data_range_destroy): Implement.
      	(data_range_new): Implement.
      2000-02-23  Miguel de Icaza  <miguel@helixcode.com>
      	* main.c (customize): remove dead code.
      	* graphic-context.c (graphic_context_new): Cleanup and update the
      2000-02-19  Miguel de Icaza  <miguel@gnu.org>
      	* Makefile.am: Changed it to be a static library.  For now it will
      	simplify the debugging process on Red Hat Linux 6.1.  A combo
      	which is extraordinarly bad for debugging anything bigger than 10
      	lines of code.
  5. 24 Feb, 2000 1 commit
    • Michael Meeks's avatar
      Patch from Dom Lachowicz <dominicl@seas.upenn.edu>: · 2bdefefa
      Michael Meeks authored
      	Make the plugin registration process nicer and add user readable
      2000-02-24  Michael Meeks  <michael@helixcode.com>
      	* src/plugin.c (plugin_close): expand.
      2000-02-23  Dom Lachowicz <dominicl@seas.upenn.edu>
      	* src/widgets/widget-color-combo.[ch]:
      	In function color_table_construct() - moved tool_tip in order to
      	plug memory leak(called gtk_tooltips_new() too many times)
      	* src/functions/fn-database.c (gnumeric_daverage): add error for
      	-'ive count
  6. 23 Feb, 2000 7 commits
  7. 22 Feb, 2000 9 commits
    • Michael Meeks's avatar
      one liner fix. · 69cd93ed
      Michael Meeks authored
    • Miguel de Icaza's avatar
      Update web site · 396019be
      Miguel de Icaza authored
    • Michael Meeks's avatar
      another built in name, · 59ed99d7
      Michael Meeks authored
      Helix Code support gnumeric.
    • Jody Goldberg's avatar
      update · 0912e97f
      Jody Goldberg authored
    • Jon Kåre Hellan's avatar
      Fix typo · b4a303ea
      Jon Kåre Hellan authored
    • Jon K Hellan's avatar
      Set constraint clist title passive. (constr_add_click): Make solver dialog · ba32427d
      Jon K Hellan authored
      2000-02-22  Jon K Hellan  <hellan@acm.org>
      	* src/dialogs/dialog-solver.c (dialog_solver): Set constraint
      	clist title passive.
      	(constr_add_click): Make solver dialog reappear if user presses
      	<Esc>. Make <Ret> in entry fields invoke default.
      	(constr_change_click): Make <Ret> in entry fields invoke default.
      	* src/dialogs/solver.glade: Make more room for constraint list title.
      	* src/dialogs/solver.glade,
      	src/dialogs/solver.glade.h: Accelerators.
      	* src/dialogs/solver-options.glade,
      	src/dialogs/solver-options.glade.h: Accelerators
      	* src/dialogs/utils-dialog.[ch] (hbox_pack_label_and_entry):
      	Explicit dialog parameter. Reorder arguments in signature.
      	* src/dialogs/dialog-analysis-tools.c (dialog_sampling_tool,
      	dialog_descriptive_stat_tool, dialog_ztest_tool,
      	dialog_random_tool, dialog_regression_tool): Use new signature of
      	hbox_pack_label_and_entry. This kills some Gtk warnings.
      	(dialog_data_analysis): Do not destroy if gnumeric_dialog_run
      	returns -1.
      	* src/dialogs/autosave.glade, src/dialogs/autosave.glade.h :
      	Accelerator for "minutes" field.
      	* src/dialogs/autocorrect-exceptions.glade,
      	src/dialogs/autocorrect-exceptions.glade.h: Accelerators
      	* src/dialogs/dialog-autocorrect.c (exceptions_callback): Really
      	make <Ret> in entry fields invoke default.
      	* src/dialogs/dialog-goal-seek.c (dialog_found_solution):
    • Jody Goldberg's avatar
      Add some clarifying comments. · 91e89e9d
      Jody Goldberg authored
      Fix stupid typo.
    • Jody Goldberg's avatar
      Add bug list. · 7ea57502
      Jody Goldberg authored
    • Jody Goldberg's avatar
      Some border improvements. · e18beddb
      Jody Goldberg authored
      - Use DASH_ON_OFF to correctly handle borders for cells with a background
      - Prefer Top/Left vs Bottom/Right.  This works around problems with borders
        for cells with backgrounds..  BUT does not solve it for importing.  That
        will require the next generation border code that has yet to be designed.
      - A crappy implementation of double borders.  Does NOT handle cells with
        backgrounds, or the myriad intersection cases.
      - Improve handling of undo and redraw for borders.
      2000-02-21  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet.c (sheet_cursor_set) : Be religous about handing edit_pos
      	* src/commands.c (cmd_format) : save for formats for a range 1 cell
      	  thick around the selection so that borders are handled.
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : Redraw a border
      	  around the selected region to handle thick borders */
      	* src/sheet-object.c (sheet_object_canvas_event) : Ignore mouse wheel
      	* src/border.c (style_border_set_gc_dash) : Use GDK_LINE_ON_OFF_DASH
      	  so that background colours show through.
      	* src/sheet-style.c (sheet_range_set_border) : Prefer top vs bottom
      	  and left vs right.  This will simplify drawing eventually.
  8. 21 Feb, 2000 3 commits
    • Almer. S. Tigelaar's avatar
      : csv_page_custom_toggled was called twice, removed one. · 39d5acca
      Almer. S. Tigelaar authored
      2000-02-21 Almer. S. Tigelaar.  <almer1@dds.nl>
      	* src/dialogs/dialog-stf-csv-page.c :
      	(csv_page_prepare) : csv_page_custom_toggled was called twice, removed one.
      	* src/stf.c, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf-main-page.c,
      	* src/dialogs/dialog-stf-csv-page.c, src/dialogs/dialog-stf-fixed-page.c,
      	* src/dialogs/dialog-stf-format-page.c, src/dialogs/dialog-stf-preview.c
      	Fixed incorrect comments and added function comment headers where they
      	didn't exist. Also moved some includes.
      	* src/dialogs/dialog-stf.h
      	Removed TEXT_VOFFSET, because it is no langer required.
      	* src/dialogs/dialog-stf-preview.h
      	Changed the colours to match the current gnumeric sheet selection color
      	* src/dialogs/dialog-stf-format-page.c
      	(format_page_collist_select_row) : Makes selected row visible
      	(format_page_prepare) : Corrected minor error which caused the format entry to stay empty
      	* src/dialogs/dialog-stf.glade, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h
      	Completely removed the "finish" page of the druid.
      	* src/dialogs/dialog-stf.glade, src/stf-parse.h, src/stf-parse.c
      	Fixed support for colon and added support for new separator
      	symbols : semicolon, pipe, slash, hyphen, bang.
      	separators are now also displayed on the csv page.
      	* src/stf-parse.c
      	(stf_parse_get_colcount) : last line wasn't counted
      	(stf_parse_get_colwidth) : idem
      	* src/stf.h :
      	Removed obsoleted FileSource_t struct type definition.
      	* src/stf.c :
      	(stf_read_workbook) : Detach sheet on parse error.
    • Jon K Hellan's avatar
      Really use gnumeric_dialog_run. · 3d6833f4
      Jon K Hellan authored
      2000-02-21  Jon K Hellan  <hellan@acm.org>
      	* src/print.c (sheet_print): Really use gnumeric_dialog_run.
    • Jon K Hellan's avatar
      Deflickerize. · a6dbfd4d
      Jon K Hellan authored
      2000-02-21  Jon K Hellan  <hellan@acm.org>
      	* src/dialogs/dialog-cell-sort.c (dialog_cell_sort): Deflickerize.
      	* src/dialogs/dialog-cell-comment.c (dialog_cell_comment): Ditto.
      	* src/gnumeric-util.c (gnumeric_dialog_show): New function. Pop up
      	a dialog without recursive main loop, with a handler to take care
      	of parent shell closing.
      	(on_parent_close, on_close): New callback functions.
      	(connect_to_parent_close): New helper function - connect handler
      	for parent shell closing.
      	* src/print.c (sheet_print): Use gnumeric_dialog_run.