1. 14 Feb, 2000 9 commits
    • Jon K Hellan's avatar
      Add scrolled window · b6e8a273
      Jon K Hellan authored
      2000-02-14  Jon K Hellan  <hellan@acm.org>
      
              * src/dialogs/import.glade: Add scrolled window
      
      	* src/file.c (workbook_read, workbook_import, workbook_save_as,
      	workbook_save): Use error message template.
      
      	* src/command-context.h (struct _CommandContext): Add
      	template_list member.
      	(struct CommandContextClass): Call message parameter to methods
      	"message".
      	(command_context_push_template, command_context_pop_template):
      	Declare.
      
      	* src/command-context.c (command_context_push_template): New
      	function. Push a printf template for error messages to stack.
      	(command_context_pop_template): New function. Pop current template
      	from stack.
      	(format_message): New function. Format a message using template on
      	stack.
      	(gnumeric_error_plugin_problem, gnumeric_error_read,
      	gnumeric_error_save): Use format_message.
      
      	* src/command-context-corba.c (ccc_error_plugin_problem,
      	ccc_error_read, ccc_error_save): Call message parameter
      	"message".
      
      	* src/command-context-gui.c (ccg_error_plugin_problem,
      	ccg_error_read, ccg_error_save): Ditto.
      b6e8a273
    • Jody Goldberg's avatar
      Cells can span in either direction. · dc482c29
      Jody Goldberg authored
      
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell-draw.c (cell_draw) : Cells can span in either direction.
      dc482c29
    • Jody Goldberg's avatar
      Adjsut XL import of row height to include margins. Heights · 58f4dd19
      Jody Goldberg authored
      should match exactly now.
      
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/format.c (format_value) : Empty formats produce empty cells.
      
      	* src/workbook.c (workbook_menu_tools) : Move the plugins menu item to
      	  the Tools menu.
      58f4dd19
    • Jukka-Pekka Iivonen's avatar
      Implemented Glade dialogs for Correlation, Covariance, and F-Test tools. · a67a3eee
      Jukka-Pekka Iivonen authored
      2000-02-14  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/dialogs/analysis-tools.glade, src/analysis-tools.c,
       	src/dialogs/dialog-analysis-tools.c: Implemented Glade dialogs for
       	Correlation, Covariance, and F-Test tools.
      a67a3eee
    • Jody Goldberg's avatar
      A few more pts vs pixels cleanups and fixes. · fbf52c42
      Jody Goldberg authored
      2000-02-14  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-bar.c (item_bar_event) : Handle rename from
      	  sheet_{col,row}_size_fit -> sheet_{col,row}_size_fit_pixels
      	* src/selection.c (cb_set_row_height) : Ditto.
      	* src/workbook-cmd-format.c
      	(workbook_cmd_format_{column,row}_auto_fit) : Ditto.
      
      	* src/cell.c (cell_calc_dimensions) : Use sheet_row_set_size_pixels
      	  rather than sheet_row_set_internal_size_pts.
      
      	* src/sheet.c (sheet_{col,row}_set_size_{pixels,pts}) :
      	  Use sheet_row_fetch to avoid manually adding rows/col.
      	  Syncronize implementations and move the 'set_internal' code
      	  here.
      	(sheet_{col,row}_set_internal_size_pts) : Delete.
      	(sheet_{col,row}_size_fit) : Rename sheet_{col,row}_size_fit_pixels
      	(colrow_compute_pts_from_pixels) : Typo.
      fbf52c42
    • Miguel de Icaza's avatar
      Fix handling of return value from gnumeric_dialog_run. Fix memory leaks. · eb497b78
      Miguel de Icaza authored
      2000-02-14  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/dialogs/dialog-solver.c (constr_add_click): Fix handling
      	of return value from gnumeric_dialog_run.  Fix memory leaks.
      
      	* src/dialogs/dialog-goto-cell.c (dialog_goto_cell): Fix handling
      	of return value from gnumeric_dialog_run
      
      	* src/dialogs/dialog-function-wizard.c (dialog_function_wizard):
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_correlation_tool):
      	Fix handling of return value from gnumeric_dialog_run
      	(dialog_sampling_tool): ditto.
      	(dialog_descriptive_stat_tool): ditto.
      	(dialog_ttest_eq_tool): ditto.
      	(dialog_regression_tool): ditto
      	(dialog_average_tool): ditto.
      	(dialog_ranking_tool): ditto.
      	(dialog_anova_single_factor_tool): ditto.
      
      	* src/dialogs/dialog-solver.c (dialog_solver): The argument is
      	*NOT* a GtkObject, but some other data structure.
      
      	* src/dialogs/dialog-analysis-tools.c (dialog_data_analysis):
      	Correct handling.
      	(dialog_covariance_tool): Handle correctly.
      
      	* src/dialogs/dialog-advanced-filter.c (dialog_advanced_filter):
      	Proper error handling.
      eb497b78
    • Jody Goldberg's avatar
      Add a border toolbar item. · aa076567
      Jody Goldberg authored
      and a pixmap-combo widget.
      aa076567
    • Miguel de Icaza's avatar
      Acknowledge the GNOME user settings for the combo box button. Same for the · 14ed62ab
      Miguel de Icaza authored
      2000-02-13  Miguel de Icaza  <miguel@gnu.org>
      
      	* src/widgets/widget-color-combo.c (color_combo_construct):
      	Acknowledge the GNOME user settings for the combo box button.
      	Same for the button we create.
      
      	* src/workbook.c (workbook_create_standard_toobar): ditto.
      14ed62ab
    • Jody Goldberg's avatar
      Fix missed +1. · 30cc829f
      Jody Goldberg authored
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_get_distance_pts) : Fix missed +1.
      
      	* src/cell-draw.c (cell_draw) : syncronize with print_cell_text.
      	* src/print-cell.c (print_cell_text) : Ditto.
      30cc829f
  2. 13 Feb, 2000 5 commits
    • Jody Goldberg's avatar
      By popular demand grid lines now show through. · 67018e4a
      Jody Goldberg authored
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/item-grid.c (item_grid_paint_empty_cell) : paint the selection
      	  rectangle EXCLUDING the grid lines when selected.
      
      	* src/cell-draw.c (cell_draw) : Ditto.
      
      	* src/pattern.c (gnumeric_background_set_gc) : return FALSE if there
      	  is no pattern even if the cell is selected.
      67018e4a
    • Jody Goldberg's avatar
      Fix some boneheaded glitches in the drawing code. · bccff14e
      Jody Goldberg authored
      NOTE to self : Always set a clipping region before using a graphics
      context if you set a clipping region later.  This will avoid conflict when
      using the context again with a different callers clipping region.
      bccff14e
    • Jody Goldberg's avatar
      Clarify that the measurements are in pixels. · b0141d7c
      Jody Goldberg authored
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-view.c (workbook_view_set_size) : Clarify that the
      	  measurements are in pixels.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      b0141d7c
    • Jody Goldberg's avatar
      Major rationalization of pts vs pixels and the use of margins. · b6d04cff
      Jody Goldberg authored
      Some redraw speedups and the addition of XL2000 style alpha bended selections.
      
      2000-02-13  Jody Goldberg <jgoldberg@home.com>
      
      	* ./src/sheet-view.c (sheet_view_redraw_cell_region) : redraw the
      	  bounding grid lines too.
      
      	* src/item-cursor.c (item_cursor_get_pixel_coords) : Clip the cursor
      	  region to the visible range.  The layout still needs cleaning to
      	  match the 'correct' way of implementing canvas-items, but this
      	  heuristic saves us lots of iterations through the accumulator for
      	  the size of the entire sheet.
      
      2000-02-12  Jody Goldberg <jgoldberg@home.com>
      
      	* src/gnumeric-sheet.c : Use visible flag and adjust to naming and
      	  margin changes.
      
      	* src/item-bar.c (colrow_tip_setlabel) : Use the format provided by
      	  XL2000.  Things are correct for rows, colwidth are quoted in pts
      	  rather than char widths.
      	(get_col_from_pos) : Use visible flag.
      	(item_bar_start_resize) : Function renaming.
      	(is_pointer_on_division) : Ditto.
      	(item_bar_draw) : Changes to margins.
      
      	* src/item-edit.c : Function renaming.
      	* src/item-cursor.c : Ditto.  decrease spacing for auto handle.
      
      	* src/item-grid.c (item_grid_draw) : Remove inversion process for the
      	  selection.  Instead have the cells draw their background
      	  differently.  Use the visible flag.
      	(item_grid_paint_empty_cell) : Ditto.
      	(item_grid_paint_cell) : Ditto.
      
      	* src/mstyle.c (mstyle_new_default) : The default vert alignment is BOTTOM.
      
      	* src/pattern.c (gnumeric_background_set_gc) : Draw the background of
      	  a selected cell differently.
      
      	* src/print-cell.c (DIM) : margins are already included.
      	(print_cell_text) : Adjust argument order to more closely match
      	  cell_draw.  Add support for vertical alignment of 1 line cells.
      	  Invert control of single vs multiple lines.
      	(print_cell) : Adjust to changes in the arguments.
      	(print_cell_range) : Use the visible flag.
      	  Draw line at the boundary rather than pretending there were
      	  additional rows/cols.
      
      	* src/print.c (compute_groups) : size_pts INCLUDES margins.  Use 'visible' flag.
      	(print_page) : Adjust to function renaming.
      	(print_range_used_units) : Ditto.
      
      	* src/selection.c : Include sheet-view directly for now.
      	(cb_set_row_height) : Adjust to function renaming.
      
      	* src/sheet-view.c (sheet_view_redraw_cell_region) : Adjust to function
      	  renaming.
      	(sheet_view_redraw_headers) : Ditto.
      	(sheet_view_set_zoom_factor) : Ditto.
      	(sheet_view_col_size_changed) : Ditto.
      	(sheet_view_row_size_changed) : Ditto.
      	(sheet_view_comment_get_points) : Ditto.
      
      	* src/sheet.[ch] : Rationalize function names, and add glossary.
      	Make the use of margins and sizes (in points and pixels) consistant.
      
      	(sheet_col_get_external_width : Delete.
      	(sheet_row_get_external_height : Delete.
      	(sheet_col_get_distance : Rename sheet_col_get_distance_pixels.
      	(sheet_row_get_distance : Rename sheet_row_get_distance_pixels.
      	(sheet_row_get_unit_distance : Rename sheet_row_get_distance_pts.
      	(sheet_col_get_unit_distance : Rename sheet_col_get_distance_pts.
      	(sheet_col_set_width : Rename sheet_col_set_size_pixels.
      	(sheet_col_set_width_units : Rename sheet_col_set_size_pts.
      	(sheet_row_set_height : Rename sheet_row_set_size_pixels.
      	(sheet_row_set_height_units) : Rename sheet_row_set_size_pts.
      	(sheet_get_default_external_col_width) : Rename sheet_col_get_default_size_pts.
      	(sheet_get_default_external_row_height): Rename sheet_row_get_default_size_pts.
      	(sheet_col_set_internal_width) : sheet_col_set_internal_size_pts.
      	(sheet_row_set_internal_height): sheet_row_set_internal_size_pts.
      	(sheet_{row,col}_set_default_size_pts) : New functions.
      
      	(sheet_init_default_styles) : Tune to match XL defaults.
      
      	* src/sort.c : Use g_strcasecmp, and include <stdlib.h>
      
      	* src/style.c (style_color_new) : Init the selection colour as a 50%
      	  alpha blend with lavender.
      
      	* src/style.h : Change default font to be Helvetica 9 because it will
      	  scale better when the standard 96 dpi resolution is assumed.
      	  Add a selected_color to StyleColor.
      
      	* src/value-sheet.c : Include <gnome.h> to get the
      	  internationalization support.
      
      	* src/workbook-cmd-format.c (workbook_cmd_format_column_auto_fit) :
      	  sheet_col_set_width -> sheet_col_set_size_pixels.
      	(workbook_cmd_format_column_width) :
      	  sheet_col_set_width_units -> sheet_col_set_size_pts.
      	(workbook_cmd_format_row_auto_fit) :
                sheet_row_set_height -> sheet_row_set_size_pixels
      	(workbook_cmd_format_row_height) :
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      
      	* src/xml-io.c (xml_read_rows_info) : Rename
      	  sheet_row_set_height_units -> sheet_row_set_size_pts.
      	(xml_read_cols_info) : Rename
      	  sheet_col_set_height_units -> sheet_col_set_size_pts.
      	(xml_read_colrow_info) : Remove hack with negative pixels.
      	  Use 'visible' flag instead.
      	(xml_write_colrow_info) : Ditto.
      b6d04cff
    • Gregory McLean's avatar
      Added documentation and examples. · 8484b94b
      Gregory McLean authored
      2000-02-12  Gregory McLean <gregm@gnu.org>
      
              * src/functions/fn-financial.c: Added documentation and examples.
      8484b94b
  3. 12 Feb, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      New file added. Documentation of the AutoSave tool. · 9aef8642
      Jukka-Pekka Iivonen authored
      2000-02-12  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
              * doc/C/autosave.sgml: New file added.  Documentation of the
              AutoSave tool.
      9aef8642
    • Jody Goldberg's avatar
      Adjust to new signature for color_combo_new. Select index 0 rather than 1 · 97698b86
      Jody Goldberg authored
      
      2000-02-11  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook-format-toolbar.c (workbook_create_format_toolbar) :
      	  Adjust to new signature for color_combo_new.
      	  Select index 0 rather than 1 (some one has spent too much time in
      	  fortran).  Reorder the initializations to match deployment (I'm
      	  being pedantic).
      
      	* src/widgets/widget-color-combo.c (color_table_setup) : Change the
      	  no_color flag to a possibly NULL string to provide finer control.
      	(color_combo_construct) : Ditto.
      	(color_combo_new_with_vals) : Ditto.
      	(color_combo_new) : Ditto.
      
      2000-02-11  Dean Scott <drscott12@hotmail.com>
      
      	* src/widgets/widget-color-combo.c (default_colors) : Reorder to match
      	  XL2000 more closely and provide names.
      	(color_combo_new) : Correct the layout to display all colours.
      97698b86
  4. 11 Feb, 2000 6 commits
  5. 10 Feb, 2000 3 commits
    • Michael Meeks's avatar
      bump gb version & fixup gb plugin, 'it should now work'TM · 92c05fcd
      Michael Meeks authored
      fixup several include problems
      fix corba-sheet for new sizing scheme.
      92c05fcd
    • Jody Goldberg's avatar
      Remove inclusion of cell.h. Adjust includes to loosen things a bit more. · f6b62c13
      Jody Goldberg authored
      
      2000-02-10  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.h : Remove inclusion of cell.h.  Adjust includes to loosen
      	  things a bit more.
      
      	* src/colrow.h : Remove margin_a_pt margin_b_pt.  Margins are NOT
      	  scaled by resolution or zoom.
      	  Rename units -> size_pts and store as float rather than double.
      	  Rename pixels-> size_pixels
      	  hard_size -> use gboolean rather than a 1 element bitfield
      
      	* src/style.h : Move the typedefs from here.
      	* src/gnumeric.h : to here.
      
      	*.[ch] : Catch up with the renames and include changes.
      f6b62c13
    • Jody Goldberg's avatar
      Some improvements to the default sizes of things to resizing. · 676c70fb
      Jody Goldberg authored
      We will need to tweak this to get things to match properly.
      
      2000-02-09  Jody Goldberg <jgoldberg@home.com>
      
      	* src/workbook.c (change_displayed_zoom_cb) : Add a '%' at the end of
      	  the zoom specification.
      	(workbook_create_standard_toobar) : Adjust the list of zoom labels.
      
      	* src/style.c (font_init) : Add comment explaining that the default
      	  fonts are not scaled by resolution, and that we depend on that.
      
      	* src/sheet.c (sheet_init_default_styles) : Set the default sizes
      	  based on the size of the default font not on pixels.
      
      	* src/sheet-view.c (new_canvas_bar) : Don't set the size or scroll
      	  region here.
      	(sheet_view_construct) : Call sheet_view_set_zoom_factor with a factor
      	  of 1 to set sizes and scroll regions.
      	(sheet_view_set_zoom_factor) : Do not hard code the sizes of the free
      	  dimensions.  Set them based on the font used for the headers.
      676c70fb
  6. 09 Feb, 2000 1 commit
  7. 07 Feb, 2000 4 commits
  8. 06 Feb, 2000 1 commit
    • ERDI Gergo's avatar
      Added myself to the contributors list · b3e9a312
      ERDI Gergo authored
      2000-02-01  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* src/about.c (dialog_about): Added myself to the contributors list
      
      	* src/widgets/gtk-combo-box.c (gtk_combo_box_popup_hide):
      	explicitly cast function pointers to avoid a warning
      
      	* src/solver-lp.c (simplex_step_three): Default value for `min' to
      	eliminate a warning
      
      	* src/dialogs/dialog-advanced-filter.c: Included ranges.h
      	(removing an `implicit declaration' warning)
      
      	* src/commands.c: Included `dialogs.h'
      
      	* src/workbook.c (workbook_standard_toolbar_orient): Hide the zoom
      	combo box on vertical toolbars
      
      	* src/widgets/gtk-combo-text.[ch]: New widget: easy-to-use combo box
      
      2000-01-28  ERDI Gergo  <cactus@cactus.rulez.org>
      
      	* src/workbook.c (workbook_create_standard_toobar): Added a zoom
      	button to the toolbar as requested
      b3e9a312
  9. 04 Feb, 2000 4 commits
    • JP Rosevear's avatar
      Fix typo · 045c02d4
      JP Rosevear authored
      2000-02-05  JP Rosevear  <jpr@arcavia.com>
      
      	* src/commands.h : Fix typo
      045c02d4
    • JP Rosevear's avatar
      Start sorting excel attributes into application, workbook and sheet · 3ec9f5a9
      JP Rosevear authored
      2000-02-05  JP Rosevear  <jpr@arcavia.com>
      
      	* doc/pref-attributes.txt : Start sorting excel attributes into
      	application, workbook and sheet categories.
      3ec9f5a9
    • Jody Goldberg's avatar
      - Fix some of the problems with the resolution scaling. · 3e12961e
      Jody Goldberg authored
      - Implement an initial version of paste_cut undo.
      
      2000-02-05  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.[ch] (sheet_row_info_set_{height, width}) : Make static.
      
      	* src/cell.c (cell_calc_dimensions) : The size is already scaled.
      
      	* src/item-bar.c (item_bar_event) : Only scale by the zoom.
      	  The item-grid canvas is zoomed by the zoom factor, not by the
      	  resolution adjustment.
      	(item_bar_start_resize) : Ditto.
      
      	* src/selection.c (sheet_selection_paste) : Use cmd_paste_cut.
      
      	* src/commands.c (cmd_paste_cut) : Implement.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
      	  function.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.
      3e12961e
    • Jody Goldberg's avatar
      Add some config variables to the application to allow for axis dependent · d6fe542a
      Jody Goldberg authored
      zooming based on the screen display resolution (eg 110 dpi).  No GUI currently
      available.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/widgets/widget-font-selector.c (font_selector_set_points) : new
      	  function.
      	* src/dialogs/dialog-cell-format.c (fmt_dialog_init_font_page) : Use it.
      
      2000-02-04  Jody Goldberg <jgoldberg@home.com>
      
      	* src/sheet.c (sheet_col_set_internal_width) : Scale by the axis
      	  resolution adjment.
      	(sheet_row_set_internal_height) : Ditto.
      	(colrow_set_units) : Ditto.
      	(sheet_compute_col_row_new_size) : Ditto.
      
      	* src/item-bar.c (item_bar_fonts_init) : Scale by resolution.
      	(item_bar_start_resize) : Ditto.
      	(item_bar_event) : Ditto.
      
      	* src/cell.c (cell_calc_dimensions) : Adjust interface to take the
      	  cell. Scale the height test by the vertical resolution adjustment.
      
      	* src/cell-draw.c (sheet_view_get_style_font) : rename from
      	  sheet_get_style_font in preparation for view split.  Scale
      	  the font by the average of the resolutions.
      d6fe542a
  10. 03 Feb, 2000 2 commits
    • Michael Meeks's avatar
      Fixup some guile issues, · 9156721e
      Michael Meeks authored
      Constify function registering API,
      Make a dire warning look less frightening.
      9156721e
    • Jody Goldberg's avatar
      New functions. (xml_{read,write}_range) : New functions. · 1412633f
      Jody Goldberg authored
      
      2000-02-03  Jody Goldberg <jgoldberg@home.com>
      
      	* src/xml-io.c (xml_{read,write}_selection_info) : New functions.
      	(xml_{read,write}_range) : New functions.
      	(xml_write_style_region) : Use xml_write_range.  (DOH!)
      	(xml_read_style_region) : Use xml_read_range.
      	(xml_sheet_read) : Use xml_read_selection_info.
      	(xml_sheet_write) : Use xml_write_selection_info.
      1412633f
  11. 02 Feb, 2000 2 commits
    • Jukka-Pekka Iivonen's avatar
      Bug fix. Convert RHS values to non-negative. · 54ec394c
      Jukka-Pekka Iivonen authored
      2000-02-03  Jukka-Pekka Iivonen  <iivonen@iki.fi>
      
      	* src/solver-lp.c (solver_simplex): Bug fix.  Convert RHS values
       	to non-negative.
      
      	* src/solver-lp.c: Implemented `Sensitivity Report' for Solver
       	tool.  Not complete though.
      54ec394c
    • Jody Goldberg's avatar
      Fix several memory problems (Thanks Morten) · 390f8af9
      Jody Goldberg authored
      2000-02-02  Jody Goldberg <jgoldberg@home.com>
      
      	* src/cell.c (cell_set_text) : Fix thinko.  We are assigning to the
      	  entered_text so we should unref that.  Always print the assigning
      	  empty warning.
      
      	* src/str.c (string_unref_ptr) : Delete unused function.
      
      	* src/clipboard.c (do_clipboard_paste_cell_region) : Use the correct
      	  clear flags for sheet_clear_region.
      	(x_selection_handler) : Ditto.
      
      	* src/workbook.c (workbook_expr_relocate) : We need to unref the new
      	  expression because the cell refs it itself.
      
      	* src/format.c (format_remove_decimal) : Correctly remove the last
      	  decimal. bug 5836.
      390f8af9
  12. 01 Feb, 2000 1 commit