1. 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
  2. 02 Nov, 1998 1 commit
  3. 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
  4. 30 Sep, 1998 1 commit
  5. 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
  6. 09 Sep, 1998 1 commit
    • Arturo Espinosa's avatar
      Ok, finally objects are fully editable. · 5837f657
      Arturo Espinosa authored
      
      
      Ok, finally objects are fully editable.
      
      We need support for saving the graphical objects.  It should be
      pretty simple, as things are kept nicely on a list of SheetObjects
      which can be dumped and restored from disk easily.
      
      Miguel.
      5837f657
  7. 08 Sep, 1998 1 commit
  8. 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
  9. 28 Aug, 1998 1 commit