1. 23 Jun, 2002 2 commits
    • Jody Goldberg's avatar
      delete the 'selection' function. It is no longer possible with a · 778809a4
      Jody Goldberg authored
      
      2002-06-23  Jody Goldberg <jody@gnome.org>
      
      	* src/func-builtin.c (func_builtin_init) : delete the 'selection'
      	  function.  It is no longer possible with a sheetview.
      
      	* src/workbook-control-gui.c (cb_select_auto_expr) : remove
      	  'selection(0)' argument and just pass function name.  The conversion
      	  to SheetView forces a different methodology.
      	* src/workbook-view.c (workbook_view_new) : ditto.
      	(wb_view_auto_expr_recalc) : Make the call manually.
      778809a4
    • Jody Goldberg's avatar
      take a CellPos. (applix_read_cells) : tidy a smidge. (applix_read_impl) : · d1bcb69c
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* applix-read.c (applix_parse_cellref) : take a CellPos.
      	(applix_read_cells) : tidy a smidge.
      	(applix_read_impl) : start to support named ranges.
      
      2002-06-22  Jody Goldberg <jody@gnome.org>
      
      	* ms-formula-read.c (ms_excel_parse_formula) : enable mem_func
      	  support.
      	(binary_ops) : use range_ctor for RANGE.
      
      2002-06-22  Jody Goldberg <jody@gnome.org>
      
      	* src/expr.h : support constructed ranges.
      	* src/parser.y (parser_sheet_by_name) : ditto.
      	* src/expr-name.c (name_refer_circular) : ditto.
      
      	* src/expr.c (do_gnm_expr_unref) : support range_ctor and reorder to
      	  produce a better jump table.
      	(gnm_expr_equal) : ditto.
      	(do_expr_as_string) : ditto.
      	(gnm_expr_rewrite) : ditto.
      	(ets_hash) : ditto.
      	(ets_equal) : ditto.
      	(expr_tree_sharer_share) : ditto.
      	(expr_eval_real) : ditto and use gnm_expr_extract_ref.
      	(gnm_expr_extract_ref) : new.
      d1bcb69c
  2. 22 Jun, 2002 2 commits
  3. 21 Jun, 2002 8 commits
    • Andreas J. Guelzow's avatar
      new deleted (dialog_histogram_tool) : use dialog_tool_init remove code · 10a5f152
      Andreas J. Guelzow authored
      2002-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* tool-dialogs.h (dialog_tool_init) : new
      	* dialog-advanced-filter.c (dialog_histogram_tool_init) : deleted
      	(dialog_histogram_tool) : use dialog_tool_init
      	* dialog-random-generator.c (dialog_random_tool_init) : remove code duplicated
      	  in dialog_tool_init
      	(dialog_random_tool) : use dialog_tool_init
      	* dialog-analysis-tools.c : use improved dialog_tool_init in all dialog...tool
      	(dialog_tool_cmp) : new
      	(dialog_tool_init) : generalize and initial more fields
      10a5f152
    • Jody Goldberg's avatar
      add views of all existing sheets. · 4aa83804
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (workbook_view_new) : add views of all existing
      	  sheets.
      4aa83804
    • Morten Welinder's avatar
      Import also dnbinom.c and dhyper.c · 8c491ccb
      Morten Welinder authored
      2002-06-21  Morten Welinder  <terra@diku.dk>
      
      	* import-R: Import also dnbinom.c and dhyper.c
      
      
      2002-06-21  Morten Welinder  <terra@diku.dk>
      
      	* functions.c (gnumeric_negbinomdist): Use R's distribution
      	function for better precision.
      	(gnumeric_hypgeomdist): Ditto.
      8c491ccb
    • Jody Goldberg's avatar
      move to new signature. · 55709da4
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-component.c (wbcc_sheet_focus) : move to new
      	signature.
      55709da4
    • Jody Goldberg's avatar
      do not free the clipboard here. It is too late. · bfa63387
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c (gnumeric_application_finalize) : do not free the
      	  clipboard here.  It is too late.
      bfa63387
    • Jody Goldberg's avatar
      take a cellpos * · 89274950
      Jody Goldberg authored
      
      2002-06-21  Jody Goldberg <jody@gnome.org>
      
      	* src/parse-util.c (parse_cell_name) : take a cellpos *
      
      	* src/func-builtin.c (gnumeric_selection) : dummy out for now until a
      	  different approach is available.
      
      	* src/commands.c : convert to sheetview.
      	  s/parent/cmd/ to make things more readable
      	(cmd_selection_clear) : rename from cmd_clear_selection so that we can
      	  start to group the operations that currently operate on selections.
      	(cmd_selection_format) : rename from cmd_format.
      	(cmd_selection_colrow_hide) : rename from cmd_colrow_hide_selection.
      	(cmd_selection_outline_change) : rename from cmd_colrow_outline_change.
      	(cmd_selection_group) : rename from cmd_group.
      	(cmd_selection_autoformat) : rename from cmd_autoformat.
      	(cmd_colrow_hide_correct_selection) : take a control.
      
      	* src/colrow.c (cb_colrow_visibility) : selections are now part of
      	  sheetview.
      	(colrow_get_visiblity_toggle) : ditto.
      
      	* src/cmd-edit.c (cmd_select_cur_row) : convert to sheetview.
      	(cmd_select_cur_col) : ditto.
      	(cmd_select_cur_array) : ditto.
      	(cmd_select_cur_depends) : ditto.
      	(cmd_select_cur_inputs) : ditto.
      	(cmd_paste_to_selection) : ditto.
      
      	* src/bonobo-io.c (deserialize_wb_from_xml_stream) : pass the wbv into
      	  the context directly.
      	(gnumeric_bonobo_write_workbook) : ditto.
      	(gnumeric_bonobo_read_workbook) : ditto.
      
      	* src/consolidate.c (redraw_respan_and_select) : set selection only
      	  for the calling view.
      	(row_consolidate) : pass in the view.
      	(col_consolidate) : ditto.
      	(colrow_consolidate) : ditto.
      	(consolidate_apply) : Take a control so that we can extract the view.
      
      	* src/commands.c (cmd_consolidate_redo) : Pass the control.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-view.c (sheet_view_init) : init the selection.
      
      	* src/workbook-view.c (workbook_view_new) : init current_sheet_view.
      	(wb_view_format_feedback) : operate on the sheetview.
      	(wb_view_selection_desc) : ditto.
      	(wb_view_edit_line_set) : ditto.
      
      2002-06-20  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-view.c (wb_view_sheet_add) : Use sheet_get_view.
      	(wb_view_sheet_focus) : ditto.
      	* src/xml-io.c (xml_write_selection_info) : ditto.
      	(xml_read_selection_info): ditto.
      	(xml_workbook_write) : now that the view is in the context don't
      	  bother passing it.
      	(xml_write_wbv_attributes) : ditto.
      	(xml_read_wbv_attributes) : ditto.
      89274950
    • Andreas J. Guelzow's avatar
      new new (application_clipboard_clear) : emit "clipboard_modified" rather · eb4178dc
      Andreas J. Guelzow authored
      2002-06-21  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/application.h (gnumeric_application_get_app) : new
      	* src/application.c (gnumeric_application_get_app) : new
      	(application_clipboard_clear) : emit "clipboard_modified" rather than
      	  calling wb_control_menu_state_update on each control
      	(application_clipboard_cut_copy) : ditto
      	* src/libgnumeric.c (gnm_common_init) : remove debug spew, no need
      	  to keep an app pointer
      	(gnm_shutdown) : use gnumeric_application_get_app rather than a static
      	  app pointer
      	* src/workbook-control-priv.h : new clipboard_changed_signal field in
      	  WorkbookControl
      	* src/workbook-control.c (cb_wbc_clipboard_modified) : new
      	(wbc_finalize) : disconnect signal handler
      	(workbook_control_init) : new
      eb4178dc
    • Morten Welinder's avatar
      Fix 86103. · 1ee3253a
      Morten Welinder authored
      1ee3253a
  4. 20 Jun, 2002 3 commits
    • Jon Kåre Hellan's avatar
      Add test for Pygtk. · 4a28f7f1
      Jon Kåre Hellan authored
      * configure.in (have_pygtk): Add test for Pygtk.
      
      * acconfig.h: Add WITH_PYGTK
      
      * plugins/python/python-loader.c: Include pygobject.h if Pygtk is
      installed.
      (initialize_python_if_needed): Add init_pygobject if Pygtk is
      installed.
      (gnumeric_plugin_loader_python_func_file_probe): Replace file name
      argument with GsfInput. Try to wrap GsfInput in Python object if
      Pygtk is installed. Otherwise give up with warning.
      (gnumeric_plugin_loader_python_func_file_open): Ditto.
      
      * plugins/python/Makefile.am: Add PYGTK_CFLAGS to includes.
      4a28f7f1
    • Morten Welinder's avatar
      Initialize vars. (applix_read): the keys are strings, not ints. · 7f25d885
      Morten Welinder authored
      2002-06-20  Morten Welinder <terra@diku.dk>
      
      	* applix-read.c (applix_read_impl): Initialize vars.
      	(applix_read): the keys are strings, not ints.
      	(applix_read_cells): Isolate the key -- sometimes there seems to be
      	a formula there also.
      7f25d885
    • Morten Welinder's avatar
      New function. · ec34251c
      Morten Welinder authored
      2002-06-20  Morten Welinder  <terra@diku.dk>
      
      	* check-config-h.pl (guess_config_file): New function.
      ec34251c
  5. 19 Jun, 2002 8 commits
    • Jody Goldberg's avatar
      Use sv_weak_ref. (application_clipboard_clear) : Use sv_weak_unref. · 4c2722fd
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c (application_clipboard_cut_copy) : Use sv_weak_ref.
      	(application_clipboard_clear) : Use sv_weak_unref.
      
      	* src/workbook-view.c (wb_view_sheet_add) : create the view before
      	  potentially looking for it.
      
      	* src/workbook-edit.c (wbcg_edit_finish) : Accept text with only a
      	  leading expr char as strings, we know they can not be expressions.
      
      	* src/parse-util.c (gnumeric_char_start_expr_p) : be more lenient
      	  about accepting leading '+' as the start of an expression.
      
      	* src/application.c (application_set_selected_sheet) : merge into.
      	(application_clipboard_cut_copy) : here.
      4c2722fd
    • Andreas J. Guelzow's avatar
      gobjectify gobjectify; replace app. with app-> throughout · e092b5ac
      Andreas J. Guelzow authored
      2002-06-19  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/application.h : gobjectify
      	* src/application.c : gobjectify; replace app. with app-> throughout
      	(application_init) : deleted
      	(gnumeric_application_init) : new
      	(gnumeric_application_class_init) : new
      	(application_display_dpi_set) : deleted
      	(application_use_auto_complete) : use gconf
      	(application_live_scrolling) : ditto
      	(application_auto_expr_recalc_lag) : ditto
      	(gnumeric_application_setup_icons) : new
      	(gnumeric_application_finalize) : finalize
      	* src/libgnumeric.c (gnm_common_init) : use new application object
      	(gnm_shutdown) : ditto
      	* src/commands.c (cmd_cell_range_is_locked_effective) : use range type
      	(cmd_dao_is_locked_effective) : new
      	(cmd_sort_redo) : check for locks
      e092b5ac
    • Morten Welinder's avatar
      Remove some old hacks that are no longer needed. · c2056d85
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
             * import-R (import_file): Remove some old hacks that are no longer
             needed.
      c2056d85
    • Jody Goldberg's avatar
      no need to unant, that is a view responsibility. · 753f052a
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_destroy) : no need to unant, that is a view
      	  responsibility.
      
      	* src/sheet-view.c (sv_weakref_notify) : new.
      	(sv_weak_ref) : new.
      	(sv_weak_unref) : new.
      	(sv_unant) : move here from sheet.
      	(sv_ant) : move here from sheet.
      	(sv_selection_copy): from selection.c
      	(sv_selection_cut) : from selection.c
      
      	* src/sheet-control.c (sc_view) : new.
      
      	* src/sheet-control-gui.c (scg_ant) : the animated cursors are now
      	  stored in the view not the sheet.
      	(context_menu_handler) : sync with the workbook control criteria for
      	  enabling paste special.
      
      	* src/selection.c (sheet_selection_copy) : start the process of
      	  migrating to SheetView and move this there.
      	(sheet_selection_cut) : ditto.
      
      	* src/item-cursor.c (item_cursor_do_action) : pass a SheetView.
      
      	* src/gnumeric-canvas.c (gnm_canvas_key_mode_sheet) : pass a
      	  SheetView.
      
      	* src/corba-sheet.c : untested patch to handle views.
      
      	* src/commands.c (cmd_ins_del_colrow_undo) : use the sheetview.
      	(cmd_ins_del_colrow_redo) : ditto.
      	(cmd_ins_del_colrow_finalize) : remove weakref on the view.
      	(cmd_ins_del_colrow) : add a weak ref to the view.
      
      	* src/application.c (application_init) : we store a view now, not just
      	  a sheet.
      	(application_clipboard_clear) : update all workbooks, not just this
      	  one, and store the view.
      	(application_clipboard_unant) : use the view.
      	(application_set_selected_sheet) : the selection is now view based.
      	(application_clipboard_cut_copy) : take a view and remove the crufy
      	  enable_paste_special flag.  That is handled locally.
      	(application_clipboard_is_empty) : handle SheetView.
      	(application_clipboard_is_cut) : ditto.
      	(application_clipboard_sheet_get) : ditto.
      	(application_clipboard_sheet_view_get) : ditto.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : Use the
      	  current sheet not some magic sheet.
      
      	* src/sheet.c (sheet_new) : delete enable_paste_special.
      
      	* src/workbook-control-gui.c (wbcg_menu_state_update) : paste special
      	  is for local copies, use the application data rather than a sheet
      	  local flag.
      753f052a
    • Morten Welinder's avatar
      Import also pexp.c and pweibull.c. · 8cbaa7c7
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
      	* import-R: Import also pexp.c and pweibull.c.
      8cbaa7c7
    • Morten Welinder's avatar
      Update to R 1.5.1. (pexp, pweibull): Use R's version. All callers changed · 5a222f6d
      Morten Welinder authored
      2002-06-19  Morten Welinder  <terra@diku.dk>
      
      	* src/mathfunc.c: Update to R 1.5.1.
      	(pexp, pweibull): Use R's version.  All callers
      	changed to match new prototype.
      5a222f6d
    • Jody Goldberg's avatar
      update · 111345d1
      Jody Goldberg authored
      111345d1
    • Jody Goldberg's avatar
      renamed from sheet_attach_control. (sheet_detach_view) : renamed from · a4555c21
      Jody Goldberg authored
      
      2002-06-19  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet.c (sheet_attach_view) : renamed from sheet_attach_control.
      	(sheet_detach_view) : renamed from sheet_detach_control.
      
      	* src/sheet-view.c : new.
      
      	* src/sheet-control.c (sc_sheet_set) : delete bogus.
      	(sc_view) : new.
      
      	* src/sheet-control-gui.c (sheet_control_gui_new) : A control now takes a
      	  view in place of a model.
      
      	* src/selection.c (sheet_selection_redraw) : adjustment to
      	  SHEET_FOREACH_CONTROL.
      
      	* src/gnumeric.h : Add SheetView
      	* src/Makefile.am : Add sheet-view.[ch]
      
      2002-06-18  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_insert_current_date) : check for
      	  failure to start editing.
      	(cb_insert_current_time) : ditto.
      a4555c21
  6. 18 Jun, 2002 5 commits
    • Jody Goldberg's avatar
      tweak · c3775140
      Jody Goldberg authored
      c3775140
    • Morten Welinder's avatar
      Remove an extra arg. · 30091c04
      Morten Welinder authored
      30091c04
    • Christian Rose's avatar
      Updated Swedish translation. · c43c6805
      Christian Rose authored
      2002-06-18  Christian Rose  <menthos@menthos.com>
      
      	* sv.po: Updated Swedish translation.
      c43c6805
    • Jody Goldberg's avatar
      check for failure to start editing. (cb_insert_current_time) : ditto. · 8f9a9e61
      Jody Goldberg authored
      
      2002-06-18  Jody Goldberg <jody@gnome.org>
      
      	* src/workbook-control-gui.c (cb_insert_current_date) : check for
      	  failure to start editing.
      	(cb_insert_current_time) : ditto.
      
      2002-06-18  Jody Goldberg <jody@gnome.org>
      
      	* src/gnumeric-graph.c (gnm_graph_vector_seq_scalar) : forward port a
      	  patch for keelyn.
      
      	* src/file.c (gnum_file_saver_save_to_stream_real) : forward port a
      	  warning suppression.
      
      	* src/clipboard.c (clipboard_paste_region) : restore the expr_relocate
      	  code in preparation for supporting the XL style heuristic.
      
      	* src/GNOME_Gnumeric.xml : forward port some fixes.
      	* src/sheet-object-widget.c (cb_scrollbar_value_changed) : ditto.
      	(sheet_widget_scrollbar_set_sheet) : ditto.
      
      2002-06-17  Jody Goldberg <jody@gnome.org>
      
      	* src/dependent.c (cb_name_invalidate) : renamed from
      	  cb_name_invalidate_sheet.  Just set the expression to NULL.
      	  no need to be polite.  It just confuses things during workbook
      	  destruction when the name references another sheet which has already
      	  been destroyed.
      8f9a9e61
    • Christian Rose's avatar
      Updated Swedish translation. · d61d3c2a
      Christian Rose authored
      2002-06-18  Christian Rose  <menthos@menthos.com>
      
      	* sv.po: Updated Swedish translation.
      d61d3c2a
  7. 17 Jun, 2002 4 commits
  8. 16 Jun, 2002 4 commits
  9. 15 Jun, 2002 4 commits
    • Andreas J. Guelzow's avatar
      http://bugzilla.gnome.org/show_bug.cgi?id=85383 new (el_init) : add signal · dd50e292
      Andreas J. Guelzow authored
      2002-06-15 Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=85383
      	* widget-editable-label.c (cb_el_parent_set) : new
      	(el_init) : add signal connection
      	(editable_label_set_color) : update flags and always store new
      	  colors
      dd50e292
    • Jody Goldberg's avatar
      do not free the line, we do not own that memory. · 9dbdcc20
      Jody Goldberg authored
      
      2002-06-15  Jody Goldberg <jody@gnome.org>
      
      	* mps.c (mps_input_context_destroy) : do not free the line, we do not
      	  own that memory.
      9dbdcc20
    • Andreas J. Guelzow's avatar
      add pixmaps change call to cmd_reorganize_sheets · 9e494a52
      Andreas J. Guelzow authored
      2002-06-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/application.c : add pixmaps
      	* src/commands.c (cmd_reorganize_sheets_undo) : change call to
      	  cmd_reorganize_sheets
      	(cmd_reorganize_sheets_redo) : ditto
      	(cmd_reorganize_sheets_finalize) : handle lock lists
      	(cmd_reorganize_sheets) : handle lock lists
      	* src/commands.h (cmd_reorganize_sheets) : change arguments
      	* src/workbook-control-gui.c : change calls to cmd_reorganize_sheets
      	* src/workbook.c (workbook_sheet_reorganize) : handle changed locks
      	* src/workbook.h (workbook_sheet_reorganize) : add arguments
      	* src/pixmaps/Makefile.am : add padlock_no.xpm and padlock.xpm
      	* src/pixmaps/padlock_no.xpm : new
      	* src/pixmaps/padlock.xpm : new
      
      2002-06-15  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-sheet-order.c (cb_toggled_lock) : new
      	(populate_sheet_list) : replace standard icon with toggleable lock item
      	(cb_add_clicked) : handle lock column
      	(cb_ok_clicked) : handle changes in lock status
      	(cb_sheet_order_destroy) : remove pixmaps
      	(dialog_sheet_order) : setup pixmaps
      9e494a52
    • Jody Goldberg's avatar
      http://bugzilla.gnome.org/show_bug.cgi?id=84500 remove debug spew. · ea0c4dd5
      Jody Goldberg authored
      
      2002-06-15  Jody Goldberg <jody@gnome.org>
      
      	http://bugzilla.gnome.org/show_bug.cgi?id=84500
      	* dialog-goto-cell.c (cb_dialog_goto_go_clicked) : remove debug spew.
      	(cb_dialog_goto_update_sensitivity) : only actiavte if entry is valid.
      	(dialog_goto_init) : editable_enters is too coarse do it ourselves.
      ea0c4dd5