1. 15 Feb, 2002 1 commit
    • Jody Goldberg's avatar
      We can now make distcheck · f84a08c5
      Jody Goldberg authored
      Requires a GAL update, and a gtk+ update
      
      2002-02-15  Jody Goldberg <jody@gnome.org>
      
      	* src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the
      	  canvas bug is fixed.
      
      	* src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new.
      	(cb_vscrollbar_adjust_bounds) : new.
      
      	* src/gui-util.c (gtk_button_stock_alignment_set) : new.
      	(gnumeric_init_help_button) : new.
      
      	* src/gnumeric-canvas.h : Move declaration of
      	  GnumericCanvasSlideHandler here.
      
      	* src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry,
      	  not the GnumericExprEntry wrapper.
      	(gnm_canvas_key_mode_sheet) : ditto.
      
      	* src/formats.c (cell_format_classify) : handle general.
      
      	* src/file-priv.h : Inherit from GObject.
      
      	* src/complete-sheet.c (complete_sheet_finalize) : call class_peek
      	  here to avoid potential reference problems.
      
      	* src/commands.c (cmd_set_text) : doh!  fix multi-line text.
      	(cmd_autoformat) : const.
      
      	* src/cell.c (cell_relocate) : const.
      	* src/clipboard.c (paste_cell_with_operation) : const.
      	(paste_cell) : ditto.
      
      	* src/application.c (application_init) : add jimmac's expr-entry icon.
      
      	* src/Makefile.am : distribute the marshaller.list
      
      	s/GtkType/GType/
      	s/GtkSignalFunc/GCallback/
      	s/gtk_signal_connect/g_signal_connect/  + reformating.
      	s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/
      	s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/
      	s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/
      	s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/
      
      2002-02-11  Jody Goldberg <jody@gnome.org>
      
      	* src/stf.c (stf_init) : Make the names of the text import/export
      	  clearer.
      f84a08c5
  2. 01 Feb, 2002 1 commit
  3. 26 Jan, 2002 2 commits
    • Andreas J. Guelzow's avatar
      moved to gui-utils.c/h (entry_to_int) : ditto (float_to_entry) : ditto · 368aa730
      Andreas J. Guelzow authored
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-analysis-tools.c (entry_to_float) : moved to gui-utils.c/h
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      	* dialog-autosave.c (autosave_on_off_toggled) renamed to
      	  autosave_set_sensitivity and improved functionality
      	(dialog_autosave_prompt) : rewritten to use standard gtk dialog
      	(dialog_autosave) : rewritten as non-modal
      	(cb_autosave_cancel) : new
      	(cb_autosave_help) : new
      	(cb_autosave_ok) : new
      
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (entry_to_float) :
      	  moved here from dialogs/dialog-analysis-tools.c
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      
      	* src/gui-util.h (entry_to_float) new function (used to be static)
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      368aa730
    • Andreas J. Guelzow's avatar
      fix all calls to gnumeric_notice ditto ditto ditto ditto ditto ditto ditto · 8b236ce4
      Andreas J. Guelzow authored
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-advanced-filter.c : fix all calls to gnumeric_notice
      	* dialog-analysis-tools.c : ditto
      	* dialog-autocorrect.c : ditto
      	* dialog-autosave.c : ditto
      	* dialog-cell-sort.c : ditto
      	* dialog-consolidate.c : ditto
      	* dialog-define-names.c : ditto
      	* dialog-goal-seek.c : ditto
      	* dialog-search-replace.c : ditto
      	* dialog-search.c : ditto
      	* dialog-solver.c : ditto
      	* dialog-tabulate.c : ditto
      
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (gnumeric_dialog_run) : use GTK functions
      	(gnumeric_notice) : create GTK_Message_Dialog
      	* src/gui-util.h (gnumeric_notice) : change type of second argument
      	* src/gui-file.c : fix all calls to gnumeric_notice
      	* src/print.c : ditto
      	* src/style.c : ditto
      	* src/workbook-cmd-format.c : ditto
      	* src/workbook-control-gui.c : ditto
      8b236ce4
  4. 24 Jan, 2002 1 commit
  5. 23 Jan, 2002 1 commit
  6. 24 Dec, 2001 1 commit
  7. 21 Dec, 2001 1 commit
  8. 12 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      gtk_entry_get_text const. (el_edit_sync) : ditto. ditto. ditto. · a9117e4d
      Jody Goldberg authored
      2001-12-12  Jody Goldberg <jody@gnome.org>
      
      	* widget-editable-label.c (el_entry_activate) : gtk_entry_get_text const.
      	(el_edit_sync) : ditto.
      	* widget-font-selector.c (size_changed) : ditto.
      	* gnumeric-combo-text.c (cb_entry_activate) : ditto.
      
      	* gnumeric-toolbar.c (gnumeric_toolbar_get_type) : Delete finalize it
      	  was a NOP.
      
      2001-12-12  Jody Goldberg <jody@gnome.org>
      
      	* dialog-solver.c (cb_dialog_solve_clicked) : gtk_entry_get_text const.
      	* dialog-printer-setup.c (do_fetch_page) : ditto.
      	(paper_size_changed) : ditto.
      	* dialog-goal-seek.c (cb_dialog_apply_clicked) : ditto.
      	* dialog-formula-guru.c (formula_guru_set_expr) : ditto.
      	* dialog-autocorrect.c (cb_add_clicked) : ditto.
      	* dialog-analysis-tools.c (entry_to_float) : ditto.
      	(entry_to_int) : ditto.
      	(gnumeric_expr_entry_parse_to_value) : ditto.
      	(gnumeric_expr_entry_parse_to_list) : ditto.
      	* dialog-advanced-filter.c (dialog_advanced_filter) : ditto.
      
      2001-12-12  Jody Goldberg <jody@gnome.org>
      
      	* src/file-autoft.c (category_group_list_find_category_by_name) : make
      	  const.
      	* src/plugin-service.c (gnum_plugin_file_opener_probe) : const.
      	* src/workbook-view.c (wb_view_attach_control) : ditto.
      	* src/workbook.c (workbook_attach_view) : ditto.
      	* src/workbook-edit.c (entry_changed) : ditto.
      	* src/workbook-edit.c (auto_complete_matches) : ditto.
      a9117e4d
  9. 15 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      simplify. No resize if there is a guru, or we are editing. (ib_set_cursor) · 66176ca9
      Jody Goldberg authored
      2001-11-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (is_pointer_on_division) : simplify.  No resize if
      	  there is a guru, or we are editing.
      	(ib_set_cursor) : no need to be fancy, is_pointer_on_division
      	  does the majority of the work now.
      	* src/item-bar.c (item_bar_event) : ditto.
      
      	* src/cell-draw.c (cell_split_text) : split at hyphens.
      	* src/print-cell.c (cell_split_text) : ditto.
      	* src/rendered-value.c (rendered_value_calc_size_ext) : ditto.
      66176ca9
  10. 01 Nov, 2001 1 commit
  11. 24 Aug, 2001 3 commits
    • Jody Goldberg's avatar
      Rename gnumeric-utils.h gui-utils.h to be more accurate. · d531765d
      Jody Goldberg authored
      Clean out a bunch includes.
      d531765d
    • Jody Goldberg's avatar
      fix. · 8ba4a43f
      Jody Goldberg authored
      2001-08-24  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/Makefile.am : fix.
      
      	* src/gnumeric-canvas.c : add gnome-i18n.
      	* src/gnumeric-util.c : add gnome-{i18n,util}
      	* src/gui-file.c : add gnome-{i18n,config,util}
      	* src/history.c : add gnome-i18n.
      	* src/main.c : add gnome-config.
      	* src/sheet-control-gui.c : add gnome-i18n.
      	* src/workbook.c : Add gnome-i18n, loosen sheet-control-gui req to
      	  just sheet-control.
      	* src/workbook-edit.c : add gnome-i18n.
      	* src/workbook-view.c : add gnome-i18n and gnome-config, remove widget.
      	* src/workbook-control-gui.c : Add gnome-i18n and gnome-config.
      	* src/xml-io-autoft.c : add unistd.h
      8ba4a43f
    • Chyla Zbigniew's avatar
      Replace mega-include <gnome.h> with something smaller. · ac93e10a
      Chyla Zbigniew authored
      * src/analysis-tools.c, src/application.c, src/bonobo-io.c,
      src/clipboard.c, src/cmd-edit.c, src/command-context.c,
      src/commands.c, src/corba-args.c, src/corba-workbook-factory.c,
      src/dates.c, src/dialogs/dialog-about.c,
      src/dialogs/dialog-advanced-filter.c,
      src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c,
      src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c,
      src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c,
      src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c,
      src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c,
      src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c,
      src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c,
      src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c,
      src/dialogs/dialog-plugin-manager.c,
      src/dialogs/dialog-printer-setup.c,
      src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c,
      src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c,
      src/dialogs/dialog-stf-export-private.h,
      src/dialogs/dialog-stf-export-sheet-page.c,
      src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h,
      src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h,
      src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c,
      src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c,
      src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c,
      src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c,
      src/func.c, src/global-gnome-font.c, src/gnumeric-util.h,
      src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c,
      src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c,
      src/main.c, src/normal-args.c, src/number-match-test.c,
      src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h,
      src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c,
      src/search.c, src/selection.c, src/sheet-autofill.c,
      src/sheet-merge.c, src/sheet-object-bonobo.c,
      src/sheet-object-container.c, src/sheet-object-graphic.c,
      src/sheet-object-item.c, src/sheet-object-widget.c,
      src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c,
      src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c,
      src/value.c, src/widgets/gnumeric-dashed-canvas-line.h,
      src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c,
      src/widgets/gnumeric-vscrollbar.c,
      src/widgets/widget-editable-label.c,
      src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      src/workbook-control.c, src/workbook-format-toolbar.c,
      src/workbook-object-toolbar.c, src/workbook-private.h,
      src/xml-io-autoft.c, src/xml-io.c:
      Replace mega-include <gnome.h> with something smaller.
      ac93e10a
  12. 05 Jul, 2001 1 commit
  13. 10 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Minor optimization to decrease flicker. · df3eb271
      Jody Goldberg authored
      
      2000-11-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (workbook_format_toolbutton_update) :
      	  Minor optimization to decrease flicker.
      
      	* src/sheet.c (sheet_cell_calc_span) : Clarify the semantics of
      	  the various flags.
      	(cb_max_cell_width) : If the value used a dynamic format we need to
      	  rerender ignoring the current width.
      
      	* src/rendered-value.c (rendered_value_new) : renamed from
      	  rendered_value_new_ext and delete the old rendered_value_new.
      	  Extend slightly to flag whether or not to handle dynamic formats.
      
      	* src/render-ascii.c (cell_region_render_ascii) : Handle the style
      	  lookup localy.
      
      	* src/cell.c (cell_eval_content) : We need to manually render
      	  the value here, but no longer need to calculate the size
      	  seperately.  That is done automatically in the render.
      	(cell_render_value) : Handle style localy, and calculate the size.
      
      2000-11-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-control-gui.c (workbook_control_gui_init) : move the
      	  autosave code here.
      	* src/workbook.c : from here.
      df3eb271
  14. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  15. 27 Apr, 2000 1 commit
    • Jody Goldberg's avatar
      Improve versioning. Fix a few bugs. · 2c8b64d0
      Jody Goldberg authored
      Improve versioning.
      Fix a few bugs.
      
      2000-04-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/command-context.c (gnumeric_error_sys_err) : New function.
      	* src/command-context-gui.c (ccg_error_sys_err) : Support it.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : Use gnumeric_error_sys_err.
      
      	* src/gutils.c (gnumeric_sys_{data,lib,glade,plugin)_dir) : New functions.
      	(gnumeric_usr_dir, gnumeric_usr_plugin_dir) : New functions.
      
      	* src/plugin.c (load_all_plugins) : Use
      	  gnumeric_usr_plugin_dir, and  gnumeric_sys_plugin_dir.
      
      	* src/item-edit.c (point_is_inside_range) : Handle non-singleton
      	  expr start characters.
      
      2000-04-25  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : glade_new_xml -> gnumeric_glade_new_xml
      	  Localize GNUMERIC_GLADEDIR so that plugins can use it too.
      
      	* src/gnumeric-util.c (gnumeric_glade_xml_new) : New function.
      
      	* */Makefile.am : Set 'DATADIR' rather than GLADEDIR.  And version
      	  the glade file the same way the plugins are set.  This should
      	  probably expand to include architecture akin to gcc.
      
      	* src/widgets/widget-editable-label.c (el_button_press_event) :
      	  Clicking in another window accepts the changes.  Once we have
      	  reliquished our grab push the button event back on the queue
      	  so that it can be forwarded on to the appropriate recipient (9007).
      
      	* src/parse-util.c (parse_text_value_or_expr) : Watch for 1 character
      	  strings which could start an expression.
      2c8b64d0
  16. 18 Feb, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      Added a few checks for the correctness of autosave.glade file. · 61c6f217
      Jukka-Pekka Iivonen authored
      2000-02-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/dialog-autosave.c: Added a few checks for the
      	correctness of autosave.glade file.
      
      	* src/dialogs/analysis-tools.glade,
      	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
      	Anova single factor tool.
      61c6f217
    • Jukka-Pekka Iivonen's avatar
      Implemented Glade dialogs for T-Test tools. · 101d8550
      Jukka-Pekka Iivonen authored
      2000-02-18  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade,
       	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
       	T-Test tools.
      
      	* src/dialogs/dialog-autosave.c: Fixed a few bugs in
       	dialog_autosave (cancel caused segmentation fault at the next
       	run).  Made the prompt button unsensitive if the autosave is
       	turned off.
      
      	* src/analysis-tools.c: Made the titles to be printed in italic
       	style for Correlation, Covariance, F-Test, and T-Test tools.  In
       	addition, the columns are autosized.
      101d8550
  17. 14 Feb, 2000 1 commit
    • Miguel de Icaza's avatar
      Fix handling of return value from gnumeric_dialog_run. Fix memory leaks. · eb497b78
      Miguel de Icaza authored
      2000-02-14  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/dialogs/dialog-solver.c (constr_add_click): Fix handling
      	of return value from gnumeric_dialog_run.  Fix memory leaks.
      
      	* src/dialogs/dialog-goto-cell.c (dialog_goto_cell): Fix handling
      	of return value from gnumeric_dialog_run
      
      	* src/dialogs/dialog-function-wizard.c (dialog_function_wizard):
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_correlation_tool):
      	Fix handling of return value from gnumeric_dialog_run
      	(dialog_sampling_tool): ditto.
      	(dialog_descriptive_stat_tool): ditto.
      	(dialog_ttest_eq_tool): ditto.
      	(dialog_regression_tool): ditto
      	(dialog_average_tool): ditto.
      	(dialog_ranking_tool): ditto.
      	(dialog_anova_single_factor_tool): ditto.
      
      	* src/dialogs/dialog-solver.c (dialog_solver): The argument is
      	*NOT* a GtkObject, but some other data structure.
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis):
      	Correct handling.
      	(dialog_covariance_tool): Handle correctly.
      
      	* src/dialogs/dialog-advanced-filter.c (dialog_advanced_filter):
      	Proper error handling.
      eb497b78
  18. 07 Feb, 2000 2 commits
    • Miguel de Icaza's avatar
      Tag strings for internationalization. ditto. · 8df7e26a
      Miguel de Icaza authored
      2000-02-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/solver-lp.c: Tag strings for internationalization.
      	* src/analysis-tools.c: ditto.
      
      	* src/workbook.c (dialog_autosave_callback): Moved autosave code
      	here.
      	(workbook_autosave_cancel): Cancels autosaving.
      	(workbook_autosave_set):
      8df7e26a
    • Miguel de Icaza's avatar
      Change the order here. (dialog_autosave): Correct. Help button does not · 1cff73da
      Miguel de Icaza authored
      2000-02-07  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave): Change the
      	order here.
      	(dialog_autosave): Correct.  Help button does not mean OK.  Hook
      	up help.
      
      	* src/dialogs/auto-save.glade: Beautify.
      1cff73da
  19. 31 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Move more of the pure view elements into WorkbookPrivate. · a038ab94
      Jody Goldberg authored
      
      2000-01-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/worksheet.h : Move more of the pure view elements into
      	  WorkbookPrivate.
      
      	* src/sheet.h : Remove include of workbook.h
      
      	* *.c : manually include workbook.h only where we need it.
      
      	* src/ranges.c (parse_range) : Move here from dialog-analysis-tools.c
      	  to avoid warnings.
      
      	* src/corba-workbook.c (Workbook_save_to) : Adjust to new calling
      	  convention.
      	* src/corba-workbook-factory.c (WorkbookFactory_read) : Ditto.
      
      	* src/parser.y : Support interbook references.
      
      	* src/item-bar.c : Ignore scroll-wheel events. Eventually the app will
      	  handle these rather than the grid.
      a038ab94
  20. 28 Jan, 2000 1 commit
    • Jon K Hellan's avatar
      Megacommit. · 333a8167
      Jon K Hellan authored
      2000-01-29  Jon K Hellan  <hellan@acm.org>
      
      	Megacommit.
      
      	The purpose of the changeset is twofold:
      
      	1. Use CommandContexts for error reporting for file read/save.
      	2. This allows us to let FileFormatOpen return 0 on success, -1 on
      	   failure, same as FileFormatSave. The convention to return NULL
      	   on success was highly ideosyncratic.
      
      	* src/file.h (FileFormatOpen, FileFormatSave, workbook_load_from,
      	workbook_import): Add CommandContext
      	(FileFormatOpen, workbook_load_from): Return int instead of char*.
      
      	* src/file.c (workbook_load_from, workbook_try_read,
      	workbook_read, workbook_import, workbook_save_as, workbook_save)
      	(file_error_message): Remove function
      	(workbook_read, workbook_load_from, workbook_save_as,
      	workbook_save): Do not display message, message, plugin does -
      	using CommandContext.
      	(workbook_load_from): Return int instead of char*.
      	(workbook_load_from, workbook_import): fo->open returns int
      	instead of char*.
      	(workbook_try_read): Remove msg paramenter
      
      	* src/workbook.c (workbook_persist_file_load,
      	workbook_persist_file_save): Use workbook_command_context_gui.
      	(file_import_cmd): ditto
      	(file_open_cmd): ditto
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_filenames_dropped): Use
      	workbook_command_context_gui. Call workbook_try_read without msg
      	argument.
      
      	* src/workbook.h (workbook_try_read, workbook_read,
      	workbook_save_as, workbook_save): Add command context
      	(workbook_try_read): Remove msg paramenter
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave_callback):
      	ditto
      
      	* src/command-context.[ch] (gnumeric_error_read,
      	gnumeric_error_save): New functions.
      
      	* src/command-context-corba.c (ccc_error_read, ccc_error_save):
      	Ditto.
      	(ccc_init_class): Initialize error_read, error_save.
      
      	* src/command-context-gui.c (ccg_error_read, ccg_error_save):
      	Ditto.
      	(ccg_init_class): Initialize error_read, error_save.
      
      	* src/main.c (gnumeric_main): Make a CommandContext for use before
      	we make first workbook. Unref it when no longer needed. Call
      	plugins_init and workbook_read with CommandContext.
      
      	* src/plugin-manager.c (add_cb): Use gnumeric_error_plugin_problem.
      	(remove_cb): Ditto.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugins_init): Add CommandContext.
      
      	* src/plugin.c (plugin_load, plugin_unload): CommandContext
      	instead of workbook.
      	(plugin_unload): Use gnumeric_error_plugin_problem.
      	(plugin_load_plugins_in_dir, load_all_plugins, plugins_init): Add
      	CommandContext.
      
      	* src/xml-io.h:  ditto
      
      	* src/xml-io.c (gnumeric_xml_read_workbook,
      	gnumeric_xml_write_workbook):  ditto
      
      In plugins/dif:
      
      	* dif.c (dif_read_workbook, dif_write_workbook): Add
      	CommandContext.
      	(dif_read_workbook): Return 0 on success, -1 on failure.
      	 Use gnumeric_error_read to report errors.
      
      In plugins/excel:
      
      	* excel.h (ms_excel_read_workbook, ms_excel_write_workbook) Add
      	CommandContext. Return int.
      
      	* ms-excel-read.c (ms_excel_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to display messages.
      
      	* ms-excel-write.c (write_sheet): Check max no. of rows for the
      	format.
      	(new_sheet): Return the ExcelSheet. Let caller add it to
      	wb->sheets.
      	(pre_pass): Add CommandContext.
      	(free_workbook): New function, previously in write_workbook.
      	(write_workbook): Change parameter from Workbook to ExcelWorkbook.
      	Move deallocation to free_workbook.
      	(check_sheet): New function. Check if we are able to save the
      	sheet.
      	(ms_excel_check_write): New function. Check if we are able to save
      	to the file. Do initialization previously in
      	ms_excel_write_workbook.
      	(ms_excel_write_workbook): Add CommandContext. Add state. Change
      	wb from Workbook to ExcelWorkbook. Use gnumeric_error_save to
      	report problems. Return 0 on success, -1 on failure.
      
      	* ms-excel-biff.h: Define enum for max no. of rows. Fix typo.
      
      	* boot.c (excel_load, excel_save, excel_save_98, excel_save_95):
      	Add CommandContext.
      	(excel_load): Return 0 on success, -1 on failure.
      	Use gnumeric_error_read to display messages. Remove "Opening .. "
      	message on stdout.
      	(excel_probe_write): New function. Check if we are able to save to
      	the file.
      	(excel_save): Use gnumeric_error_save to display messages.
      	Return 0 on success, -1 on failure.
      
      In plugins/ff-csv:
      
      	* csv-io.c (csv_read_workbook, csv_write_workbook,
      	csv_parse_sheet, csv_parse_field): Add CommandContext. Return 0 on
      	success, -1 on failure. Use gnumeric_error_read to report errors.
      
      In plugins/ff-stf:
      
      	* dialog-stf.h: Add CommandContext. Return int.
      
      	* dialog-stf.c (dialog_stf) : Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* stf.c (stf_read_workbook): Ditto.
      
      In plugins/html:
      
      	* epsf.h (epsf_write_wb): Add CommandContext.
      
      	* epsf.c (epsf_write_wb): ditto.
      
      	* latex.h (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* latex.c (html_write_wb_latex, html_write_wb_latex2e): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* roff.c (html_write_wb_roff_ps, html_write_wb_roff_dvi,
      	html_write_wb_roff_pdf, html_write_wb_roff): ditto
      
      	* html.h (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto.
      	(html_read): Return int.
      
      	* html.c (html_read, html_write_wb_html40, html_write_wb_html32):
      	ditto
      	(html_read): Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/lotus-123:
      
      	* lotus.c (lotus_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors. Close
      	file unconditionally.
      	(read_workbook): Return 0 on success, -1 on failure. Remove unused
      	panic_message variable.
      
      	* lotus.h (lotus_read): Add CommandContext. Return int.
      
      	* boot.c (lotus_load): Ditto
      
      In plugins/oleo:
      
      	* oleo.c (oleo_read): Add CommandContext. Return 0 on success,
      	-1 on failure. Use gnumeric_error_read to report errors.
      
      	* oleo.h (oleo_read): Add CommandContext. Return int.
      
      	* boot.c (oleo_load): Ditto.
      
      In plugins/plan-perfect:
      
      	* pln.c (pln_parse_sheet, pln_read_workbook): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/sc:
      
      	* sc.c (sc_read_workbook, sc_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure.  Use
      	gnumeric_error_read to report errors.
      
      In plugins/sylk:
      
      	* sylk.c (sylk_read_workbook, sylk_parse_sheet): Add
      	CommandContext. Return 0 on success, -1 on failure. Use
      	gnumeric_error_read to report errors.
      
      In plugins/text:
      
      	* text-io.c (text_read_workbook, text_write_workbook,
      	readTextWorkbook): Add CommandContext.
      	(text_read_workbook, readTextWorkbook): Return 0 on success, -1 on
      	failure.
      	(readTextWorkbook): Use gnumeric_error_read to report errors.
      
      In plugins/xbase:
      
      	* xbase.h (xbase_open): Add CommandContext.
      
      	* xbase.c (xbase_open): Add CommandContext. Remove progress
      	message to stdout. Use gnumeric_error_read to report errors.
      
      	* boot.c (xbase_load): Add CommandContext. Return 0 on success, -1
      	on failure.
      333a8167
  21. 26 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Add mouse-wheel scrolling for Jon-Kare · 7fc4d11f
      Jody Goldberg authored
      - adjust semantics of gnumeric_run_dialog to set the parent.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-util.c (gnumeric_dialog_run) : Handle the setting of
      	  the parent here rather than scattering it throughout the system.
      
      	* src/item-grid.c (item_grid_event) : Support mouse-wheel scrolling.
      7fc4d11f
  22. 25 Jan, 2000 2 commits
    • Jody Goldberg's avatar
      - Fix a problem with zooming caused by the new item-bar enhancements. - · 03198e1d
      Jody Goldberg authored
      
      - Fix a problem with zooming caused by the new item-bar enhancements.
      - Remove gnumeric-sheet.h from a number of places that it had no reason to be.
      - Move all of the row/col pos/offset cache into GnumericSheet.  WARNING
        I do not populate all of it yet.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_set_zoom_factor) : Keep the cursor in
      	  the same place and recompute the alignments for everything.
      
      	* src/item-cursor.c (item_cursor_set_bounds) : New function.
      
      	* src/gnumeric-sheet.h : Add more orthogonal structure for caching
      	  common row/col bounds and their canvas offsets.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create) : Init the new members.
      	(gnumeric_sheet_filenames_dropped) : Keep the canvas private.
      	(gnumeric_sheet_make_cell_visible) : Add 'force_scroll' argument.
      
      	* src/clipboard.c (clipboard_release) : It is possible to have no
      	  styles associated with a region.
      
      	* src/item-grid.c : Remove overlapping cache of bounding rows/cols and
      	  offsets.  Use the superset in GnumericSheet.
      	 (item_grid_find_{row, col}) : Support sliding backwards.
      03198e1d
    • Jukka-Pekka Iivonen's avatar
      Made workbook_is_dirty() public. · ddfafec8
      Jukka-Pekka Iivonen authored
      2000-01-25  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/workbook.[ch]: Made workbook_is_dirty() public.
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave_callback): Added
       	checking whether the workbook is changed or not before saving it.
      ddfafec8
  23. 23 Jan, 2000 1 commit
    • Jon K Hellan's avatar
      Give "Yes" button initial keyboard focus. · 6b04ed8c
      Jon K Hellan authored
      2000-01-23  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/autosave-prompt.glade: Give "Yes"
      	button initial keyboard focus.
      
      	* src/dialogs/autosave.glade: Set initial focus to
      	first check button. Make OK the default.
      
      	* src/dialogs/dialog-autocorrect.c (dialog_autocorrect): Make
      	<Ret> in entry fields invoke default.
      	(dialog_autocorrect, exceptions_callback):
      
      	* src/dialogs/autocorrect-exceptions.glade: Set initial focus to
      	text entry field. Make OK the default. Do not show column headers
      	in clist. Remove unnecessary level of scrollwindow.
      
      	* src/dialogs/autocorrect.glade: Make OK the default. Set initial
      	focus to first check button. Define accelerators. Set widgets for
      	"replace text when typed" insensitive until feature is
      	implemented. Do not show column headers in clist.
      
      	* src/dialogs/dialog-autosave.c (dialog_autosave): Make
      	<Ret> in "minutes" fields invoke default.
      6b04ed8c
  24. 21 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      s/gnome_dialog_run(dialog)/gnumeric_dialog_run (workbook, dialog)/g · 914cec6f
      Jody Goldberg authored
      Put a wrapper in place around dialog creation.  This will eventually handle the
      setting of the parent and closing the parent application while a dialog is up.
      
      2000-01-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-printer-setup.c (do_hf_config) : Take a Workbook.
      
      	* src/gnumeric-util.c (gnumeric_dialog_run) : New function.
      	  It is a wrapper for now.  After the release of .48 we will
      	  move the parent setting here.  And handle the case where a
      	  user closes the app window while a dialog is displayed.
      
      	* src/file.c (workbook_import) : Use gnumeric_dialog_run.
      
      	* src/dialogs/dialog-{dialog-zoom.c (dialog_zoom_impl)
      		    summary.c (dialog_summary_update)
      		    solver.c (dialog_solver)
      		    solver.c (constr_add_click)
      		    solver.c (dialog_solver_options)
      		    simple-input.c (dialog_get_number, dialog_get_sheet_name)
      		    printer.c (gnumeric_printer_dialog_run)
      		    paste-special.c (dialog_paste_special)
      		    insert-cells.c (dialog_insert_cells_impl)
      		    goto-cell.c (dialog_goto_cell)
      		    goal-seek.c (dialog_found_solution, dialog_goal_seek)
      		    function-wizard.c (dialog_function_wizard)
      		    delete-cells.c (dialog_delete_cells_impl)
      		    cell-sort.c (dialog_cell_sort)
      		    cell-format.c (fmt_dialog_impl)
      		    cell-comment.c (dialog_cell_comment)
      		    autosave.c (dialog_autosave_callback, dialog_autosave)
      		    autocorrect.c (exceptions_callback)
      		    (dialog_autocorrect)} : Ditto.
      
      	* src/dialogs/dialog-analysis-tools.c
      	(dialog_{correlation_tool, covariance_tool, sampling_tool,
      	 descriptive_stat_tool, ztest_tool, ttest_paired_tool, ttest_eq_tool,
      	 ttest_neq_tool, ftest_tool, random_tool, regression_tool,
      	 average_tool, ranking_tool, anova_single_factor_tool,
      	 anova_two_factor_without_r_tool, data_analysis}) : Ditto.
      
      	* src/workbook.c (workbook_can_close) : Ditto.
      	* src/item-cursor.c (item_cursor_target_region_ok) : Ditto.
      
      	* src/sheet.c (sheet_move_range) : Avoid leaking when we paste.
      	  This information will be used when undo for pasteing a cut
      	  is ready.
      
      	* README : update requirements.
      
      	* plugins/Makefile.am : Do not compile the python plugin by
      	  default.  This will avoid complaints regarding problems with
      	  no dynamic python library until we have a solution.
      
      	* src/functions/fn-stat.c : (gnumeric_kurt, gnumeric_kurtp) : return DIV/0
      	  on error.
      914cec6f
  25. 20 Jan, 2000 1 commit
  26. 13 Jan, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      Killed warnings. · daa982c4
      Jukka-Pekka Iivonen authored
      2000-01-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/workbook.c, src/dialogs/dialog-autosave.c: Killed warnings.
      daa982c4
    • Jukka-Pekka Iivonen's avatar
      Implemented ``Auto Save'' tool. · c6cea719
      Jukka-Pekka Iivonen authored
      2000-01-13  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/dialog-autosave.c: Implemented ``Auto Save'' tool.
      
      	* src/dialogs/autosave.glade: New file.
      
      	* src/dialogs/autosave-prompt.glade: New file.
      
      	* src/workbook.c: Added Autosave tool.
      
      	* src/workbook.h: Added autosave paramters to the Workbook struct.
      
      	* src/dialog-solver: Fixed a constraint delete bug.
      c6cea719