1. 14 Oct, 2002 1 commit
    • Jody Goldberg's avatar
      Add links for Data -> Text To Columns Data -> Import External -> From File · 3ab1a0fb
      Jody Goldberg authored
      
      2002-10-14  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c : Add links for
      	    Data -> Text To Columns
      	    Data -> Import External -> From File
      	Only partially implemented in the last hour, but these are just too
      	easy to pass up.
      
      	* src/stf.c (stf_store_results) : new, split out of.
      	(stf_read_workbook) : here.
      	(cb_get_content) : new utility.
      	(stf_text_to_columns) : new.  Only partially done.
      	  We still need a way to get the target region.
      
      	* src/stf-parse.c (stf_parse_sheet) : take a starting offset for the
      	  output, and return a boolean in place of the sheet that was passed in.
      
      	* src/sheet.c (sheet_queue_respan) : new.
      
      	* src/selection.c (selection_first_range) : start cleanup and take a
      	  CommandContext rather than a Control.
      
      	* src/gui-util.c (gnumeric_notice) : Cheat and access the private
      	  label member to set it to accept markup.
      
      	* src/commands.c (cmd_area_set_text_redo) : a nifty optimization.
      	  Just redraw all and queue respanning for the effected regions.
      
      	* src/GNOME_Gnumeric.xml : Add entries for Text to columns and
      	  External Data -> Import from File
      3ab1a0fb
  2. 18 Aug, 2002 1 commit
    • Zbigniew Chyla's avatar
      New · 2ada9578
      Zbigniew Chyla authored
      
      2002-08-15  Zbigniew Chyla  <cyba@gnome.pl>
      
      	* src/gnumeric-i18n.[ch]: New
      
      	* src/Makefile.am: Added gnumeric-i18n.[ch]
      
      	* src/gutils.[ch]
      	(g_lang_score_in_lang_list, g_lang_score_is_better): Removed
      
      	* src/format-template.h
      	(FormatTemplateCategoryGroup, FormatTemplateCategory): Removed lang_score
      
      	* src/xml-io-autoft.c (gnumeric_xml_read_format_template_category):
      	Don't assign category->lang_score
      
      	* src/file-autoft.c
      	(category_compare_orig_name): Renamed to
      	category_compare_orig_name_and_dir, compare by both name and directory
      	(category_group_list_get): Don't use lang_score, get translation from
      	the first category in a group. Sorting by name and directory guarantees
      	deterministic results
      
      	* plugins/applix/applix-read.c, plugins/derivatives/options.c,
      	plugins/dif/dif.c, plugins/excel/boot.c, plugins/excel/ms-excel-read.c,
      	plugins/excel/ms-excel-write.c, plugins/excel/ms-formula-read.c,
      	plugins/excel/ms-formula-write.c, plugins/fn-complex/functions.c,
      	plugins/fn-complex/gsl-complex.c, plugins/fn-database/functions.c,
      	plugins/fn-date/functions.c, plugins/fn-eng/functions.c,
      	plugins/fn-financial/functions.c, plugins/fn-info/functions.c,
      	plugins/fn-logical/functions.c, plugins/fn-lookup/functions.c,
      	plugins/fn-math/functions.c, plugins/fn-random/functions.c,
      	plugins/fn-stat/functions.c, plugins/fn-string/functions.c
      	plugins/gb/plugin.c, plugins/gda/plugin-gda.c, plugins/guile/plugin.c,
      	plugins/guile/smob-value.c, plugins/html/html_read.c,
      	plugins/html/roff.c, plugins/lotus-123/lotus.c, plugins/mps/mps.c,
      	plugins/mps/parser.c, plugins/numtheory/numtheory.c,
      	plugins/oleo/oleo.c, plugins/plan-perfect/pln.c,
      	plugins/psiconv/psiconv-read.c, plugins/python/python.c,
      	plugins/python-loader/py-gnumeric.c,
      	plugins/python-loader/python-loader.c, plugins/qpro/qpro-read.c,
      	plugins/sample_datasource/sample_datasource.c, plugins/sc/sc.c,
      	plugins/sylk/sylk.c, plugins/uihello/uihello.c, plugins/xbase/boot.c,
      	plugins/xml_sax/xml-sax-read.c, src/bonobo-io.c, src/clipboard.c,
      	src/cmd-edit.c, src/command-context-stderr.c, src/command-context.c,
      	src/commands.c, src/corba-args.c, src/dates.c,
      	src/dialogs/dao-gui-utils.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-col-width.c,
      	src/dialogs/dialog-consolidate.c, src/dialogs/dialog-define-names.c,
      	src/dialogs/dialog-delete-cells.c, src/dialogs/dialog-formula-guru.c,
      	src/dialogs/dialog-function-select.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-merge.c,
      	src/dialogs/dialog-paste-special.c, src/dialogs/dialog-plugin-manager.c,
      	src/dialogs/dialog-preferences.c, src/dialogs/dialog-printer-setup.c,
      	src/dialogs/dialog-random-generator.c, src/dialogs/dialog-row-height.c,
      	src/dialogs/dialog-search-replace.c, src/dialogs/dialog-search.c,
      	src/dialogs/dialog-sheet-order.c, src/dialogs/dialog-simulation.c,
      	src/dialogs/dialog-solver.c, src/dialogs/dialog-stf-export-sheet-page.c,
      	src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-fixed-page.c,
      	src/dialogs/dialog-stf-format-page.c,
      	src/dialogs/dialog-stf-main-page.c, src/dialogs/dialog-stf-preview.c,
      	src/dialogs/dialog-stf.c, src/dialogs/dialog-summary.c,
      	src/dialogs/dialog-tabulate.c, src/dialogs/dialog-workbook-attr.c,
      	src/dialogs/dialog-zoom.c, src/expr-name.c, src/expr.c,
      	src/file.c, src/format-template.c, src/format.c, src/formats.c,
      	src/func-builtin.c, src/func.c, src/gnumeric-canvas.c,
      	src/gnumeric-graph.c, src/gui-clipboard.c, src/gui-file.c,
      	src/gui-util.c, src/history.c, src/hlink.c, src/item-bar.c,
      	src/item-cursor.c, src/item-edit.c, src/libgnumeric.c,
      	src/main-application.c, src/number-match.c, src/parser.y,
      	src/plugin-loader-module.c, src/plugin-loader.c, src/plugin-service.c,
      	src/plugin-util.c, src/plugin.c, src/print-info.c, src/print.c,
      	src/search.c, src/selection.c, src/sheet-autofill.c,
      	src/sheet-control-gui.c, src/sheet-merge.c, src/sheet-object-bonobo.c,
      	src/sheet-object-container.c, src/sheet-object-graphic.c,
      	src/sheet-object-widget.c, src/sheet-object.c, src/sheet-view.c,
      	src/sheet.c, src/stf-parse.c, src/stf-parse.h, src/stf.c, src/style.c,
      	src/tools/analysis-tools.c, src/tools/auto-correct.c, src/tools/dao.c,
      	src/tools/filter.c, src/tools/random-generator.c,
      	src/tools/simulation.c, src/tools/solver/api.c,
      	src/tools/solver/reports-write.c, src/tools/solver/reports.c,
      	src/tools/solver/solver.c, src/validation.c, src/value-sheet.c,
      	src/value.c, src/widgets/gnumeric-expr-entry.c,
      	src/widgets/widget-font-selector.c, src/workbook-cmd-format.c,
      	src/workbook-control-gui.c, src/workbook-control.c, src/workbook-edit.c,
      	src/workbook-format-toolbar.c, src/workbook-object-toolbar.c,
      	src/workbook-view.c, src/workbook.c, src/xml-io.c:
      	Use <gnumeric-i18n.h> everywhere
      2ada9578
  3. 21 Jun, 2002 1 commit
    • Jody Goldberg's avatar
      take a cellpos * · 89274950
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/parse-util.c (parse_cell_name) : take a cellpos *
      
      	* src/func-builtin.c (gnumeric_selection) : dummy out for now until a
      	  different approach is available.
      
      	* src/commands.c : convert to sheetview.
      	  s/parent/cmd/ to make things more readable
      	(cmd_selection_clear) : rename from cmd_clear_selection so that we can
      	  start to group the operations that currently operate on selections.
      	(cmd_selection_format) : rename from cmd_format.
      	(cmd_selection_colrow_hide) : rename from cmd_colrow_hide_selection.
      	(cmd_selection_outline_change) : rename from cmd_colrow_outline_change.
      	(cmd_selection_group) : rename from cmd_group.
      	(cmd_selection_autoformat) : rename from cmd_autoformat.
      	(cmd_colrow_hide_correct_selection) : take a control.
      
      	* src/colrow.c (cb_colrow_visibility) : selections are now part of
      	  sheetview.
      	(colrow_get_visiblity_toggle) : ditto.
      
      	* src/cmd-edit.c (cmd_select_cur_row) : convert to sheetview.
      	(cmd_select_cur_col) : ditto.
      	(cmd_select_cur_array) : ditto.
      	(cmd_select_cur_depends) : ditto.
      	(cmd_select_cur_inputs) : ditto.
      	(cmd_paste_to_selection) : ditto.
      
      	* src/bonobo-io.c (deserialize_wb_from_xml_stream) : pass the wbv into
      	  the context directly.
      	(gnumeric_bonobo_write_workbook) : ditto.
      	(gnumeric_bonobo_read_workbook) : ditto.
      
      	* src/consolidate.c (redraw_respan_and_select) : set selection only
      	  for the calling view.
      	(row_consolidate) : pass in the view.
      	(col_consolidate) : ditto.
      	(colrow_consolidate) : ditto.
      	(consolidate_apply) : Take a control so that we can extract the view.
      
      	* src/commands.c (cmd_consolidate_redo) : Pass the control.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-view.c (sheet_view_init) : init the selection.
      
      	* src/workbook-view.c (workbook_view_new) : init current_sheet_view.
      	(wb_view_format_feedback) : operate on the sheetview.
      	(wb_view_selection_desc) : ditto.
      	(wb_view_edit_line_set) : ditto.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_sheet_add) : Use sheet_get_view.
      	(wb_view_sheet_focus) : ditto.
      	* src/xml-io.c (xml_write_selection_info) : ditto.
      	(xml_read_selection_info): ditto.
      	(xml_workbook_write) : now that the view is in the context don't
      	  bother passing it.
      	(xml_write_wbv_attributes) : ditto.
      	(xml_read_wbv_attributes) : ditto.
      89274950
  4. 13 May, 2002 1 commit
    • Jon Kåre Hellan's avatar
      Call wb_control_paste_from_selection without 'time' parameter. · 8908491b
      Jon Kåre Hellan authored
      * src/cmd-edit.c (cmd_paste): Call wb_control_paste_from_selection
      without 'time' parameter.
      (cmd_paste_to_selection): Call cmd_paste without 'time' parameter.
      
      * src/item-cursor.c (item_cursor_do_action): Remove 'time'
      parameter. Call cmd_paste without 'time' argument.
      (context_menu_hander, item_cursor_do_drop): Call
      item_cursor_do_action without 'time' argument.
      
      * src/gui-clipboard.c
      (x_clipboard_to_cell_region): Renamed from
      x_selection_to_cell_region.
      (x_clipboard_received): Renamed from
      x_selection_received. 'widget' parameter replaced with
      'clipboard', and 'time' parameter dropped. Call
      gtk_clipboard_request_contents instead of gtk_selection_convert.
      (x_clipboard_get_cb): Renamed from x_selection_handler. 'widget'
      parameter replaced with 'clipboard', and 'time' parameter dropped.
      Don't trust 'info' parameter. Gtk bug?
      (x_clipboard_clear_cb): New function. Replaces x_selection_clear,
      but even simpler.
      (x_request_clipboard): Call gtk_clipboard_request_contents instead
      of gtk_selection_convert.
      
      * src/workbook-control.[ch], src/workbook-control-priv.h: Remove
      'time' parameter from paste_from_selection method.
      
      * src/workbook-control-component.c (wbcc_claim_selection): Remove.
      (workbook_control_component_ctor_class): Inherit claim_selection
      from superclass.
      
      * src/workbook-control-gui.c (wbcg_paste_from_selection): Remove
      'time' parameter and call x_request_clipboard without 'time'
      parameter.
      (wbcg_claim_selection): Replace old implementation with call to
      new function x_claim_clipboard.
      (workbook_control_gui_init): Remove call to
      x_clipboard_bind_workbook.
      8908491b
  5. 22 Mar, 2002 2 commits
    • Jody Goldberg's avatar
      suppress warning. (solver_performance_report) : fix typo. · 680c2888
      Jody Goldberg authored
      2002-03-22  Jody Goldberg <jody@gnome.org>
      
      	* reports-write.c (solver_program_report) : suppress warning.
      	(solver_performance_report) : fix typo.
      
      2002-03-21  Jody Goldberg <jody@gnome.org>
      
      	* Massive rename
      	eval.[ch] -> dependent.[ch]
      680c2888
    • Jody Goldberg's avatar
      Massive rename ExprTree -> GnmExpr · 0ac8fbbf
      Jody Goldberg authored
      
      2002-03-21  Jody Goldberg <jody@gnome.org>
      
      	* Massive rename
      	ExprTree -> GnmExpr
      
      	* src/print-info.c (load_formats) : suppress some warnings.
      
      	* src/func.c (function_def_call_with_values) : use g_alloca.
      0ac8fbbf
  6. 29 Dec, 2001 1 commit
    • Jody Goldberg's avatar
      fence post error. · fdb6d9c8
      Jody Goldberg authored
      2001-12-28  Jody Goldberg <jody@gnome.org>
      
      	* src/cmd-edit.c (cmd_select_cur_array) : fence post error.
      fdb6d9c8
  7. 21 Dec, 2001 1 commit
  8. 22 Nov, 2001 1 commit
  9. 03 Nov, 2001 1 commit
    • Jody Goldberg's avatar
      support cancel. · 6b808aa4
      Jody Goldberg authored
      2001-11-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-bonobo.c (open_cb) : support cancel.
      
      	* src/item-grid.c (item_grid_draw_merged_range) : honour the selection
      	  of objects.
      
      	* src/workbook-control-gui.c (cb_edit_select_all) : Use
      	  scg_select_all.
      
      	* src/sheet-control-gui.c (scg_select_all) : Make public.
      6b808aa4
  10. 02 Sep, 2001 1 commit
    • Jody Goldberg's avatar
      For Wayne Schuller <k_wayne@linuxpower.org> · bb833c86
      Jody Goldberg authored
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      	For Wayne Schuller <k_wayne@linuxpower.org>
      
      	* src/pattern.c (gnumeric_background_set_pc) : Support gray scale
      	  patterns when printing.
      
      2001-09-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style-condition.c (style_condition_eval) : Use dependent_eval
      	  and add an invariant that ensures that val is only NULL if we have
      	  been queued for recalc.
      
      	* src/eval.c (dependent_eval) : split from workbook_recalc.
      	(cell_eval) : change return type.  no one was using it.
      	(dependent_needs_recalc) : new macro.
      bb833c86
  11. 30 Aug, 2001 2 commits
    • Morten Welinder's avatar
      New macro. (WORKBOOK_FOREACH_DEPENDENT): Re-factor. (Workbook): Move · 52f2f380
      Morten Welinder authored
      2001-08-30  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook.h (WORKBOOK_FOREACH_SHEET): New macro.
      	(WORKBOOK_FOREACH_DEPENDENT): Re-factor.
      	(Workbook): Move dependents to DependencyContainer, see below.
      	Introduce new external_dependents, not yet used.
      
      	* src/sheet.h (SHEET_FOREACH_DEPENDENT): New macro.
      
      	* src/eval.h: (DependencyContainer): type moved from eval.c and
       	renamed from DependencyData.  Add dependent_list member which used
       	to be in Workbook.
      	(DEPENDENT_IS_CELL): New macro.  Put into used lots of places.
      	(DEPENDENT_CONTAINER_FOREACH_DEPENDENT): New macro.
      
      	* src/eval.c (cb_dependent_queue_recalc): Allocate single list
       	element on stack, not heap.
      	(dependent_queue_recalc_list): Don't essentailly copy all lists.
      	(UNLINK_DEP): Take only dep arguement and find the container from
       	that.
      52f2f380
    • Morten Welinder's avatar
      Avoid listifying. (cb_dependent_queue_recalc, cell_queue_recalc): Recast · 12a001cb
      Morten Welinder authored
      2001-08-29  Morten Welinder  <terra@diku.dk>
      
      	* src/eval.c (workbook_queue_all_recalc): Avoid listifying.
      	(cb_dependent_queue_recalc, cell_queue_recalc): Recast in terms of
       	dependent_queue_recalc_list.
      	(dependent_queue_recalc_list): Eliminate recursion which used to
       	be unbounded deep.
      
      	* src/eval.h (struct _Dependent): Name next to next_dep and prev
       	to prev_dep.  (Because we might need a similar list for evaluation
       	at some point.)
      
      	(DEPENDENT_TYPE): New macro type hide most uses of the ugly
       	DEPENDENT_TYPE_MASK.  All such uses fixed.
      12a001cb
  12. 24 Aug, 2001 1 commit
    • 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
  13. 05 Jul, 2001 1 commit
    • Jody Goldberg's avatar
      Initial support for frozen panes. · 99073bd9
      Jody Goldberg authored
      2001-07-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-merge.c (sheet_merge_add) : Use sheet_redraw_range.
      
      	* src/sheet-control.c (sc_set_panes) : new virtual.
      	(sc_set_sheet) : renamed from sc_invalidate_sheet.
      
      	* src/sheet-control-gui.c (scg_primary_pane) : new function. Be very
      	  careful when using this.  It should not be necessary in most cases.
      	(scg_get_wbcg) : convenience routine.
      	(scg_redraw_all) : frozen panes.
      	(scg_redraw_region) : renamed from scg_redraw_cell_region, and frozen
      	  pane support.
      	(scg_redraw_headers) : merge in the code from gnumeric-sheet.
      	(scg_update_cursor_pos) : pane support.
      	(scg_resize) : ditto.
      	(scg_set_zoom_factor) : ditto.  Broken. needs to resize the panes.
      	(scg_scrollbar_config) : adjust to panes.
      	(scg_make_edit_pos_visible) : use scg_make_cell_visible.
      	(scg_colrow_select) : reorg a bit.
      	(vertical_scroll_offset_changed) : adjust to panes.
      	(horizontal_scroll_offset_changed) : ditto.
      	(cb_table_destroy) : ditto.
      	(scg_init) : init the top here.
      	(bar_set_left_col) : from gnumeric-sheet. Still needs work for panes.
      	(bar_set_top_row) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_set_top_row) : ditto.
      	(scg_set_left_col) : TODO.
      	(scg_set_top_row) : ditto.
      	(gnumeric_sheet_set_top_left) : new function split from.
      	(gnumeric_sheet_make_cell_visible) : here.
      	(scg_make_cell_visible) : adjsut to panes and do the real work here.
      	(scg_make_cell_visible_virt : wrapper for use as virtual.
      	(gnumeric_pane_new) : new function.
      	(gnumeric_pane_delete) : ditto.
      	(scg_set_panes) : ditto.
      	(scg_construct) : move the table attachments around and move the
      	  canvas groups into the panes.
      	(sheet_control_gui_new) : beef this up.
      	(scg_unant) : adjust to panes.
      	(scg_ant) : ditto.
      	(scg_cursor_visible) : ditto.
      	(scg_cursor_bound) : ditto.
      	(scg_adjust_preferences) : ditto.
      	(scg_compute_visible_region) : ditto.
      	(scg_create_editor) : ditto.
      	(scg_stop_editing) : ditto.
      	(scg_take_focus) : ditto.
      	(scg_sliding_callback) : adjust top panes, but is still much too
      	  stupid.
      	(scg_start_sliding) : ditto.
      	(cb_slide_handler) : ditto.
      	(cb_control_point_event) : ditto.
      	(new_control_point) : ditto.
      	(set_item_x_y) : ditto.
      	(set_acetate_coords) : ditto.
      	(scg_object_calc_position) : ditto.
      	(scg_object_view_position) : ditto.
      	(scg_rangesel_changed) : ditto.
      	(scg_rangesel_start) : ditto.
      	(scg_rangesel_stop) : ditto.
      	(scg_rangesel_move) : ditto.
      	(scg_rangesel_extend) : ditto.
      
      	* src/item-grid.c (sheet_object_begin_creation) : Use the group
      	  associated with the gsheet, not the scg, and use GNUMERIC_IS_SHEET
      	  in preference to != NULL.
      
      	* src/item-bar.c : Store the gnumeric-sheet rather than the scg so
      	  that we can get to the Pane.
      
      	* src/embeddable-grid.c (grid_view_activate) : Use scg_take_focus.
      	(grid_view_new) : Use sheet_control_gui_new in place of sheet_new_scg.
      
      	* convert to E_MAKE_TYPE
      	* Use IS_SHEET in preference to sheet != NULL
      	* sheet_range_calc_spans signature change
      
      	* src/clipboard.c (clipboard_paste_region) : special handling when
      	  pasting into a selection that consists of a single merged cell.
      
      	* src/application.c (application_set_selected_sheet) : Use IS_SHEET.
      	(application_clipboard_copy) : ditto.
      	(application_clipboard_cut) : ditto.
      
      	* src/Makefile.am :
      	    command-context-corba -> workbook-control-corba
      
      	* src/sheet.c : convert to using IS_SHEET in place of sheet != NULL in
      	  several places.
      	(sheet_is_frozen) : new function.
      	(sheet_freeze_panes) : implement.
      	(sheet_new) : init frozen pane data.
      	(sheet_range_calc_spans) : pass a pointer rather than copy of the range.
      	  and use sheet_redraw_range.
      	(sheet_apply_style) : use sheet_redraw_range.
      	(cb_sheet_get_extent) : premature optimization is evil.
      	(sheet_redraw_region) : rename from sheet_redraw_cell_region.
      	(sheet_set_edit_pos) : use sheet_redraw_range.
      	(sheet_move_range) : ditto.
      	(sheet_init_sc) : new routine.
      	(sheet_attach_control) : rename and task from sheet_new_scg.
      	(sheet_redraw_region) : renamed from sheet_redraw_cell_region.
      
      	* src/item-cursor.c (item_cursor_update) : increase the spacing for
      	  the autohandle.
      
      	* src/GNOME_Gnumeric.xml :
      	  - Use Control*colon and Control*semicolon
      	  - desensitize the graph guru for now.
      	  - Add freeze/thaw
      
      	* src/item-bar.c (item_bar_unrealize) : no need to double unref the
      	  fonts.
      
      	* src/print-cell.c (print_merged_range) : This is not being drawn on
      	  the screen, no need for all the fancy calcs to only draw the visible
      	  bits.  We will just clip it.
      	* src/print-cell.c (print_cell) : Use the calulated width, not the col
      	  width for splitting.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Use the scg_
      	  versions of things in preference to the gnumeric_sheet_ versions.
      	(gnumeric_sheet_new) : Store the Pane that this is associated with.
      	(gnumeric_sheet_bar_set_top_row) : moved to sheet-control-gui.c
      	(gnumeric_sheet_set_top_row) : ditto.
      	(gnumeric_sheet_bar_set_left_col) : ditto.
      	(gnumeric_sheet_set_left_col) : ditto.
      	(gnumeric_sheet_make_cell_visible) : ditto.
      	(gsheet_compute_visible_region) : handle panes.
      99073bd9
  14. 03 Jun, 2001 1 commit
    • Almer S. Tigelaar's avatar
      New, converts a row number to a string. (rows_name): Idem, but for a · 77cadcab
      Almer S. Tigelaar authored
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* src/parse-util.[ch] (row_name): New, converts
       	a row number to a string.
       	(rows_name): Idem, but for a start/end range.
       	(row_name_internal): Utility routine.
      
       	* src/colrow.c (colrow_string_build): Remove.
       	(colrow_index_list_to_string): Use rows_name
       	and cols_name.
      
       	* src/cmd-edit.c (cmd_shift_rows): Use rows_name.
      
       	* src/commands.c (cmd_insert_rows): Idem.
       	(cmd_delete_cols): Beautify.
       	(cmd_delete_rows): Beautify and use rows_name.
      
       	* src/eval.c (dump_range_dep): Use row_name.
      
       	* src/item-bar.c (get_row_name): Deprecated, remove.
       	(item_bar_draw): Use row_name.
      
       	* src/item-cursor.c (item_cursor_tip_setlabel): Idem.
      
       	* src/item-grid.c (item_grid_draw): Idem.
      
       	* src/ranges.c (range_name): Idem.
       	(range_dump): Idem.
      
       	* src/selection.c (reference_append): Idem.
       	(selection_get_ranges): Idem.
       	(cb_range_to_string): Idem.
      
       	* src/sheet-control-gui.c (scg_redraw_cell_region): Idem.
       	(vertical_scroll_offset_changed): Idem.
      
       	* src/value-sheet.c (value_dump): Idem.
       	(encode_cellref): Idem.
      
      2001-06-03  Almer S. Tigelaar  <almer@gnome.org>
      
       	* dialog-cell-sort.c (col_row_name):
       	Use row_name.
      77cadcab
  15. 24 May, 2001 1 commit
    • Jody Goldberg's avatar
      Revamp the recalc queue · af206304
      Jody Goldberg authored
      2001-05-22  Jody Goldberg <jgoldberg@home.com>
      
      	* gnumeric.spec.in : bump version of libole2
      	* README : ditto.
      	* configure.in : ditto.
      
      2001-05-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_is_pristine) : no need to check the recalc
      	  queue.  If there are no dependents there is nothing to put on the
      	  eval queue.
      
      	* src/func.c (cb_iterate_cellrange) : rename from
      	  iterate_cellrange_callback remove 'generation' mechanism.
      
      	* src/cell.c (cell_cleanout) : Clear both recalc flags,
      	  in_queue and needs
      	(cell_copy) : ditto.
      	(cell_eval_content) : No need to render the value.  assign_value
      	  already does it.
      	(cell_content_changed) : deleted.
      
      	* src/Makefile.am : merge dependent.[ch] into eval.[ch]
      
      2001-05-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/eval.c : reorg and merged with dependent.[ch]
      
      	* src/sheet.c (sheet_cell_set_text) :
      	  s/cell_content_changed/cell_queue_recalc/
      	(sheet_cell_set_expr) : ditto.
      	(sheet_cell_set_value) : ditto.
      	(colrow_move) : ditto.
      	(sheet_destroy_contents) :
      	  s/dependent_unqueue_recalc_sheet/dependent_unqueue_sheet/
      
      	* src/cmd-edit.c (cmd_select_cur_row) : Make behavior match XL.
      	(cmd_select_cur_col) : Make behavior match XL.
      
      	* src/format.c (render_number) : avoid temporaries.
      	(do_render_number) : ditto.
      
      2001-05-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (eval_range) : delete.
      	(eval_expr_real) : Use workbook_foreach_cell_in_range rather than
      	  range_eval.  Remove 'generation' mechanism.
      	(cb_range_eval) : a simple pass through
      
      	* src/eval.c (sheet_region_recalc_deps) : rename from
      	  sheet_recalc_dependencies and merge in sheet_region_get_deps.
      	  Use the new foreach style interfaces.
      	(cb_single_recalc_all_depends) : rename from cb_single_get_all_depends
      	  and simplify.
      	(cb_range_recalc_all_depends) : rename from cb_sheet_get_all_depends and simplify.
      	(cb_dependent_queue_recalc) : new wrapper.
      	(cb_region_contained_depend) : renamed from search_range_deps and simplify.
      	(cell_foreach_dep) : rename from cell_get_dependencies and switch to
      	  an in place api rather than creating a list.
      	(cell_foreach_single_dep) : switch to in place api
      	(cell_foreach_range_dep) : ditto.
      	(search_cell_deps) : ditto.
      	(cell_recalc_deps) : ditto.
      	(cell_eval) : ditto.
      	(cb_generation_queue) : new utility.
      
      	* src/dependent.c (dependent_list_filter) : delete.
      
      	* src/cmd-edit.c (cb_collect_deps) : new function split from.
      	(cmd_select_cur_depends) : here. So that we can use the new depend
      	  api.
      
      	* src/sheet.c (sheet_move_range) : use sheet_region_recalc_deps.
      	(sheet_{insert,delete}_{cols,rows}) : ditto.
      	(sheet_cell_remove_simple) : Use in place depend interface.
      
      	* src/cell.c (cell_content_changed) : Use in place depend interface.
      	* src/clipboard.c (clipboard_paste_region) : ditto.
      	* src/commands.c (cmd_area_set_text_redo) : ditto.
      	(cmd_autofill_redo) : ditto.
      
      2001-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* Makefile.am : remove gnorba and modernize a bit.
      af206304
  16. 10 May, 2001 1 commit
    • Jody Goldberg's avatar
      typo. · d50fba6d
      Jody Goldberg authored
      
      2001-05-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (cb_move_cursor) : typo.
      
      	* src/cmd-edit.c (cmd_shift_cols) : correct bound if shifting right.
      	(cmd_shift_rows) : correct bound if shifting down.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : If the
      	  first == last then it is likely we are uninitialized and we can
      	  start the search from the first the target may be contained in the
      	  current region without scrolling.
      
      	* src/sheet-control-gui.c (scg_construct) : resize is now called when
      	  attached and the zoom scg_set_zoom_factor is set.
      	(scg_set_zoom_factor) : resize.
      
      	* src/workbook-control.c (workbook_control_init_state) : cut-n-paste-o.
      d50fba6d
  17. 04 May, 2001 1 commit
    • Jody Goldberg's avatar
      s/clipboard_release/cellregion_free/ s/range_copy/range_dup/ · 32bde6ee
      Jody Goldberg authored
      
      2001-05-04  Jody Goldberg <jgoldberg@home.com>
      
      	s/clipboard_release/cellregion_free/
      	s/range_copy/range_dup/
      	s/cell_region_render_ascii/cellregion_to_string/
      	s/clipboard_release/cellregion_free/
      
      	* src/commands.c (cmd_autofill) : Use sheet_range_contains_region.
      	(cmd_autofill_redo) : no need to test here.
      	(cmd_paste_cut) : test destination for validity and ensure that it
      	  does not slice up any merged regions or arrays.  Make the descriptor
      	  an argument so that other commands can use this one.
      	(cmd_ins_del_colrow_redo) : use colrow_max.
      	(cmd_area_set_text_redo) : use sheet_ranges_split_region.
      	(cmd_colrow_outline_change) : suppress warning.
      
      	* src/gui-clipboard.c (x_selection_to_cell_region) : simplify by using
      	  some of the convenience routines.
      
      	* src/gutils.c (gnumeric_sys_data_dir) : warning suppression.
      	(gnumeric_sys_lib_dir) : ditto.
      
      	* src/item-bar.c (item_bar_draw) : add missing warning.
      
      	* src/item-cursor.c (item_cursor_drag_event) : Don't assume the
      	  release came from the button that started the grab (think about
      	  multiple simultaneous button downs.
      	(item_cursor_selection_event) : ditto.
      	(item_cursor_do_drop) : changes to selection_first_range.
      
      	* src/parse-util.c (col_name_internal) : new routine split from
      	  col_name with better buffer handling.
      	(col_name) : used here.
      	(cols_name) : and in this new function.
      
      	* src/print.c (sheet_print_selection) : changes to
      	  selection_first_range.
      
      	* src/print-info.c (print_info_new) : default even_if_only_styles to
      	  false.  This is probably what most people want.
      
      	* src/ranges.c (range_translate) : don't invert.
      	(range_height) : new util.  could probably be #define.
      	(range_width) : new util.  could probably be #define.
      	(range_is_infinite) : use range_is_full.
      	(range_is_full) : new util.
      
      	* src/search.c (calculate_replacement) : warning suppression.
      
      	* src/selection.c (sheet_selection_cut) : Use
      	  sheet_range_splits_region and selection_first_range.
      	(sheet_selection_copy) : Use selection_first_range and remove TODO
      	  about supporting not paste by content for partial arrays.
      	(selection_first_range) : Add optional error reporting if there are
      	  multiple selection ranges.
      
      	* src/format.c (format_get_currency) : diddle the logic to get
      	  undefined to work the way people expect for locale C.
      
      	* src/sheet-merge.c (sheet_merge_relocate) : remove some dead code.
      	(sheet_merge_add) : changes to sheet_range_splits_array.
      
      	* src/sheet-object-widget.c (sheet_widget_checkbox_construct) :
      	  changes to selection_first_range.
      
      	* src/sheet.c (sheet_delete_{cols,rows}) : changes to
      	  sheet_range_splits_array.
      	(sheet_insert_{cols,rows}) : use sheet_range_splits_array.
      	(avoid_dividing_array_vertical) : delete.
      	(avoid_dividing_array_horizontal) : delete.
      	(sheet_is_pristine) : constness.
      	(sheet_mark_clean) : delete.
      	(sheet_clear_region) : changes to sheet_range_splits_array.
      	(sheet_ranges_split_region) : renamed from selection_check_for_array.
      	(sheet_range_splits_region) : new routine to check arrays and merged
      	  regions.
      	(sheet_range_splits_array) : improve and add hooks to be used for
      	  overlapping checks.
      	(cb_check_array_vertical) : report the array being split.
      	(cb_check_array_horizontal) : report the array being split.
      
      	* src/stf-parse.c (stf_parse_region) : use cellregion_new.
      	(stf_parse_is_valid_data) : simplify.
      
      	* src/value-sheet.c (value_area_get_width) : warning suppression.
      	(value_area_get_height) : warning suppression.
      	(value_area_fetch_x_y : signedness.
      	(value_area_get_x_y) : signedness.
      
      	* src/value.c (value_array_resize) : signedness.
      	(value_array_set) : signedness.
      
      	* src/workbook-control-gui.c (wbcg_error_splits_array) : signature
      	  change.
      	(cb_insert_rows) : use selection_first_range
      	(cb_insert_cols) : ditto.
      	(sort_cmd) : ditto.
      	(cb_workbook_debug_info) : clean out some deadwood.
      
      	* src/workbook-edit.c (auto_complete_matches) : warning suppression.
      
      	* src/workbook.c (workbook_sheet_detach) : warning suppression.
      	(g_ptr_array_insert) : warning suppression, moved to gutils.
      
      	* src/xml-io.c (xml_write_attributes) : warning suppression.
      	(xml_read_selection_clipboard) : use cellregion_new and tidyup.
      
      	* src/clipboard.c (paste_link) : Only make the link sheet specific if
      	  we need to.
      	(clipboard_paste_region) : constness, support being able to paste
      	  content only as link or value.
      	(clipboard_prepend_cell) : check for arrays.
      	(clipboard_copy_range) : use cellregion_new
      	(cellregion_new) : new function
      	(cellregion_free) : renamed from clipboard_release.
      	(cellregion_to_string) : moved here from render-ascii.
      
      	src/cmd-edit.c (cmd_paste) : more protection. Merge in
      	  application_paste.
      	(cmd_paste_to_selection) : handle changes to selection_is_simple and
      	  use selection_first_range
      	(cmd_shift_rows) : changes to cmd_paste_cut.
      	(cmd_shift_cols) : ditto.
      
      	* src/command-context-priv.h : change signature of splits array.
      	* src/command-context.h : ditto.
      	* src/command-context.c (gnumeric_error_splits_array) : ditto.
      
      	* src/application.c (application_clipboard_clear) :
      	(application_set_selected_sheet) : remove #warning, it is not portable.
      
      	* src/commands.c
      	* src/Makefile.am : remove render-ascii.[ch]  Move their content into
      	  clipboard.
      
      2001-05-01  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (clipboard_prepend_cell) : remove ugly
      	  implementation.
      
      	* src/workbook-edit.c (auto_complete_matches) : remove warning.
      
      	* src/xml-io.c (xml_write_attributes) : remove warning.
      32bde6ee
  18. 29 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Rename to sheet_selection_reset. · 2862b796
      Almer S. Tigelaar authored
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* src/selection.c, src/selection.h:
      	(sheet_selection_reset_only): Rename to sheet_selection_reset.
      
      	* src/cmd-edit.c: s/sheet_selection_reset_only/sheet_selection_reset.
      	* src/commands.c: Ditto.
      	* src/gnumeric-sheet.c: Ditto.
      	* src/item-grid.c: Ditto.
      	* src/sheet.c: Ditto.
      	* src/sheet-control-gui.c: Ditto.
      	* src/xml-io.c: Ditto.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* ms-excel-read.c (ms_excel_read_selection):
      	Rename sheet_selection_reset_only to sheet_selection_reset.
      
      2001-01-30  Almer S. Tigelaar  <almer1@dds.nl>
      
      	* xml2.c
      	(xml2ParseSelection): Rename sheet_selection_reset_only
      	to sheet_selection_reset.
      2862b796
  19. 25 Jan, 2001 1 commit
    • Jody Goldberg's avatar
      Merged Cells are now complete. · 0426031a
      Jody Goldberg authored
      Please beat the crap out of them
      
      2001-01-25  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.c (cmd_paste_to_selection) : allow merged regions
      
      	* src/clipboard.c (clipboard_paste_region) : Optionally paste merged
      	  regions too.
      
      	* src/style-border.c (style_border_fetch) : add margins.
      0426031a
  20. 20 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Make test for simplicity smarter. · 2862c5d8
      Jody Goldberg authored
      2000-12-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Handle merged cells and
      	  arrays.
      
      	* src/sheet.c (sheet_relocate_merged) : new function.
      
      	* src/sheet-object.c (sheet_relocate_objects) : we only need to move
      	  objects in the origin zone.
      2862c5d8
  21. 17 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      support merged cells. (sheet_find_boundary_vertical) : ditto. · 17579c92
      Jody Goldberg authored
      
      2000-12-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_find_boundary_horizontal) : support merged cells.
      	(sheet_find_boundary_vertical) : ditto.
      	(sheet_set_edit_pos) : Add edit_pos vs edit_pos_real to improve merged
      	  cell support.
      	(sheet_region_get_merged_cell) : new function.
      
      	* src/gnumeric-sheet.c (move_cursor_horizontal) : Use edit_pos_real to
      	  improve handling for merged cells.
      	(move_cursor_vertical) : Ditto.
      	(start_cell_selection) : Ditto.
      
      2000-12-16  Jody Goldberg <jgoldberg@home.com>
      
      	s/Sheet::cursor::edit_pos/Sheet::edit_pos/
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_new) : No need to pass in the
      	  col/row items.  They are available from the sheet control.
      
      	* src/sheet-control-gui.c (sheet_view_construct) : signature change to
      	  gnumeric_sheet_new.
      17579c92
  22. 15 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Remove trailing white-space from files that have it. · 5570aef3
      Morten Welinder authored
      (The following command was done in src/ and plugins/.  Note, that the
      grep has a space and a tab.)
      
      for i in `find . -name '*.[ch]' -print`; do if grep '[         ]$' $i >/dev/null; then echo $i; perl -pi -e 's/[ \t]+$//' $i; fi; done
      5570aef3
  23. 01 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      bug 30243 · 87cfd6cb
      Jody Goldberg authored
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.c (cmd_paste) : change the selection when pasting.
      	(cmd_shift_{rows,cols}) : Do not change the selection when pasting.
      
      	* src/commands.c (cmd_paste_cut_{undo,redo}) : Only select the target
      	  if requested.
      	(cmd_paste_cut) : new argument.
      87cfd6cb
  24. 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
  25. 25 Sep, 2000 1 commit
  26. 11 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      The initial version of active objects. · ccdc4a78
      Jody Goldberg authored
      2000-09-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_read_sheet_object) : objects have their positions
      	  set after creation, not before.
      	NOTE : This routine is incomplete.  It does not handle all of the
      	  objects.  It is questionable whether or not it even belongs here.
      	  We may want to encapsulate the persistence on a per object basis.
      	(xml_sheet_read) : localize and improve variable naming.
      
      	* src/workbook.c : Add an ifdef around the GnomeUI handler in bonobo
      	  mode.  Move the object creation cruft into its own file.
      	(select_component_id) : new function.
      	(create_embedded_component_cmd) : simplify.
      	(create_embedded_item_cmd) : simplify.
      	(create_button_cmd) : Delete.
      	(create_checkbox_cmd) : Delete.
      	(create_line_cmd) : Delete.
      	(create_arrow_cmd) : Delete.
      	(create_rectangle_cmd) : delete.
      	(create_ellipse_cmd) : delete.
      	(cut_cmd) : simplify object handling.
      	(insert_object_cmd) : Use sheet_object_bonobo_new_from_oid.
      	(do_focus_sheet) : Handle object toolbar too.
      	(workbook_detach_sheet) : Before messing with the views go back to
      	  simple edit mode.
      
      	* src/workbook-object-toolbar.c (create_object_command) : new
      	  function.
      	(cmd_create_*) : Use here.
      
      	* src/workbook-edit.c (workbook_edit_set_sensitive) : Add the object
      	  toolbar.
      
      	* src/sheet-object.c (sheet_release_coords) : delete.
      	(sheet_object_destroy) : simplify.
      	(SheetObject::end_popup) : remove.
      	(SheetObject::populate_menu) : rename from start_popup.
      	(SheetObject::new_view) : rename from realize.
      	(SheetObject::user_config) : New virtual.
      	(sheet_object_construct) : initialize dragging to FALSE.
      	  s/Sheet::objects/Sheet::sheet_objects/
      	(sheet_object_drop_file) : Moved.
      	(sheet_object_realize) : No need for SheetView::temp_item.
      	(button_widget_create) : delete.
      	(checkbox_widget_create) : delete.
      	(sheet_object_create_button) : delete.
      	(sheet_object_create_checkbox) : delete.
      	(create_object) : delete.
      	(cb_obj_create_motion) : rename from sheet_motion_notify.  Simplify.
      	  Rubber band a rectangle rather than the actual object.
      	  Keep track of whether or not a we have resized larger than the
      	  minimum 5x5 size.
      	(cb_obj_create_button_release) : rename from sheet_button_release.
      	  Change behavior to have the release do the realizing and bound
      	  setting.  Set the bounds to the current coord ONLY if we have moved
      	  enough, otherwise just use the default size of the object tranformed
      	  to the location of the original button press.
      	(shutdown_sheet_object_creation) : merge into button release.
      	(sheet_leave_notify) : Delete.
      	(sheet_button_press) : Delete.
      	(sheet_object_begin_creation) : Delete.
      	(sheet_finish_object_creation) : merge into button release and clear
      	  out all the cruft requiring removal of signals.
      	(sheet_mode_clear) : new function.  Does some object management.
      	(sheet_set_mode_type) : delete.
      	(sheet_set_mode_type_full) : delete content.  Split logical action into.
      	(sheet_mode_edit) : here.
      	(sheet_mode_edit_object) : here.
      	(sheet_mode_create_object) : and here.
      	(sheet_object_destroy_control_points) : be more pedantic a about
      	  checking that we have a valid view.
      	(sheet_object_stop_editing) : Adjust for new object editing semantics.
      	(set_item_x) : Merge this
      	(set_item_y) : and this.
      	(set_item_x_y) : into here.  And add the logic to call
      	  new_control_point.
      	(new_control_point) : Set the cursor here.
      	(update_bbox) : Recall that the bounding box excludes the far coords.
      	(control_point_handle_event) : No need to make object the current, if
      	  we are being called we are current.
      	(sheet_object_populate_menu) : rename from sheet_object_start_popup.
      	(sheet_object_end_popup) : delete.
      	(sheet_object_canvas_event) : adjust to function renaming.
      	(sheet_object_widget_event) : delete.
      	(sheet_object_widget_handle) : delete.
      	(sheet_object_start_editing) : delete, no need.  update_bbox does all
      	  of this.
      	(sheet_object_make_current) : delete.
      	(sheet_object_insert) : this was not what its name suggested.  It was
      	  a rather specialized bonobo utility.  Move it where it belongs.
      
      	* src/sheet-object-widget.c : Rewrite.
      
      	* src/sheet-object-item.c (sheet_object_item_new_view) : rename from
      	  sheet_object_item_realize.
      
      	* src/sheet-object-graphic.c (sheet_object_graphic_new_view) :
      	  rename from sheet_object_graphic_realize.
      	(sheet_object_filled_new_view) : renamed from sheet_object_filled_realize.
      	(sheet_object_create_line) : No need to take position, do that later.
      	(sheet_object_create_filled) : Ditto.
      
      	* src/sheet-object-container.c (user_activation_request_cb) : Adjust
      	  to changes in sheet mode handling.
      	(sheet_object_container_new_view) : rename from sheet_object_container_realize.
      	(sheet_object_container_new_bonobo) : No need to take pos info, that
      	  is set later.
      	(sheet_object_container_new_object) : Ditto.
      	(sheet_object_container_new_file) : Moved and renamed from sheet_object_drop_file.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : No need
      	  to take position info.  Bounds are set later.
      	(sheet_object_bonobo_new_from_oid) : Move from sheet_object_insert
      	  which was much to generic a name and location for this.
      
      	* src/print.c (print_sheet_range) : Adjust to rename of the
      	  sheet_object list.
      
      	* src/pixmaps.h : Remove the pixmaps that moved to the object toolbar.
      
      	* src/item-grid.c (item_grid_button_1) : Handle object creation and
      	  finishing object editing directly, no more need for adding and
      	  removing handlers.  Adjust arg to be a Button event.
      	(item_grid_event) : Add a new cursor for object creation.
      	(item_grid_event) : Do not change to edit mode until we know why the
      	  button was pressed.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) :
      	  s/sheet_set_mode_type/sheet_mode_edit/
      	(gnumeric_sheet_key_press) : Adjust to new mode scheme.
      	(gnumeric_sheet_key_release) : Ditto.
      	(gnumeric_sheet_filenames_dropped) : Ditto.
      
      	* src/gnumeric.h : Add fwd decl of SheetObject.
      
      	* src/gnumeric-sheet.h : delete GnumericSheet::mode .
      
      	* src/gnumeric-type-util.h : Rename GNUMERIC_MAKE_TYPE_WITH_PARENT
      	  to GNUMERIC_MAKE_TYPE_WITH_CLASS.  That makes more sense.
      
      	* src/eval.c (invalidate_refs) : Use dependent_set_expr.
      	(cell_eval) : New need to check generation If we are called we are out
      	  of date.
      
      	* src/dependent.c (dependent_eval) : moved from eval.c.
      	(dependent_type_register) : New routine.
      	(dependent_set_expr) ; Ditto.
      	(dependent_debug_name) : Use the new registry.
      
      	* src/dependent.h : Reorder flags, remove explicit types for graphs
      	  and checkboxes.  Those are handled by the virtual table.
      
      	* src/commands.c : s/PARENT/CLASS/
      
      	* src/cell.h : Reorder the CellFlags.
      
      	* src/bonobo-io.c (gnumeric_bonobo_obj_read) : Do not pass the
      	  position to sheet_object_containter_new_object.
      
      	* src/Makefile.am : Add workbook-object-toolbar.[ch]
      	  and graph-series.[ch]
      	  merge the libraries from the two idl files.
      
      2000-09-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_construct) : Init control points to NULL.
      	(SheetView::temp_item) : remove this.
      
      	* src/sheet.c (sheet_new) : Init the members associated with objects.
      	(sheet_destroy) : Destroy objects.
      	(Sheet::mode) : remove.
      
      	* src/gnumeric.xml : Add a label for the selection menu.
      
      	* src/sheet-object-container.c (sheet_object_container_realize) :
      	  Fix warning.
      
      2000-09-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (colrow_tip_setlabel) : mark the size tooltips as
      	  containing pts.
      	* src/dialogs/row-height.glade :
      	* src/dialogs/col-width.glade : Ditto.
      ccdc4a78
  27. 06 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Remainder of patch to handle non-cell dependents. · 01a95234
      Jody Goldberg authored
      2000-09-05  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add test for pspell.
      	* acconfig.h : Ditto.
      
      	* s/cell.u.expression/cell.base.expression/
      	* s/cell.generation/cell.base.generation/
      	* s/cell.u.entered_text/cell.entered_text/  <- deprecated
      	* s/workbook.formula_cell_list/workbook.dependents/
      
      	* s/sheet_cell_expr_link/dependent_expr_link/
      	* s/sheet_cell_expr_unlink/dependent_expr_unlink/
      
      	* s/eval_queue_cell/dependent_queue_recalc/
      	* s/eval_queue_list/dependent_queue_recalc_list/
      	* s/eval_unqueue_cell/dependent_unqueue_recalc/
      	* s/eval_unqueue_sheet/dependent_unqueue_recalc_sheet/
      	*
      	* s/cell_add_dependencies/dependent_add_dependencies
      	* s/cell_drop_dependencies/dependent_drop_dependencies
      
      	* s/cell_formula_changed/dependent_changed/
      	* s/sheet_cell_expr_link/dependent_link/
      	* s/CELL_IN_EXPR_LIST/DEPENDENT_IN_EXPR_LIST/
      
      	* src/cell.c (cell_eval_content) : moved from eval.c
      
      	* src/eval.c (sheet_region_get_deps) : Take a Range rather than 4 int.
      	(drop_range_dep) : Use dependent_debug_name.
      	(dependency_range_ctor) : Take a CellPos as an arg rather than a Cell.
      	(handle_cell_single_dep) : Take an optional CellPos and a Dependent.
      	(handle_cell_range_deps) : Ditto. Do not check for singletons here.
      	(handle_tree_deps) : Ditto.  Call handle_cell_single_dep directly.
      	(cell_add_explicit_dependency) : Delete.
      	(get_single_dependencies) : Some const.
      
      	* src/cmd-edit.c (cmd_select_cur_depends) : Use dependent_list_filter
      	  to only show cell dependencies for now.
      
      	* src/dependent.c (dependent_list_filter) : new function.
      	(dependent_debug_name) : new function.
      
      	* src/history.c : Add a comment about File/Print Preview for
      	  translators.
      
      	* src/workbook.c (cb_cell_rerender) : Only cells need this.
      01a95234
  28. 12 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Add graph-guru for bonobo enabled builds. · c665e798
      Jody Goldberg authored
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/Makefile.am : Add graph-guru for bonobo enabled builds.
      
      	* src/dialogs/formula-guru.glade (rolled_label) : Don't fill.
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-math.c (gnumeric_g_product) : Ignore blanks.
      	(gnumeric_product) : Ditto.
      	(gnumeric_sumsq) : Ditto.
      	(gnumeric_suma) : Ditto.
      	(gnumeric_sum) : Ditto.
      	(gnumeric_gcd) : Ditto.
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/corba-args.c : Remove support for Gnorba. Die Pig Die !
      	* src/corba-workbook-factory.c : Ditto.
      	* src/embeddable-grid.c : Ditto.
      	* src/sheet-object.c : Ditto.
      	* src/workbook.c : Ditto.
      
      	* src/cell-comment.c (cell_comment_realize) : Use Cell::pos rather
      	  than Cell::{row,col}_info->pos.
      	(cell_comment_reposition) : Ditto.
      	* src/cell-draw.c (cell_draw) : Ditto.
      	* src/cellspan.c (cell_register_span) : Ditto.
      	(cell_calc_span) : Ditto.
      	* src/clipboard.c (paste_cell_with_operation) : Ditto.
      	(paste_cell) : Ditto.
      	* src/cmd-edit.c (cb_compare_deps) : Ditto.
      	(cmd_select_cur_depends) : Ditto.
      	* src/eval.c (dependency_range_ctor) : Ditto.
      	(handle_cell_single_dep) : Ditto.
      	(handle_cell_range_deps) : Ditto.
      	(cell_get_range_dependencies) : Ditto.
      	(cell_get_dependencies) : Ditto.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      	* src/parse-util.c (cell_name) : Ditto.
      	* src/position.c (eval_pos_init_cell) : Ditto.
      	* src/print-cell.c (print_cell) : Ditto.
      	(print_cell_range) : Ditto.
      	* src/sheet-autofill.c (autofill_cell) : Ditto.
      	* src/sheet-vector.c (sheet_vectors_cell_changed) : Ditto.
      	* src/sheet.c (sheet_cell_calc_span) : Ditto.
      	(sheet_reposition_comments) : Ditto.
      	(sheet_get_extent_cb) : Ditto.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_cell_add_to_hash) : Ditto.
      	(sheet_cell_insert) : Ditto.
      	(sheet_cell_new) : Ditto.
      	(sheet_cell_remove_from_hash) : Ditto.
      	(sheet_move_range) : Ditto.
      	* src/solver-lp.c (solver_simplex) : Ditto.
      	(make_solver_arrays) : Ditto.
      	(solver_affine_scaling) : Ditto.
      	(make_int_array) : Ditto.
      	(solver_branch_and_bound) : Ditto.
      	(solver_answer_report) : Ditto.
      	(solver_sensitivity_report) : Ditto.
      	* src/xml-io.c (xml_write_cell) : Ditto.
      	(xml_cell_set_array_expr) : Ditto.
      	(xml_write_solver) : Ditto.
      	* src/dialogs/dialog-solver.c (check_int_constraints) : Ditto.
      
      	* src/about.c : Move the ABOUT_KEY here from.
      	* src/dialogs/dialogs.h : here.  Also, add dialog_graph_guru.
      
      	* src/Makefile.am : Remove wizard.h and the seperate wizard library.
      c665e798
  29. 30 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      It is possible to have a guru up without editing. · 69d6d36b
      Jody Goldberg authored
      
      2000-06-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without editing.
      	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
      	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
      	(gnumeric_sheet_focus_in) : Enable the input context.
      	(gnumeric_sheet_focus_out) : Disable the input context.
      	(gnumeric_sheet_realize) : Create the input context.
      	(gnumeric_sheet_unrealize) : Destroy the input context.
      	(gnumeric_sheet_class_init) : Register the new methods.
      	(gnumeric_sheet_init) : Init the input context.
      
      	* src/clipboard.c (x_selection_handler) : Adjust to changes in
      	  application_clipboard_clear.
      	(x_selection_clear) : Ditto.
      	* src/cmd-edit.c (cmd_paste) : Ditto.
      	* src/sheet.c (sheet_destroy) : Ditto.
      
      	* src/application.c (application_clipboard_clear) : Make dropping the
      	  selection optional.  This removes the kludges necessary to handle
      	  changing the clipboard when we already have the selection.
      
      	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
      	  fix signatures.
      69d6d36b
  30. 23 Jun, 2000 1 commit
  31. 05 Jun, 2000 1 commit
    • Miguel de Icaza's avatar
      This adds autocompletion. · aa133206
      Miguel de Icaza authored
      It is missing one forced repaint that makes the stuff look slower
      than it is.
      
      2000-06-05  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gtk_radio_button_select): Add
      	precondition.  Chema found this, but we should add the proper
      	check at an upper layer.
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p):
      	Change prototype to use GtkEntry instead of GtkWidget.
      
      	* src/workbook-edit.c (workbook_finish_editing): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(entry_changed): ditto.
      	(workbook_start_editing_at_cursor): ditto.
      	(workbook_editing_expr): ditto.
      	(workbook_edit_get_display_text): ditto.
      
      	* src/workbook.c (autosum_cmd): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(do_focus_sheet): ditto.
      	(wb_edit_key_pressed): ditto.
      	(workbook_setup_edit_area): ditto.
      
      	* src/workbook.c (cb_autofunction): ditto.
      
      	* src/workbook-private.h: Make edit_line a structure to keep track
      	of the entry and its signal changed.  Also take a chance to change
      	this to the self descriptive GtkEntry instead of GtkWidget.
      
      	* src/commands.c (cmd_set_text): Added const here.
      
      	* src/workbook.c (workbook_do_destroy): Add destroy notification
      	for the editing facilities
      
      	* src/item-edit.c (item_edit_set_arg): removed auto complete code
      	from here.
      
      2000-06-03  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/workbook-edit.c, src/workbook-edit.h: New files.  Moved
      	workbook_start_editing_at_cursor, workbook_finish_editing,
      	workbook_get_entry, workbook_editing_expr here.  Killed
      	workbook_set_entry prototype.
      
      	* src/workbook.c (workbook_start_editing_at_cursor): Moved
      	autocomplete here.
      
      	* src/workbook.h: Removed warning.  #include <config.h> is a
      	mandatory header file in every C file.  A correct approach is to
      	use something like Nautilus' perl script that verifies the
      	presence of config.h as the first include.
      
      	* src/workbook.c (close_cmd): Removed ulgy (void)
      	(quit_cmd): More.
      	(sheet_action_rename_sheet): more.
      	(workbook_finish_editing): Fixed more ugly.
      
      	* src/gutils.c (gnumeric_sys_glade_dir): Fixed ugly indentation.
      	(gnumeric_usr_plugin_dir): More ugly stuff fixed.
      	(gnumeric_usr_dir): Removed ugly const.
      
      2000-05-02  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.h: New ::entry member, auto_max_size, auto_complete_text
      
      	* src/item-edit.c (item_edit_draw_text): Take an ItemEdit as a
      	first argument, and reduce the cluttered arguments we were
      	passing.
      	(item_edit_draw): Cursor_pos is now only the position, it is not
      	overloaded with show/hide cursor as well.
      	(item_edit_draw_text): Update acoordingly.
      	(item_edit_draw_cursor): This new routine paints the cursor only.
      	(item_edit_set_arg): Add a new signal handler for "activated" on
      	the entry
      	(cb_item_edit_cursor_blink): Removed FIXME.
      	(item_edit_set_arg): Init item_edit->entry.  I am pretty sure this
      	existed in the past.
      
      2000-05-01  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.c (item_edit_draw): Pass auto-completing flag.
      	(item_edit_draw_text): Invert auto-complete region.
      	(item_edit_set_arg): Init auto_completing here.
      	(item_edit_complete_notify): Set the entry from the
      	auto-completing data here.
      
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* dialog-function-wizard.c (dialog_function_druid): Use
      	workbook_get_entry here.
      
      	* dialog-printer-setup.c (spin_button_adapt_to_unit): Added
      	g_assert_not_reached ();
      aa133206
  32. 31 May, 2000 1 commit
    • Jody Goldberg's avatar
      undo support for shift range. · 232b5ec2
      Jody Goldberg authored
      The first half of the solution to the paste_cut problems.
      
      2000-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_destroy) : Fix leak.
      	(cmd_paste_cut_*) : We do need to worry about invalidations.  Any
      	  references to the portions of the destination region that do not
      	  overlap the src region get invalidated.
      
      	* src/ranges.c (range_translate) : Adjust the semantics so that the
      	  result warns of a range that was translated completly out of bounds.
      
      	* src/sheet.c (sheet_move_range) : Invalidate the references to the
      	  portions of the destination range that do NOT overlap with the src.
      	(sheet_shift_{cols,rows}) : Rename and move to..
      	* src/cmd-edit.c (cmd_shift_{cols,rows}) : here.  Use cmd_paste_cut
      	  instead of sheet_move_range directly.
      
      	* src/dialogs/dialog-{insert,delete}.c : Switch to cmd_shift_{cols,rows}.
      
      	* src/history.c (history_menu_insert_separator) : Add a more detailed
      	  explaination when the history lookup fails.
      232b5ec2
  33. 27 May, 2000 3 commits
    • Jody Goldberg's avatar
      When recalulating all spans, we may need to render some cells too. · 46bc8ec7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_update) : When recalulating all spans, we may
      	  need to render some cells too.
      	(sheet_move_range) : Do not call sheet_update here.
      	(sheet_shift_rows) : Call it here.
      	(sheet_shift_cols) : and here.
      
      	* src/commands.c (cmd_paste_cut_undo) : Do a recalc.
      	(cmd_paste_cut_redo) : No need to force a status range update, move
      	  already did that.
      
      	* src/cmd-edit.c (cmd_paste) : typo.
      46bc8ec7
    • Jody Goldberg's avatar
      Move the handling of singletons and the setting of the selection here. · 984592e7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy) : Move the handling of singletons
      	  and the setting of the selection here.
      	* src/clipboard.c (clipboard_paste_region) : From here.
      
      	* src/cmd-edit.c (cmd_paste_to_selection) : Remove incorrect
      	  precondition.
      984592e7
    • Jody Goldberg's avatar
      Revamp pasting. This needs alot of testing. Some initial work on a · 94c47dab
      Jody Goldberg authored
      Revamp pasting.
      This needs alot of testing.
      Some initial work on a function druid.
      
      2000-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Use a command context.
      	(sheet_selection_paste) : Delete.
      
      	* src/plugin.c : rename error_plugin_problem -> error_plugin.
      
      	* src/item-grid.c (context_paste_cmd) : Use cmd_paste_to_selection.
      	(context_paste_special_cmd) : Ditto.
      
      	* src/gnumeric-sheet.c : remove cached 'controlling_entry' in
      	  preparation for the function druid.
      
      	* src/corba-sheet.c : Delete Sheet_selection_paste.
      	  this will need to be replaced with a new signature.
      
      	* src/item-cursor.c (item_cursor_do_action) : Use new cmd_paste.
      
      	* src/commands.c (cmd_area_set_text_{undo,redo}) : Use new
      	  clipboard_paste_region.
      	(cmd_ins_del_row_col_{undo,redo}) : Ditto.
      	(cmd_clear_{undo,redo}) : Ditto.
      	(cmd_set_date_time_{undo,redo}) : Ditto.
      	(cmd_paste_cut_*) : new functions.
      
      	* src/command-context*.c : Add progress, remove splits_array.
      
      	* src/cmd-edit.c (cmd_paste) : New function.
      	(cmd_paste_to_selection) : New function.
      
      	* src/clipboard.c : Reorganize/rewrite.
      	(clipboard_paste_region) : paste content.
      	(clipboard_paste) : paste content from clipboard or X selection.
      	(paste_target_init) : New function.
      	(sheet_paste_selection) : merge into clipboard_paste_region.
      
      	* src/application.c (application_clipboard_copy) : rename
      	  clipboard_copy_cell_range -> clipboard_copy_range.
      
      	* idl/Gnumeric.idl : Merge InvalidValue, SplitsArray -> InvalidCmd.
      
      	* src/workbook.c (workbook_setup_status_area) : Include a progress bar.
      94c47dab
  34. 22 May, 2000 1 commit
    • Jody Goldberg's avatar
      New files. · 77d84d6c
      Jody Goldberg authored
      
      2000-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.[ch] : New files.
      
      	* src/workbook.c (cb_edit_select_*) : Use the cmd-edit utilities.
      	Make a 'select' sub menu of edit.
      
      	* src/sheet.c : Use the newly added CellPos in each Cell rather than
      	  mallocing a seperate struct.
      
      	* src/selection.c (sheet_select_all) : Move.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Make the
      	  selection commands accelerators.
      77d84d6c