1. 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
  2. 25 Sep, 2000 1 commit
  3. 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
  4. 06 Sep, 2000 1 commit
    • Jody Goldberg's avatar
      Remainder of patch to handle non-cell dependents. · 01a95234
      Jody Goldberg authored
      2000-09-05  Jody Goldberg <jgoldberg@home.com>
      
      	* configure.in : Add test for pspell.
      	* acconfig.h : Ditto.
      
      	* s/cell.u.expression/cell.base.expression/
      	* s/cell.generation/cell.base.generation/
      	* s/cell.u.entered_text/cell.entered_text/  <- deprecated
      	* s/workbook.formula_cell_list/workbook.dependents/
      
      	* s/sheet_cell_expr_link/dependent_expr_link/
      	* s/sheet_cell_expr_unlink/dependent_expr_unlink/
      
      	* s/eval_queue_cell/dependent_queue_recalc/
      	* s/eval_queue_list/dependent_queue_recalc_list/
      	* s/eval_unqueue_cell/dependent_unqueue_recalc/
      	* s/eval_unqueue_sheet/dependent_unqueue_recalc_sheet/
      	*
      	* s/cell_add_dependencies/dependent_add_dependencies
      	* s/cell_drop_dependencies/dependent_drop_dependencies
      
      	* s/cell_formula_changed/dependent_changed/
      	* s/sheet_cell_expr_link/dependent_link/
      	* s/CELL_IN_EXPR_LIST/DEPENDENT_IN_EXPR_LIST/
      
      	* src/cell.c (cell_eval_content) : moved from eval.c
      
      	* src/eval.c (sheet_region_get_deps) : Take a Range rather than 4 int.
      	(drop_range_dep) : Use dependent_debug_name.
      	(dependency_range_ctor) : Take a CellPos as an arg rather than a Cell.
      	(handle_cell_single_dep) : Take an optional CellPos and a Dependent.
      	(handle_cell_range_deps) : Ditto. Do not check for singletons here.
      	(handle_tree_deps) : Ditto.  Call handle_cell_single_dep directly.
      	(cell_add_explicit_dependency) : Delete.
      	(get_single_dependencies) : Some const.
      
      	* src/cmd-edit.c (cmd_select_cur_depends) : Use dependent_list_filter
      	  to only show cell dependencies for now.
      
      	* src/dependent.c (dependent_list_filter) : new function.
      	(dependent_debug_name) : new function.
      
      	* src/history.c : Add a comment about File/Print Preview for
      	  translators.
      
      	* src/workbook.c (cb_cell_rerender) : Only cells need this.
      01a95234
  5. 12 Aug, 2000 1 commit
    • Jody Goldberg's avatar
      Add graph-guru for bonobo enabled builds. · c665e798
      Jody Goldberg authored
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/dialogs/Makefile.am : Add graph-guru for bonobo enabled builds.
      
      	* src/dialogs/formula-guru.glade (rolled_label) : Don't fill.
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/functions/fn-math.c (gnumeric_g_product) : Ignore blanks.
      	(gnumeric_product) : Ditto.
      	(gnumeric_sumsq) : Ditto.
      	(gnumeric_suma) : Ditto.
      	(gnumeric_sum) : Ditto.
      	(gnumeric_gcd) : Ditto.
      
      2000-08-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/corba-args.c : Remove support for Gnorba. Die Pig Die !
      	* src/corba-workbook-factory.c : Ditto.
      	* src/embeddable-grid.c : Ditto.
      	* src/sheet-object.c : Ditto.
      	* src/workbook.c : Ditto.
      
      	* src/cell-comment.c (cell_comment_realize) : Use Cell::pos rather
      	  than Cell::{row,col}_info->pos.
      	(cell_comment_reposition) : Ditto.
      	* src/cell-draw.c (cell_draw) : Ditto.
      	* src/cellspan.c (cell_register_span) : Ditto.
      	(cell_calc_span) : Ditto.
      	* src/clipboard.c (paste_cell_with_operation) : Ditto.
      	(paste_cell) : Ditto.
      	* src/cmd-edit.c (cb_compare_deps) : Ditto.
      	(cmd_select_cur_depends) : Ditto.
      	* src/eval.c (dependency_range_ctor) : Ditto.
      	(handle_cell_single_dep) : Ditto.
      	(handle_cell_range_deps) : Ditto.
      	(cell_get_range_dependencies) : Ditto.
      	(cell_get_dependencies) : Ditto.
      	* src/item-grid.c (item_grid_draw) : Ditto.
      	* src/parse-util.c (cell_name) : Ditto.
      	* src/position.c (eval_pos_init_cell) : Ditto.
      	* src/print-cell.c (print_cell) : Ditto.
      	(print_cell_range) : Ditto.
      	* src/sheet-autofill.c (autofill_cell) : Ditto.
      	* src/sheet-vector.c (sheet_vectors_cell_changed) : Ditto.
      	* src/sheet.c (sheet_cell_calc_span) : Ditto.
      	(sheet_reposition_comments) : Ditto.
      	(sheet_get_extent_cb) : Ditto.
      	(sheet_redraw_cell) : Ditto.
      	(sheet_cell_add_to_hash) : Ditto.
      	(sheet_cell_insert) : Ditto.
      	(sheet_cell_new) : Ditto.
      	(sheet_cell_remove_from_hash) : Ditto.
      	(sheet_move_range) : Ditto.
      	* src/solver-lp.c (solver_simplex) : Ditto.
      	(make_solver_arrays) : Ditto.
      	(solver_affine_scaling) : Ditto.
      	(make_int_array) : Ditto.
      	(solver_branch_and_bound) : Ditto.
      	(solver_answer_report) : Ditto.
      	(solver_sensitivity_report) : Ditto.
      	* src/xml-io.c (xml_write_cell) : Ditto.
      	(xml_cell_set_array_expr) : Ditto.
      	(xml_write_solver) : Ditto.
      	* src/dialogs/dialog-solver.c (check_int_constraints) : Ditto.
      
      	* src/about.c : Move the ABOUT_KEY here from.
      	* src/dialogs/dialogs.h : here.  Also, add dialog_graph_guru.
      
      	* src/Makefile.am : Remove wizard.h and the seperate wizard library.
      c665e798
  6. 30 Jun, 2000 1 commit
    • Jody Goldberg's avatar
      It is possible to have a guru up without editing. · 69d6d36b
      Jody Goldberg authored
      
      2000-06-30  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_select_expr_range) : It is
      	  possible to have a guru up without editing.
      	(gnumeric_sheet_key_press) : rename from gnumeric_sheet_key.
      	(gnumeric_sheet_size_allocate) : rename from gnumeric_size_allocate.
      	(gnumeric_sheet_focus_in) : Enable the input context.
      	(gnumeric_sheet_focus_out) : Disable the input context.
      	(gnumeric_sheet_realize) : Create the input context.
      	(gnumeric_sheet_unrealize) : Destroy the input context.
      	(gnumeric_sheet_class_init) : Register the new methods.
      	(gnumeric_sheet_init) : Init the input context.
      
      	* src/clipboard.c (x_selection_handler) : Adjust to changes in
      	  application_clipboard_clear.
      	(x_selection_clear) : Ditto.
      	* src/cmd-edit.c (cmd_paste) : Ditto.
      	* src/sheet.c (sheet_destroy) : Ditto.
      
      	* src/application.c (application_clipboard_clear) : Make dropping the
      	  selection optional.  This removes the kludges necessary to handle
      	  changing the clipboard when we already have the selection.
      
      	* src/functions/fn-logical.c (gnumeric_true, gnumeric_false) :
      	  fix signatures.
      69d6d36b
  7. 23 Jun, 2000 1 commit
  8. 05 Jun, 2000 1 commit
    • Miguel de Icaza's avatar
      This adds autocompletion. · aa133206
      Miguel de Icaza authored
      It is missing one forced repaint that makes the stuff look slower
      than it is.
      
      2000-06-05  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gtk_radio_button_select): Add
      	precondition.  Chema found this, but we should add the proper
      	check at an upper layer.
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/gnumeric-util.c (gnumeric_entry_at_subexpr_boundary_p):
      	Change prototype to use GtkEntry instead of GtkWidget.
      
      	* src/workbook-edit.c (workbook_finish_editing): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(entry_changed): ditto.
      	(workbook_start_editing_at_cursor): ditto.
      	(workbook_editing_expr): ditto.
      	(workbook_edit_get_display_text): ditto.
      
      	* src/workbook.c (autosum_cmd): Changed direct access to
      	workbook->private_entry to workbook_get_entry.
      	(do_focus_sheet): ditto.
      	(wb_edit_key_pressed): ditto.
      	(workbook_setup_edit_area): ditto.
      
      	* src/workbook.c (cb_autofunction): ditto.
      
      	* src/workbook-private.h: Make edit_line a structure to keep track
      	of the entry and its signal changed.  Also take a chance to change
      	this to the self descriptive GtkEntry instead of GtkWidget.
      
      	* src/commands.c (cmd_set_text): Added const here.
      
      	* src/workbook.c (workbook_do_destroy): Add destroy notification
      	for the editing facilities
      
      	* src/item-edit.c (item_edit_set_arg): removed auto complete code
      	from here.
      
      2000-06-03  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/workbook-edit.c, src/workbook-edit.h: New files.  Moved
      	workbook_start_editing_at_cursor, workbook_finish_editing,
      	workbook_get_entry, workbook_editing_expr here.  Killed
      	workbook_set_entry prototype.
      
      	* src/workbook.c (workbook_start_editing_at_cursor): Moved
      	autocomplete here.
      
      	* src/workbook.h: Removed warning.  #include <config.h> is a
      	mandatory header file in every C file.  A correct approach is to
      	use something like Nautilus' perl script that verifies the
      	presence of config.h as the first include.
      
      	* src/workbook.c (close_cmd): Removed ulgy (void)
      	(quit_cmd): More.
      	(sheet_action_rename_sheet): more.
      	(workbook_finish_editing): Fixed more ugly.
      
      	* src/gutils.c (gnumeric_sys_glade_dir): Fixed ugly indentation.
      	(gnumeric_usr_plugin_dir): More ugly stuff fixed.
      	(gnumeric_usr_dir): Removed ugly const.
      
      2000-05-02  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.h: New ::entry member, auto_max_size, auto_complete_text
      
      	* src/item-edit.c (item_edit_draw_text): Take an ItemEdit as a
      	first argument, and reduce the cluttered arguments we were
      	passing.
      	(item_edit_draw): Cursor_pos is now only the position, it is not
      	overloaded with show/hide cursor as well.
      	(item_edit_draw_text): Update acoordingly.
      	(item_edit_draw_cursor): This new routine paints the cursor only.
      	(item_edit_set_arg): Add a new signal handler for "activated" on
      	the entry
      	(cb_item_edit_cursor_blink): Removed FIXME.
      	(item_edit_set_arg): Init item_edit->entry.  I am pretty sure this
      	existed in the past.
      
      2000-05-01  Miguel de Icaza  <miguel@helixcode.com>
      
      	* src/item-edit.c (item_edit_draw): Pass auto-completing flag.
      	(item_edit_draw_text): Invert auto-complete region.
      	(item_edit_set_arg): Init auto_completing here.
      	(item_edit_complete_notify): Set the entry from the
      	auto-completing data here.
      
      
      2000-06-04  Miguel de Icaza  <miguel@helixcode.com>
      
      	* dialog-function-wizard.c (dialog_function_druid): Use
      	workbook_get_entry here.
      
      	* dialog-printer-setup.c (spin_button_adapt_to_unit): Added
      	g_assert_not_reached ();
      aa133206
  9. 31 May, 2000 1 commit
    • Jody Goldberg's avatar
      undo support for shift range. · 232b5ec2
      Jody Goldberg authored
      The first half of the solution to the paste_cut problems.
      
      2000-05-31  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_ins_del_row_col_destroy) : Fix leak.
      	(cmd_paste_cut_*) : We do need to worry about invalidations.  Any
      	  references to the portions of the destination region that do not
      	  overlap the src region get invalidated.
      
      	* src/ranges.c (range_translate) : Adjust the semantics so that the
      	  result warns of a range that was translated completly out of bounds.
      
      	* src/sheet.c (sheet_move_range) : Invalidate the references to the
      	  portions of the destination range that do NOT overlap with the src.
      	(sheet_shift_{cols,rows}) : Rename and move to..
      	* src/cmd-edit.c (cmd_shift_{cols,rows}) : here.  Use cmd_paste_cut
      	  instead of sheet_move_range directly.
      
      	* src/dialogs/dialog-{insert,delete}.c : Switch to cmd_shift_{cols,rows}.
      
      	* src/history.c (history_menu_insert_separator) : Add a more detailed
      	  explaination when the history lookup fails.
      232b5ec2
  10. 27 May, 2000 3 commits
    • Jody Goldberg's avatar
      When recalulating all spans, we may need to render some cells too. · 46bc8ec7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_update) : When recalulating all spans, we may
      	  need to render some cells too.
      	(sheet_move_range) : Do not call sheet_update here.
      	(sheet_shift_rows) : Call it here.
      	(sheet_shift_cols) : and here.
      
      	* src/commands.c (cmd_paste_cut_undo) : Do a recalc.
      	(cmd_paste_cut_redo) : No need to force a status range update, move
      	  already did that.
      
      	* src/cmd-edit.c (cmd_paste) : typo.
      46bc8ec7
    • Jody Goldberg's avatar
      Move the handling of singletons and the setting of the selection here. · 984592e7
      Jody Goldberg authored
      
      2000-05-27  Jody Goldberg <jgoldberg@home.com>
      
      	* src/commands.c (cmd_paste_copy) : Move the handling of singletons
      	  and the setting of the selection here.
      	* src/clipboard.c (clipboard_paste_region) : From here.
      
      	* src/cmd-edit.c (cmd_paste_to_selection) : Remove incorrect
      	  precondition.
      984592e7
    • Jody Goldberg's avatar
      Revamp pasting. This needs alot of testing. Some initial work on a · 94c47dab
      Jody Goldberg authored
      Revamp pasting.
      This needs alot of testing.
      Some initial work on a function druid.
      
      2000-05-26  Jody Goldberg <jgoldberg@home.com>
      
      	* src/selection.c (selection_is_simple) : Use a command context.
      	(sheet_selection_paste) : Delete.
      
      	* src/plugin.c : rename error_plugin_problem -> error_plugin.
      
      	* src/item-grid.c (context_paste_cmd) : Use cmd_paste_to_selection.
      	(context_paste_special_cmd) : Ditto.
      
      	* src/gnumeric-sheet.c : remove cached 'controlling_entry' in
      	  preparation for the function druid.
      
      	* src/corba-sheet.c : Delete Sheet_selection_paste.
      	  this will need to be replaced with a new signature.
      
      	* src/item-cursor.c (item_cursor_do_action) : Use new cmd_paste.
      
      	* src/commands.c (cmd_area_set_text_{undo,redo}) : Use new
      	  clipboard_paste_region.
      	(cmd_ins_del_row_col_{undo,redo}) : Ditto.
      	(cmd_clear_{undo,redo}) : Ditto.
      	(cmd_set_date_time_{undo,redo}) : Ditto.
      	(cmd_paste_cut_*) : new functions.
      
      	* src/command-context*.c : Add progress, remove splits_array.
      
      	* src/cmd-edit.c (cmd_paste) : New function.
      	(cmd_paste_to_selection) : New function.
      
      	* src/clipboard.c : Reorganize/rewrite.
      	(clipboard_paste_region) : paste content.
      	(clipboard_paste) : paste content from clipboard or X selection.
      	(paste_target_init) : New function.
      	(sheet_paste_selection) : merge into clipboard_paste_region.
      
      	* src/application.c (application_clipboard_copy) : rename
      	  clipboard_copy_cell_range -> clipboard_copy_range.
      
      	* idl/Gnumeric.idl : Merge InvalidValue, SplitsArray -> InvalidCmd.
      
      	* src/workbook.c (workbook_setup_status_area) : Include a progress bar.
      94c47dab
  11. 22 May, 2000 1 commit
    • Jody Goldberg's avatar
      New files. · 77d84d6c
      Jody Goldberg authored
      
      2000-05-21  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cmd-edit.[ch] : New files.
      
      	* src/workbook.c (cb_edit_select_*) : Use the cmd-edit utilities.
      	Make a 'select' sub menu of edit.
      
      	* src/sheet.c : Use the newly added CellPos in each Cell rather than
      	  mallocing a seperate struct.
      
      	* src/selection.c (sheet_select_all) : Move.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet) : Make the
      	  selection commands accelerators.
      77d84d6c