1. 21 May, 1999 1 commit
  2. 16 May, 1999 1 commit
    • Heath Martin's avatar
      Small cut and paste fix. Use row here instead of col. · 9dd1d67b
      Heath Martin authored
      1999-05-15  Heath Martin <martinh@pegasus.cc.ucf.edu>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges):
      	Small cut and paste fix.  Use row here instead of col.
      
      1999-05-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* configure.in (ALL_LINGUAS): Added slovak language.
      
      1999-05-09  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_selection_to_string): New routine.  Returns a
      	string representation of the current selection.
      
      	* src/workbook.c (workbook_selection_to_string): New routine.
      	Retunrs a string representation of the current selection.
      
      1999-05-08  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      9dd1d67b
  3. 30 Apr, 1999 1 commit
  4. 15 Apr, 1999 1 commit
    • Miguel de Icaza's avatar
      SheetObjects are now GtkObjects, this is an abstract class. · 809d8e5e
      Miguel de Icaza authored
      
      SheetObjects are now GtkObjects, this is an abstract class.
      SheetObjectGraphics includes the graphic objects we had before.
      SheetObjectObject will be the Bonobo objects.
      
      PLUG AND PLAY TIME!
      
      Miguel.
      
      1999-04-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-object.c: Converted SheetObject to a Gtk+ object.
      	Splitted the functionality of the SheetObject into classes:
      	SheetObject abstract class;  SheetObjectGraphic for simple drawings;
      	SheetObjectFilled for objects that have a fill attribute.
      
      	* src/sheet-object-graphic.c: Implement the SheetObjectGraphic and
      	SheetObjectFilled objects.
      809d8e5e
  5. 08 Mar, 1999 1 commit
  6. 17 Jan, 1999 1 commit
  7. 16 Jan, 1999 1 commit
  8. 10 Jan, 1999 1 commit
    • Federico Mena Quintero's avatar
      Return the result of gtk_widget_event() if we get to the switch's default · 772d27cf
      Federico Mena Quintero authored
      1999-01-09  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Return the
      	result of gtk_widget_event() if we get to the switch's default
      	case.
      	(gnumeric_sheet_key): Return FALSE in the default case, since we
      	did nothing there.
      
      	* src/workbook.c (open_cmd): If the file-open dialog was
      	cancelled, it will return NULL.  Take this into account.
      772d27cf
  9. 04 Jan, 1999 1 commit
    • Miguel de Icaza's avatar
      New routine. · b2f46797
      Miguel de Icaza authored
      1999-01-04  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_rename): New routine.
      
      	* src/workbook.c (workbook_attach_sheet): Use a EditableLabel for
      	the notebook tab.
      	(workbook_rename_sheet): New routine.
      
      	* src/widget-editable-label.c:  New widget.  This is a label that
      	can be edited if you double click on it.  This uses the same trick
      	of the gnome-icon-item to provide the editing facilities.
      
      1999-01-03  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c (workbook_setup_status_area): Use the style font,
      	not "fixed".
      	(workbook_setup_status_area): One hack down.  Use GTK_ANCHOR_NW to
      	achieve the same effect I had with my previous hack.
      
      	* src/dialog-cell-comment.c (dialog_cell_comment): New file.
      	Implements the cell comment dialog box.
      
      	* src/cell.c (cell_relocate): Only call cell_comment_reposition is
      	there is a cell comment bound to this cell.
      
      	* src/format.c (format_value): No format means "General" format as
      	well.
      	If the value has decimal numbers use "0.00##########" for the
      	formatting instead of 0.00.
      b2f46797
  10. 17 Dec, 1998 1 commit
    • Federico Mena Quintero's avatar
      Do not set_usize() on the info item. · 7bd669db
      Federico Mena Quintero authored
      1998-12-16  Federico Mena Quintero  <federico@nuclecu.unam.mx>
      
      	* src/workbook.c (workbook_setup_status_area): Do not set_usize()
      	on the info item.
      
      	* src/sheet-view.c (new_canvas_bar): Set the width or height to -1
      	in set_usize().
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_new): Do not set_usize() on
      	the sheet.
      7bd669db
  11. 16 Dec, 1998 1 commit
  12. 14 Dec, 1998 1 commit
  13. 03 Dec, 1998 1 commit
    • Miguel de Icaza's avatar
      New functions to set the sheet top column and row respectively. · 63064dec
      Miguel de Icaza authored
      1998-12-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_row,
      	gnumeric_sheet_set_top_col): New functions to set the sheet top
      	column and row respectively.
      
      	(gnumeric_sheet_bar_set_top_row, gnumeric_sheet_bar_set_top_col):
      	Renamed from their old names to reflect their actual action.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Do not pass
      	negative numbers to item_grid_find_col and item_grid_find_row.
      
      	* src/item-grid.c (item_grid_find_row, item_grid_find_col): Check
      	for possitive numbers. I think the right fix is to accept negative
      	numbers and find the column even if the number is negative instead
      	of this ugly restriction.
      63064dec
  14. 10 Nov, 1998 1 commit
    • Miguel de Icaza's avatar
      Two things that have been on my hard disk for a long time: · dbf9667e
      Miguel de Icaza authored
      
      
      Two things that have been on my hard disk for a long time:
      
      1. Comments-on-cells code is working.  We just need the nice dialog to
      actually type something in.
      
      It needs xml-io.c support though, hopefully Daniel will add this soon.
      
      2. Dropped cell->entered_text.  We now only store the parsed version
      of the cell (either as an ExprTree or as a Value).  This should help
      mmeeks with his Excel-formula importing code, it should be possible
      to do the right thing now instead of constructing a string representation
      of the formula and re-parsing it.
      
      Various fixes here and there as well.
      
      Miguel
      
      1998-11-10  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (sheet_view_comment_get_points): Scale properly
      	the points to be in window cordinates.
      
      	* src/sheet.c (sheet_col_set_width): Move comments on column
      	change.
      
      	* src/cell.c (cell_copy): Duplicated cells get col, row and sheet
      	values set to NULL.
      
      1998-11-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/fn-misc.c: Add ctype.h
      
      	* src/sheet-view.c (sheet_view_comment_get_points): New utility
      	routine used.
      	(sheet_view_comment_relocate): New function used to relocate a
      	comment canvas item in a cell to its new location.
      
      	* src/cell.c (cell_relocate): Move the comments with the cell.
      	(cell_realize, cell_unrealize, cell_comment_realize,
      	cell_comment_unrealize): New functions used to create and destroy
      	view-specific cell components (the comments are canvas objects
      	that need to be created on a per-view basis).
      dbf9667e
  15. 28 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Added keypad support. · fd8d903d
      Miguel de Icaza authored
      1998-10-28  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Added
      	keypad support.
      fd8d903d
  16. 13 Oct, 1998 2 commits
    • Jakub Jelinek's avatar
      New functions. (item_grid_event): If x or y is out of canvas bounds, do · 718822fb
      Jakub Jelinek authored
      1998-10-13  Jakub Jelinek  <jj@ultra.penguin.cz>
      
      	* src/item-grid.c (item_grid_stop_sliding,
      	item_grid_sliding_callback, item_grid_start_sliding):
      	New functions.
      	(item_grid_event): If x or y is out of canvas bounds,
      	do sliding for both cell and formula selection.
      	For button release from formula selection, make cell
      	being edited visible afterwards.
      	(item_grid_button_1): If not extending selection with
      	shift, make cursor cell visible.
      
      	* src/gnumeric-sheet.c (move_cursor,
      	gnumeric_sheet_key_mode_sheet): Make cursor cell visible.
      
      	* src/sheet.c (sheet_select_all): Make home visible.
      	(sheet_make_cell_visible): New function.
      	(sheet_cursor_move, sheet_cursor_set): Don't make cursor
      	visible, caller has to do it himself if desired.
      
      	* src/sheet.h (sheet_make_cell_visible): New prototype.
      
      	* src/workbook.c (workbook_parse_and_jump): Make cursor
      	cell visible.
      718822fb
    • Miguel de Icaza's avatar
      It is amazing the number of times I duplicated this code. I wonder if I · cd222d42
      Miguel de Icaza authored
      1998-10-13  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (col_name): It is amazing the number of times I
      	duplicated this code.  I wonder if I took prozac by accident.
      	This should fix the bug reported by Morten Welinder
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-view.c (vertical_scroll_event,
      	horizontal_scroll_event): Set the top column/row from the
      	adjustment as well.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_top_col,
      	gnumeric_sheet_set_top_row): Export these functions to improve the
      	scrolling behaviour.
      
      1998-10-12  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/utils.c (cellref_name): Fixed another of column name
      	decoding.  I wonder when I will learn.
      cd222d42
  17. 12 Oct, 1998 1 commit
    • Jakub Jelinek's avatar
      Add base_col and base_row arguments. Move cursor to that location, so that · 4ded61c3
      Jakub Jelinek authored
      1998-10-07  Jakub Jelinek  <jj@ultra.penguin.cz>
      
      	* src/sheet.c (sheet_cursor_set): Add base_col and
      	base_row arguments. Move cursor to that location, so
      	that it really reflects base of the selection.
      
      	* src/sheet.h (sheet_cursor_set): Ditto.
      
      	* src/clipboard.c (x_selection_received): Callers changed.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_set_selection): Ditto.
      	(move_cursor): Ditto.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Ditto.
      	(item_cursor_init): Fix a typo.
      4ded61c3
  18. 08 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      New routine: loads a couple of default fonts to be used in Gnumeric. · 1e3d41ad
      Miguel de Icaza authored
      1998-10-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.c (font_init): New routine: loads a couple of default
      	fonts to be used in Gnumeric.
      
      	* src/item-bar.c (bar_draw_cell): Make the SELECTION cells display
      	with a bold font.
      	(item_bar_realize, item_bar_unrealize): reference and unreference
      	the gnumeric_default_bold_font.
      
      1998-10-07  Jakub Jelinek  <jj@ultra.linux.cz>
      
      	* src/item-grid.c (item_grid_button_1): Handle shift+click
      	on cells (removes last selection and selects from last base
      	to current mouse location).
      	(item_grid_event): Don't lock up if mouse is moved during
      	selection behind left or top margin of sheet canvas (later
      	on we should move the current view).
      
      	* src/cell.c (cell_formula_changed): Cast void * to something
      	reasonable.
      
      	* src/item-bar.c (draw_bar_cell): Switch from 2 state bars
      	to 3 state: whole column/row is selected in one of the current
      	selections, some cells are selected in one of the selections
      	or nothing is selected. Get rid of ci->selected, compute it
      	from the selections.
      	(item_bar_draw): Ditto.
      
      	* src/cell.h (selected): Ditto.
      
      	* src/sheet.c (sheet_init_default_styles, sheet_init_dummy_stuff):
      	Ditto.
      	(sheet_selection_row_extend_to, sheet_selection_col_extend_to):
      	Remove.
      	(sheet_all_is_selected): True if any of the selections covers whole
      	sheet.
      	(sheet_col_selection_type, sheet_row_selection_type): New functions.
      	(sheet_selection_set): New function.
      
      	* src/sheet-view.c (sheet_view_row_set_selection,
      	sheet_view_col_set_selection): Remove.
      	(sheet_view_col_selection_changed, sheet_view_row_selection_changed):
      	Handle shift+click and ctrl+click on whole columns/bars as well.
      	(sheet_view_col_size_changed, sheet_view_row_size_changed): Use
      	sheet_*_selection_type instead of ci->selected.
      
      	* src/item-bar.h (ItemBarSelectionType): Enum for the new 3 state
      	column/row titles.
      	(ItemBarClass): selection_changed takes modifier mask as argument.
      
      	* src/sheet-view.h (sheet_view_*_set_selection): Remove prototypes.
      
      	* src/sheet.h (sheet_selection_*_extend_to): Ditto.
      	(sheet_selection_set, sheet_*_selection_type): New prototypes.
      
      1998-10-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      1e3d41ad
  19. 02 Oct, 1998 1 commit
    • Miguel de Icaza's avatar
      Removed unused variables · e5d027e2
      Miguel de Icaza authored
      1998-10-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/item-grid.c (item_grid_event): Removed unused variables
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_start_cell_selection,
      	gnumeric_sheet_selection_extend,
      	gnumeric_sheet_selection_cursor_place): New routines for letting
      	the user use the mouse to select a cell range.  Invoked from
      	item-grid.c
      
      	* src/item-grid.c (item_grid_event): Clean and reorgranize the
      	event handler, remove unused variables.
      
      	* src/gnumeric-sheet.c (selection_expand_horizontal): -1 now means
      	"shrink the selection", which means Left/Up keys shrink.
      	Right/Down expand.
      	(selection_expand_vertical): likewise.
      
      	* src/format.c (format_number): Fixed memory leak: this is a
      	pretty bad construction: g_string_append (s, alloc_string()).  I
      	just did not see it coming.  Taking metal note of this.
      
      	* src/number-match.c (format_create_regexp): Fixed memory leaks.
      	The strings returned by create_option_list need to be released.
      
      	* src/style.c (style_color_new): Important bug fix:  The key I was
      	passing was a GdkColor, but our hash table stored StyleColors
      	inside.
      
      	* src/format.c (append_year): Better fix, suggested by Morten
      	Welinder <terra@diku.dk>
      e5d027e2
  20. 30 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      New routine to paint a little red triangle if the cell hsa notes. · 890ae3fd
      Miguel de Icaza authored
      
      1998-09-29  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/cell.c (cell_draw_comment): New routine to paint a little
      	red triangle if the cell hsa notes.
      
      	* src/cell.c (cell_destroy): Destroy the comment.
      	(str_trim_spaces): New routine.  Trims the spaces on a string.
      	(cell_draw): Trim the leading and trailing spaces on every string
      	of a multi-line text.
      
      	* src/color.c (color_init): Allocate a red for tagging the
      	spreadhseet notes.
      
      	* src/dialog-cell-format.c (format_list_fill): Apply the
      	traslation when adding the format.
      
      	* doc/tranlating.sgml: New document that describes how to
      	internationalize and localize Gnumeric properly.
      
      	* src/workbook.c (recalc_cmd): Provide a way to force a recomputation.
      	(insert_current_time_cmd): New function.  insert the current time.
      	(insert_current_date_cmd): New function.  insert the current date.
      	(insert_at_cursor): New utility function.
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Handle control-home
      890ae3fd
  21. 25 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      Do not handle Control-a here. · f0fbe9c5
      Miguel de Icaza authored
      1998-09-24  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet): Do not
      	handle Control-a here.
      
      	* src/workbook.c: Handle C-a with the GnomeApp accelerators
      f0fbe9c5
  22. 24 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      New: · 169d1191
      Miguel de Icaza authored
      
      
      New:
      
      	- Bold button works properly (ie, it detects what sort of
      	  stuff you have and presses/unpresses accordingly).
      
      	- GNumeric now has operation modes: sheet and object.
      	  Using delete/backspace/edit-cut will let you kill
      	  objects.
      
      	- Lots of the bug fixes reported by Adrian/Federico.
      
      Here is the detailed changelog:
      
      1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/xml-io.c: Destroy the extra style.
      
      	* src/main.c (main): No need to init colors as they are auto-inited.
      
      	* src/style.c (font_compute_hints): At font creation time store a
      	couple of the font attributes for quick retrieval.
      
      	* src/sheet-view.c (sheet_view_construct): Do not allow this
      	button to have the focus either.
      
      	* src/item-bar.c (item_bar_draw): If the whole sheet is selected,
      	draw all of the columns in pressed presenstation
      
      	* src/sheet.c (sheet_is_all_selected): Return wheter all the sheet
      	is selected.
      
      	* src/utils.c (cell_name): Fixed cell name computation.
      	(parse_cell_name): Fixed parsing of the cell name.
      169d1191
  23. 23 Sep, 1998 3 commits
    • Miguel de Icaza's avatar
      Added shortcuts to the File menu. · 8a52fa07
      Miguel de Icaza authored
      1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/workbook.c: Added shortcuts to the File menu.
      
      	* src/item-cursor.c (item_cursor_autofill_event): Do not allow
      	under-the-base coordinates.
      
      	* src/sheet-autofill.c: Its "january" not "jannuary".
      
      	* src/cell.c (cell_set_text): Enhanced number detection.
      
      	* src/item-cursor.c (item_cursor_drag_event): Handle sheet
      	boundaries.
      
      	* src/gnumeric-sheet.c (move_cursor_vertical,
      	move_cursor_horizontal): Handle sheet boundaries.
      
      	* src/item-grid.c (item_grid_event): Handle sheet boundaries.
      
      	* src/item-bar.c (item_bar_draw): Handle sheet boundaries.
      
      	* src/pixmaps/bold.xpm:  Oops.  Use the bold icon I created
      	yesterday.
      8a52fa07
    • Miguel de Icaza's avatar
      I got too agressive with the test so no Strings + Numbers were being · d4cf4336
      Miguel de Icaza authored
      1998-09-23  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-autofill.c (string_has_number): I got too agressive
      	with the test so no Strings + Numbers were being autofilled.
      
      	* src/workbook.c (workbook_setup_edit_area): Remove the CAN_FOCUS
      	flags form the accept and cancel buttons.  Bind the buttons.
      	(buttons): Neither Zoom-in and Zoom-out can take the focus.
      	(change_selection_font): New function to change the fonts of a
      	cell range.
      
      	* src/sheet.c (sheet_accept_pending_input): Renamed from
      	sheet_accept_pending_output.
      
      	* samples/: Added a new sample file: hypothetical-sales.
      d4cf4336
    • Arturo Espinosa's avatar
      Beginning of a test suite for Gnumeric · b033cbff
      Arturo Espinosa authored
      b033cbff
  24. 22 Sep, 1998 2 commits
  25. 19 Sep, 1998 1 commit
  26. 16 Sep, 1998 1 commit
    • Arturo Espinosa's avatar
      Autofill lists work: · ef0634ee
      Arturo Espinosa authored
      
      
      Autofill lists work:
      
      	Integers, Floats, Formulas and constant strings works.
      
      Todo:
      
      	Lists of known strings and strings with numbers embedded
      
      Miguel.
      ef0634ee
  27. 15 Sep, 1998 1 commit
    • Arturo Espinosa's avatar
      Got cursors working. · ca8fa0ac
      Arturo Espinosa authored
      
      
      Got cursors working.
      
      Use the cursors properly on the spreadhseet (gives good feedback
      on what is going to happen).
      
      More work on autofill.
      
      miguel.
      ca8fa0ac
  28. 14 Sep, 1998 1 commit
    • Arturo Espinosa's avatar
      Color attributes in formats work (ie, you can get colored cells now); · 4ec6073e
      Arturo Espinosa authored
      
      
      Color attributes in formats work (ie, you can get colored cells now);
      
      My first -futile attempts- at getting various different cursors working on the
      spreadsheet (we need a cross and various other cursors for a better emulation
      of Excel).
      
      The beginning of autofill, but I really need to see Excel live before implementing
      this.
      
      Miguel.
      4ec6073e
  29. 11 Sep, 1998 1 commit
  30. 10 Sep, 1998 1 commit
  31. 07 Sep, 1998 1 commit
    • Miguel de Icaza's avatar
      Color style is now a single color · c15908cc
      Miguel de Icaza authored
      1998-09-07  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/style.h: Color style is now a single color
      
      1998-09-06  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet-object.c: New file.  The support for adding graphical
      	objects to the spreadhseet is here.  The main entry point is
      	sheet_set_mode_type which hooks to the signal handlers for object
      	creation.
      
      	Various routines for per-view creation, destruction are provided.
      c15908cc
  32. 05 Sep, 1998 2 commits
    • Miguel de Icaza's avatar
      Add unary '+' · d31d1eaf
      Miguel de Icaza authored
      1998-09-05  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/parser.y: Add unary '+'
      
      	* src/gnumeric-sheet.c: Add keybinding for Control-Enter which
      	fills the selection with the current text.
      
      	* src/sheet.c (sheet_set_text): New function: sets the contents of
      	an arbitrary cell to the text as if it were typed by the user.
      	(sheet_fill_selection_with): Fill the selection with a string.
      d31d1eaf
    • Arturo Espinosa's avatar
      Fix various pending small buglettes -mig · 76e414be
      Arturo Espinosa authored
      76e414be
  33. 03 Sep, 1998 2 commits
  34. 01 Sep, 1998 1 commit