1. 01 Nov, 2001 5 commits
    • Jody Goldberg's avatar
      generalize and fix leak. (cb_add_clicked) : generalize. (cb_select_row) : · 2ab27ef1
      Jody Goldberg authored
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-autocorrect.c (cb_remove_clicked) : generalize and fix leak.
      	(cb_add_clicked) : generalize.
      	(cb_select_row) : generalize.
      	(autocorrect_init_exception_list) : new.
      	(exceptions_callback) : clean up slightly.
      	(ac_button_toggled) : simplify.
      	(ac_dialog_toggle_init) : new.
      	(dialog_autocorrect) : simplify.  Rather than saving the content
                and restoring on cancel, only store the new values on <OK>.
      
      2001-11-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (entry_changed) : autocomplete is in the wbv now.
      	(wbcg_edit_start) : ditto.
      
      	* src/sheet-style.c (rstyle_apply) : fix some silliness in the new
      	  code, but more work to come.
      
      	* src/commands.c (cmd_set_text) : Yay! autocorrect is no longer tied
      	  to the gui.
      
      	* src/application.c (application_init) : Init autocorrection.
      
      	* src/workbook-view.c (wb_view_set_arg) : add do_auto_completion.
      	  Make this a per workbook-view, persistent attribute.  We still
      	  initialize from gnome-config, butthis should make things easier
      	  for users.
      	(wb_view_get_arg) : ditto.
      	(workbook_view_class_init) : ditto.
      2ab27ef1
    • Morten Welinder's avatar
      White space... · a383aea0
      Morten Welinder authored
      a383aea0
    • Morten Welinder's avatar
      Even more white space. · f98b359a
      Morten Welinder authored
      f98b359a
    • Morten Welinder's avatar
      White space... · 0ce2d2de
      Morten Welinder authored
      0ce2d2de
    • Jukka-Pekka Iivonen's avatar
      Fixed the help button. Pressing help does not kill the dialog any more. · a9921841
      Jukka-Pekka Iivonen authored
      2001-11-01  Jukka-Pekka Iivonen  <jiivonen@hutcs.cs.hut.fi>
      
              * dialog-autosave.c (dialog_autosave): Fixed the help button.
              Pressing help does not kill the dialog any more.
      a9921841
  2. 31 Oct, 2001 6 commits
  3. 30 Oct, 2001 3 commits
  4. 29 Oct, 2001 2 commits
    • Jody Goldberg's avatar
      Release 0.73 · 11284341
      Jody Goldberg authored
      11284341
    • Jody Goldberg's avatar
      add support for referencing names in other workbooks. · 22a7ee1a
      Jody Goldberg authored
      2001-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* src/parser.y : add support for referencing names in other workbooks.
      
      	* src/expr.c (expr_tree_new_name) : take an optional sheet and
      	  workbook as scoping info.
      	(expr_eval_real) : handle inactive names.
      	(do_expr_tree_to_string) : improve scoping.
      	(expr_rewrite) : handle inactives and scope changes.
      
      	* src/expr-name.c (expr_name_lookup) : add the notion of active and a
      	  ref count so that we can do a delayed destruction and invalidation.
      	(expr_name_add) : make it clearer that the return is not meant
      	  to be freed.
      	(expr_name_create) : don't free the result of expr_name_lookup.
      	(expr_name_ref) : generalize.
      	(expr_name_unref) : ditto.
      	(expr_name_remove) : deactivate the name.
      22a7ee1a
  5. 28 Oct, 2001 1 commit
  6. 27 Oct, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Enable validate menu item. · eb66eee8
      Almer S. Tigelaar authored
      2001-10-27  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/GNOME_Gnumeric.xml: Enable validate menu item.
      
      	* src/validation.[ch]: New, defines a container for
      	validation settings.
      
      	* src/Makefile.am: Add new validation.[ch]
      
      	* src/gnumeric.h: Add validation declaration.
      
      	* src/gui-validation.[ch] (validation_mstyle_get_title): Burn.
      	(validation_generate_msg): Rework slightly to accept a stylecondition
      	instead of an mstyle.
      	(validation_mstyle_get_msg): Burn.
      	(validation_mstyle_get_msg_subst): Burn.
      	(validation_mstyle_set_title_msg): Burn.
      	(validation_get_accept): Request a validation instead of
      	an mstyle. Actually free the automatically generated message.
      
      	* src/mstyle.[ch]: Adjust mstyle_names to include hidden/locked.
      	(mstyle_hash): Remove validation style hashing.
      	(mstyle_element_dump): Don't dump validation message, dump validation
      	refcount instead.
      	(mstyle_element_equal): Remove comparing of style and message.
      	(mstyle_elements_equal): Don't give a mismatched types warning if
      	one of the elements is not set.
      	(mstyle_element_ref): Ref validation, remove reffing of msg.
      	(mstyle_element_unref): Idem for unref.
      	(mstyle_new_default): Don't initialize any validation related
      	element.
      	(mstyle_set_validation): Set a Validation instead of a StyleCondition.
      	(mstyle_get_validation): Idem for get.
      	(mstyle_set_validation_style): Burn.
      	(mstyle_get_validation_style): Burn.
      	(mstyle_set_validation_msg): Burn.
      	(mstyle_get_validation_msg): Burn.
      
      	* src/style-condition.c (style_condition_new_constraint): Initialize
      	from passed parameter!
      
      	* src/style-condition.h: Remove validation enum.
      
      	* src/workbook-control-gui.c (cb_data_validate): Enable.
      	(workbook_control_gui_init): Change index of consolidate
      	menu item.
      
      	* src/workbook-edit.c (wbcg_edit_validate) : Get the StyleCondition
      	from the validation. The validation element must be set on the mstyle.
      	Pass validation, not mstyle, to validation_get_accept.
      	(wbcg_edit_finish): Only call wbcg_edit_validate if the validation
      	element is set on the mstyle.
      
      	* src/xml-io.c (xml_write_style_condition_chain): Generates a
      	StyleConditionChain in XML format.
      	(xml_read_style_condition_chain): Turns an XML description of a
      	StyleConditionChain into a real StyleConditionChain.
      	(xml_write_style): Add validation support.
      	(xml_read_style): Idem.
      
      2001-10-27  Almer S. Tigelaar  <almer@gnome.org>
      
      	* dialog-cell-format.c (validation_style_condition_chain_rebuild): Rename
      	to validation_rebuild_validation.
      	(validation_rebuild_validation): Also set error style, title and message
      	on validation.
      	(cb_validation_error_action_deactivate): Don't set error style on
      	mstyle directly.
      	(cb_validation_operator_deactivate): Adjust for name change.
      	(cb_validation_constraint_type_deactivate): Don't rebuild chain from
      	here, cb_validation_error_action_deactivate will do this.
      	(cb_validation_bounds_changed): Adjust for name change.
      	(cb_validation_flags_changed): Idem.
      	(cb_validation_error_title_msg): Don't set title and message directly
      	on mstyle. Call validation_rebuild_validation instead.
      	(fmt_dialog_init_from_style_condition): Rename to
      	fmt_dialog_init_validation_from_style_condition.
      	(fmt_dialog_init_validation_from_style_condition): Use passed
      	stylecondition instead of re-fetching it from the mstyle.
      	(fmt_dialog_init_validation_page): Correctly initialize everything
      	from the new, single mstyle_validation element.
      eb66eee8
    • Wayne Schuller's avatar
      Don't open multiples dialogs, set parent correctly, destroy when print · 551dd551
      Wayne Schuller authored
      2001-10-26  Wayne Schuller  <k_wayne@linuxpower.org>
      
      	* dialog-printer-setup.c: (display_hf_preview), (header_changed),
      	(footer_changed), (fill_hf), (do_setup_hf_menus),
      	(hf_customize_apply), (hf_customize_help), (do_hf_customize),
      	(do_setup_hf), (do_print_destroy_cb), (printer_setup_state_new): Don't
      	  open multiples dialogs, set parent correctly, destroy when print setup
      	  gets destroyed, code cleanups.
      551dd551
  7. 26 Oct, 2001 3 commits
    • Jody Goldberg's avatar
      remove the loops, and recursions. match against formatted values before · fea69d08
      Jody Goldberg authored
      2001-10-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (wbcg_edit_finish) : remove the loops, and
      	  recursions.  match against formatted values before expressions, then
      	  fall back to strings.
      
      	* src/parse-util.c (parse_text_value_or_expr) : match against
      	  formatted values before expressions, then fall back to strings.
      
      	* src/cell.c (cell_set_text) : parse_text_value_or_expr takes a ParsePos.
      	* src/sheet.c (sheet_cell_set_text) : ditto.
      	* src/widgets/gnumeric-expr-entry.c
      	  (gnumeric_expr_entry_key_press_event) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_area_set_text) : ditto.
      	(cmd_search_replace_do_cell) : create a tmp EvalPos to avoid changing
      	  the search data structures.
      
      	* src/expr.c (expr_tree_get_range) : renamed from range_from_expr_tree.
      	  add support for singletons.
      
      	* src/ranges.c (global_range_parse) : tweak slightly.
      
      2001-10-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_match_init) : don't include text in the
      	  stock set of formats they should only match numbers.
      fea69d08
    • Morten Welinder's avatar
      Make Enter start the search. · 464b4f1f
      Morten Welinder authored
      464b4f1f
    • Morten Welinder's avatar
      . · e61979ca
      Morten Welinder authored
      e61979ca
  8. 25 Oct, 2001 3 commits
    • Andreas J. Guelzow's avatar
      various routines added to keep track of missing observations as well as · 44d0281b
      Andreas J. Guelzow authored
      2001-10-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/analysis-tools.c : various routines added to keep track of missing
      	  observations as well as various routines removed that are no longer
      	  required. Renamed data_set_t to old_data_set_t, and introduced a new
                data_set_t
      	(correlation_tool) : now handles missing observations and permits disconnected
                rectangular data regions
      	(covariance_tool) : ditto
      	(descriptive_stat_tool) : now permits disconnected rectangular data regions
      	(sampling_tool) : now permits samples of multiple datasets as well as multiple
      	  samples.
      	* src/analysis-tools.h : new group_by_t type
      	* src/ranges.c (global_range_parse) : fix bug (relative references were
                evaluated with respect to B2 rather than A1)
      
      2001-10-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* correlation.glade : add `group by area' radio button
      	* covariance.glade : ditto
      	* descriptive-stats.glade: ditto
      	* sampling.glade : added group_by buttons as well as multiple sample entry
      	* dialog-analysis-tools.c (parse_output) : initialize all fields of dao
      	(dialog_tool_init) : add argument specifying the flags for the input
                expression entry widgets
      	(tool_update_sensitivity_multiple_areas_cb) : new routine,
                tool_update_sensitivity_cb for multiple input ranges
      	(corr_tool_ok_clicked_cb) : use global_range_list_parse rather than parse_range,
                call tool with modified argument list
      	(cov_tool_ok_clicked_cb) : ditto
      	(desc_stats_tool_ok_clicked_cb) : ditto
      	(sampling_tool_ok_clicked_cb) : ditto, as well as support for group_by and multiple
                samples
      	* tools.h : changed arguments for correlation_tool, covariance_tool,
                descriptive_stat_tool, and sampling_tool
      44d0281b
    • Morten Welinder's avatar
      Sign after "E" is optional. (char_to_re): New function. · 8a3cbdaa
      Morten Welinder authored
      2001-10-25  Morten Welinder  <terra@diku.dk>
      
      	* src/number-match.c (format_create_regexp): Sign after "E" is
       	optional.
      	(char_to_re): New function.
      	(format_create_regexp): Use char_to_re to quote thousand and
       	decimal separators.
      	(compute_value): Fix sign handling.
      
      2001-10-25  Morten Welinder  <terra@diku.dk>
      
      	* dialog-cell-format.c (fmt_dialog_init_format_page): Plug leak.
      8a3cbdaa
    • Wayne Schuller's avatar
      New canvas based header and footer preview widget. The customize · f0770524
      Wayne Schuller authored
      2001-10-21  Wayne Schuller <k_wayne@linuxpower.org>
      
      	* dialog-printer-setup.c : New canvas based header and footer preview
      	  widget. The customize header/footer widget now also uses a
      	  GnomePropertyBox for UI consistency.
      	* print.glade : Updated.
      	* hf-config.glade : Updated.
      
      2001-10-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/ranges.c (range_trim) : decrease lobotomization factor.
      
      2001-10-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (named_expr_new) : renamed from add_real, simplified
      	  interface.
      	(expr_name_add) : take and store a parse position.
      	(expr_name_create) : ditto.
      	(expr_name_destroy) : adjust to stored parsepos.
      	(expr_name_unlink) : ditto.
      	(expr_name_sheet2wb) : ditto.
      	(expr_name_init) : ditto.
      	(expr_name_as_string) : renamed from expr_name_value.
      	(expr_name_eval) : renamed from eval_expr_name.
      
      	s/eval_expr/expr_eval/
      
      	* src/expr.c (do_expr_tree_to_string) : Use value_as_string in most
      	  places.
      	* src/value-sheet.c (value_cellrange_get_as_string) : delete bogus
      	  useless arg.
      	(encode_cellref) : delete redundant.
      
      	* src/parse-util.c (cellref_name) : ICK!  XL wraps relative references
      	  that are out of bounds.
      f0770524
  9. 23 Oct, 2001 1 commit
    • Andreas J. Guelzow's avatar
      remove `strict' argument (range_list_foreach_full) : change third argument · 2fa17a59
      Andreas J. Guelzow authored
      2001-10-23  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/ranges.c/h (global_range_parse) : remove `strict' argument
      	(range_list_foreach_full) : change third argument from boolean to
      	  enumerate to allow third variant, namely call backup even for NULL
      	  cells without creating them.
              * src/ranges.c (global_range_parse) : change to a wrapper
      	  around expr_parse_string.
      	(global_range_list_parse) : new routine, analogue
      	  to range_list_parse but calling global_range_parse rather than
      	  range_parse (for analysis tools)
      
      2001-10-23  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-analysis-tools.c : remove `strict'
      	  argument from all invocations of global_range_parse
      2fa17a59
  10. 22 Oct, 2001 2 commits
    • Almer S. Tigelaar's avatar
      Fix this for cases where the msg is NULL. · 530142be
      Almer S. Tigelaar authored
      2001-10-23  Almer S. Tigelaar  <almer@gnome.org>
      
      	* src/mstyle.c (mstyle_get_validation_msg): Fix this for
      	cases where the msg is NULL.
      
      	* src/workbook-edit.c (wbcg_edit_validate): Call upon
      	validation_get_accept in gui-validation.c to pop-up
      	a dialog if needed.
      
      	* src/gui-validation.[ch]: New, gui parts of validation.
      	Used by wbcg_edit_validate and also in dialog-cell-format.c
      
      2001-10-23  Almer S. Tigelaar  <almer@gnome.org>
      
      	* cell-format.glade: Re-order validation action list.
      
      	* dialog-cell-format.c (fmt_dialog_init_validation_page):
      	Don't delete validation page.
      	(fmt_dialog_init_input_msg_page): Adjust deletion index.
      	(validation_entry_to_expr): New, turn entered text into
      	expression.
      	(validation_style_condition_chain_rebuild): Rebuild the
      	validation chain from the input given.
      	(cb_validation_error_action_deactivate): Cope for re-ordering
      	of the action list. Set the action on the resulting mstyle.
      	(cb_validation_operator_deactivate): Rebuild chain.
      	(cb_validation_constraint_type_deactivate): Idem.
      	(cb_validation_flags_changed): Idem.
      	(cb_validation_bounds_changed): New, force rebuild when bounds
      	change.
      	(cb_validation_error_title_msg): New, reset validation title
      	and message on mstyle when changed.
      	(fmt_dialog_init_from_style_condition): New, initialize the
      	Criteria part of the dialog from an existing mstyle.
      	(fmt_dialog_init_validation_page): Connect new signal callbacks
      	and initialize the Error Alert part of the dialog.
      530142be
    • Jody Goldberg's avatar
      actually display the returned error. · 57d5df3c
      Jody Goldberg authored
      2001-10-22  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-define-names.c (cb_name_guru_add) : actually display the
      	  returned error.
      
      2001-10-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr-name.c (name_refer_circular) : fix.
      57d5df3c
  11. 21 Oct, 2001 1 commit
  12. 20 Oct, 2001 3 commits
    • Andreas J. Guelzow's avatar
      replace target value in goal frame with error fix some leaks, check for · f3b6cb8e
      Andreas J. Guelzow authored
      2001-10-20  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* goalseek.glade : replace target value in goal frame with error
      	* dialog-goal-seek.c (cb_dialog_apply_clicked) : fix some leaks, check for
      	  invalid data entry and display error rather than target value.
      f3b6cb8e
    • Jody Goldberg's avatar
      use the prefix & suffix strings. Watch sign extension. (formula_guru_free) · 2f0d3a55
      Jody Goldberg authored
      2001-10-20  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-formula-guru.c (formula_guru_set_expr) : use the prefix &
      	  suffix strings.  Watch sign extension.
      	(formula_guru_free) : split from the destroy handler.
      	(dialog_formula_guru) : use formula_guru_free. and init the
      	  prefix/suffix.
      2f0d3a55
    • Jody Goldberg's avatar
      be quieter about a failure to start the graph server. · 27cde3f8
      Jody Goldberg authored
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-graph-guru.c (dialog_graph_guru) : be quieter about a
      	  failure to start the graph server.
      	(graph_guru_init_data_page) : typo.
      
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_setup) : it is 'oaf-run-query'
      	  Spew the informative message for all oaf exceptions.
      27cde3f8
  13. 19 Oct, 2001 6 commits
    • Morten Welinder's avatar
      More goal-seek improvement. · 55636a68
      Morten Welinder authored
      55636a68
    • Jody Goldberg's avatar
      ditto. · 00d1b34a
      Jody Goldberg authored
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-analysis-tools.c (dialog_tool_init) Register as a guru.
      	(dialog_random_tool_init) : ditto.
      
      	* dialog-goal-seek.c (dialog_init) : Register as a guru.
      
      2001-10-19  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Until the gb plugin works with newer gb make
      	the test == 0.17
      00d1b34a
    • Morten Welinder's avatar
      Use mid-point bisection more often. Increase maximum number of iterations · 07d77ce8
      Morten Welinder authored
      2001-10-19  Morten Welinder  <terra@diku.dk>
      
      	* src/goal-seek.c (goal_seek_bisection): Use mid-point bisection
       	more often.  Increase maximum number of iterations (just in case).
      
      	* src/commands.c (cmd_ins_del_colrow_redo): Initialise cri, just
       	in case.
      
      2001-10-19  Morten Welinder  <terra@diku.dk>
      
      	* dialog-goal-seek.c (gnumeric_goal_seek): New Plan F: extra
       	Newton searches from a net of points.  Disable Plans B through F
       	when bisection can kick in.
      07d77ce8
    • Andreas J. Guelzow's avatar
      new function rewrite to permit output of the data analysis tools to be · c48ac931
      Andreas J. Guelzow authored
      2001-10-18  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
              * src/ranges.c/h (global_range_parse) : new function
      	* dialog-analysis-tools.c (parse_output) : rewrite to permit output of
      	  the data analysis tools to be directed into a range on a different sheet
      	  of the active workbook.
      	  (corr_tool_ok_clicked_cb) : change of parse_output arguments
      	  (cov_tool_ok_clicked_cb) : ditto
      	  (cb_desc_stat_tool_ok_clicked) : ditto
      	  (rank_tool_ok_clicked_cb) : ditto
      	  (ttest_tool_ok_clicked_cb) : ditto
      	  (ftest_tool_ok_clicked_cb) : ditto
      	  (sampling_tool_ok_clicked_cb) : ditto
      	  (random_tool_ok_clicked_cb) : ditto
      	  (regression_tool_ok_clicked_cb) : ditto
      	  (average_tool_ok_clicked_cb) : ditto
      	  (fourier_tool_ok_clicked_cb) : ditto
      	  (histogram_tool_ok_clicked_cb) : ditto
      	  (anova_single_tool_ok_clicked_cb) : ditto
      	  (anova_two_factor_tool_ok_clicked_cb) : ditto
      	* dialog-goal-seek.c (cb_dialog_apply_clicked) : fix leak
      c48ac931
    • Jody Goldberg's avatar
      Release 0.72 · 9252a34a
      Jody Goldberg authored
      9252a34a
    • Jody Goldberg's avatar
      number_match can match non-numbers too. ditto. · 20b08bfe
      Jody Goldberg authored
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      
      	* fn-string.c (gnumeric_value) : number_match can match non-numbers too.
      	* fn-information.c (gnumeric_n) : ditto.
      
      2001-10-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_node_get_int) : use strtol
      	(xml_node_get_double) : strtod.
      
      	* src/number-match.c (format_match_number) : new.
      
      	* src/expr.c (eval_expr_real) : format_match can match non-numbers now.
      
      2001-10-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (ib_draw_cell) : add some protection in case of bad
      	  fonts.
      20b08bfe
  14. 18 Oct, 2001 1 commit
    • Andreas J. Guelzow's avatar
      New glade dialog Added goalseek.glade changes in the argument list · 38815b10
      Andreas J. Guelzow authored
      2001-10-16  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
              * goalseek.glade : New glade dialog
      	* Makefile.am : Added goalseek.glade
      	* dialog-goal-seek.c (gnumeric_goal_seek) : changes in the argument list
      	(dialog_help_cb) : new callback supporting a help button
      	(dialog_destroy) : new callback to change dialog into non-modal form
      	  using expr-entry widget
      	(cb_dialog_cancel_clicked) : ditto
      	(cb_dialog_close_clicked) : ditto
      	(cb_dialog_apply_clicked) : ditto
      	(dialog_set_focus) : ditto
      	(dialog_realized) : ditto
      	(dialog_goal_seek) : changed to support same goal
      	(dialog_init) : new function creating dialog
      	(dialog_found_solution) : deleted
      38815b10
  15. 17 Oct, 2001 1 commit