1. 31 Jan, 2002 1 commit
    • Jody Goldberg's avatar
      merge in the new object icons from jimmac. ditto. ditto. ditto. · 2ec91abf
      Jody Goldberg authored
      2002-01-30  Jody Goldberg <jody@gnome.org>
      
      	* src/application.c : merge in the new object icons from jimmac.
      	* src/pixmaps/Makefile.am : ditto.
      	* src/workbook-control-gui.c : ditto.
      	* src/GNOME_Gnumeric.xml : ditto.
      	s/^/Object/
      	s/Rect/Rectangle/
      	s/Oval/Ellipse/
      	s/Checkbutton/Checkbox/
      
      	* src/gui-util.c (gnumeric_error_info_dialog_show) : center error
      	  dialog on the mouse.
      2ec91abf
  2. 28 Jan, 2002 1 commit
    • Andreas J. Guelzow's avatar
      move to gui_utils.c (error_in_entry) : move some code to · 70e17e2a
      Andreas J. Guelzow authored
      2002-01-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-analysis-tools.c (tools_destroy_warning) : move to gui_utils.c
      	(error_in_entry) : move some code to gnumeric_notice_nonmodal
      	* dialog-goal-seek.c : change gnumeric_notice to gnumeric_notice_nonmodal
      	(dialog_goal_seek) : initialize state->warning_dialog
      	* dialog-solver.c (solver_destroy_warning) : move to gui_utils.c
      	(solver_notice) : move to gnumeric_notice_nonmodal
      
      2002-01-27  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui_util.c (gnumeric_destroy_dialog) : new callback
      	(gnumeric_notice_nonmodal) : save dialog ptr in reference
      	* src/gui_util.h (gnumeric_notice_nonmodal) : change
      	  parameters and return value
      70e17e2a
  3. 27 Jan, 2002 1 commit
    • Andreas J. Guelzow's avatar
      non-modal version of gnumeric_notice (gnumeric_dialog_run) : remove · ab623e69
      Andreas J. Guelzow authored
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (gnumeric_notice_nonmodal) : non-modal version of
      	  gnumeric_notice
      	(gnumeric_dialog_run) : remove warning
      	* src/gui-util.h (gnumeric_notice_nonmodal) : new
      
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* autosave-prompt.glade : removed
      	* dialog-analysis-tools.c synchronize tool_states better, change
      	  arguments for all calls of error_in_entry
      	(tools_destroy_warning) : new callback
      	(error_in_entry) : make warning message non-modal
      
      2002-01-26  Andreas Guelzow <aguelzow@taliesin.ca>
      
      	* POTFILES.in : removed src/dialogs/autosave-prompt.glade
      ab623e69
  4. 26 Jan, 2002 3 commits
    • Andreas J. Guelzow's avatar
      moved to gui-utils.c/h (entry_to_int) : ditto (float_to_entry) : ditto · 368aa730
      Andreas J. Guelzow authored
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-analysis-tools.c (entry_to_float) : moved to gui-utils.c/h
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      	* dialog-autosave.c (autosave_on_off_toggled) renamed to
      	  autosave_set_sensitivity and improved functionality
      	(dialog_autosave_prompt) : rewritten to use standard gtk dialog
      	(dialog_autosave) : rewritten as non-modal
      	(cb_autosave_cancel) : new
      	(cb_autosave_help) : new
      	(cb_autosave_ok) : new
      
      2002-01-26  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (entry_to_float) :
      	  moved here from dialogs/dialog-analysis-tools.c
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      
      	* src/gui-util.h (entry_to_float) new function (used to be static)
      	(entry_to_int) : ditto
      	(float_to_entry) : ditto
      	(int_to_entry) : ditto
      368aa730
    • Andreas J. Guelzow's avatar
      fix all calls to gnumeric_notice ditto ditto ditto ditto ditto ditto ditto · 8b236ce4
      Andreas J. Guelzow authored
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* dialog-advanced-filter.c : fix all calls to gnumeric_notice
      	* dialog-analysis-tools.c : ditto
      	* dialog-autocorrect.c : ditto
      	* dialog-autosave.c : ditto
      	* dialog-cell-sort.c : ditto
      	* dialog-consolidate.c : ditto
      	* dialog-define-names.c : ditto
      	* dialog-goal-seek.c : ditto
      	* dialog-search-replace.c : ditto
      	* dialog-search.c : ditto
      	* dialog-solver.c : ditto
      	* dialog-tabulate.c : ditto
      
      2002-01-25  Andreas J. Guelzow <aguelzow@taliesin.ca>
      
      	* src/gui-util.c (gnumeric_dialog_run) : use GTK functions
      	(gnumeric_notice) : create GTK_Message_Dialog
      	* src/gui-util.h (gnumeric_notice) : change type of second argument
      	* src/gui-file.c : fix all calls to gnumeric_notice
      	* src/print.c : ditto
      	* src/style.c : ditto
      	* src/workbook-cmd-format.c : ditto
      	* src/workbook-control-gui.c : ditto
      8b236ce4
    • Jody Goldberg's avatar
      fix the icon names. · a5672c46
      Jody Goldberg authored
      2002-01-25  Jody Goldberg <jody@gnome.org>
      
      	* src/sheet-control-gui.c (scg_context_menu) : fix the icon names.
      
      	* src/gui-util.c (gnumeric_popup_menu) : sink the menus.
      a5672c46
  5. 24 Jan, 2002 1 commit
  6. 23 Jan, 2002 1 commit
  7. 24 Dec, 2001 2 commits
  8. 21 Dec, 2001 1 commit
  9. 10 Nov, 2001 1 commit
  10. 17 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      support formatting graphs. · ac465a29
      Jody Goldberg authored
      simplify idl in preparation for demand based typing.
      
      2001-10-17  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gui-util.c (gnumeric_create_popup_menu_list) : tweak this to
      	  take a list.
      	(gnumeric_create_popup_menu) : and make this a wrapper.
      
      	* src/gnumeric-graph.c (gnm_graph_user_config) : connect to the graph
      	  guru formatGuru.
      ac465a29
  11. 16 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      new function. (graph_guru_set_page) : split from here. · 7a96b069
      Jody Goldberg authored
      2001-10-16  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-graph-guru.c (graph_guru_apply_changes) : new function.
      	(graph_guru_set_page) : split from here.
      	(cb_graph_guru_clicked) : used here.
      	(graph_guru_clear_xml) : new.
      	(graph_guru_init_data_page) : split some out into.
      	(graph_guru_get_spec) : here.
      	(graph_guru_state_destroy) : use graph_guru_clear_xml.
      	(graph_guru_apply_changes) : update protection.
      	(graph_guru_set_page) : expand.
      
      2001-10-16  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_get_spec) : Buffer changed name.
      	  leak fix.
      	(gnm_graph_import_specification) : ditto.
      
      	* idl/GNOME_Gnumeric_Graph.idl  : Add some derived controls to act as
      	  gurus.
      7a96b069
  12. 10 Oct, 2001 1 commit
  13. 07 Oct, 2001 1 commit
    • Jody Goldberg's avatar
      disconnect the combo handlers before we destroy the state so that their · 613f3562
      Jody Goldberg authored
      2001-10-06  Jody Goldberg <jgoldberg@home.com>
      
      	* dialog-graph-guru.c (graph_guru_state_destroy) : disconnect the
      	  combo handlers before we destroy the state so that their callbacks
      	  don't trigger during destruction.
      	(vector_state_set_entry) : merge back into.
      	(vector_state_fill) : here.  Use the index rather than a cached
      	  xmlNode *.
      	(vector_state_new) : rename 'index' to 'dim_index' to be clearer.
      	(graph_guru_select_plot) : store the index rather than an xmlNode *.
      	(graph_guru_select_series) : store the index rather than an xmlNode *.
      	(graph_guru_init_data_page) : the graph caches the spec, not us.
      	(graph_guru_get_plot) : new utility.
      	(cb_plot_selection_changed) : use the new utility.
      	(graph_guru_get_series) : new utility.
      	(cb_series_selection_changed) : use the new utility.
      	(cb_series_entry_changed) : support lookup, and warn about renaming.
      	(cb_plot_entry_changed) : support lookup, and warn about renaming.
      	(cb_graph_guru_focus) : use graph_guru_get_series.
      	(dialog_graph_guru) : init the combos to NULL in case we destroy
      	  before initializing them.
      
      2001-10-07  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in (EXTRA_GNOME_{CFLAGS,LIBS}) : rename to something
      	  clearer like GNUMERIC_{CFLAGS,LIBS})
      	* **/Makefile.am : Use them in place of EXTRA_* and GNOME_INCLUDEDIR.
      
      2001-10-06  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-graph.c (gnm_graph_get_spec) : Add a force_update.
      	(gnm_graph_series_delete) : new
      	(gnm_graph_series_set_dimension) : new
      	(gnm_graph_exception) : new.
      	(gnm_graph_vector_from_string) : delete.
      613f3562
  14. 06 Oct, 2001 1 commit
    • Morten Welinder's avatar
      Implement search. · 13c62ab9
      Morten Welinder authored
      2001-10-06  Morten Welinder  <terra@diku.dk>
      
      	* src/workbook-control-gui.c (cb_edit_search): Implement search.
      
      	* src/search.c (search_collect_cells): New function, extracted
       	from commands.c.
      	(search_match_string): New function to check for match only.
      
      	* src/gui-util.c (gnumeric_keyed_dialog): Constify.
      
      2001-10-06  Morten Welinder  <terra@diku.dk>
      
      	* dialog-search-replace.c (dialog_search, dialog_search_notify):
       	New functions (and dialogs).
      13c62ab9
  15. 24 Aug, 2001 2 commits
    • Jody Goldberg's avatar
      Rename gnumeric-utils.h gui-utils.h to be more accurate. · d531765d
      Jody Goldberg authored
      Clean out a bunch includes.
      d531765d
    • Jody Goldberg's avatar
      fix. · 8ba4a43f
      Jody Goldberg authored
      2001-08-24  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/Makefile.am : fix.
      
      	* src/gnumeric-canvas.c : add gnome-i18n.
      	* src/gnumeric-util.c : add gnome-{i18n,util}
      	* src/gui-file.c : add gnome-{i18n,config,util}
      	* src/history.c : add gnome-i18n.
      	* src/main.c : add gnome-config.
      	* src/sheet-control-gui.c : add gnome-i18n.
      	* src/workbook.c : Add gnome-i18n, loosen sheet-control-gui req to
      	  just sheet-control.
      	* src/workbook-edit.c : add gnome-i18n.
      	* src/workbook-view.c : add gnome-i18n and gnome-config, remove widget.
      	* src/workbook-control-gui.c : Add gnome-i18n and gnome-config.
      	* src/xml-io-autoft.c : add unistd.h
      8ba4a43f
  16. 15 Jul, 2001 1 commit
  17. 14 Jul, 2001 1 commit
    • Chyla Zbigniew's avatar
      New. (error_info_new_printf): Use error_info_new_vprintf. · 3537beaf
      Chyla Zbigniew authored
      * src/error-info.[ch]
      (error_info_new_vprintf): New.
      (error_info_new_printf): Use error_info_new_vprintf.
      (error_info_peek_message): Constified.
      
      * src/command-context-priv.h (struct CommandContextClass): Added
      error.error_info virtual.
      
      * src/command-context.[ch] (gnumeric_error_error_info): New.
      
      * src/io-context.[ch]
      (gnumeric_io_error_system, gnumeric_io_error_read,
      gnumeric_io_error_save): Use gnumeric_io_error_string.
      (gnumeric_io_error_string): New.
      (gnumeric_io_error_display): Renamed from
      gnumeric_io_error_info_display. Use CommandContext's virtual -
      gnumeric_error_error_info.
      (gnumeric_io_error_info_clear, gnumeric_io_has_error_info): Removed.
      s/gnumeric_io_clear_error/gnumeric_io_error_clear
      s/gnumeric_io_error_info_push/gnumeric_io_error_push/
      s/gnumeric_io_error_info_pop/gnumeric_io_error_pop/
      
      * src/gnumeric-util.c
      (ctree_insert_error_info): Automatically expand most nodes (don't expand
      nodes with siblings).
      (gnumeric_error_info_dialog_show_full): Renamed from
      gnumeric_error_info_dialog_show. Display only a tree with error
      details. Don't hardcode ctree column width, make ctree look nicer (no
      lines, triangles as icons).
      (gnumeric_error_info_dialog_show): New function, displays only main part
      of the error and (optionally) "Show details" button. Use standard
      gnome_message_box.
      
      * src/plugin-util.c (gnumeric_fopen_error_info,
      gnumeric_mmap_error_info): Use error_info_new_from_errno.
      (gnumeric_open_error_info): Use error_info_new_from_errno,
      added missing *ret_error.
      
      * src/workbook-control-gui.c (wbcg_error_error_info): New
      (implementation of CommandContext's virtual).
      (workbook_control_gui_ctor_class): Use it here.
      
      * src/workbook-view.c (wb_view_save_as, wb_view_save,
      wb_view_open_custom): Don't use removed gnumeric_io_has_error_info.
      3537beaf
  18. 05 Jun, 2001 1 commit
    • Chyla Zbigniew's avatar
      New function, some code moved from gui-file.c. · 7aba8116
      Chyla Zbigniew authored
      
      * src/gnumeric-util.[ch] (gnumeric_dialog_file_selection): New
      function, some code moved from gui-file.c.
      
      * src/workbook.[ch] (workbook_get_filename): New accessor function.
      
      * src/gui-file.h
      (gui_file_open): New function.
      (gui_file_import): Removed fname argument.
      
      * src/gui-file.c
      (gui_file_import): Create and open file selector, using
      gnumeric_dialog_file_selection to display it. Use one dialog to select
      file and file format, we don't need glade file anymore. Optionally
      show all registered openers as importers.
      (gui_file_save_as): Uses gnumeric_dialog_file_selection. Take
      workbook's current saver if current_saver is NULL (previously we've
      been loosing this information), use
      gnumeric_option_menu_get_selected_index instead of playing with
      signals.
      (gui_file_open): New function, some code moved from
      dialog_query_load_file.
      (gui_file_save): Always call wb_view_preferred_size.
      (do_save_as): Take GnumFileSaver as argument.
      (cb_select, handle_ok, saver_activate, fill_save_menu,
      make_format_chooser, file_dialog_delete_event, fs_key_event,
      fs_set_filename): Removed.
      
      * src/workbook-control-gui.c
      (cb_file_new): Just call gui_file_open.
      (cb_file_import): Call gui_file_import.
      (workbook_control_gui_init): Initialize current_saver with NULL.
      7aba8116
  19. 23 May, 2001 1 commit
    • Chyla Zbigniew's avatar
      Removed #include "xml-io.h". · b9071979
      Chyla Zbigniew authored
      
      * src/bonobo-io.c, src/clipboard.c, src/file.c, src/plugin.c,
      src/sheet-object.c, src/stf.c, src/workbook.c:
      Removed #include "xml-io.h".
      
      * src/dialogs/dialog-plugin-manager.c (gnumeric_dialog_question_yes_no):
      Function moved ...
      
      * src/gnumeric-util.[ch]: ... here.
      
      * src/gui-file.c
      (gui_file_import): Sorting file importers.
      (fill_save_menu): Sorting file savers, function simplified (doesn't use
      file_saver_is_default_format).
      (can_try_save_to): Function simplified, uses
      gnumeric_dialog_question_yes_no from gnumeric-util.h, default answer
      for question about overwriting a file is configurable.
      b9071979
  20. 03 May, 2001 1 commit
    • Jon K Hellan's avatar
      New callback function. Removes object data from wbcg when dialog is · ccb86658
      Jon K Hellan authored
      2001-05-03  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (cb_remove_object_data): New callback
      	function. Removes object data from wbcg when dialog is destroyed.
      	(gnumeric_keyed_dialog): New function. Make dialog a transient
      	child of wbcg, attaching to wbcg object data to identify the
      	dialog.
      	(gnumeric_dialog_raise_if_exists): New function: Raise the dialog
      	identified by key if it is registered on the wbcg.
      
      	* src/gnumeric-util.h (gnumeric_dialog_make_unique,
      	gnumeric_dialog_raise_if_exists): Declare.
      
       	* src/about.c (dialog_about): Use gnumeric_keyed_dialog.
      	Use gnumeric_dialog_raise_if_exists to ensure that only one sheet
      	object config dialog at a time can be displayed for a wbcg.
      
       	* src/sheet-object-widget.c (sheet_widget_checkbox_user_config):
      	Ditto.
      
      2001-05-03  Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-define-names.c (name_guru_init): Use
      	gnumeric_keyed_dialog rather than gnumeric_non_modal_dialog.
      	(dialog_define_names): Use (gnumeric_dialog_raise_if_exists to
      	ensure that only one instance at a time can be displayed for a
      	wbcg.
      ccb86658
  21. 26 Apr, 2001 2 commits
    • Jon K Hellan's avatar
      Fix typo. · a214d2b6
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/item-grid.c (item_grid_draw_background): Fix typo.
      
      	* src/gnumeric-util.c (gnumeric_dialog_run): Fix silly mistake
      a214d2b6
    • Jon K Hellan's avatar
      Eliminate attempt to handle parent being closed underneath dialog running · afbe6688
      Jon K Hellan authored
      2001-04-26  Jon K Hellan  <hellan@acm.org>
      
      	* src/gnumeric-util.c (gnumeric_wb_dialog_run): Eliminate attempt
      	to handle parent being closed underneath dialog running a
      	recursive mainloop. That can't happen since GTK 1.2.7. Move what
      	remains of the function into gnumeric_dialog_run.
      	(gnumeric_dialog_run): See above.
      	(gnumeric_set_transient): Place dialog according to user's
      	placement policy.
      	(gnumeric_non_modal_dialog): Use gnumeric_set_transient to get
      	placement right.
      
      	* src/gui-file.c (gui_file_save_as, dialog_query_load_file):
      	No longer place at mouse, since gnumeric_set_transient now
      	honours user's dialog placement policy.
      afbe6688
  22. 18 Apr, 2001 1 commit
    • Jon K Hellan's avatar
      Change return type to GnumericExprEntry. (workbook_set_entry): Change type · eb52c908
      Jon K Hellan authored
      2001-04-18  Jon K Hellan  <hellan@acm.org>
      
      	* src/workbook-edit.[ch] (workbook_get_entry,
      	workbook_get_entry_logical): Change return type to
      	GnumericExprEntry.
      	(workbook_set_entry): Change type of entry argument to
      	GnumericExprEntry.
      
      	* src/gnumeric-sheet.c (move_cursor): Move to scg::scg_move_cursor
      	(cursor_horizontal_move): Move to scg::scg_cursor_horizontal_move
      	(cursor_horizontal_extend): Move to
      	scg::scg_cursor_horizontal_extend
      	(cursor_vertical_move): Move to scg::scg_cursor_vertical_move
      	(cursor_vertical_extend): Move to scg::scg_cursor_vertical_extend
      	(selection_remove_selection_string,
      	selection_insert_selection_string): Remove. GnumericExprEntry
      	widget now handles this.
      	(start_cell_selection_at): Rename to start_range_selection_at.
      	(start_cell_selection): Rename to start_range_selection.
      	(gnumeric_sheet_start_cell_selection): Rename to
      	gnumeric_sheet_start_range_selection.
      	(gnumeric_sheet_stop_cell_selection): Rename to
      	gnumeric_sheet_stop_range_selection. Remove clear_string parameter
      	and selection string manipulation.
      	(rangesel_horizontal_move): Make non-static, rename to
      	gnumeric_sheet_rangesel_horizontal_move, remove selection string
      	manipulation.
      	(rangesel_vertical_move): Make non-static, rename to
      	gnumeric_sheet_rangesel_vertical_move, remove selection string
      	manipulation.
      	(rangesel_horizontal_extend): Make non-static, rename to
      	gnumeric_sheet_rangesel_horizontal_extend, remove selection string
      	manipulation.
      	(rangesel_vertical_extend): Make non-static, rename to
      	gnumeric_sheet_rangesel_vertical_extend, remove selection string
      	manipulation.
      	(gnumeric_sheet_key_mode_sheet): Use movefn's from scg instead of
      	from GnumericSheet.
      
      	* src/gnumeric-sheet.h (gnumeric_sheet_start_cell_selection):
      	Rename to gnumeric_sheet_start_range_selection.
      	(gnumeric_sheet_stop_cell_selection): Rename to
      	gnumeric_sheet_stop_range_selection. Remove clear_string
      	parameter.
      	(gnumeric_sheet_rangesel_horizontal_move,
      	gnumeric_sheet_rangesel_vertical_move,
      	gnumeric_sheet_rangesel_horizontal_extend,
      	gnumeric_sheet_rangesel_vertical_extend): Declare.
      
      	* src/gnumeric-util.[ch] (gnumeric_entry_at_subexpr_boundary_p):
      	Rename to gnumeric_expr_entry_at_subexpr_boundary_p and move to
      	gnumeric_expr_entry widget.
      
      	* src/item-grid.c (item_grid_button_1, item_grid_event): Use scg
      	methods instead of methods from GnumericSheet.
      
      	* src/sheet.[ch] (sheet_stop_cell_selection): Rename to
      	sheet_stop_range_selection.
      
      	* src/sheet-control-gui.c (scg_colrow_select): Use scg methods
      	instead of methods from GnumericSheet.
      	(scg_stop_editing): Add call to scg_stop_cell_selection.
      	(scg_range_selection_changed): New function. Notify ExprEntry that
      	the expression range has changed.
      	(scg_move_cursor): Moved here from GnumericSheet.
      	(scg_rangesel_cursor_extend): Add call to
      	scg_range_selection_changed.
      	(scg_rangesel_cursor_bounds, scg_rangesel_horizontal_move,
      	scg_rangesel_vertical_move, scg_rangesel_horizontal_extend,
      	scg_rangesel_vertical_extend): New functions. Call GnumericSheet
      	counterpart and notify ExprEntry.
      	(scg_cursor_horizontal_move, scg_cursor_horizontal_extend,
      	scg_cursor_vertical_move, scg_cursor_vertical_extend): Moved here
      	from GnumericSheet.
      	(scg_get_sel_cursor_pos): New function. Return selection cursor
      	position.
      
      	* src/sheet-control-gui.h (scg_range_selection_changed,
      	scg_move_cursor, scg_rangesel_cursor_bounds,
      	scg_rangesel_horizontal_move, scg_rangesel_vertical_move,
      	scg_rangesel_horizontal_extend, scg_rangesel_vertical_extend,
      	scg_cursor_horizontal_move, scg_cursor_vertical_move,
      	scg_cursor_horizontal_extend, scg_cursor_vertical_extend,
      	scg_get_sel_cursor_pos): Declare.
      
      	* src/sheet-control-gui.[ch] (scg_stop_cell_selection): Rename to
      	scg_stop_range_selection. Notify ExprEntry that range selection
      	has stopped.
      
      	* src/sheet-object-widget.c (cb_checkbox_config_focus): Call
      	gnumeric_expr_entry_select_absolute.
      	(sheet_widget_checkbox_user_config): Use GnumericExprEntry. Attach
      	it to the scg.
      
      	* src/workbook-control-gui.c (cb_notebook_switch_page): Use new
      	function name sheet_stop_range_selection.
      
      	* src/workbook-control-gui-priv.h (struct
      	_WorkbookControlGUI::struct edit_line): entry and temp_entry are
      	now GnumericExprEntries.
      	(struct _WorkbookControlGUI): Remove select_abs_col,
      	select_abs_row, select_full_col, select_full_row and
      	select_single_cell.
      
      	* src/workbook-control-gui.c (wbcg_finish_editing,
      	wb_edit_key_pressed, cb_autofunction, workbook_setup_edit_area,
      	auto_complete_matches): Entry must now be cast to GtkEntry.
      	(workbook_control_gui_init): select_abs_col, select_abs_row,
      	select_full_col, select_full_row and select_single_cell no longer
      	exist.
      
      	* src/workbook-edit.c (workbook_finish_editing, entry_changed,
      	workbook_start_editing_at_cursor): entry must now be cast to
      	GtkEntry.
      	(workbook_start_editing_at_cursor): Attach scg to
      	ExprEntry. wbcg->select_abs_col and select_abs_row no longer
      	exist.
      	(workbook_edit_select_absolute): Move to ExprEntry widget.
      	(workbook_edit_toggle_absolute): New function. Probably remove it
      	again.
      	(workbook_edit_init): Remove redundant 'g_assert != NULL'. Use
      	GnumericExprEntry widget.
      
      2001-04-18 Jon K Hellan  <hellan@acm.org>
      
      	* src/dialogs/dialog-define-names.c (struct NameGuruState):
      	Change type of expr_text to GnumericExprEntry.
      	(name_guru_set_expr, name_guru_update_sensitivity,
      	name_guru_set_expr, cb_name_guru_add): expr_text must now be
      	cast to GTK_ENTRY.  (cb_name_guru_value_focus): Use
      	gnumeric_expr_entry_set_absolute. w argument is now expected
      	to be a GnumericExprEntry.  (cb_name_guru_set_focus): New
      	function. Make anted selection go away when a widget other
      	than expr_text receives focus.  (name_guru_init): Create a
      	GnumericExprEntry and insert in the dialog. Attach it to the
      	current sheet. Connect cb_name_guru_set_focus to dialog's
      	set-focus signal, and remove the focus-in handler from
      	name_value.
      
      	* src/dialogs/dialog-function-wizard.c (struct ArgumentState):
      	Change type of entry to GnumericExprEntry.
      	(formula_guru_set_expr): Change type of new_entry to
      	GnumericExprEntry. Cast to GTK_ENTRY where necessary.
      	(formula_guru_set_expr, cb_formula_guru_rolled_entry_changed,
      	cb_formula_guru_entry_changed, formula_guru_init):
      	ArgumentState->entry must now be cast to GTK_ENTRY.
      	(formula_guru_set_rolled_state): Change type of new_entry to
      	GnumericExprEntry. Cast to GTK_ENTRY where necessary.
      	(formula_guru_arg_new): Create a GnumericExprEntry instead of
      	a GtkEntry and insert in the dialog. Attach it to the current
      	sheet.  (formula_guru_init): Create a GnumericExprEntry for
      	rolled_entry and insert in the dialog. Attach it to the
      	current sheet.  (dialog_formula_guru): Value returned by
      	workbook_get_entry must now be cast to GTK_ENTRY.
      
      	* src/dialogs/formula-guru.glade: Remove 'rolled_entry'
      	GtkEntry. A GnumericExprEntry is now added at runtime instead.
      
      	* src/dialogs/names.glade: Remove 'expr_text' GtkEntry. A
      	GnumericExprEntry is now added at runtime instead.
      eb52c908
  23. 23 Mar, 2001 1 commit
  24. 25 Jan, 2001 1 commit
    • Chyla Zbigniew's avatar
      Added error-info.[ch] · fbc4a7c5
      Chyla Zbigniew authored
      
      * src/Makefile.am (GNUMERIC_BASE_SOURCES): Added error-info.[ch]
      
      * error-info.[ch]: New files.
      
      * src/plugin.[ch]: New plugin engine.
      
      * src/dialogs/dialog-plugin-manager.c,
      src/dialogs/plugin-manager.glade,
      src/dialogs/plugin-manager.glade.h:
      New plugin manager.
      
      * src/main.c (gnumeric_main): Call plugins_shutdown() on shutdown.
      
      * src/bonobo-io.c
      (gnumeric_bonobo_write_workbook, gnumeric_bonobo_read_workbook,
      gnumeric_bonobo_io_probe): Added "user_data" arg.
      (gnumeric_bonobo_io_init): Saving saver/opener id.
      
      * src/file-autoft.c (gnumeric_extra_autoformat_dirs): Used
      gnumeric_config_get_string_list function.
      
      * src/file.c
      (file_format_register_open, file_format_register_save): Added
      user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save): Take
      only FileOpenerId/FileSaverId as parameter.
      (get_file_saver_by_id, get_file_opener_by_id): New functions.
      (do_load_from): Pass user_data parameter to "probe" and "open"
      functions.
      (workbook_save_as, workbook_save): Pass user_data parameter to "save"
      function.
      
      * src/file.h
      (FileFormatProbe, FileFormatOpen, FileFormatSave): Adder user_data
      parameter.
      (struct _FileOpener, struct _FileSaver): Added opener_id/saver_id
      field.
      (file_format_register_open, file_format_register_save):
      Added user_data parameter, return FileOpenerId/FileSaverId.
      (file_format_unregister_open, file_format_unregister_save):
      Take only FileOpenerId/FileSaverId as parameter.
      
      * src/gnumeric-util.[ch]
      (gnumeric_error_info_dialog_show, static ctree_insert_error_info):
      New functions displaying dialog with ErrorInfo contents.
      
      * src/gui-file.c (gui_file_import): Pass user_data parameter to
      "open" function.
      
      * src/gutils.[ch]
      New functions: gnumeric_config_get_string_list,
      gnumeric_config_set_string_list, g_string_list_copy,
      g_strsplit_to_list.
      (g_create_list): Added missing va_end().
      
      * src/stf.c (stf_read_workbook, stf_write_workbook): Added user_data
      parameter.
      
      * src/workbook.[ch] (workbook_set_saveinfo): Now takes file_saver_id
      instead of save_fn.
      
      * src/xml-io.c
      (xml_probe, gnumeric_xml_read_workbook, gnumeric_xml_write_workbook):
      Added user_data parameter.
      (xml_init): Store xml_opener_id and xml_saver_id.
      (gnumeric_xml_get_opener_id, gnumeric_xml_get_saver_id): New
      functions.
      fbc4a7c5
  25. 24 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Let the sensitivity filter function exacly like the display filter. · 783d67db
      Almer S. Tigelaar authored
      2001-01-24  Almer S. Tigelaar  <almer1@dds.nl>
      
              * src/gnumeric-util.c (gnumeric_create_popup_menu):
              Let the sensitivity filter function exacly like the
              display filter.
      
              * src/sheet-control-gui.c (scg_context_menu):
              Disable insert rows/cols according to the selected
              rows/cols. We don't want people to insert anything if
              the whole sheet is selected or if there are multiple
              selections of whole rows and cols.
      
              * src/workbook-control-gui.c (wbcg_insert_cols_rows_enable):
              Fix typo, "Cols" should be "Columns".
      783d67db
  26. 14 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      create the client site here. (sheet_object_bonobo_set_object_iid) : rather · fa5c033c
      Jody Goldberg authored
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : create
      	  the client site here.
      	(sheet_object_bonobo_set_object_iid) : rather than here.
      
      2000-12-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p) :
      	  Add ')' bug 35149
      fa5c033c
  27. 09 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Always clear the timer. · 0856537d
      Jody Goldberg authored
      
      2000-12-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_comment_display) : Always clear the
      	  timer.
      
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p)
      	: Add '<' '>'.  Bug 34642
      0856537d
  28. 08 Dec, 2000 1 commit
    • Jody Goldberg's avatar
      Use more of the new artwork. · 488219c2
      Jody Goldberg authored
      
      2000-12-07  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet-control-gui.c (scg_context_menu) : Use more of the new
      	  artwork.
      
      2000-12-07  Jody Goldberg <jgoldberg@home.com>
      
      	* ms-excel-read.c (ms_excel_get_style_from_xf) : enable indent.
      488219c2
  29. 31 Oct, 2000 1 commit
    • Jody Goldberg's avatar
      Set LC_MONETARY and LC_NUMERIC. Ditto. (xml_workbook_read) : Ditto. · ffac72f5
      Jody Goldberg authored
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (wb_view_auto_expr) : Set LC_MONETARY and
      	  LC_NUMERIC.
      	* src/xml-io.c (xml_workbook_write) : Ditto.
      	(xml_workbook_read) : Ditto.
      
      2000-10-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/*.[ch] : WorkbookControlGUI is now required for gui
      	  operations.  A WorkbookView is required to know which sheet is the
      	  current.
      
      	* src/xml-io.c : We now load/save WorkbookViews.
      
      	* src/xml-io-autoft.c : Adjust to signature changes.
      
      	* src/workbook.c : Split the View into WorkbookView.
      	  Abstract the Controler interface, and move the GUI specific
      	  implementation of the Controler into WorkbookControlGUI.
      
      	* src/workbook-view.c : Complete rewrite with correct semantics.
      
      	* src/workbook-private.h : Move all the GUI specific stuff into
      	  WorkbookControlGUI were it belongs.
      
      	* src/workbook-private.c (workbook_private_class_init) : Fix typo.
      
      	* src/workbook-edit.c : These are now WorkbookControlGUI specific.
      	  We should rename the functions eventually.
      	* src/workbook-format-toolbar.c : Ditto.
      	* src/workbook-object-toolbar.c : Ditto.
      
      	* src/workbook-cmd-format.c : Adjust to signature changes.
      	  and use WorkbookControlGUI were necessary.
      
      	* src/style.c (style_font_new_from) : Delete dead code.
      
      	* src/solver-lp.c : Adjust to signature changes.
      	* src/sort.c : Ditto.
      	* src/stf.c : Ditto. Make dialog conditional on gui-ness.
      
      	* src/sheet.c (sheet_new_sheet_view) : IS_SHEET checks for NULL.
      	(sheet_detach_sheet_view) : renamed from sheet_destroy_sheet_view
      	  and only take a SheetView as argument.
      	(sheet_new) : Do not create a view by default.
      	(sheet_update_zoom_controls) : foreach control.
      	(sheet_update_editpos) : ditto.
      	(sheet_update) : handle multiple views and controls.
      
      	* src/sheet-view.c : Commands take WorkbookControls rather than
      	  CommandContexts.
      
      	* src/sheet-object-widget.c : Most things take WorkbookControlGUI
      	  rather than Workbooks.
      
      	* src/sheet-object-container.c (sheet_object_container_new_view) :
      	  Use the uic from the WorkbookControlGUI.
      
      	* src/sheet-control.c : New file. Unused so far.
      	  cp sheet-view.c sheet-control.c
      	  s/SheetView/SheetControl/
      
      	* src/print.c : Make the GUI dependency explicit.
      	  At some point the setup dialog should be split out of here.
      
      	* src/main.c (gnumeric_main) : Explicitly create a WorkbookControlGUI
      	  only adding sheets if nothing was loaded.  Improve handing of exit
      	  request while loading.
      
      	* src/item-grid.c (item_grid_draw) : Filter the edit cell from here
      	  because we know which control to use.
      	(context_menu_hander) : Switch to WorkbookControlGUI.
      	(item_grid_popup_menu) : Ditto.
      
      	* src/item-edit.c : Everything takes a WorkbookControlGUI inplace of a
      	  Workbook now.
      
      	* src/item-cursor.c (item_cursor_target_region_ok) : dialog_run takes
      	  a WorkbookControlGUI.
      	(item_cursor_do_action) : All the commands take WorkbookControls.
      
      	* src/item-bar.c (item_bar_event) : item_grid_popup_menu takes a
      	  SheetView now.
      
      	* src/history.c : Take WorkbookControlGUI.
      	  Update all controls for each workbook.
      
      	* src/gui-clipboard.c : Use 'unsigned char'
      
      	* src/gnumeric.xml : More work to split commands from layout.
      
      	* src/gnumeric-util.c (gnumeric_no_modify_array_notice) : Delete.
      	(gnumeric_notice) : Take a WorkbookControlGUI.
      	(gnumeric_wb_dialog_run) : Ditto.
      	(gnumeric_dialog_run) : Ditto.
      	(gnumeric_dialog_show) : Ditto.
      	(gnumeric_set_transient) : Ditto.
      	(gnumeric_glade_xml_new) : Ditto.
      	(gnumeric_non_modal_dialog) : Ditto.
      	(gnumeric_inject_widget_into_bonoboui) : Ditto.
      
      	* src/gnumeric-sheet.c : SheetView now has a WorkbookControlGUI member
      	  to keep track of which control it is associated with. Use it.
      
      	* src/file.c : Adjust to lots of signature changes.
      	  We now load/save WorkbookView rather than Workbook.
      	  Add a placeholder struct IOContext so that we can consider doing
      	  smarter import/export and dealing with warnings and missing things
      	  smoothly.
      
      	* src/eval.c (workbook_recalc_all) : After a recalc update all views.
      
      	* src/commands.c (undo_redo_menu_labels) : foreach control.
      	(command_undo) : ditto.
      	(command_redo) : ditto.
      	(command_push_undo) : change signature.  The workbookcontrol
      	  now acts as the command context.
      
      	* src/cmd-edit.c : Adjust to signature changes.
      
      	* src/clipboard.c : split the gui specific X handlers out into a new
      	  file.
      	* src/gui-clipboard.c :  here.
      
      	* src/cell-draw.c (cell_draw) : Do not test the sheet for whether or
      	  not to we are editing.  That is at the control level.  Test it in
      	  the rendering loop.
      
      	* src/bonobo-io.c : FIXME. adjusted to signature changes.  Totatly
      	  broken for now.  This needs a View rather than a Model and should be
      	  associated with something.
      
      	* src/application.c (application_workbook_list_add) : New function.
      	(application_workbook_list_remove) : New function.
      	(application_workbook_list) : New function.
      	(application_clipboard_copy) : foreach control.
      	(application_clipboard_cut) : foreach control.
      	(application_clipboard_clear) : foreach control.
      	(application_workbook_foreach) : renamed from workbook_foreach.
      	(application_set_selected_sheet) : FIXME. Disabled for now.
      
      	* src/about.c (cb_closed) : Associated the flag with the control
      	  directly.
      	(dialog_about) : dialogs are associated with gui-controls.
      
      	* src/analysis-tools.c : change all dialog signatures to handle MVC
      	  split of workbook.
      
      2000-10-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/Makefile.am : Add new command-context,  io-context,
      	  workbook-view, workbook-control, workbook-control-gui files.
      	  Remove old command-context-gui, command-context-corba, and disable
      	  corba-* for now.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* idl/gnumeric-graphs.idl : Remove studdly caps.  I wish people would
      	  make up their minds.
      
      	* idl/Gnumeric.idl : Remove Workbook::show.
      
      2000-10-29  Jody Goldberg <jgoldberg@home.com>
      
      	* BUGS : Update.
      	* NEWS : Update.
      	* TODO : Update.
      ffac72f5
  30. 11 Oct, 2000 2 commits
    • Jody Goldberg's avatar
      Generalized and moved from item-grid.c · 2074c922
      Jody Goldberg authored
      
      2000-10-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-util.c (gnumeric_create_popup_menu) : Generalized and
      	  moved from item-grid.c
      
      2000-10-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-util.c (run_popup_menu) : Delete.
      	(popup_menu_item_activated) : Delete.
      	(gtk_radio_button_select) : Delete.
      
      	* src/item-cursor.c (item_cursor_do_drop) : Use item_grid_popup_menu.
      
      	* src/sheet-object.c (display_object_menu) : Rename from create_popup_menu
      	  and display the menu.
      	(control_point_handle_event) : simplify with display_object_menu.
      	(sheet_object_canvas_event) : simplify with display_object_menu.
      
      	* src/gnumeric-util.c (gnumeric_popup_menu) : Do not pass the button
      	  number from the event that is poping up the menu.  That disables the
      	  ability to select a menu item via a different button.
      2074c922
    • Martin Baulig's avatar
      Removed the last bits of the old Bonobo UI Handler code. · b1d1e325
      Martin Baulig authored
      2000-10-11  Martin Baulig  <baulig@suse.de>
      
      	Removed the last bits of the old Bonobo UI Handler code.
      
      	* src/workbook-private.h (WorkbookPrivate): Changed `BonoboUIHandler *uih'
      	to `BonoboUIComponent *uic'.
      	* src/workbook.c (workbook_new): Create the BonoboUIComponent here.
      b1d1e325
  31. 05 Oct, 2000 1 commit
    • Michael Meeks's avatar
      look for bonobo >= 0.20 · dd659fff
      Michael Meeks authored
      2000-10-05  Michael Meeks  <michael@helixcode.com>
      
      	* configure.in (gnumeric_executable): look for bonobo >= 0.20
      
      	* src/workbook.c (setup_progress_bar): upd.
      
      	* src/gnumeric-util.c (gnumeric_inject_widget_into_bonoboui): upd.
      
      	* src/workbook.c s/BONOBO_UI_VERB/BONOBO_UI_UNSAFE_VERB/
      
      	* src/history.c (history_menu_insert_items): upd.
      	(history_menu_remove_items): upd.
      dd659fff
  32. 03 Oct, 2000 1 commit
    • Michael Meeks's avatar
      render the cell value if we have display_formulas even if we arn't · 936d042c
      Michael Meeks authored
      2000-10-03  Michael Meeks  <michael@helixcode.com>
      
      	* src/cell-draw.c (cell_draw): render the cell value if we have
      	display_formulas even if we arn't supposed to render '0' values
      	and the value is 0.
      
      	* src/print-cell.c (print_cell): ditto.
      
      	* src/gnumeric.xml: move built menu items up.
      
      	* src/workbook.c: add HelpAbout verb.
      	(workbook_new): update to use nicer helper, adding help support.
      
      2000-09-30  Michael Meeks  <michael@helixcode.com>
      
      	* src/gnumeric-util.c (gnumeric_inject_widget_into_bonoboui): add a
      	freeze / thaw to force GUI re-build.
      
      	* src/workbook.c: add debug verb. (verb_debug_dump_xml): impl.
      
      2000-09-24  Michael Meeks  <michael@helixcode.com>
      
      	* src/workbook-private.h: update to item container.
      
      2000-09-21  Michael Meeks  <michael@helixcode.com>
      
      	* src/sheet-object.c (sheet_object_destroy): fix uninitialized sheet
      	pointer.
      936d042c
  33. 30 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      The bonobo toolbars are mostly functional. · ff08e323
      Jody Goldberg authored
      - dog slow ??
      - missing accelerators
      - toolbars in wrong order
      - verb signatures are screwed up
      - no file history
      - not properly desensitized during editing
      - quick hack for recursion
      .
      .
      .
      A fix for bug 25414
      
      2000-09-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_create_toolbars) : All three toolbars are
      	  bonobo now.
      
      	* src/workbook-view.c (workbook_view_set_paste_special_state) : No
      	  need to use our own corba_exception.
      
      	* src/workbook-private.h : Remove the widget pointers for the border
      	  and colour combos.
      
      	* src/workbook-format-toolbar.c : Support the new bonobo ui stuff.
      	  Its a hack for now.
      
      	* src/gnumeric.xml (FormatToolbar) : Implement.
      
      	* src/gnumeric-util.c (gnumeric_toolbar_insert_with_eventbox) : Show
      	  the client widget.
      	(gnumeric_toolbar_append_with_eventbox) : Ditto.
      
      2000-09-30  Jody Goldberg <jgoldberg@home.com>
      	For : realms@telerama.com
      
      	* src/functions/fn-stat.c (gnumeric_chitest) : off by one bug fix.
      ff08e323
  34. 24 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Attempt to inject the standard controls. This does not work. Continue work · 0361f272
      Jody Goldberg authored
      
      2000-09-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (workbook_create_standard_toobar) : Attempt to inject
      	  the standard controls.  This does not work.
      	* src/gnumeric.xml : Continue work on bonobizing toolbars.
      
      2000-09-23  Jody Goldberg <jgoldberg@home.com>
      	For : realms@telerama.com
      
      	* src/datetime.c (datetime_g_days_between) : new function.
      	(datetime_g_months_between) : Ditto.
      	(datetime_g_years_between) : Ditto.
      
      	* src/functions/fn-date.c : Implement DateDif.
      
      2000-09-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/clipboard.c (x_selection_to_cell_region) : typo.
      
      	* src/gnumeric-util.c (gnumeric_inject_widget_into_bonoboui) : New
      	  utility routine.
      0361f272