1. 20 Feb, 2000 1 commit
    • 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
  2. 18 Feb, 2000 1 commit
    • 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
  3. 13 Feb, 2000 1 commit
    • 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
  4. 10 Feb, 2000 2 commits
    • Jody Goldberg's avatar
      Remove inclusion of cell.h. Adjust includes to loosen things a bit more. · f6b62c13
      Jody Goldberg authored
      
      2000-02-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.h : Remove inclusion of cell.h.  Adjust includes to loosen
      	  things a bit more.
      
      	* src/colrow.h : Remove margin_a_pt margin_b_pt.  Margins are NOT
      	  scaled by resolution or zoom.
      	  Rename units -> size_pts and store as float rather than double.
      	  Rename pixels-> size_pixels
      	  hard_size -> use gboolean rather than a 1 element bitfield
      
      	* src/style.h : Move the typedefs from here.
      	* src/gnumeric.h : to here.
      
      	*.[ch] : Catch up with the renames and include changes.
      f6b62c13
    • Jody Goldberg's avatar
      Some improvements to the default sizes of things to resizing. · 676c70fb
      Jody Goldberg authored
      We will need to tweak this to get things to match properly.
      
      2000-02-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
      	  the zoom specification.
      	(workbook_create_standard_toobar) : Adjust the list of zoom labels.
      
      	* src/style.c (font_init) : Add comment explaining that the default
      	  fonts are not scaled by resolution, and that we depend on that.
      
      	* src/sheet.c (sheet_init_default_styles) : Set the default sizes
      	  based on the size of the default font not on pixels.
      
      	* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
      	  region here.
      	(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
      	  of 1 to set sizes and scroll regions.
      	(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
      	  dimensions.  Set them based on the font used for the headers.
      676c70fb
  5. 04 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Add some config variables to the application to allow for axis dependent · d6fe542a
      Jody Goldberg authored
      zooming based on the screen display resolution (eg 110 dpi).  No GUI currently
      available.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
      	  function.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_set_internal_width) : Scale by the axis
      	  resolution adjment.
      	(sheet_row_set_internal_height) : Ditto.
      	(colrow_set_units) : Ditto.
      	(sheet_compute_col_row_new_size) : Ditto.
      
      	* src/item-bar.c (item_bar_fonts_init) : Scale by resolution.
      	(item_bar_start_resize) : Ditto.
      	(item_bar_event) : Ditto.
      
      	* src/cell.c (cell_calc_dimensions) : Adjust interface to take the
      	  cell. Scale the height test by the vertical resolution adjustment.
      
      	* src/cell-draw.c (sheet_view_get_style_font) : rename from
      	  sheet_get_style_font in preparation for view split.  Scale
      	  the font by the average of the resolutions.
      d6fe542a
  6. 31 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Move more of the pure view elements into WorkbookPrivate. · a038ab94
      Jody Goldberg authored
      
      2000-01-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/worksheet.h : Move more of the pure view elements into
      	  WorkbookPrivate.
      
      	* src/sheet.h : Remove include of workbook.h
      
      	* *.c : manually include workbook.h only where we need it.
      
      	* src/ranges.c (parse_range) : Move here from dialog-analysis-tools.c
      	  to avoid warnings.
      
      	* src/corba-workbook.c (Workbook_save_to) : Adjust to new calling
      	  convention.
      	* src/corba-workbook-factory.c (WorkbookFactory_read) : Ditto.
      
      	* src/parser.y : Support interbook references.
      
      	* src/item-bar.c : Ignore scroll-wheel events. Eventually the app will
      	  handle these rather than the grid.
      a038ab94
  7. 28 Jan, 2000 1 commit
  8. 27 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Some xml fixes - Row/col ins/del undo fix. - Mouse scroll fix, and · d99c96e7
      Jody Goldberg authored
      - Some xml fixes
      - Row/col ins/del undo fix.
      - Mouse scroll fix, and scrollbar speedup.
      
      2000-01-27  Jody Goldberg <jgoldberg@home.com>
      
      	* *.c : convert to using Workbook::current_sheet rather than
      	    workbook_get_current_sheet.
      
      	* src/workbook.c : Add a current_sheet member to Workbook.
      	Delete some old test code.
      	(do_focus_sheet) : Cancel inputs and update edit area with new cell.
      	(workbook_focus_current_sheet) : Update current_sheet.
      	(workbook_get_current_sheet) : Delete.
      
      	* src/sheet.c (sheet_cursor_{move, set}) : Delete call to
      	  gnumeric_sheet_cursor_set.
      
      	* src/sheet.c (sheet_{row,col}_add) : Use sheet_view_scrollbar_config.
      	  We should not be touching GUI directly.
      
      	* src/sheet-view.c (sheet_view_scrollbar_config) : Set the scrollbar's
      	  value as well as it max and page info.
      
      	* src/gnumeric-sheet.[ch] (gnumeric_sheet_cursor_set) : Delete.
      	  The scrollbars reflect the visible range, not the cursor cell.
      
      	* src/item-cursor.c (item_cursor_set_bounds_visibly) : Remove call to
      	  gnumeric_sheet_cursor_set.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_workbook_write) : Do not save the current
      	  edit-text.  We don't save the current cell or the current selection
      	  so restoring the text of the ex-cursor is quite confusing.
      	(xml_workbook_read) : Restore window size.
      	(gnumeric_xml_sheet_{read,write}) : Delete unused.
      	(xml_get_range) : Utility routine.
      	(xml_read_selection_info) : Utility routine to restore the selection.
      
      	* src/sheet.c (sheet_{insert,delete}_{cols,rows}) : Do the
      	  insert/delete even if it looks like there are no cells there.
      	  There may be styles.
      d99c96e7
  9. 25 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      - Fix a problem with zooming caused by the new item-bar enhancements. - · 03198e1d
      Jody Goldberg authored
      
      - Fix a problem with zooming caused by the new item-bar enhancements.
      - Remove gnumeric-sheet.h from a number of places that it had no reason to be.
      - Move all of the row/col pos/offset cache into GnumericSheet.  WARNING
        I do not populate all of it yet.
      
      2000-01-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_set_zoom_factor) : Keep the cursor in
      	  the same place and recompute the alignments for everything.
      
      	* src/item-cursor.c (item_cursor_set_bounds) : New function.
      
      	* src/gnumeric-sheet.h : Add more orthogonal structure for caching
      	  common row/col bounds and their canvas offsets.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_create) : Init the new members.
      	(gnumeric_sheet_filenames_dropped) : Keep the canvas private.
      	(gnumeric_sheet_make_cell_visible) : Add 'force_scroll' argument.
      
      	* src/clipboard.c (clipboard_release) : It is possible to have no
      	  styles associated with a region.
      
      	* src/item-grid.c : Remove overlapping cache of bounding rows/cols and
      	  offsets.  Use the superset in GnumericSheet.
      	 (item_grid_find_{row, col}) : Support sliding backwards.
      03198e1d
  10. 23 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Improve itembar redraw. · b8823fde
      Jody Goldberg authored
      2000-01-22  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_redraw_headers) : New function that
      	  will redraw a subset of an itembar.
      	(sheet_view_redraw_columns) : Delete.
      	(sheet_view_redraw_rows) : Delete.
      
      	* src/sheet.c (sheet_redraw_headers) : Call sheet_view_redraw_headers.
      	(sheet_redraw_columns) : Delete.
      	(sheet_redraw_rows) : Delete.
      
      	* src/gnumeric-sheet.h (GnumericSheet) : Remove unused member item_bar_col.
      
      	* src/colrow.c (col_row_set_visiblity) : Use sheet_redraw_headers
      	  in place of sheet_redraw_{cols,row}.
      	* src/selection.c (sheet_selection_append_range) : Ditto.
      	(sheet_select_all) : Ditto.
      	(sheet_selection_reset_only) : Ditto.  Clear the selection internally.
      
      	* src/sheet.c (sheet_{col,row}_get_distance) : Handle from > to.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Use the
      	  precalculated offsets.
      	* src/item-edit.c (item_edit_get_pixel_coords) : Ditto.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_bar_set_top_row) : Update the
      	  item_grid's notion of the top.  Calculate the new distance using the
      	  previous top as the start point.
      	(gnumeric_sheet_bar_set_left_col) : Rename from top_col.  Ditto.
      
      2000-01-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_draw) : Remove minor drawing glitch when
      	  drawing at the edge of the sheet.
      	(item_bar_class_init) : Remove the unsed 'First' argument.
      
      	* src/item-grid.c (item_grid_draw) : Draw gridlines even at the
      	  outer edges.
      b8823fde
  11. 17 Jan, 2000 1 commit
    • Jody Goldberg's avatar
      Implement a more user preferences. · 76e2dfd1
      Jody Goldberg authored
      2000-01-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Menu items for sheet and workbook preferences.
      
      	* src/sheet-view.c (sheet_view_adjust_preferences) : New function.
      	* src/sheet.c (sheet_adjust_preferences) : New function.
      	(sheet_new) : Init the new preferences.
      	(sheet_set_text) : Avoid leaking in the failure case.
      
      	* src/selection.c (sheet_selection_paste) : Pass a context.
      
      	* src/cell.c (cell_render_value) : display_fomulas is now a sheet
      	  level preference.
      	(cell_is_number) : return boolean.
      	(cell_is_zero) : New function.
      
      	* src/item-grid.c (item_grid_draw_cell) : honour display_zero.
      76e2dfd1
  12. 13 Jan, 2000 1 commit
  13. 21 Nov, 1999 2 commits
    • Jody Goldberg's avatar
      Bug 3289 · e29ab7db
      Jody Goldberg authored
      1999-12-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_cut) : Fix Typo.
      
      	* src/item-bar.c (item_bar_start_resize) : Don't bother setting the
      	  location of the line here.  Instead we set the correctly zoomed
      	  bounds of the static-dimension.
      	(item_bar_end_resize) : Clear the saved points.
      	(item_bar_init) : Init the guide and points to NULL;
      	(item_bar_event) : No need to call canvas to world.  We zoom manually.
      	(item_bar_get_line_points) : Delete.
      e29ab7db
    • Jody Goldberg's avatar
      Use needs_name flag rather than checking the filename. All books now have · bcdc766d
      Jody Goldberg authored
      1999-11-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/file.c (workbook_save) : Use needs_name flag rather than
      	  checking the filename.  All books now have file names.
      
      	* src/workbook.c (workbook_new_with_sheets) : Move default name
      	  assignment.
      	(workbook_new) : Here.  Make the default name end in .gnumeric.
      	  Add a needs_name flag marking this name as auto generated.
      	(workbook_set_filename) : Clear the needs_name flag.
      bcdc766d
  14. 19 Nov, 1999 1 commit
  15. 15 Nov, 1999 1 commit
  16. 13 Nov, 1999 1 commit
  17. 06 Nov, 1999 1 commit
  18. 02 Nov, 1999 1 commit
  19. 30 Oct, 1999 1 commit
  20. 09 Oct, 1999 1 commit
  21. 08 Oct, 1999 1 commit
    • Jody Goldberg's avatar
      - Move some math functions from utils to mathfuncs. · 42b5114f
      Jody Goldberg authored
      - Beautify the scrollbar tooltips a bit and move some of their utility
        routines into gnumeric-utility.
      - Add width/height tooltips on col/row resize.
      - Fix bug that would loose the end of resize event when the cursor had
        not moved.
      42b5114f
  22. 07 Oct, 1999 1 commit
    • Miguel de Icaza's avatar
      Remove ants when we change the font. (set_selection_halign): And when we · d4b9115d
      Miguel de Icaza authored
      1999-10-06  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/workbook-format-toolbar.c (change_selection_font): Remove
      	ants when we change the font.
      	(set_selection_halign): And when we change the alignment.
      
      	Many more left to be removed.  Left as an excercise to Jody :-)
      
      	* src/sheet.c (sheet_start_editing_at_cursor): remove ants when we
      	start entering new text.
      
      	* src/sheet-view.c (sheet_view_selection_unant): Destroys the
      	anted cursors from the sheet view.
      	(sheet_view_selection_ant): Adds cursors to the sheetview.
      	(sheet_view_construct): New group that is used to hold the
      	selection-ant items.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Kill ants
      	on escape.
      	(gnumeric_sheet_key_mode_object): ditto.
      
      	* src/selection.c (sheet_selection_unant): New function, kills the
      	selection ants.
      	(sheet_selection_ant): New function, adds an anted selection to
      	all the selected regions.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region): Do not paste
      	beyond sheet boundaries.
      
      	* src/item-grid.c (item_grid_find_row): Do not go beyond sheet boundaries.
      	(item_grid_find_col): ditto.
      
      	* configure.in: Generate gnumeric.desktop
      
      	* gnumeric.desktop.in: New file, used to choose the correct
      	gnumeric/gnumeric-bonobo executable name.
      
      	* src/sheet-object-item.c: Updated to fit with the new Bonobo
      	changes.
      
      1999-10-06  Jody Goldberg <jgoldberg@home.com>
      d4b9115d
  23. 04 Oct, 1999 1 commit
    • Jody Goldberg's avatar
      - Large speed improvement loading by removing the lists of cells in cols, and · 7d0ab7ad
      Jody Goldberg authored
        keeping cols rows in segmented arrays.
      
      - Large speed improvement in exit by operating on the entire sheet rather than
        cell by cell.
      
      - Large speed improvement in Col/Row auto-fills.  they're still too damn slow
        and we use too much memory, but its a start.
      
      - Insert/delete/Shift rows/cols now correctly adjusts references to and from
        the region.
      
      - Code in place to restructure 'copy'
      
      - A few minor dialog adjustments, some from me, some from the mailing list.
      7d0ab7ad
  24. 17 Sep, 1999 1 commit
    • Miguel de Icaza's avatar
      New file. Moved a bunch of commands here, and move to be moved. · dd6fabaa
      Miguel de Icaza authored
      1999-09-17  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/workbook-cmd.c: New file.  Moved a bunch of commands here,
      	and move to be moved.
      	Implemented the set money format;   Implemented the percent formt.
      
      1999-09-16  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet.c (sheet_update_controls, cell_is_homogeneous):
      	Include checks for font name and font size.
      
      	* src/dialogs/dialog-printer-setup.c (dialog_printer_setup): Add
      	call to gnome_dialog_set_parent here.
      
      	* src/tools.h: New file, moved here all the tools declarations.
      	Please, try to keep indentation for public functions as the rest
      	of the Gnumeric ones.
      
      	* src/workbook.c: Enable comands Format/Column, Format/Row and
      	Format/Sheet.
      	(create_format_toolbar): Add font selector toolbar widget.
      	(change_font_in_selection_cmd): New routine.  Applies a font to a
      	selection in the workbook.
      	(workbook_feedback_set): Upgraded feedback interface
      
      	* src/sheet-view.c (sheet_view_row_size_changed): There is no need
      	to call gnumeric_compute_visible_ranges, the sheet_row_set_height
      	code does this.
      
      	* src/item-bar.c (item_bar_event): Support also row-autosizing.
      
      	* src/sheet.c (sheet_col_size_fit): Add this routine.
      	(sheet_col_set_internal_width): New function.  Similar to its
      	counterpart
      
      	* src/dialogs/dialog-cell-format.c (dialog_cell_format): Change
      	call to g_list_free for sheet_cell_list_free.
      
      	* src/selection.c (sheet_cell_list_free): New routine.
      
      	* src/workbook.c: Reworked toolbars again.  We now only have 2
      	toolbars instead of 8 or so.
      
      	* src/sheet.h (SHEET_MAX_ROWS): New excel supports 64k rows, mimic this.
      
      	* src/widgets/gnumeric-toolbar.c: Added new file.  Handles the
      	Gnumeric toolbars.
      dd6fabaa
  25. 15 Sep, 1999 1 commit
  26. 09 Sep, 1999 2 commits
  27. 08 Sep, 1999 2 commits
  28. 05 Sep, 1999 1 commit
  29. 17 Aug, 1999 1 commit
  30. 09 Jul, 1999 1 commit
    • Miguel de Icaza's avatar
      Reverted last plan. We do need a sheet_view_construct, as we require · d59eb822
      Miguel de Icaza authored
      
      1999-07-09  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/sheet-view.c (sheet_view_construct): Reverted last plan.  We
      	do need a sheet_view_construct, as we require sheet_view->sheet to
      	be set.
      
      1999-07-08  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/cell.c (calc_text_dimensions): Use gdk_fonts for measuring
      	the strings on the screen.  Basically, back out using GnomeFont here.
      
      	* src/print-info.c (render_date, render_time): Finished
      	implementing.
      	(render_opcode): Enable argument mechanism to extend the number of
      	possible formats.  Excel accepts stuff like &[DATE], we extend
      	this to accept &[DATE:mmmm-yyyy].  The argument for &[DATE] and
      	&[TIME] is a regular Gnumeric formatting code (ie, compattible
      	with the cell formating in Excel).
      
      	* src/sheet-view.h: Change style to suit forward declaration
      	structure.
      
      	* src/sheet.h: Use forward declaration for SheetView.
      
      	* src/sheet.c (sheet_new_sheet_view, sheet_destroy_sheet_view):
      	New routines for managing the sheet views.
      
      	* src/sheet-view.c: Killed sheet_view_construct, there was nothing
      	really required there.  Moved all the code to sheet_view_init.
      	(sheet_view_scrollbar_display, sheet_view_set_header_visibility):
      	New routines that control the visibility of the various gadgets of
      	a SheetView.
      
      	* embeddable-grid.c, embeddable-grid.h: New files.  They implement
      	the Bonobo GnomeEmbeddable interfaces for embedding Gnumeric in
      	applications.
      
      	* src/workbook.c (workbook_new, workbook_core_new): Split this
      	routine in two:  GUI independant and GUI dependant.  The next step
      	is to provide multiple views of a workbook (although, I am not
      	sure I want this).
      	(workbook_new_with_sheets): Kill dead code.
      
      	* src/corba-sheet.c (Sheet_row_height, Sheet_col_width,
      	Sheet_max_cols_used, Sheet_max_rows_used): New methods.
      
      	* src/Gnumeric.idl (Sheet): new methods max_cols_used,
      	max_rows_used, col_width, row_height.
      
      	(Grid): New interface for embeddable grids.
      
      	* src/print-info.c (hf_format_render): Rendering routine for the
      	header and footers formats.
      
      1999-07-09  Miguel de Icaza  <miguel@gnu.org>
      
      	* ms-excel-write.c (biff_put_text): Intiialize variable.
      d59eb822
  31. 23 Jun, 1999 1 commit
  32. 22 Jun, 1999 1 commit
    • Miguel de Icaza's avatar
      Do not pre-initialize them. If they need to be pre-initialized something · fbd3597b
      Miguel de Icaza authored
      1999-06-21  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/func.c: Do not pre-initialize them.  If they need to be
      	pre-initialized something is wrong in some other place.  Fix that
      	instead.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region): Implement
      	transpose-on-paste command.  Change the increment steps for
      	transpose and compute a different target column as well.
      
      	(sheet_paste_selection): Swap the paste dimesions here if we are
      	pasting/transpose.
      
      1999-06-18  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/func.c: Remove static initialization of the error messages.
      
      1999-06-14  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/clipboard.h: Define PASTE_TRANSPOSE.
      
      	* src/dialog-paste-special.c (dialog_paste_special): Add new
      fbd3597b
  33. 13 Jun, 1999 1 commit
    • Miguel de Icaza's avatar
      Process the return value from gnome_dialog_run correctly as well. (ie we · 72c2b4dd
      Miguel de Icaza authored
      1999-06-12  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/dialog-cell-comment.c (dialog_cell_comment): Process the
      	return value from gnome_dialog_run correctly as well.  (ie we
      	should catch the return value -1 as the "user closed dialog box"
       	message and avoid destroying the dialog box ourselves).
      
      	* src/item-grid.c (context_paste_special_cmd): Handle a cancel
      	operation from the dialog_paste_special dialog box.
      
      	* src/dialog-paste-special.c (dialog_paste_special): Hanlde the
      	case in which the window manager closed the dialog box.
      
      	* src/cell.c (cell_comment_destroy): Changed invocation from
      	gtk_object_destroy to gtk_object_unref.
      	(cell_comment_unrealize): ditto.
      	(cell_comment_clicked): ditto.
      	* src/dialog-cell-sort.c (dialog_cell_sort): ditto.
      	* src/dialog-function-select.c (dialog_function_select): ditto
      	* src/dialog-function-wizard.c (dialog_function_wizard): ditto
      	* src/dialog-paste-special.c (dialog_paste_special): ditto
      	* src/dialog-solver.c (constr_add_click): ditto.
      	(constr_add_click): ditto
      	(dialog_solver_options): ditto
      	* src/gnumeric-sheet.c (gnumeric_sheet_stop_cell_selection): ditto
      	(destroy_item_editor): ditto.
      	(gnumeric_sheet_key_mode_object): ditto, and clear the pointer to
      	the current_object.
      	* src/sheet-object-container.c (sheet_object_container_destroy): ditto.
      	* src/item-cursor.c (item_cursor_drag_event): ditto.
      	(item_cursor_autofill_event): ditto
      	* src/item-bar.c (item_bar_event): ditto
      	* src/workbook.c (workbook_setup_auto_calc): ditto.
      	* src/widget-editable-label.c (el_stop_editing): ditto
      	* src/sheet-object.c (sheet_object_destroy): ditto
      	(sheet_view_object_unrealize): ditto
      	(sheet_object_destroy_control_points): ditto
      	* src/sheet-view.c (sheet_view_destroy): ditto
      
      1999-06-10  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/pattern-selector.c (pattern_selector_init): Use the GNOME
      	canvas fill_stipple feature instead of using the hack of creating
      	the bitmap and setting the stipple on the realize handler.
      
      1999-06-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* po/hr.po: Added croat translation from Vladimir Vuksan
      	<vuksan@cs.unm.edu>.
      72c2b4dd
  34. 10 Jun, 1999 1 commit
    • Nat Friedman's avatar
      Updated to reflect recent bonobo changes. · 44095eb9
      Nat Friedman authored
      1999-06-09  Nat Friedman  <nat@gnome-support.com>
      
      	* src/sheet-view.c (sheet_view_insert_object): Commented out call
       	to gnome_bonobo_object_new_view since the API changed and this
       	function doesn't do anything anyways.
      
      	* src/sheet-object-container.c: Include gnome-component-client.h
       	and view-frame.h.
      	(sheet_object_container_land): Pass soc->client_site to
       	gnome_bonobo_object_new_view.  Get the view wrapper widget from
       	the view frame.
      	(sheet_object_container_realize): Likewise.
      44095eb9
  35. 31 May, 1999 1 commit
    • Matt Loper's avatar
      Because GNOME::Component was renamed to GNOME::BonoboObject, some bonobo · aedc0558
      Matt Loper authored
      1999-05-31  Matt Loper  <matt@gnome-support.com>
      
      	* src/sheet-view.c: Because GNOME::Component was renamed to
      	GNOME::BonoboObject, some bonobo function call names needed to be
      	changed here (ex. gnome_component_new_view to
      	gnome_bonobo_object_new_view).
      
      	* src/sheet-object-container.c (sheet_object_container_land):
      	likewise.
      	(sheet_object_container_realize): likewise.
      aedc0558
  36. 22 May, 1999 1 commit