1. 06 Mar, 2000 1 commit
    • Dom Lachowicz's avatar
      Created. · 52493557
      Dom Lachowicz authored
      2000-03-01  Dom Lachowicz <dominicl@seas.upenn.edu>
      
      	* src/dialogs/sheet-order.glade,
      	  src/dialogs/sheet-order.glade.h,
      	  src/dialogs/dialog-sheet-order.c: Created.
      
      	* src/dialogs/Makefile.am: Added three above files to project
      
      	* src/dialogs/dialogs.h (dialog_sheet_order): added new function
      
      	* src/workbook.c (sheet_order_cmd): added
      	(workbook_get_sheet_position, workbook_delete_sheet),
      	(workbook_move_sheet, workbook_focus_sheet, wb_edit_key_pressed): updated.
      
      	* src/workbook.h (workbook_delete_sheet, workbook_move_sheet): added
      52493557
  2. 04 Mar, 2000 1 commit
  3. 26 Feb, 2000 1 commit
  4. 22 Feb, 2000 1 commit
  5. 20 Feb, 2000 1 commit
  6. 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
  7. 16 Feb, 2000 1 commit
    • 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
  8. 14 Feb, 2000 1 commit
  9. 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
  10. 12 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      Adjust to new signature for color_combo_new. Select index 0 rather than 1 · 97698b86
      Jody Goldberg authored
      
      2000-02-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
      	  Adjust to new signature for color_combo_new.
      	  Select index 0 rather than 1 (some one has spent too much time in
      	  fortran).  Reorder the initializations to match deployment (I'm
      	  being pedantic).
      
      	* src/widgets/widget-color-combo.c (color_table_setup) : Change the
      	  no_color flag to a possibly NULL string to provide finer control.
      	(color_combo_construct) : Ditto.
      	(color_combo_new_with_vals) : Ditto.
      	(color_combo_new) : Ditto.
      
      2000-02-11  Dean Scott <drscott12@hotmail.com>
      
      	* src/widgets/widget-color-combo.c (default_colors) : Reorder to match
      	  XL2000 more closely and provide names.
      	(color_combo_new) : Correct the layout to display all colours.
      97698b86
  11. 10 Feb, 2000 1 commit
    • 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
  12. 03 Feb, 2000 1 commit
    • Jody Goldberg's avatar
      New functions. (xml_{read,write}_range) : New functions. · 1412633f
      Jody Goldberg authored
      
      2000-02-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_{read,write}_selection_info) : New functions.
      	(xml_{read,write}_range) : New functions.
      	(xml_write_style_region) : Use xml_write_range.  (DOH!)
      	(xml_read_style_region) : Use xml_read_range.
      	(xml_sheet_read) : Use xml_read_selection_info.
      	(xml_sheet_write) : Use xml_write_selection_info.
      1412633f
  13. 31 Jan, 2000 1 commit
  14. 29 Jan, 2000 1 commit
  15. 27 Jan, 2000 1 commit