1. 23 Sep, 2000 1 commit
  2. 20 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      We always create an in canvas edit item, but sometimes we jump the focus · 9fc2db80
      Jody Goldberg authored
      
      2000-09-20  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-edit.c (workbook_start_editing_at_cursor) : We always
      	  create an in canvas edit item, but sometimes we jump the focus to
      	  the status line.
      
      	* src/value.c (value_new_cellrange_r) : set the sheet for both
      	  cell_refs.
      
      	* src/sheet-object-widget.c (checkbox_set_expr) : Fix.
      
      	* src/graph-series.c (graph_series_seq_scalar) : No need to handle
      	  headers here.
      	(graph_series_seq_date) : or here.
      	(graph_series_seq_string) : or here.
      	(graph_series_eval) : Handle idl rename.
      	(series_get_name) : No need to do this here.
      	(impl_vector_scalar_value) : No need to calculate label.
      	(impl_vector_date_value) : Ditto.
      	(impl_vector_string_value) : Ditto.
      	(graph_series_set_expr) : Correctly register and un register deps.
      	(graph_series_new) : series names are handled at a higher level.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Restore the
      	  behaviour of F2.
      
      	* src/expr.c (cellrange_relocate) : BE smarter about checking for
      	  potential 3d references.
      
      	* idl/gnumeric-graphs.idl : Rename routines using lowercase underscore
      	  rather than StuddyCaps.
      
      	* src/workbook.c (workbook_expr_relocate) : Handle dependents.
      
      	* src/position.c (eval_pos_init_dep) : new function.
      
      	* configure.in : Prepare for release.
      	  Update req for gnome-print to 0.23
      	  Update req for libglade to 0.14
      	  Comment out pspell.
      	  Leave perl disabled.
      
      	* gnumeric.spec.in : Ditto.
      	* README : Ditto.
      
      2000-09-19  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (natural_order_cm) : Using col_info and row_info is
      	  deprecated.
      9fc2db80
  3. 15 Sep, 2000 1 commit
  4. 11 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      The initial version of active objects. · ccdc4a78
      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.
      ccdc4a78
  5. 12 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Still does not compile do to changes in · d10a6ac1
      Jody Goldberg authored
      gnome_bonobo_select_oaf_id
      
      2000-08-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_drag_data_get) : Disable until
      	  Michael has a chance to update to new api.
      
      	* src/corba-workbook-factory.c (WorkbookFactory_create_object) :
      	  Update after the OAF factory renaming.
      d10a6ac1
  6. 02 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      Delete unused routine. (sheet_selection_to_list) : Ditto. · 7baa890a
      Jody Goldberg authored
      
      2000-06-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (sheet_selection_reset) : Delete unused routine.
      	(sheet_selection_to_list) : Ditto.
      
      	* src/item-cursor.c (item_cursor_autofill_event) : Use new undoable
      	  version of autofill.
      
      	* src/corba-sheet.c (Sheet_selection_reset) : Delete.
      
      	* src/commands.c (cmd_area_set_text_undo) : We want to restore
      	  formulas, not values.
      	(cmd_clear_selection) : Paste by value should be exclusive of paste by
      	  formula.
      	(cmd_autofill_*) : New functions.
      
      	* idl/Gnumeric.idl : Remove useless function selection_reset.
      
      	* src/number-match.c (format_match) : Handle numbers larger than
      	  LONG_{MAX,MIN} by falling through to double.
      
      	* src/sheet.c (sheet_recompute_spans_for_col) : Use closure.
      7baa890a
  7. 27 May, 2000 1 commit
  8. 04 May, 2000 1 commit
  9. 01 May, 2000 1 commit
    • Michael Meeks's avatar
      Handle oafinfo.in · af769d68
      Michael Meeks authored
      2000-05-01  Michael Meeks  <michael@helixcode.com>
      
      	* configure.in: Handle oafinfo.in
      
      	* src/sheet-object.c (sheet_set_mode_type_full): oafize.
      
      	* src/sheet-object-container.c (sheet_object_container_new_from_goadid):
      	ditto.
      
      	* src/sheet.c (sheet_insert_object): always launch via.
      	bonobo_object_activate regardless of monikers.
      
      	* idl/Gnumeric.idl: add a comment telling people to look elsewhere if
      	they want to write bonobo components.
      
      	* src/workbook.c (insert_object_cmd): update for oaf.
      
      	* src/main.c (gnumeric_main): Check for NULL ctx, on corba failure.
      
      	* src/corba-args.c (gnumeric_arg_parse): NULL ctx.
      
      	* src/corba-workbook-factory.c (_WorkbookFactory_init): update to
      	use od_server_register.
      	(WorkbookFactory_create_object): use Bonobo_stringlist not GNOME_stringlist,
      	when was this last compiled ...
      
      	* src/corba-args.c (gnumeric_arg_parse): update for OAF.
      
      	* acconfig.h: USING_OAF
      
      	* configure.in: ditto.
      
      2000-05-01  Michael Meeks  <michael@helixcode.com>
      
      	* HACKING: make it more explicit.
      af769d68
  10. 20 Apr, 2000 1 commit
  11. 26 Mar, 2000 1 commit
  12. 23 Mar, 2000 2 commits
    • Jody Goldberg's avatar
      Add CENTER_ACROSS_SELECTION. (cell_set_text_simple) : Begin transition to · bbf396c6
      Jody Goldberg authored
      
      2000-03-23  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_calculate_span) : Add CENTER_ACROSS_SELECTION.
      	(cell_set_text_simple) : Begin transition to checking
      	  format of current cell for match.  No real change yet.
      
      	* idl/Gnumeric.idl : Add CENTER_ACROSS_SELECTION.
      	* src/cell-draw.c (cell_draw) : Ditto.
      	* src/print-cell.c (print_cell) : Ditto.
      	* src/corba-sheet.c (Sheet_cell_set_alignment) : Ditto.
      	(Sheet_cell_get_alignment) : Ditto.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_align_page) : Ditto.
      	* src/dialogs/cell-format.glade : Ditto, reorganize alignment page.
      
      	* src/format.c : Move definition of _StyleFormatEntry from mstyle.h.
      
      	* src/number-match.c (format_create_regexp) : Extend to support
      	  currency names.
      
      	* src/item-grid.c (item_grid_draw_border) : minor optimization for
      	  non-border case.
      bbf396c6
    • Miguel de Icaza's avatar
      Disable feedback when the anting cursor is created · ac663415
      Miguel de Icaza authored
      
      
      2000-03-23  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-sheet.c (start_cell_selection_at): Disable feedback
      	when the anting cursor is created
      	(gnumeric_sheet_stop_cell_selection): Enable feedback when the
      	anting cursor is destroyed.
      
      	* src/item-edit.c (scan_for_range): Enable feedback only if we are
      	allowed to.
      	(item_edit_enable_highlight, item_edit_disable_highlight): New
      	functions to control the feedback display.
      
      2000-03-21  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-vector.c (impl_vector_set_notify): Duplicate the
      	object here.
      
      2000-03-23  Miguel de Icaza  <miguel@helixcode.com>
      
      	* graph-view.c (graph_view_update): Also handle DIRTY_DATA here.
      
      	* graph-vector.c (impl_changed): Implement vector cache flushing
      	on changes.
      
      2000-03-21  Miguel de Icaza  <miguel@helixcode.com>
      
      	* graph-vector.c (destroy_notifier, setup_notifier): Added
      	notifier support to the vectors.
      	(graph_vector_new): Memory leak fix;  Duplicate the vector value on
      	receiving.
      
      	* layout.c (impl_add_series): Set the notifier here.
      ac663415
  13. 22 Mar, 2000 1 commit
  14. 17 Mar, 2000 1 commit
    • Miguel de Icaza's avatar
      Change NULL to CORBA_OBJECT_NIL · 684c9df2
      Miguel de Icaza authored
      
      
      2000-03-13  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-vector.c (sheet_vectors_cell_changed): Change NULL to
      	CORBA_OBJECT_NIL
      
      	* src/sheet-object-bonobo.c (sheet_object_bonobo_load_from_file):
      	Use the new IDL:Bonobo interface name, not the IDL:GNOME one
      	(sheet_object_bonobo_load_from_file): ditto.
      	(sheet_object_bonobo_load): ditto.
      
      	* src/sheet-object.c (sheet_set_mode_type): Temporary hack to get
      	the graphics working under 1:20 hours when my battery runs out of
      	power.
      
      	* src/sheet-object-container.c
      	(sheet_object_container_new_from_goadid): Renamed from
      	sheet_object_container_new
      
      	(sheet_object_container_new): Now takes a BonoboObjectClient as an
      	argument.
      
      2000-03-12  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/sheet-vector.c (impl_vector_get_numbers): Increment idx
      	here;
      	(impl_vector_get_vec_values): ditto.
      	(impl_vector_get_numbers): Use the proper values for the columns
      	row.
      	(impl_vector_get_vec_values): ditto.
      
      	* src/clipboard.c (x_clipboard_bind_workbook): Fix memory leak.
      	The problem is worse, because the warning comment there was
      	completely bogus.
      
      2000-03-12  Miguel de Icaza  <miguel@helixcode.com>
      
      	* graphic-type.c (graphic_type_show_page): On page switch, set the
      	graphics type to the first one in there.
      
      	* graphic-context.c (data_range_new): Assing this guy.
      684c9df2
  15. 12 Mar, 2000 3 commits
    • Miguel de Icaza's avatar
      more work · 056811bb
      Miguel de Icaza authored
      056811bb
    • Miguel de Icaza's avatar
      Cleaned Makefile. · c2c4899e
      Miguel de Icaza authored
      2000-03-11  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/Makefile.am: Cleaned Makefile.
      
      	* graph/Makefile.am: ditto.
      
      	* graph/sample.c: fix
      
      	* idl/Makefile.am, idl/Graph.idl, idl/Gnumeric.idl: Moved IDL
      	files here, and create the libGnumeric.a and libGraph.a libraries
      	here.
      c2c4899e
    • Miguel de Icaza's avatar
      Move idl files · d20c0315
      Miguel de Icaza authored
      d20c0315