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 2 commits
  4. 25 Feb, 2000 6 commits
    • 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
      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 2 commits
    • Michael Meeks's avatar
      break to work with bonobo. · 27450ae4
      Michael Meeks authored
    • Michael Meeks's avatar
      don't optimize with the default style. · 4d9ea323
      Michael Meeks authored
      2000-02-23  Michael Meeks  <michael@helixcode.com>
      	* src/sheet-style.c (sheet_style_optimize): don't optimize with
      	the default style.
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	use select_clear.
      2000-02-21  Dom Lachowicz <dominicl@seas.upenn.edu>
      	* src/widgets/widget-color-combo.[ch]: Few minor API changes
              Added custom color support through a GnomeColorPicker widget
      	* src/workbook-format-toolbar.c (fore_color_changed),
      	(back_color_changed): Fix to handle above ColorCombo API change
      	* src/dialog-autocorrect.c: Make array static
  7. 22 Feb, 2000 5 commits
    • Michael Meeks's avatar
      one liner fix. · 69cd93ed
      Michael Meeks authored
    • Michael Meeks's avatar
      another built in name, · 59ed99d7
      Michael Meeks authored
      Helix Code support gnumeric.
    • 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
      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 5 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.
    • Jody Goldberg's avatar
      warning suppression · 4a0aadae
      Jody Goldberg authored
    • Jody Goldberg's avatar
      Add missing commit. · 2f66c816
      Jody Goldberg authored
  9. 20 Feb, 2000 6 commits
    • Jody Goldberg's avatar
      - Implement the border combo. · 15337f66
      Jody Goldberg authored
      - Fix Bug #6429.
      2000-02-20  Jody Goldberg <jgoldberg@home.com>
      	* src/dialogs/dialog-cell-format.c (cb_back_preview_color) : Hard code
      	  the alpha channel to 0.
      	(cb_pattern_preview_color) : Ditto.
      	(cb_border_color) : Ditto.
      	(init_border_button) : Ditto.
      	* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap) :
      	  Replace the storing of the new index.
      	* src/workbook-format-toolbar.c (cb_border_changed) : Implement.
    • Tuomas Kuosmanen's avatar
      New graph icon for miguel / gnumeric · a5610448
      Tuomas Kuosmanen authored
    • Jukka-Pekka Iivonen's avatar
      Implemented Affine Scaling algorithm for the Solver tool. · 5c980847
      Jukka-Pekka Iivonen authored
      2000-02-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      	* src/mathfunc.c: Implemented Affine Scaling algorithm for the
      	Solver tool.
      	* src/solver-lp.c: Switched the solver to use the affine scaling
      	instead of the simplex.  Beautified the generated reports.
      	* src/solver.h: Renamed some of the Solver constants.
      	* src/analysis-tools.h: New file.  Moved stuff from
    • Jody Goldberg's avatar
      - Switch the item-cursor over to a delayed update model in an attempt to · 3d3ec8bf
      Jody Goldberg authored
        fix a redraw bug.  Things are faster but not fixed.
      - Fix the real problem.  More cleanup of the cursor/selection code is required.
        There is too much incest in there.  We are redoing 75% of the necessary operations
        at several level in an attempt to get all the requisite pieces.
      2000-02-20  Jody Goldberg <jgoldberg@home.com>
      	* src/item-cursor.c : Switch to a quartic approved delayed update
      	  model.  Do not change the bounding box while drawing.
      	* src/selection.c (sheet_selection_add_range) : Do NOT directly change
      	  the edit/move/base characteristics of the sheet sheet_cursor_set handles
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) : Use
      	  item_cursor_reposition rather than pretending that the cursor moved.
      	* src/item-grid.c (item_grid_button_1) : Don't call both
      	  sheet_cursor_move and sheet_selection_add.  The former was moving
      	  the edit cursor without redrawing it.
    • Michael Meeks's avatar
      fix for new bonobo bits. · d3afbba4
      Michael Meeks authored
    • Jody Goldberg's avatar
      Fix some breakage in gnumeric-bonbobo. · 7ac894fe
      Jody Goldberg authored
      This is not the RIGHT fix, but it is A fix.  When this is developed we
      can solve it properly.
  10. 19 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Fix mt recent breakage of cursor selection extension. · 28e0b6c6
      Jody Goldberg authored
      2000-02-19  Jody Goldberg <jgoldberg@home.com>
      	* src/selection.c (sheet_selection_extend) : Don't store the results
      	  of the move directly into sheet::cursor::move_corner.  That makes
      	  sheet_selection_extend_to think there is nothing to be done.
  11. 18 Feb, 2000 5 commits