1. 19 Jun, 2000 2 commits
  2. 18 Jun, 2000 3 commits
  3. 17 Jun, 2000 1 commit
  4. 16 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      Move error and boolean handling to the value level. · 6b2218b0
      Jody Goldberg authored
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/value-sheet.c (value_is_error) : No need for 'offset' parm.
      
      	* src/number-match.c (format_match) : Parse TRUE/FALSE as this level.
      
      	* src/value-sheet.c (constants_init) : TRUE/FALSE are not symbols.
      	  They are values.  A symbol only has value in an expression.
      	  A value operates at a lower level.  eg
      	A1 : '=TRUE' will work as a value or a symbol
      	A1 : 'TRUE' will only work as a value
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (lookup_color) : Handle translated colours.
      6b2218b0
  5. 15 Jun, 2000 5 commits
    • Jody Goldberg's avatar
      s/g_strtod/strtod/ g_strtod tries to play games with locales. We handle · 384afe96
      Jody Goldberg authored
      s/g_strtod/strtod/
      g_strtod tries to play games with locales.  We handle that ourselves.
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/number-match.c (format_create_regexp) : Build the regexp
      	  ourselves.  The poor translators had no idea what the hell that was
      	  supposed to do.  The regexp is still way way to general.
      	(compute_value) : Use the locale.
      384afe96
    • Jody Goldberg's avatar
      Renamed from expr_decode_tree. (expr_tree_get_func_def) : new function. · 97623fb0
      Jody Goldberg authored
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/expr.c (expr_tree_as_string) : Renamed from expr_decode_tree.
      	(expr_tree_get_func_def) : new function.
      	(expr_tree_first_func) : New function.
      
      	* src/expr-name.c (expr_name_value) : Rename expr_decode_tree ->
      	  expr_tree_as_string.
      97623fb0
    • Jody Goldberg's avatar
      Improve error message to include the most probable location of the fontmap · e6b967f6
      Jody Goldberg authored
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/style.c (font_init) : Improve error message to include the most
      	  probable location of the fontmap file.
      e6b967f6
    • Jody Goldberg's avatar
      Disable jump to edit pos to avoid unintended jumping when a sheet is · aa20f891
      Jody Goldberg authored
      
      2000-06-15  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_size_allocate) : Disable jump to edit
      	  pos to avoid unintended jumping when a sheet is added.
      aa20f891
    • JP Rosevear's avatar
      Use new value_compare API · 3dda226a
      JP Rosevear authored
      2000-06-15  JP Rosevear  <jpr@arcavia.com>
      
      	* src/expr.c (eval_expr_real): Use new value_compare API
      
      2000-06-14  JP Rosevear  <jpr@arcavia.com>
      
      	* src/value.h: Update value_compare prototype.
      
      	* src/value.c (value_compare): Make it take a new case
      	sensitive flag for string comparisons.
      
      	* src/sort.c (sort_compare_cells): Use value_compare to do the
      	comparisons.  Handle the special cases of blanks (always at
      	bottom, whether asc or desc) and errors (after booleans).
      
      
      2000-06-15  JP Rosevear  <jpr@arcavia.com>
      
      	* cell-sort.glade: Tidy the UI
      
      	* dialog-cell-sort.c (order_box_new): Make the clause boxes look
      	a little nicer.
      3dda226a
  6. 14 Jun, 2000 9 commits
  7. 13 Jun, 2000 2 commits
    • Jody Goldberg's avatar
      - Initial version of formula guru · 489a4201
      Jody Goldberg authored
      - Some extensions to auto-fill
      - Slight reorg of Bonobo support.
      
      2000-06-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c : Enable the formula guru, make WorkbookPrivate hold
      	  the BonoboObject in the ENABLED_BONOBO case.
      
      	* src/workbook-edit.c (workbook_finish_editing) : Disconnect any gurus
      	  that may be up.
      	(entry_changed) : Do not autocomplete expressions.  Gurus play havoc
      	  with this.
      	(workbook_edit_auto_complete_init) : Delete unused.
      	(workbook_get_entry_logical) : New function.
      	(workbook_set_entry) : New function.
      	(workbook_edit_attach_guru) : New function.
      	(workbook_edit_detach_guru) : New function.
      	(workbook_editing_expr) : When a guru is up we are always editing an
      	  expression. TODO, tune this.
      	(workbook_edit_load_value) : Moved from Sheet, and renamed from
      	  sheet_load_cell_val.
      	(workbook_edit_init) : Handle gurus.
      
      	* src/sheet.c (sheet_destroy_cell_select_cursor) : Make clearing optional.
      
      	* src/sheet-vector.c (sheet_vector_new) : The vectors are
      	  BonoboObjects, destroy them correctly.
      	(sheet_vectors_shutdown) : Ditto.
      
      	* src/sheet-object.c (sheet_set_mode_type_full) : Silence warning.
      	(sheet_object_insert) : Renamed from sheet_insert_object and moved
      	  from sheet.c
      
      	* src/pixmaps.h : Enable the Formula guru.
      
      	* src/parser.y (arg_list) : Improve handling of empty arguments.
      
      	* src/gnumeric-sheet.c (selection_remove_selection_string) : Use
      	  workbook_get_entry_logical.
      	(selection_insert_selection_string) : Ditto.
      	(start_cell_selection_at) : Ditto.
      	(gnumeric_sheet_key_mode_sheet) : Ditto.
      
      	* src/workbook-private.[ch] : Make this into a Bonobo Object for now.
      
      	* src/embeddable-grid.c (embeddable_grid_init_anon) : Use
      	  workbook_new_with_sheets.
      	(embeddable_grid_new) : WorkbookPrivate is temporarily the bonobo
      	  object.
      
      	* src/history.c (history_menu_item_create) : Ditto.
      	(history_menu_locate_separator) : Ditto.
      	(history_menu_insert_separator) : Ditto.
      	(history_menu_remove_items) : Ditto.
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : Ditto.
      	* src/sheet-object-container.c (sheet_object_container_realize) : Ditto.
      
      	* src/workbook-view.c (workbook_view_set_paste_special_state) : Ditto.
      	(change_menu_label) : Ditto.
      
      	* src/file.c (workbook_try_read) : Workbook is now always just a
      	  GtkObject.
      	(workbook_import) : Ditto.
      
      	* src/formats.c (cell_format_date) : Add some new formats.
      
      	* src/format.c (find_decimal_char) : Restore constness.
      	(format_remove_decimal) : Fix the const correctly.
      
      	* src/commands.c (cmd_ins_del_row_col_redo) : Fix to use the new
      	  semantics.
      
      2000-06-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-autofill.c (fill_item_destroy) : Free the format.
      	(fill_item_new) : Handle filling by month and year.
      	(autofill_compute_delta) : Ditto.
      	(autofill_cell) : Ditto.
      
      	* src/formats.c (cell_format_is_number) : currently handle the single
      	  character currencies.
      	(cell_format_date) : year only formats.
      
      2000-06-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_make_cell_visible) : Minor
      	  optimization.
      489a4201
    • Morten Welinder's avatar
      Round properly. · 9ddd3c3c
      Morten Welinder authored
      2000-06-13  Morten Welinder  <terra@diku.dk>
      
      	* src/functions/fn-math.c (gnumeric_round): Round properly.
      9ddd3c3c
  8. 12 Jun, 2000 1 commit
    • JP Rosevear's avatar
      Adjust if the range to be sorted has a header. · 18bcb4e0
      JP Rosevear authored
      2000-06-12  JP Rosevear  <jpr@arcavia.com>
      
      	* src/workbook.c (sort_cmd): Adjust if the range to be sorted
      	has a header.
      
      	* NEWS: Update.
      
      	* src/ranges.h: New prototype.
      
      	* src/ranges.c (range_has_header): New function to determine if
      	a region has a header row.
      18bcb4e0
  9. 10 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      Cursors now use timer based scrolling too. · 1c9eb792
      Jody Goldberg authored
      2000-06-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-cursor.c (item_cursor_update) : Change sheet -> sheet-view.
      	(item_cursor_set_bounds) : Add a short circuit test and return TRUE
      	  if things changed.
      	(item_cursor_selection_event) : Take a SheetView.
      	(item_cursor_target_region_ok) : sheet -> sheet-view
      	(item_cursor_do_action) : Ditto.
      	(item_cursor_set_arg) : Ditto.
      	(item_cursor_class_init) : Ditto.
      	(item_cursor_set_bounds_visibly) : Make the cell visible before
      	  changing the bounds.
      	(cb_move_cursor) : New function.
      	(cb_autofill_scroll) : New function.
      	(item_cursor_handle_motion) : New function.
      	(item_cursor_drag_event) : Enable timer based scrolling.
      	(item_cursor_autofill_event) : Ditto.
      
      	* src/gnumeric-sheet.c (start_cell_selection_at) : item-cursor takes a
      	  sheet-view rather than a sheet.
      	(gnumeric_sheet_new) : Ditto. Only update if the bounds changed.
      
      	* src/item-edit.c : Take a SheetView rather than a Sheet.
      
      	* src/sheet-view.c (sheet_view_start_sliding) : Return a flag
      	  indicating whether or not the timer has been triggered.
      
      	* src/border.c (LineDotPattern) : Fixed const.
      1c9eb792
  10. 08 Jun, 2000 10 commits
    • Jody Goldberg's avatar
      ok now I understand what those calls to gnome_canvas_get_scroll_offsets · cecea671
      Jody Goldberg authored
      
      2000-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges) :
      	  ok now I understand what those calls to
      	  gnome_canvas_get_scroll_offsets where supposed to do.
      cecea671
    • Jody Goldberg's avatar
      Patch leak. · d6418a40
      Jody Goldberg authored
      
      2000-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/colrow.c (col_row_restore_sizes_group) : Patch leak.
      d6418a40
    • Jody Goldberg's avatar
      Patch leak. · 87f72c55
      Jody Goldberg authored
      87f72c55
    • Jody Goldberg's avatar
      I hate typos. · 990a0113
      Jody Goldberg authored
      990a0113
    • Jody Goldberg's avatar
      Only autocomplete text that begins with an alphabetic · 69665bb8
      Jody Goldberg authored
      
      2000-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (entry_changed) : Only autocomplete text that
      	  begins with an alphabetic
      69665bb8
    • Morten Welinder's avatar
      Leak fix. · 9c7495cf
      Morten Welinder authored
      9c7495cf
    • Jody Goldberg's avatar
      Do not make the edge visible, the scroll time will take care of that. · f4b6302b
      Jody Goldberg authored
      
      2000-06-08  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-view.c (sheet_view_{col,row}_selection_changed) :
      	  Do not make the edge visible, the scroll time will take care of
      	  that.
      	(sheet_view_{col,row}_size_changed) : Use the new undo wrappers.
      	(cb_colrow_resize) : Use the new undo wrappers.
      	(sheet_view_init) : Init the scroll timers.
      	(sheet_view_stop_sliding) : Based on the version from item_grid.
      	(sheet_view_start_sliding) : Ditto.
      	(sheet_view_sliding_callback) : Ditto.  Added callback support.
      	  tuned scroll parameters.
      
      	* src/number.h : Clear out unused cruft.
      
      	* src/item-grid.c : Move support for scroll timers into sheet-view.
      
      	* src/item-bar.c (get_element_from_pixel) : Renamed from
      	  get_col_from_pos.
      	(cb_extend_selection) : New function.
      	(item_bar_event) : Use the sliding scroll mechanism in sheet_view.
      
      	* src/item-cursor.c (item_cursor_selection_event) : Adapt to changes in
      	  item_grid_find_{col,row}.
      	(item_cursor_drag_event) : Ditto.
      
      	* src/sheet.c (sheet_foreach_colrow) : renamed and moved to.
      	* src/colrow.c (col_row_foreach) here.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_find_{col,row}) : Moved here
      	  and renamed from.
      	* src/item-grid.c (item_grid_find_{col,row}) : here.
      
      	* src/value.c (value_equal) : deleted.
      	(value_compare) : Moved and renamed from
      	* src/expr.c (compare) : here.
      	(expr_dump_tree) : Delete replicated function.
      
      	* src/colrow.c (col_row_size_list_destroy) :
      	(col_row_index_list_destroy) : New function.
      	(col_row_get_index_list) : New function.
      	(col_row_set_sizes) : New function.
      	(col_row_restore_sizes_group) : New function.
      
      	(col_row_save_sizes) : Moved from sheet.c
      	col_row_restore_sizes : Ditto.
      	cb_set_row_height : Ditto.
      	rows_height_update : Ditto.
      
      	src/commands.c (cmd_resize_row_col*) : Implement.
      f4b6302b
    • Morten Welinder's avatar
      Take advantage of sort_data_length and sort_permute_invert. · f73e172f
      Morten Welinder authored
      2000-06-08  Morten Welinder  <terra@diku.dk>
      
      	* src/commands.c (cmd_sort_undo): Take advantage of
       	sort_data_length and sort_permute_invert.
      
      	* src/sort.c (sort_data_length): Make public.
      	(sort_permute_invert): New function.
      f73e172f
    • Jon K Hellan's avatar
      Set zoom using gtk_combo_text_set_text. (change_zoom_in_current_sheet_cb): · 980b6a03
      Jon K Hellan authored
      2000-06-08  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook.c (change_displayed_zoom_cb): Set zoom using
      	gtk_combo_text_set_text.
      	(change_zoom_in_current_sheet_cb): Check that current sheet is non
      	NULL.
      	(workbook_zoom_feedback_set): Block callbacks while changing
      	displayed zoom.
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar):
      	Drop the empty font name - that was needed in the option menu, but
      	not now we're using a combo box.  Ignore nameless fonts in
      	gnumeric_font_family_list. (We were displaying *two* blank lines
      	at the top - now we've got rid of both.)
      	(workbook_feedback_set): Set font size and font name using
      	gtk_combo_text_set_text, which also selects the item in the combo
      	list if present.  Get rid of hack to select font name in list -
      	this is now done in the widget.
      	(workbook_feedback_set):
      
      	* src/sheet.c (sheet_set_zoom_factor): Check that sheet isn't NULL.
      
      2000-06-08  Jon K Hellan  <hellan@acm.org>
      
      	* gtk-combo-text.[ch] (gtk_combo_text_set_text): New function. Set
      	displayed text, and select it in the list if present.
      
      	* gtk-combo-text.c (cb_remove_from_hash): New function. Remove
      	list item widget from hash when item is deleted.
      	(gtk_combo_text_add_item): Store list item widget in hash instead
      	of list item position. This way, it works even if items are
      	deleted.
      980b6a03
    • Morten Welinder's avatar
      Fix sorting. · 812617f7
      Morten Welinder authored
      812617f7
  11. 07 Jun, 2000 3 commits
    • Jody Goldberg's avatar
      Escaped characters trigger a render too. This code really needs to be · ec3a30d3
      Jody Goldberg authored
      
      2000-06-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_number) : Escaped characters trigger a render
      	  too.  This code really needs to be rationalized.
      
      2000-06-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_delete_sheet) : Update the undo/redo
      	  toolbar and menus.
      
      	* src/sort.c (sort_permute) : Avoid Leak.
      
      	* src/main.c (gnumeric_main) : Fix typo that was breaking minicons.
      ec3a30d3
    • Darin Adler's avatar
      143e12b7
    • Miguel de Icaza's avatar
      Update code. · 763a09be
      Miguel de Icaza authored
      2000-06-06  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/commands.c (cmd_set_text): Update code.
      
      	* src/workbook-edit.c (workbook_auto_complete_destroy): Simplify
      	test here.
      763a09be
  12. 06 Jun, 2000 2 commits
    • Miguel de Icaza's avatar
      Simplify test here. · 55a579e3
      Miguel de Icaza authored
      2000-06-06  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/workbook-edit.c (workbook_auto_complete_destroy): Simplify
      	test here.
      55a579e3
    • JP Rosevear's avatar
      Call sort_permute with the given permutation index (sort_contents): Call · 13960fdc
      JP Rosevear authored
      2000-06-06  JP Rosevear  <jpr@arcavia.com>
      
      	* src/sort.c (sort_position): Call sort_permute with the given
      	permutation index
      	(sort_contents): Call sort_qsort to get a permutation index and
      	then use sort_permute to actually move the rows
      	(sort_permute): Use copy and paste to move rows/cols around
      	(sort_permute_next): Find next row/col the hasn't been set based
      	on the permutation array
      	(sort_permute_is_set): Find if a a bit in a bit array is set
      	(sort_permute_set): Set a bit in a bit array
      	(sort_permute_find): Find a given number in a permutation array
      	(sort_qsort): Produce a permutation index for sorting rows or cols
      	(sort_swap): Swap two entries in the permutation index
      	(sort_compare_sets): Compare two sets of cells
      	(sort_compare_cells): Compare two cells
      	(sort_data_destroy): Destroy SortData struct
      
      	* src/commands.c (cmd_sort): Store the new sort data structure
      	(cmd_sort_redo): Call sort_contents only if a permutation index
      	does not already exist, otherwise use the index with sort_postion
      	(cmd_sort_undo): Create an inverse of the permutation index
      	if it doesn't already exit to call sort_positon with
      
      	* src/commands.h: New cmd_sort prototype.
      
      	* src/workbook.c (sort_cmd): Reflecting sorting API changes
      
      2000-06-06  JP Rosevear  <jpr@arcavia.com>
      
      	* cell-sort.glade: GUI tidying
      
      	* dialog-cell-sort.c (dialog_cell_sort_ok): Reflect sorting
      changes
      	(dialog_cell_sort_del_clause): ditto
      	(dialog_cell_sort_header_toggled): ditto
      	(dialog_cell_sort): ditto
      13960fdc