- 13 Apr, 2002 1 commit
-
-
Jon Kåre Hellan authored
* src/gui-file.c: s/ENABLE_BONOBO/WITH_BONOBO/ * src/gui-util.c: Ditto. * src/history.c: Ditto. * src/main.c: Ditto. * src/sheet.c: Ditto. * src/sheet-object.c: Ditto. * src/workbook-control-gui.c: Ditto. * src/workbook-format-toolbar.c: Ditto. * src/workbook-object-toolbar.c: * src/workbook.c: Ditto. * src/workbook-private.c: Ditto. * src/xml-io.c: Ditto. * plugins/excel/ms-chart.c: Ditto * plugins/excel/ms-excel-read.c: Ditto
-
- 15 Feb, 2002 1 commit
-
-
Jody Goldberg authored
Requires a GAL update, and a gtk+ update 2002-02-15 Jody Goldberg <jody@gnome.org> * src/item-cursor.c (item_cursor_tip_setlabel) : enable now that the canvas bug is fixed. * src/sheet-control-gui.c (cb_hscrollbar_adjust_bounds) : new. (cb_vscrollbar_adjust_bounds) : new. * src/gui-util.c (gtk_button_stock_alignment_set) : new. (gnumeric_init_help_button) : new. * src/gnumeric-canvas.h : Move declaration of GnumericCanvasSlideHandler here. * src/gnumeric-canvas.c (gnm_canvas_guru_key) : forward to the entry, not the GnumericExprEntry wrapper. (gnm_canvas_key_mode_sheet) : ditto. * src/formats.c (cell_format_classify) : handle general. * src/file-priv.h : Inherit from GObject. * src/complete-sheet.c (complete_sheet_finalize) : call class_peek here to avoid potential reference problems. * src/commands.c (cmd_set_text) : doh! fix multi-line text. (cmd_autoformat) : const. * src/cell.c (cell_relocate) : const. * src/clipboard.c (paste_cell_with_operation) : const. (paste_cell) : ditto. * src/application.c (application_init) : add jimmac's expr-entry icon. * src/Makefile.am : distribute the marshaller.list s/GtkType/GType/ s/GtkSignalFunc/GCallback/ s/gtk_signal_connect/g_signal_connect/ + reformating. s/GTK_CHECK_CAST/G_TYPE_CHECK_INSTANCE_CAST/ s/GTK_CHECK_TYPE/G_TYPE_CHECK_CLASS_CAST/ s/GTK_CHECK_CLASS_CAST/G_TYPE_CHECK_INSTANCE_TYPE/ s/GTK_CHECK_CLASS_TYPE/G_TYPE_CHECK_CLASS_TYPE/ 2002-02-11 Jody Goldberg <jody@gnome.org> * src/stf.c (stf_init) : Make the names of the text import/export clearer.
-
- 31 Jan, 2002 1 commit
-
-
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.
-
- 28 Jan, 2002 1 commit
-
-
Jody Goldberg authored
2002-01-28 Jody Goldberg <jody@gnome.org> * src/workbook-object-toolbar.c : adjust to the new creation format. * src/workbook-edit.c (wbcg_edit_has_guru) : return the actual guru. * src/workbook-control-gui.c : Explicitly use the STOCK items rather than just the stock icon names. This enables the accelerators too. * src/sheet-object-widget.c : cleanup. Use _init functions, no need to create a silly _new wrapper that calls construct. Remove unused Sheet arguments. * src/gnumeric-canvas.c (gnm_canvas_guru_key) : new. (gnm_canvas_key_mode_sheet) : be more careful about what how to handle keys when there is a guru up. * src/sheet-object-widget.c (sheet_widget_checkbox_user_config) : create the table. 2002-01-27 Jody Goldberg <jody@gnome.org> * src/Makefile.am : cleanup the generated files.
-
- 24 Jan, 2002 1 commit
-
-
Jody Goldberg authored
still needs work
-
- 21 Jan, 2002 1 commit
-
-
Jody Goldberg authored
2002-01-21 Jody Goldberg <jody@gnome.org> * ms-obj.c (ms_object_attr_get_*) : new. (ms_obj_read_biff8_obj) : read scrollbar attributes. * ms-excel-read.c (ms_sheet_realize_obj) : Add scrollbars. (ms_sheet_create_obj) : ditto. 2002-01-20 jody goldberg <jody@gnome.org> * ms-chart.c (BC_R(vector_details)) : use gnm_vector_date. 2002-01-21 Jody Goldberg <jody@gnome.org> * src/application.c (application_init) : Add scrollbar. * src/sheet-object-widget.c : Add scrollbars. (sheet_widget_checkbox_user_config) : Use gnumeric_table_attach_with_label. (gnumeric_table_attach_with_label) : new util, does no belong here. * src/workbook-object-toolbar.c (cmd_create_scrollbar) : new.
-
- 24 Dec, 2001 1 commit
-
-
Jody Goldberg authored
2001-12-24 Jody Goldberg <jody@gnome.org> * src/gui-util.c (gnumeric_toolbar_new) : delete the old basicly useless class and move the relevant convenience routines here. (gnumeric_toolbar_get_widget) : ditto.
-
- 21 Dec, 2001 1 commit
-
-
Jody Goldberg authored
-
- 07 Dec, 2001 1 commit
-
-
Jody Goldberg authored
2001-12-06 Jody Goldberg <jody@gnome.org> * src/sheet.c (sheet_colrow_set_collapse) : new. (sheet_colrow_insert_finish) : new. (sheet_colrow_delete_finish) : new. (sheet_{col,row}_{ins,del} : use them here, we shoulw now correctly handle collapse states and gutters when ins/del cols/row. 2001-12-06 Jody Goldberg <jody@gnome.org> * src/sheet.c (sheet_colrow_gutter) : change signature and toggle the resize flag if necessary. (sheet_update_only_grid) : handle the resize and recompute_max_{col,row}_group flags. * src/colrow.c (colrow_set_states) : use simplified sheet_colrow_gutter signature. 2001-12-06 Jody Goldberg <jody@gnome.org> * src/workbook-cmd-format.c (sheet_dialog_set_row_height) : const. * src/workbook-object-toolbar.c : disable some code that is not ready for release. * src/sheet.c (sheet_colrow_insdel_finish) : new. (sheet_{col,row}_{ins,del} : use it here, and adjust the arguments to include optional state to fill in the new cols/rows. (sheet_colrow_fit_gutter) : simplify. (sheet_colrow_group_ungroup) : ditto. (sheet_colrow_fetch) : new utility. (sheet_colrow_get_info) : ditto. * src/sheet-control-gui.c (scg_setup_group_buttons) : new. (scg_resize) : use it here. (sheet_control_gui_new) : handle the layout for the group buttons. * src/print.c (compute_group) : const. * src/item-grid.c (item_grid_draw) : remove pointless use of ColRowInfo::pos because I want to remove that eventually. * src/print-cell.c (print_cell_range) : ditto. * src/item-bar.c (item_bar_normal_font) : new. (item_bar_indent) : new. (item_bar_draw) : draw the top line as black, to match other buttons, fix its length. * src/history.c (history_menu_locate_separator) : sync with manu changes. * src/gnumeric.h (ColRowStateGroup) : rename from ColRowSizeList. (ColRowStateList) : rename from ColRowRLESizeList. * src/gnumeric-canvas.c (gnm_canvas_find_col) : const. * src/complete-sheet.c (complete_sheet_search_iteration) : const. * src/commands.c (cmd_ins_del_colrow_undo) : pass the states into the sheet_ routines. They will handle restoring them, and cleaning up the collapse states. (cmd_ins_del_colrow_redo) : ditto. (cmd_ins_del_colrow_destroy) : simplify. (cmd_colrow_outline_change) : use get_info and avoid the need to check for NULL. (cmd_group_undo) : simplify. (cmd_group_redo) : ditto. (cmd_group) : simplify. * src/colrow.c (colrow_compute_pixels_from_pts) : move here from sheet.c (colrow_compute_pts_from_pixels) : ditto. (colrow_is_default) : new utility routine so that we can remove ::pos eventually. (ColRowState) : new struct, will eventually replace the ColRowInfo. (colrow_make_state) : new. (colrow_get_states) : renamed from colrow_save_sizes and add support for outline levels and collapse state. (colrow_set_sizes) : use the correct aliases for the lists. (colrow_set_states) : renamed from colrow_restore_sizes and support the extra state info. (colrow_restore_state_group) : rename colrow_restore_sizes_group. (colrow_set_outline) : simplify. 2001-12-05 Jody Goldberg <jody@gnome.org> * src/colrow.c (colrow_state_group_destroy) : rename from colrow_rle_size_list_destroy. * src/cellspan.c (cell_calc_span) : const. 2001-11-29 Jody Goldberg <jody@gnome.org> * src/sheet-control-gui.c (scg_resize) : size the select all button. * src/item-bar.c (item_bar_indent) : new utility.
-
- 22 Nov, 2001 1 commit
-
-
Jody Goldberg authored
-
- 13 Oct, 2001 1 commit
-
-
Jody Goldberg authored
-
- 09 Oct, 2001 1 commit
-
-
Jody Goldberg authored
2001-10-09 Jody Goldberg <jgoldberg@home.com> * GNOME_Gnumeric.oaf.in : Disable embeddable grid, it is broken. 2001-10-09 Jody Goldberg <jgoldberg@home.com> * src/eval.c (dependent_set_expr) : Make a default handler to merge all the different states that have croppedup into one place. * src/gnumeric-graph.c (gnm_graph_vector_set_expr) : Use the default. * src/sheet-object-widget.c (checkbox_set_expr) : ditto. * src/style-condition.c (style_condition_dep_set_expr) : The default handles most of the work. * src/style-condition.c : Use DEPENDENT_MAKE_TYPE.
-
- 14 Sep, 2001 1 commit
-
-
Jody Goldberg authored
2001-09-14 Jody Goldberg <jgoldberg@home.com> * src/workbook-control-gui.c (workbook_create_standard_toolbar) : Use gnome_preferences_get_toolbar_detachable rather than gnome_preferences_get_menubar_detachable. * src/workbook-format-toolbar.c (workbook_create_format_toolbar) :ditto. * src/workbook-object-toolbar.c (workbook_create_object_toolbar) :ditto.
-
- 24 Aug, 2001 1 commit
-
-
Chyla Zbigniew authored
* src/analysis-tools.c, src/application.c, src/bonobo-io.c, src/clipboard.c, src/cmd-edit.c, src/command-context.c, src/commands.c, src/corba-args.c, src/corba-workbook-factory.c, src/dates.c, src/dialogs/dialog-about.c, src/dialogs/dialog-advanced-filter.c, src/dialogs/dialog-analysis-tools.c, src/dialogs/dialog-autocorrect.c, src/dialogs/dialog-autoformat.c, src/dialogs/dialog-autosave.c, src/dialogs/dialog-cell-comment.c, src/dialogs/dialog-cell-format.c, src/dialogs/dialog-cell-sort.c, src/dialogs/dialog-consolidate.c, src/dialogs/dialog-define-names.c, src/dialogs/dialog-delete-cells.c, src/dialogs/dialog-function-wizard.c, src/dialogs/dialog-goal-seek.c, src/dialogs/dialog-goto-cell.c, src/dialogs/dialog-graph-guru.c, src/dialogs/dialog-insert-cells.c, src/dialogs/dialog-paste-special.c, src/dialogs/dialog-plugin-manager.c, src/dialogs/dialog-printer-setup.c, src/dialogs/dialog-search-replace.c, src/dialogs/dialog-sheet-order.c, src/dialogs/dialog-simple-input.c, src/dialogs/dialog-solver.c, src/dialogs/dialog-stf-export-private.h, src/dialogs/dialog-stf-export-sheet-page.c, src/dialogs/dialog-stf-export.c, src/dialogs/dialog-stf-preview.h, src/dialogs/dialog-stf.c, src/dialogs/dialog-stf.h, src/dialogs/dialog-summary.c, src/dialogs/dialog-validate.c, src/dialogs/dialog-workbook-attr.c, src/dialogs/dialog-zoom.c, src/dialogs/utils-dialog.c, src/expr-name.c, src/expr.c, src/file-autoft.c, src/format-template.c, src/format.c, src/formats.c, src/func.c, src/global-gnome-font.c, src/gnumeric-util.h, src/gui-clipboard.c, src/gui-file.c, src/gui-gnumeric.h, src/gutils.c, src/history.c, src/item-bar.c, src/item-cursor.c, src/item-debug.c, src/main.c, src/normal-args.c, src/number-match-test.c, src/number-match.c, src/parse-util.c, src/parser.y, src/pattern.h, src/preview-grid.c, src/print-cell.c, src/print-info.c, src/print.c, src/search.c, src/selection.c, src/sheet-autofill.c, src/sheet-merge.c, src/sheet-object-bonobo.c, src/sheet-object-container.c, src/sheet-object-graphic.c, src/sheet-object-item.c, src/sheet-object-widget.c, src/sheet-object.c, src/sheet.c, src/stf-parse.h, src/stf.c, src/style-color.c, src/style.c, src/test-format.c, src/value-sheet.c, src/value.c, src/widgets/gnumeric-dashed-canvas-line.h, src/widgets/gnumeric-hscrollbar.c, src/widgets/gnumeric-toolbar.c, src/widgets/gnumeric-vscrollbar.c, src/widgets/widget-editable-label.c, src/widgets/widget-font-selector.c, src/workbook-cmd-format.c, src/workbook-control.c, src/workbook-format-toolbar.c, src/workbook-object-toolbar.c, src/workbook-private.h, src/xml-io-autoft.c, src/xml-io.c: Replace mega-include <gnome.h> with something smaller.
-
- 30 May, 2001 1 commit
-
-
Jon K Hellan authored
2001-05-30 Jon K Hellan <hellan@acm.org> Previous attempt to commit failed. Trying again. * src/sheet-control-gui-priv.h: New file. Implementation details for SheetControlGUI and methods directly accessible from the GUI layer. * src/Makefile.am: Add sheet-control-gui-priv.h * src/sheet-control-gui.h: Move struct _SheetControlGUI to sheet-control-gui-priv.h. Remove declarations of methods which have been made virtual. * src/sheet-control-gui.c: Include sheet-control-gui-priv.h instead of sheet-control-gui.h. Casts and temp variables because: - virtual scg methods now take a SheetControl parameter. - sheet member now lives in SheetControl. Make following methods static - externally available only as virtual SheetControl method: scg_redraw_all, scg_redraw_cell_region, scg_redraw_headers, scg_update_cursor_pos, scg_resize, scg_unant, scg_ant, scg_cursor_bound, scg_compute_visible_region, scg_make_cell_visible. Initialize class object with these as virtual methods together with scg_set_zoom_factor, scg_adjust_preferences, scg_scrollbar_config and scg_mode_edit. Rename context_menu_hander (sic!) to context_menu_handler. *src/sheet-control.c (SC_VIRTUAL_FULL): Fix typo. (sc_destroy): Comment out unused variable. (sheet_control_init_state): Rename to sc_init_state. (sc_sheet): New accessor - returns sheet attribute. (sc_invalidate_sheet): New function - sets sheet attribute to NULL. (resize, set_zoom_factor, redraw_all, redraw_cell_region, redraw_headers, ant, unant, adjust_preferences, update_cursor_pos, scrollbar_config, mode_edit, compute_visible_region, make_cell_visible, cursor_bound): New virtual methods. * src/sheet-control.h: Declare new methods in sheet-control.c * src/selection.c: Use sc_redraw_cell_region, sc_redraw_headers instead of scg methods. * src/sheet.c (sheet_unant): Use sc_unant instead o scg_unant. (sheet_ant): Use sc_ant instead of scg_ant. (sheet_redraw_all): Use sc_redraw_all instead of scg_redraw_all. (sheet_redraw_all): Use sc_redraw_headers instead of scg_redraw_headers. (sheet_new_scg): Use sc_cursor_bound instead of scg_cursor_bound. (sheet_detach_scg): Rename to sheet_detach_control. Change parameter from SheetControlGUI to SheetControl. Use sc_sheet and sc_invalidate_sheet instead of direct attribute access. (sheet_set_zoom_factor): Use sc_set_zoom_factor instead of scg_set_zoom_factor. (sheet_update_only_grid): Use sc_compute_visible_region instead of scg_compute_visible_region. (sheet_col_row_gutter): Use sc_resize instead of scg_resize. (sheet_redraw_cell_region, sheet_redraw_partial_row, sheet_redraw_cell): Use sc_redraw_cell_region instead of scg_redraw_cell_region. (sheet_make_cell_visible): Use sc_make_cell_visible instead of scg_make_cell_visible. (sheet_cursor_set): Use sc_cursor_bound instead of scg_cursor_bound. (sheet_update_cursor_pos): Use sc_update_cursor_pos instead of scg_update_cursor_pos. (sheet_scrollbar_config): Use sc_scrollbar_config instead of scg_scrollbar_config. (sheet_adjust_preferences): Use sc_adjust_preferences, sc_resize and sc_redraw_all instead of scg_adjust_preferences, scg_resize and scg_redraw_all. * src/sheet.h (SHEET_FOREACH_CONTROL): Take list of SheetControls instead of SheetControlGUIs. * src/workbook.c (workbook_sheet_detach): Use sc_mode_edit instead of scg_mode_edit. * src/embeddable-grid.h: Include sheet-control-gui-priv.h instead of sheet-control-gui.h. * src/sheet-object-graphic.c: Ditto. * src/gnumeric-sheet.c: Include sheet-control-gui-priv.h instead of sheet-control-gui.h. Casts and temp variables because: - virtual scg methods now take a SheetControl parameter. - sheet now lives in SheetControl. * src/item-bar.c: Ditto. * src/item-cursor.c: Ditto. * src/item-edit.c: Ditto. * src/item-grid.c: Ditto. * src/sheet-object-cell-comment.c: Ditto. * src/sheet-object-cell-container.c: Ditto. * src/sheet-object-item.c: Ditto. * src/sheet-object-widget.c: Ditto. * src/workbook-control-gui.c: Ditto. * src/workbook-object-toolbar.c: Ditto, but don't include sheet-control-gui-priv.h * src/sheet-object.c (sheet_object_realize): Cast control to SheetControlGUI.
-
- 09 Dec, 2000 1 commit
-
-
Jody Goldberg authored
2000-12-09 Jody Goldberg <jgoldberg@home.com> * src/sheet-object.c (sheet_object_construct) : delete. (sheet_object_set_bounds) : Delete. (sheet_object_set_sheet) : new function. (sheet_object_clear_sheet) : new function. (sheet_object_read_xml) : implement. (sheet_object_write_xml) : implement. (sheet_object_range_get) : support setting the range without a having a sheet. (sheet_relocate_objects) : Use set_sheet & clear_sheet. (sheet_object_register) : new function. * src/sheet-object-widget.c (sheet_widget_checkbox_set_sheet) : new function. we need to move the dependent into the new sheet. (sheet_widget_checkbox_clear_sheet) : ditto. * src/sheet-object-graphic.c : (sheet_object_graphic_{read,write)_xml) : new functions. (sheet_object_filled_{read,write)_xml) : new functions. * src/sheet-object-container.c (view_activated_cb) : no more sheet_object_construct. * src/sheet-object-cell-comment.c (cell_comment_{read,write)_xml) : new functions. * src/sheet-object-bonobo.c (sheet_object_bonobo_{read,write)_xml) : New functions. These need work. the 'read_fn' and 'write_fn' do not merge nicely yet. * src/main.c (gnumeric_main) : Register the sheet obect types. We need this until the plugin scheme is ready. * src/item-grid.c (cb_obj_create_button_release) : Use set_sheet rather than realize. * src/bonobo-io.c (gnumeric_bonobo_obj_write) : constness.
-
- 01 Dec, 2000 1 commit
-
-
Jody Goldberg authored
2000-12-01 Jody Goldberg <jgoldberg@home.com> * src/sheet-object.c (sheet_object_position_pts) : new function. (sheet_object_position_pixels) : new function. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/xml-io.c : Begin moving the sheet object xml io into virtuals. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/sheet.c : Add SHEET_FOREACH_CONTROL to help abstract the implementation of controls and simplify changes later. (sheet_set_zoom_factor) : reposition objects not just comments. (sheet_get_objects) : New function. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/sheet-object.c : Move most (not yet all) of the GUI aspects into the sheet control. Revamp the semantics of the sheet-object virtuals. new_view : now handles the sizing and realizing of objects. Add support for persistance here. Delete get/set bound. * src/sheet-object-container.c : convert to new object management design * src/sheet-object-graphic.c : Ditto. * src/sheet-object-item.c : Ditto. * src/sheet-object-widget.c : Ditto. * src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : sheet_object_construct now takes a default size. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/sheet-control-gui.c : Move cell comment and sheet object placement routines here. Rather than scattering them in non-gui modules. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/print.c (print_object_view_position) : Convert object position to points. * src/selection.c (sheet_selection_redraw) : simplify. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) : SheetObject editing is now specific to the SheetControl. (gnumeric_sheet_key_press) : Ditto. (gnumeric_sheet_key_release) : Ditto. * src/selection.c (sheet_is_cell_selected) : Ditto. (sheet_col_selection_type) : Ditto. (sheet_row_selection_type) : Ditto. * src/item-bar.c (item_bar_draw) : Ditto. * src/item-grid.c (item_grid_draw_background) : Ditto. (item_grid_button_1) : Ditto. (item_grid_event) : Ditto. (cb_obj_create_motion) : Move the object creation GUI here. (cb_obj_create_button_release) : and add partial support for autoscroll. (sheet_object_begin_creation) : Ditto. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/cell.c (cell_copy) : Comments are no longer associated directly with cells. * src/clipboard.c (paste_cell) : Ditto. (clipboard_release) : Ditto. * src/bonobo-io.c (gnumeric_bonobo_obj_read) : No need to set bounds or realize the object here. That is handed at a higher level. 2000-11-30 Jody Goldberg <jgoldberg@home.com> * src/number-match.c (compute_value) : Use strtol to simplify things. * src/func.c (tokenized_help_new) : translate the help text. 2000-11-27 Jody Goldberg <jgoldberg@home.com> * src/formats.c (currency_date_format_init) : quote the currency names.
-
- 31 Oct, 2000 1 commit
-
-
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.
-
- 11 Oct, 2000 1 commit
-
-
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.
-
- 05 Oct, 2000 1 commit
-
-
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.
-
- 24 Sep, 2000 1 commit
-
-
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.
-
- 23 Sep, 2000 2 commits
-
-
Jody Goldberg authored
Object toolbar is now mostly functional.
-
Jody Goldberg authored
2000-09-23 Jody Goldberg <jgoldberg@home.com> * src/workbook-format-toolbar.c : Use stock icons. * src/workbook-object-toolbar.c : Ditto. * src/workbook.c : Ditto. Add more verbs. * src/workbook-edit.c (workbook_edit_set_sensitive) : toolbar sensitization is broken for bonobo. * src/gnumeric.xml : The beginings of toolbar support. * src/application.c : Register all pixmaps as stock icons. 2000-09-22 Jody Goldberg <jgoldberg@home.com> * src/history.c (history_menu_insert_separator) : Use history_menu_locate_separator. This is crufty.
-
- 14 Sep, 2000 1 commit
-
-
Jody Goldberg authored
2000-09-14 Jody Goldberg <jgoldberg@home.com> * src/sheet-view.c (sheet_view_row_size_changed) : Use sheet_selection_full_rows and workbook_cmd_format_row_height. (sheet_view_col_size_changed) : Use sheet_selection_full_cols and workbook_cmd_format_column_width. * src/item-grid.c (context_row_height) : Use sheet_dialog_set_row_height. (context_col_width) : Use sheet_dialog_set_column_width. * src/workbook-cmd-format.c (sheet_dialog_set_column_width) : Split the gui into here. (workbook_cmd_format_column_width) : And the action into here. Use the appropriate commands to get undo support. (workbook_cmd_format_column_auto_fit) : Use workbook_cmd_format_column_width. (sheet_dialog_set_row_height) : Split the gui into here. (workbook_cmd_format_row_height) : And the action into here. Use the appropriate commands to get undo support. (workbook_cmd_format_row_auto_fit) : Use workbook_cmd_format_row_height. * src/selection.c (sheet_row_selection_type) : moved from sheet.c (sheet_col_selection_type) : moved from sheet.c (sheet_selection_full_cols) : new routine. (sheet_selection_full_rows) : new routine. * src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Don't jump directly to the edit line with F2. Start editing in sheet first. * src/selection.c (selection_foreach_range) : Add the option of iterating the list backwards. * src/workbook-cmd-format.c (cb_colrow_collect) : New function. * src/workbook-cmd-format.c (workbook_cmd_format_column_width) : Fix. (workbook_cmd_format_row_height) : Fix. * src/sheet-object-graphic.c (sheet_object_graphic_update_bounds) : new function. (sheet_object_filled_new_view) : Set the bounds when a new view is constructed. DO NOT rely on the realized list, new objects are not added until AFTER construction. * src/sheet-object.c (sheet_object_update_bounds) : delete. 2000-09-13 Jody Goldberg <jgoldberg@home.com> * src/expr.c (cellref_relocate) : Return more information so that we can differentiate relocating rows, cols, or both. (cellrange_relocate) : Use the new information to extend the heuristic for when to relocate a range. In the past we assumed that unless both ends of the range were moving we should not do the relocation. It seems that there are other cases which will also relocate. When inserting/deleting rows/cols or cutting a region that includes an entire side of the source region we should relocate. Sadly this patch is incomplete. It relocates too much now. If you cut B2 and paste it into B3 the source region A1:B2 will resize to A1:B3 even though it should not. At least ins/del row/col will now work. 2000-09-12 Jody Goldberg <jgoldberg@home.com> * src/workbook.c (create_bonobo_object) : Fixed. * src/sheet-object-bonobo.c (sheet_object_bonobo_new_from_oid) : Delete duplicate function. 2000-09-11 Jody Goldberg <jgoldberg@home.com> * src/commands.c (cmd_ins_del_row_col_{undo,redo}) : Insert/delete rows/cols clears the cut buffer. Copies are preserved. * src/sheet-object.c (cb_obj_create_button_release) : remove the bonobo specific file handling. That is to be done earlier or in a different place. This routine is strictly for placement, not content. (sheet_mode_clear) : Move the deactivation here for now. Hopefully move it to a virtual. * src/about.c (dialog_about) : suppress warning.
-
- 11 Sep, 2000 3 commits
-
-
Michael Meeks authored
2000-09-11 Michael Meeks <michael@helixcode.com> * src/workbook-format-toolbar.c: s/BonoboApp/BonoboWin/ * src/workbook-object-toolbar.c: ditto. * src/workbook.c: s/BonoboApp/BonoboWin/ (verbs): Add FileSaveAs which I seem to have forgotten.
-
Jody Goldberg authored
-
Jody Goldberg authored
2000-09-10 Jody Goldberg <jgoldberg@home.com> * src/xml-io.c (xml_read_sheet_object) : objects have their positions set after creation, not before. NOTE : This routine is incomplete. It does not handle all of the objects. It is questionable whether or not it even belongs here. We may want to encapsulate the persistence on a per object basis. (xml_sheet_read) : localize and improve variable naming. * src/workbook.c : Add an ifdef around the GnomeUI handler in bonobo mode. Move the object creation cruft into its own file. (select_component_id) : new function. (create_embedded_component_cmd) : simplify. (create_embedded_item_cmd) : simplify. (create_button_cmd) : Delete. (create_checkbox_cmd) : Delete. (create_line_cmd) : Delete. (create_arrow_cmd) : Delete. (create_rectangle_cmd) : delete. (create_ellipse_cmd) : delete. (cut_cmd) : simplify object handling. (insert_object_cmd) : Use sheet_object_bonobo_new_from_oid. (do_focus_sheet) : Handle object toolbar too. (workbook_detach_sheet) : Before messing with the views go back to simple edit mode. * src/workbook-object-toolbar.c (create_object_command) : new function. (cmd_create_*) : Use here. * src/workbook-edit.c (workbook_edit_set_sensitive) : Add the object toolbar. * src/sheet-object.c (sheet_release_coords) : delete. (sheet_object_destroy) : simplify. (SheetObject::end_popup) : remove. (SheetObject::populate_menu) : rename from start_popup. (SheetObject::new_view) : rename from realize. (SheetObject::user_config) : New virtual. (sheet_object_construct) : initialize dragging to FALSE. s/Sheet::objects/Sheet::sheet_objects/ (sheet_object_drop_file) : Moved. (sheet_object_realize) : No need for SheetView::temp_item. (button_widget_create) : delete. (checkbox_widget_create) : delete. (sheet_object_create_button) : delete. (sheet_object_create_checkbox) : delete. (create_object) : delete. (cb_obj_create_motion) : rename from sheet_motion_notify. Simplify. Rubber band a rectangle rather than the actual object. Keep track of whether or not a we have resized larger than the minimum 5x5 size. (cb_obj_create_button_release) : rename from sheet_button_release. Change behavior to have the release do the realizing and bound setting. Set the bounds to the current coord ONLY if we have moved enough, otherwise just use the default size of the object tranformed to the location of the original button press. (shutdown_sheet_object_creation) : merge into button release. (sheet_leave_notify) : Delete. (sheet_button_press) : Delete. (sheet_object_begin_creation) : Delete. (sheet_finish_object_creation) : merge into button release and clear out all the cruft requiring removal of signals. (sheet_mode_clear) : new function. Does some object management. (sheet_set_mode_type) : delete. (sheet_set_mode_type_full) : delete content. Split logical action into. (sheet_mode_edit) : here. (sheet_mode_edit_object) : here. (sheet_mode_create_object) : and here. (sheet_object_destroy_control_points) : be more pedantic a about checking that we have a valid view. (sheet_object_stop_editing) : Adjust for new object editing semantics. (set_item_x) : Merge this (set_item_y) : and this. (set_item_x_y) : into here. And add the logic to call new_control_point. (new_control_point) : Set the cursor here. (update_bbox) : Recall that the bounding box excludes the far coords. (control_point_handle_event) : No need to make object the current, if we are being called we are current. (sheet_object_populate_menu) : rename from sheet_object_start_popup. (sheet_object_end_popup) : delete. (sheet_object_canvas_event) : adjust to function renaming. (sheet_object_widget_event) : delete. (sheet_object_widget_handle) : delete. (sheet_object_start_editing) : delete, no need. update_bbox does all of this. (sheet_object_make_current) : delete. (sheet_object_insert) : this was not what its name suggested. It was a rather specialized bonobo utility. Move it where it belongs. * src/sheet-object-widget.c : Rewrite. * src/sheet-object-item.c (sheet_object_item_new_view) : rename from sheet_object_item_realize. * src/sheet-object-graphic.c (sheet_object_graphic_new_view) : rename from sheet_object_graphic_realize. (sheet_object_filled_new_view) : renamed from sheet_object_filled_realize. (sheet_object_create_line) : No need to take position, do that later. (sheet_object_create_filled) : Ditto. * src/sheet-object-container.c (user_activation_request_cb) : Adjust to changes in sheet mode handling. (sheet_object_container_new_view) : rename from sheet_object_container_realize. (sheet_object_container_new_bonobo) : No need to take pos info, that is set later. (sheet_object_container_new_object) : Ditto. (sheet_object_container_new_file) : Moved and renamed from sheet_object_drop_file. * src/sheet-object-bonobo.c (sheet_object_bonobo_construct) : No need to take position info. Bounds are set later. (sheet_object_bonobo_new_from_oid) : Move from sheet_object_insert which was much to generic a name and location for this. * src/print.c (print_sheet_range) : Adjust to rename of the sheet_object list. * src/pixmaps.h : Remove the pixmaps that moved to the object toolbar. * src/item-grid.c (item_grid_button_1) : Handle object creation and finishing object editing directly, no more need for adding and removing handlers. Adjust arg to be a Button event. (item_grid_event) : Add a new cursor for object creation. (item_grid_event) : Do not change to edit mode until we know why the button was pressed. * src/gnumeric-sheet.c (gnumeric_sheet_key_mode_object) : s/sheet_set_mode_type/sheet_mode_edit/ (gnumeric_sheet_key_press) : Adjust to new mode scheme. (gnumeric_sheet_key_release) : Ditto. (gnumeric_sheet_filenames_dropped) : Ditto. * src/gnumeric.h : Add fwd decl of SheetObject. * src/gnumeric-sheet.h : delete GnumericSheet::mode . * src/gnumeric-type-util.h : Rename GNUMERIC_MAKE_TYPE_WITH_PARENT to GNUMERIC_MAKE_TYPE_WITH_CLASS. That makes more sense. * src/eval.c (invalidate_refs) : Use dependent_set_expr. (cell_eval) : New need to check generation If we are called we are out of date. * src/dependent.c (dependent_eval) : moved from eval.c. (dependent_type_register) : New routine. (dependent_set_expr) ; Ditto. (dependent_debug_name) : Use the new registry. * src/dependent.h : Reorder flags, remove explicit types for graphs and checkboxes. Those are handled by the virtual table. * src/commands.c : s/PARENT/CLASS/ * src/cell.h : Reorder the CellFlags. * src/bonobo-io.c (gnumeric_bonobo_obj_read) : Do not pass the position to sheet_object_containter_new_object. * src/Makefile.am : Add workbook-object-toolbar.[ch] and graph-series.[ch] merge the libraries from the two idl files. 2000-09-09 Jody Goldberg <jgoldberg@home.com> * src/sheet-view.c (sheet_view_construct) : Init control points to NULL. (SheetView::temp_item) : remove this. * src/sheet.c (sheet_new) : Init the members associated with objects. (sheet_destroy) : Destroy objects. (Sheet::mode) : remove. * src/gnumeric.xml : Add a label for the selection menu. * src/sheet-object-container.c (sheet_object_container_realize) : Fix warning. 2000-09-07 Jody Goldberg <jgoldberg@home.com> * src/item-bar.c (colrow_tip_setlabel) : mark the size tooltips as containing pts. * src/dialogs/row-height.glade : * src/dialogs/col-width.glade : Ditto.
-
- 08 Sep, 2000 1 commit
-
-
Jody Goldberg authored
rest of the patch goes in.
-