1. 20 Feb, 2000 3 commits
    • Jody Goldberg's avatar
      - Switch the item-cursor over to a delayed update model in an attempt to · 3d3ec8bf
      Jody Goldberg authored
        fix a redraw bug.  Things are faster but not fixed.
      
      - Fix the real problem.  More cleanup of the cursor/selection code is required.
        There is too much incest in there.  We are redoing 75% of the necessary operations
        at several level in an attempt to get all the requisite pieces.
      
      2000-02-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c : Switch to a quartic approved delayed update
      	  model.  Do not change the bounding box while drawing.
      
      	* src/selection.c (sheet_selection_add_range) : Do NOT directly change
      	  the edit/move/base characteristics of the sheet sheet_cursor_set handles
      	  that.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) : Use
      	  item_cursor_reposition rather than pretending that the cursor moved.
      
      	* src/item-grid.c (item_grid_button_1) : Don't call both
      	  sheet_cursor_move and sheet_selection_add.  The former was moving
      	  the edit cursor without redrawing it.
      3d3ec8bf
    • Michael Meeks's avatar
      fix for new bonobo bits. · d3afbba4
      Michael Meeks authored
      d3afbba4
    • Jody Goldberg's avatar
      Fix some breakage in gnumeric-bonbobo. · 7ac894fe
      Jody Goldberg authored
      This is not the RIGHT fix, but it is A fix.  When this is developed we
      can solve it properly.
      7ac894fe
  2. 19 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Fix mt recent breakage of cursor selection extension. · 28e0b6c6
      Jody Goldberg authored
      2000-02-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_extend) : Don't store the results
      	  of the move directly into sheet::cursor::move_corner.  That makes
      	  sheet_selection_extend_to think there is nothing to be done.
      28e0b6c6
  3. 18 Feb, 2000 12 commits
    • Jukka-Pekka Iivonen's avatar
      Made the cancel operation of a tool to return the tool selection. · 5279a0e8
      Jukka-Pekka Iivonen authored
      2000-02-19  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/dialog-analysis-tools.c: Made the cancel operation
      	of a tool to return the tool selection.
      5279a0e8
    • Jukka-Pekka Iivonen's avatar
      Implemented Glade dialogs for Anova two-single factor and Moving average · 2d1878e3
      Jukka-Pekka Iivonen authored
      2000-02-20  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade,
      	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
      	Anova two-single factor and Moving average tools.
      2d1878e3
    • Almer. S. Tigelaar's avatar
      Corrected a minor spelling error on the first page of the druid. · e761efc8
      Almer. S. Tigelaar authored
      2000-02-18 Almer. S. Tigelaar. <almer1@dds.nl>
      
      	* /src/dialogs/dialog-stf.glade :
      	Corrected a minor spelling error on the first page of
      	the druid.
      e761efc8
    • Almer. S. Tigelaar's avatar
      Corrected a minor spelling error on the first page of the druid. · ac940f27
      Almer. S. Tigelaar authored
      
      2000-02-18 Almer. S. Tigelaar.  <almer1@dds.nl>
      
      	* /src/dialogs/dialog-stf.glade :
      	Corrected a minor spelling error on the first page of
      	the druid.
      ac940f27
    • 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
    • Jody Goldberg's avatar
      - Merge some enhancements to the color combo boxes. · 771be446
      Jody Goldberg authored
      - Simplify and enhance the cursor and selection code.
        Its not as pretty as I'd like, but its getting better.
      - Fix a display glitch in the item-bar.  canvas redraw excludes
        the far coordinate.  That will teach me to read docs.
      
      2000-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-color-combo.c (color_combo_construct) : typo.
      	(color_combo_new) : Disable the charting colours for now.  They are
      	  mostly duplicates.
      
      2000-02-16 Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/widgets/widget-color-combo.[ch]
      	Changed the code some to enable tooltips
      	Minor api changes
      
      2000-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c : Add history.h.
      
      2000-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_redraw_selection) : Delete.
      
      	* src/selection.c (sheet_selection_extend_to) : Short circuit when
      	  there would be no change to the selection.
      	(sheet_selection_change) : The sheet already has the correct edit,
      	  move, base positions.  Use them.
      
      	* src/sheet-view.c (sheet_view_redraw_headers) : gnome_canvas_request_redraw
      	  EXCLUDES the far coordinates.  Add 1 so that the last pixel get
      	  redrawn too.
      
      2000-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/history.c (history_menu_item_create) : typo.
      
      2000-02-18  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/dialog-goal-seek.c (dialog_goal_seek) : Use edit_pos.
      	* src/dialogs/dialog-solver.c (dialog_solver) : Ditto.
      
      	* src/xml-io.c (xml_read_selection_info) : Use edit_pos.
      	(xml_write_selection_info) : Ditto.
      
      	* src/workbook.c (cb_sheet_check_dirty) : Use edit_pos.
      	(paste_cmd) : Ditto.
      	(paste_special_cmd) : Ditto.
      	(insert_current_date_cmd) : Ditto.
      	(insert_current_time_cmd) : Ditto.
      	(workbook_edit_comment) : Ditto.
      
      	* src/sheet.c (sheet_new) : sheet_selection_append -> sheet_selection_add.
      	(sheet_accept_pending_input) : Use edit_pos.
      	(sheet_load_cell_val) : Ditto.
      	(sheet_start_editing_at_cursor) : Ditto.
      	(sheet_update_controls) : Ditto.
      	(sheet_{col,row}_selection_type) : Fix cut-paste-o.
      	(walk_boundaries) : Move to selection.c.
      	(walk_boundaries_wrapped) : Ditto.
      	(sheet_selection_walk_step) : Reworked and moved to selection.c.
      	(sheet_cursor_move) : Switch to new framework.
      	(sheet_cursor_set) : Ditto.
      	(sheet_set_selection) : Delete.
      
      	* src/sheet.h : (SheetSlection) : Remove base member.
      	(Sheet) : adjsut notion of cursor to differentiate between,
      	edit, base, and movement.  (see comments).
      	* src/sheet-view.c (sheet_view_set_zoom_factor) : Use edit_pos.
      	(sheet_view_scrollbar_config) : Switch to new scheme.
      	(sheet_view_{col,row}_selection_changed) : Make the Top/Left visible
      	  cell the edit cursor when things are out of range.
      
      	* src/sheet-style.c (sheet_style_attach) : Use sheet_redraw_range directly.
      	(sheet_range_apply_style) : Ditto.
      	(sheet_range_set_border) : Ditto.
      
      	* src/selection.c (sheet_selection_add_range) : Renamed from,
      	  sheet_selection_append.  Document.  Switch to new edit, base, move
      	  scheme.  Directly call sheet_cursor_set rather than the confusingly
      	  named sheet_set_selection.
      	(sheet_selection_add) : Renamed from sheet_selection_append.
      	(sheet_selection_change) : Adjsut parm name from 'new' -> 'new_sel' to
      	  enable test compiles from C++.
      	(sheet_selection_extend_to) : Switch to new edit, base, move scheme.
      	(sheet_selection_extend) : Just call sheet_selection_extend_to for the
      	  main work.  Document.
      	(sheet_select_all) : sheet_selection_append_range -> sheet_selection_add_range.
      	(sheet_selection_extend_{horizontal, vertical} : Merge in to
      	  sheet_seletion_extend and fix.
      	(sheet_selection_set) : Switch to the new scheme.
      	(sheet_selection_reset) : sheet_selection_append -> sheet_selection_add.
      	  Use edit_pos.
      	(walk_boundaries) : Moved from sheet.c, merged with
      	  walk_boundaries_wrap, and change signature.
      	(sheet_selection_walk_step) : Moved from sheet.c and switched to the
      	  new method.  Do not change the selected region while iterating.
      
      	* src/item-grid.c (item_grid_paint_empty_cell) : Use edit_pos.
      	(item_grid_draw_cell) : Ditto.
      	(item_grid_event) : Ditto.
      	(context_paste_cmd) : Use the base and move cursors.
      	(context_paste_special_cmd) : Ditto.
      	(item_grid_button_1) : sheet_selection_append -> sheet_selection_add.
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Use
      	  sheet_selection_add_range rather than the two step select extend.
      
      	* src/clipboard.c (sheet_paste_selection) : Use
      	  sheet_selection_add_range rather than the 2 step process
      	  of setting the corner and extending.
      
      	* plugins/excel/ms-excel-read.c (ms_excel_read_selection) :
      	    sheet_selection_append_range -> sheet_selection_add_range
      	* src/corba-sheet.c (Sheet_selection_append) : Ditto.
      	(Sheet_selection_append_range) : Ditto.
      
      	* src/gnumeric-sheet.c (move_cursor) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.  Use edit_pos.
                sheet_selection_walk_step now handles the cursor and selection
      	  changes.
      	(gnumeric_sheet_set_selection) : Delete this was unnecessary.
      	(gnumeric_sheet_set_cursor_bounds) : Add preconditions.
      	(move_cursor_horizontal) : Use the edit_pos for movement.
      	(move_cursor_vertical) : Ditto.
      	(gnumeric_sheet_create_editing_cursor) : Ditto.
      	(start_cell_selection) : Ditto.
      	(move_horizontal_selection) : Use sheet_selection_extend.
      	(move_vertical_selection) : Ditto.
      	(gnumeric_sheet_compute_visible_ranges) : Force a redraw of the
      	  item-cursor when the visible region changes.  FIXME : This should be
      	  an update not a redraw.
      771be446
    • Miguel de Icaza's avatar
      Remove stf plugin from here. And from here. · 86a1dc8b
      Miguel de Icaza authored
      2000-02-18  Miguel de Icaza  <miguel@gnu.org>
      
      	* configure.in (EXTRA_GNOME_CFLAGS): Remove stf plugin from here.
      	* plugins/Makefile.am (SUBDIRS): And from here.
      
      	* src/stf.c (stf_open_and_read): Use malloc instead of g_malloc0
      	because g_malloc aborts execution if the buffer is too large
      	(which it might likely be).
      	(stf_read_workbook): Release using free, not g_free here.
      	(stf_read_workbook): Fix sheet object memory leak.
      	(stf_init): Kill old and unused code.
      86a1dc8b
    • Miguel de Icaza's avatar
      Add spaces · 024d77de
      Miguel de Icaza authored
      024d77de
    • Jody Goldberg's avatar
      Fix typo. · 3751e855
      Jody Goldberg authored
      3751e855
    • Michael Meeks's avatar
      files I forgot. · 0b70689f
      Michael Meeks authored
      0b70689f
    • Michael Meeks's avatar
      File menu file history work from Mike Kestner: · 22deee2c
      Michael Meeks authored
      2000-02-18  Michael Meeks  <michael@helixcode.com>
      
      	* src/workbook.c (workbook_new): setup view history.
      	(workbook_do_destroy): add workbook to view history and write config.
      
      	* src/history.c (history_item_label): substantialy alter.
      	(history_remove_menu_item): kill translation on non bonobo case.
      
      2000-02-18  Mike Kestner  <mkestner@ameritech.net>
      
      	* src/application.c (application_history_get_list): add
      	(application_history_update_list, application_history_list_shrink),
      	(application_history_write_config): ditto.
      
      	* src/workbook-view.c (workbook_view_history_setup): create.
      	(workbook_view_history_update, workbook_view_history_shrink): ditto.
      
      	* src/Makefile.am: add history.[ch].
      
      	* src/history.[ch]: Added.
      22deee2c
    • 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
  4. 16 Feb, 2000 6 commits
    • Miguel de Icaza's avatar
      Changed the code to use gnoem_pixmaps here. (pixmap_combo_construct): and · 288ecebd
      Miguel de Icaza authored
      2000-02-16  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/widgets/widget-pixmap-combo.c (pixmap_combo_select_pixmap):
      	Changed the code to use gnoem_pixmaps here.
      	(pixmap_combo_construct): and here.
      288ecebd
    • Jody Goldberg's avatar
      More header cleanup. Remove value.h and sheet.h from expr.h. Remove · c73b937c
      Jody Goldberg authored
      
      2000-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* *.[ch] : More header cleanup.  Remove value.h and sheet.h
      	  from expr.h.  Remove sheet.h from cell.h.
      
      2000-02-16  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/plugin-manager.c : Move functionality.
      	* src/dialogs/dialog-plugin-manager.c : here.  and move to libglade.
      
      	* src/workbook.c (plugins_cmd) : Use dialog_plugin_manager instead
      	  of plugin_manager_new.
      c73b937c
    • jpekka's avatar
      ecd1f329
    • Jukka-Pekka Iivonen's avatar
      Implemented Glade dialog for Rank and Percentile tool. · d1c2fa05
      Jukka-Pekka Iivonen authored
      2000-02-16  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
       	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialog for
       	Rank and Percentile tool.
      d1c2fa05
    • Jody Goldberg's avatar
      Whoops, forgot the header. · 40b1f411
      Jody Goldberg authored
      40b1f411
    • Jody Goldberg's avatar
      Remove 1/2 of the glaring performance hit associated with redrawing · af5e3da8
      Jody Goldberg authored
      every time we set the width/height of a col/row.
      
      2000-02-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_{column,row}_auto_fit) :
      	  Handle repositioning and redrawing here in preparation to adding undo.
      	(workbook_cmd_format_column_width) : Ditto.
      	(workbook_cmd_format_row_height) : Ditto.
      
      	* src/sheet.c (sheet_reposition_comments_from_{row,col}) : publicize.
      	(sheet_recompute_spans_for_col) : Ditto.
      	(sheet_save_row_col_sizes) : Store cols/rows of 'default' size as 0.
      	(sheet_restore_row_col_sizes) : Restore cols/rows to true default state.
      	(sheet_{col,row}_set_size_pts) : document, and REMOVE calls to reposition
      	  and redraw.
      af5e3da8
  5. 15 Feb, 2000 4 commits
  6. 14 Feb, 2000 9 commits
    • Jon K Hellan's avatar
      Add scrolled window · b6e8a273
      Jon K Hellan authored
      2000-02-14  Jon K Hellan  <hellan@acm.org>
      
              * src/dialogs/import.glade: Add scrolled window
      
      	* src/file.c (workbook_read, workbook_import, workbook_save_as,
      	workbook_save): Use error message template.
      
      	* src/command-context.h (struct _CommandContext): Add
      	template_list member.
      	(struct CommandContextClass): Call message parameter to methods
      	"message".
      	(command_context_push_template, command_context_pop_template):
      	Declare.
      
      	* src/command-context.c (command_context_push_template): New
      	function. Push a printf template for error messages to stack.
      	(command_context_pop_template): New function. Pop current template
      	from stack.
      	(format_message): New function. Format a message using template on
      	stack.
      	(gnumeric_error_plugin_problem, gnumeric_error_read,
      	gnumeric_error_save): Use format_message.
      
      	* src/command-context-corba.c (ccc_error_plugin_problem,
      	ccc_error_read, ccc_error_save): Call message parameter
      	"message".
      
      	* src/command-context-gui.c (ccg_error_plugin_problem,
      	ccg_error_read, ccg_error_save): Ditto.
      b6e8a273
    • Jody Goldberg's avatar
      Cells can span in either direction. · dc482c29
      Jody Goldberg authored
      
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Cells can span in either direction.
      dc482c29
    • Jody Goldberg's avatar
      Adjsut XL import of row height to include margins. Heights · 58f4dd19
      Jody Goldberg authored
      should match exactly now.
      
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_value) : Empty formats produce empty cells.
      
      	* src/workbook.c (workbook_menu_tools) : Move the plugins menu item to
      	  the Tools menu.
      58f4dd19
    • Jukka-Pekka Iivonen's avatar
      Implemented Glade dialogs for Correlation, Covariance, and F-Test tools. · a67a3eee
      Jukka-Pekka Iivonen authored
      2000-02-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
       	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
       	Correlation, Covariance, and F-Test tools.
      a67a3eee
    • Jody Goldberg's avatar
      A few more pts vs pixels cleanups and fixes. · fbf52c42
      Jody Goldberg authored
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_event) : Handle rename from
      	  sheet_{col,row}_size_fit -> sheet_{col,row}_size_fit_pixels
      	* src/selection.c (cb_set_row_height) : Ditto.
      	* src/workbook-cmd-format.c
      	(workbook_cmd_format_{column,row}_auto_fit) : Ditto.
      
      	* src/cell.c (cell_calc_dimensions) : Use sheet_row_set_size_pixels
      	  rather than sheet_row_set_internal_size_pts.
      
      	* src/sheet.c (sheet_{col,row}_set_size_{pixels,pts}) :
      	  Use sheet_row_fetch to avoid manually adding rows/col.
      	  Syncronize implementations and move the 'set_internal' code
      	  here.
      	(sheet_{col,row}_set_internal_size_pts) : Delete.
      	(sheet_{col,row}_size_fit) : Rename sheet_{col,row}_size_fit_pixels
      	(colrow_compute_pts_from_pixels) : Typo.
      fbf52c42
    • 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
    • Jody Goldberg's avatar
      Add a border toolbar item. · aa076567
      Jody Goldberg authored
      and a pixmap-combo widget.
      aa076567
    • Miguel de Icaza's avatar
      Acknowledge the GNOME user settings for the combo box button. Same for the · 14ed62ab
      Miguel de Icaza authored
      2000-02-13  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/widgets/widget-color-combo.c (color_combo_construct):
      	Acknowledge the GNOME user settings for the combo box button.
      	Same for the button we create.
      
      	* src/workbook.c (workbook_create_standard_toobar): ditto.
      14ed62ab
    • Jody Goldberg's avatar
      Fix missed +1. · 30cc829f
      Jody Goldberg authored
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_get_distance_pts) : Fix missed +1.
      
      	* src/cell-draw.c (cell_draw) : syncronize with print_cell_text.
      	* src/print-cell.c (print_cell_text) : Ditto.
      30cc829f
  7. 13 Feb, 2000 5 commits
    • Jody Goldberg's avatar
      By popular demand grid lines now show through. · 67018e4a
      Jody Goldberg authored
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_paint_empty_cell) : paint the selection
      	  rectangle EXCLUDING the grid lines when selected.
      
      	* src/cell-draw.c (cell_draw) : Ditto.
      
      	* src/pattern.c (gnumeric_background_set_gc) : return FALSE if there
      	  is no pattern even if the cell is selected.
      67018e4a
    • Jody Goldberg's avatar
      Fix some boneheaded glitches in the drawing code. · bccff14e
      Jody Goldberg authored
      NOTE to self : Always set a clipping region before using a graphics
      context if you set a clipping region later.  This will avoid conflict when
      using the context again with a different callers clipping region.
      bccff14e
    • Jody Goldberg's avatar
      Clarify that the measurements are in pixels. · b0141d7c
      Jody Goldberg authored
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (workbook_view_set_size) : Clarify that the
      	  measurements are in pixels.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      b0141d7c
    • Jody Goldberg's avatar
      Major rationalization of pts vs pixels and the use of margins. · b6d04cff
      Jody Goldberg authored
      Some redraw speedups and the addition of XL2000 style alpha bended selections.
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* ./src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      
      2000-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
      	  margin changes.
      
      	* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
      	  XL2000.  Things are correct for rows, colwidth are quoted in pts
      	  rather than char widths.
      	(get_col_from_pos) : Use visible flag.
      	(item_bar_start_resize) : Function renaming.
      	(is_pointer_on_division) : Ditto.
      	(item_bar_draw) : Changes to margins.
      
      	* src/item-edit.c : Function renaming.
      	* src/item-cursor.c : Ditto.  decrease spacing for auto handle.
      
      	* src/item-grid.c (item_grid_draw) : Remove inversion process for the
      	  selection.  Instead have the cells draw their background
      	  differently.  Use the visible flag.
      	(item_grid_paint_empty_cell) : Ditto.
      	(item_grid_paint_cell) : Ditto.
      
      	* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
      
      	* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
      	  a selected cell differently.
      
      	* src/print-cell.c (DIM) : margins are already included.
      	(print_cell_text) : Adjust argument order to more closely match
      	  cell_draw.  Add support for vertical alignment of 1 line cells.
      	  Invert control of single vs multiple lines.
      	(print_cell) : Adjust to changes in the arguments.
      	(print_cell_range) : Use the visible flag.
      	  Draw line at the boundary rather than pretending there were
      	  additional rows/cols.
      
      	* src/print.c (compute_groups) : size_pts INCLUDES margins.  Use 'visible' flag.
      	(print_page) : Adjust to function renaming.
      	(print_range_used_units) : Ditto.
      
      	* src/selection.c : Include sheet-view directly for now.
      	(cb_set_row_height) : Adjust to function renaming.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
      	  renaming.
      	(sheet_view_redraw_headers) : Ditto.
      	(sheet_view_set_zoom_factor) : Ditto.
      	(sheet_view_col_size_changed) : Ditto.
      	(sheet_view_row_size_changed) : Ditto.
      	(sheet_view_comment_get_points) : Ditto.
      
      	* src/sheet.[ch] : Rationalize function names, and add glossary.
      	Make the use of margins and sizes (in points and pixels) consistant.
      
      	(sheet_col_get_external_width : Delete.
      	(sheet_row_get_external_height : Delete.
      	(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
      	(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
      	(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
      	(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
      	(sheet_col_set_width : Rename sheet_col_set_size_pixels.
      	(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
      	(sheet_row_set_height : Rename sheet_row_set_size_pixels.
      	(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
      	(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
      	(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
      	(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
      	(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
      	(sheet_{row,col}_set_default_size_pts) : New functions.
      
      	(sheet_init_default_styles) : Tune to match XL defaults.
      
      	* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
      
      	* src/style.c (style_color_new) : Init the selection colour as a 50%
      	  alpha blend with lavender.
      
      	* src/style.h : Change default font to be Helvetica 9 because it will
      	  scale better when the standard 96 dpi resolution is assumed.
      	  Add a selected_color to StyleColor.
      
      	* src/value-sheet.c : Include <gnome.h> to get the
      	  internationalization support.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
      	  sheet_col_set_width -> sheet_col_set_size_pixels.
      	(workbook_cmd_format_column_width) :
      	  sheet_col_set_width_units -> sheet_col_set_size_pts.
      	(workbook_cmd_format_row_auto_fit) :
                sheet_row_set_height -> sheet_row_set_size_pixels
      	(workbook_cmd_format_row_height) :
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      
      	* src/xml-io.c (xml_read_rows_info) : Rename
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      	(xml_read_cols_info) : Rename
      	  sheet_col_set_height_units -> sheet_col_set_size_pts.
      	(xml_read_colrow_info) : Remove hack with negative pixels.
      	  Use 'visible' flag instead.
      	(xml_write_colrow_info) : Ditto.
      b6d04cff
    • Gregory McLean's avatar
      Added documentation and examples. · 8484b94b
      Gregory McLean authored
      2000-02-12  Gregory McLean <gregm@gnu.org>
      
              * src/functions/fn-financial.c: Added documentation and examples.
      8484b94b