1. 18 Feb, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Add flag for insert cells. · be02e2b8
      Almer S. Tigelaar authored
      2001-02-18  Almer S. Tigelaar  <almer1@dds.nl>
      	* src/sheet-private.h : Add flag for insert cells.
      	* src/workbook-control-gui.c :
      	(wbcg_insert_cells_enable) : New, enable/disable the Insert->Cells menu item.
      	(workbook_control_gui_init) : Initialize the insert_cells menu item.
      	(workbook_control_gui_ctor_class) : Initialize insert_cells function pointer.
      	* src/workbook-control-gui.h : Add menu_item_insert_cells.
      	* src/workbook-control.c, src/workbook-control.h, src/workbook-control-priv.h :
      	Export wbcg_insert_cell_enable to workbook-control.
      	* src/selection.c
      	(sheet_selection_set_internal) : If the whole sheet is selected,
      	disable Insert->Cells. Otherwise enable it.
      	(sheet_selection_reset) : Enable Insert->Cells.
       	* src/workbook-view.c
       	(wb_view_menus_update) : Update Insert->Cells too.
  2. 31 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Remove all menu item state flags. · ce14739d
      Almer S. Tigelaar authored
      2001-01-31  Almer S. Tigelaar  <almer1@dds.nl>
       	* src/sheet.h :
       	Remove all menu item state flags.
       	* src/sheet-private.h:
       	Put the menu item state flags here.
       	* src/workbook-control-gui.c:
       	(wbcg_paste_special_enable): Remove the second argument to
       	this function. Instead read this directly out of the flags. Add sheet
       	(wbcg_insert_cols_rows_enable): Ditto for the 3rd argument and
       	also remove the cols arguments so that one call will update both
       	row and column menu items. Also add sheet argument.
       	* src/workbook-control.c, src/workbook-control.h,
       	Adjust arguments to wbcg_paste_special_enable and insert_cols_rows.
       	* src/application.c:
      	(application_clipboard_copy): First set the paste special flag
       	and don't pass argument to paste_special_enable.
       	(application_clipboard_cut): Ditto.
       	(application_clipboard_clear): Ditto.
       	* src/workbook-view.c:
       	(wb_view_menus_update): Update to don't pass flags as argument, don't
       	do separate calls for cols and rows and optimize to do all calls in one loop.
       	* src/selection.c:
       	(sheet_selection_set_internal): Disable or enable insert cols/rows,
       	update UI only when neccessary and rename label for clarity.
       	(sheet_selection_reset): Enable insert cols/rows flags.
  3. 22 Jan, 2001 1 commit
    • Almer S. Tigelaar's avatar
      Fixes #32417 · f359d7fe
      Almer S. Tigelaar authored
      2001-01-22  Almer S. Tigelaar  <almer1@dds.nl>
      	Fixes #32417
      	* src/workbook-control-gui.c, src/workbook-control-gui-priv.h:
      	(wbcg_insert_cols_rows_enable): New, handles enabling/disabling
      	of insert cols/rows menu items.
      	(change_menu_sensitivity): New, for settings the sensitivity
      	of menu items.
      	(workbook_control_gui_ctor_class): Add insert_cols_rows.enable
      	* src/workbook-control.c, src/workbook-control.h: Add
      	insert_cols_rows_enable as a virtual function.
      	* src/workbook-control-priv.h: Add struct for insert_cols_rows
      	* src/selection.c
      	(sheet_selection_add_range): After adding a range, find out if
      	any range specifies either a whole row or whole col selection
      	and disable insert rows/cols accordingly.
      	(sheet_selection_reset_only): Re-enable insert rows/cols here.
  4. 20 Nov, 2000 1 commit
    • Morten Welinder's avatar
      Limit size of undo/redo stack. · 0e537e1c
      Morten Welinder authored
      2000-11-20  Morten Welinder  <terra@diku.dk>
      	* gnumeric.spec.in (gal): Require 0.2.99.
      	* configure.in (gal): Require 0.2.99 (and fix check).
      	* src/workbook-control-gui.c (workbook_control_gui_ctor_class):
       	Set undo_redo.truncate.
      	(wbcg_undo_redo_truncate): New function.
      	* src/commands.c (command_push_undo): truncate undo information.
      	(truncate_undo_info): New function.
      	(cmd_format): Properly size undo information.
  5. 12 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Use wb_view_sheet_add. · 69b2fb32
      Jody Goldberg authored
      2000-11-12  Jody Goldberg <jgoldberg@home.com>
      	* src/workbook.c (workbook_sheet_attach) : Use wb_view_sheet_add.
      	* src/workbook-view.c (wb_view_sheet_add) : new function.
      	(wb_view_format_feedback) : Ditto.
      	(wb_view_auto_expr) : Store the display result.
      	(wb_view_auto_expr_value_display) : renamed
      	  from wb_view_auto_expr_value_set.
      	(wb_view_destroy) : clear out the new members.
      	* src/workbook-format-toolbar.c (workbook_feedback_set) : Calculate
      	  the style here.  This is transitory.  It will eventually move into
      	  the sheet view when that is split.
      	* src/workbook-control.c (wb_control_sheet_add) : Do this manually
      	  so that if the new sheet is the focus sheet for the view we can
      	  update the various feedback mechanisms.
      	(workbook_control_sheets_init) : rather than here.
      	* src/sheet.c (sheet_update) : prepare for having the wb_view handle
      	  the selection.
      	* src/Makefile.am : Add missing workbook-control.h
      	* src/workbook-view.c (wb_view_auto_expr) : When the expression
      	  changes, recalculate.
      	* src/workbook-control-gui.c (wbcg_auto_expr_value) : Mark as updating
      	  the ui.
      	(cb_auto_expr_changed) : test the updating flag here, don't set it.
  6. 01 Nov, 2000 1 commit
    • Jody Goldberg's avatar
      Split sanity check into new function. (range_check_sanity) : here. · 22587963
      Jody Goldberg authored
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      	* src/ranges.c (range_translate) : Split sanity check into new function.
      	(range_check_sanity) : here.
      	* src/xml-io.c (xml_read_range) : Use it.
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      	* src/sheet.c (sheet_new) : Be mroe fine grained about the changes to
      	  the edit position.
      	(sheet_flag_status_update_cell) : Only content and format have changed.
      	(sheet_flag_status_update_range) : handle the new flags.
      	(sheet_flag_format_update_range) : new function.
      	(sheet_update_editpos) : delete and split up.
      	(sheet_update) : Do each update seperately. NOTE : this is broken.
      	  All of these flags should be at the View level.
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      	* src/selection.c (sheet_selection_copy) : pass a workbookcontrol.
      	(sheet_selection_cut) : Ditto.
      	* src/commands.c (cmd_format_undo) : flag the format change.
      	(cmd_format_redo) : Ditto.
      	* src/workbook-control.h (wb_control_claim_selection) : new virtual.
      	* src/application.c (application_set_selected_sheet) : Used here.
      	(application_clipboard_copy) : Take a WorkbookControl.
      	(application_clipboard_cut) : Ditto.
      	* src/workbook-control-gui.c (wbcg_paste_from_selection) : new
      	(workbook_control_gui_ctor_class) : register it.
      2000-11-01  Jody Goldberg <jgoldberg@home.com>
      	* src/print-cell.c (print_cell_range) : We are only outputing
      	  something in the case of a blank cell if the format is visible.
  7. 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	* 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
      	(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.
  8. 29 Oct, 2000 1 commit
  9. 28 Oct, 2000 1 commit
  10. 27 Oct, 2000 1 commit
  11. 26 Oct, 2000 2 commits
  12. 25 Oct, 2000 1 commit