1. 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
  2. 05 Sep, 1998 3 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
    • Arturo Espinosa's avatar
      Ok, the new display engine is now in place. · 47d3133f
      Arturo Espinosa authored
      
      
      Ok, the new display engine is now in place.
      
      The design bug with the exposures has now been fixed.
      
      Now, back to more mundane tasks.
      
      Miguel.
      47d3133f
  3. 04 Sep, 1998 1 commit
  4. 03 Sep, 1998 2 commits
  5. 02 Sep, 1998 3 commits
    • Miguel de Icaza's avatar
      New file, new routines to deal with file save and file load dialog boxes. · 0ef3dbc4
      Miguel de Icaza authored
      1998-09-02  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/file.c (workbook_save_as, workbook_save,
      	dialog_query_load_file): New file, new routines to deal with file
      	save and file load dialog boxes.
      
      	* src/workbook.c: Improved our toolbar with new actions.
      
      	* src/xml-io.c: Fixed the order in which parameters were passed to
      	sheet_cell_get/sheet_cell_new
      0ef3dbc4
    • Arturo Espinosa's avatar
      Last night hacking: · 0d4172b7
      Arturo Espinosa authored
      
      
      Last night hacking:
      
      	- Bound toolbar alignment buttons.
      	- Redraw logic fixed (although multi-span single-repaint
      	  is still broken).
      	- Small other fixes.
      
      Miguel.
      0d4172b7
    • Miguel de Icaza's avatar
      Added support for the "add returns automatically" formatting option. · 9a0cc5dc
      Miguel de Icaza authored
      1998-09-01  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/dialog-cell-format.c (create_align_page): Added support for
      	the "add returns automatically" formatting option.
      
      	* src/cell.c (cell_draw): Finished implementing my new drawing
      	scheme.  It now supports all of the Excel 5.0 alignements.
      
      	Added missing calls to cell_calc_dimensions in various spots.
      
      	* src/workbook.c: Added a toolbar with some actions.
      9a0cc5dc
  6. 01 Sep, 1998 2 commits
  7. 31 Aug, 1998 1 commit
  8. 30 Aug, 1998 1 commit
  9. 29 Aug, 1998 2 commits
  10. 28 Aug, 1998 2 commits
    • Arturo Espinosa's avatar
      Redid the format parsing engine to be closer to the Excel formatting · c2f2e55f
      Arturo Espinosa authored
      
      
      Redid the format parsing engine to be closer to the Excel formatting
      engine.  This basically is just a better front end to Clahey's number
      rendering engine.
      
      This now supports quoted strings in a format;  quoted characters;
      spacing control formats;  color specification;  plus some ammount
      of pre-parsing.
      
      Getting it Excel compliant will be a bit more difficult than we
      expected, as for example this format shows:
      
      	000-0000-0000
      
      should render 12345670987 as: 123-4567-0987
      c2f2e55f
    • Arturo Espinosa's avatar
      Today: · ed3cc889
      Arturo Espinosa authored
      
      
      Today:
      
         Gnumeric had a big design problem:  It did not support
         multiple vies of the same sheet, this has been now fixes.
      
         Huge changes to adapt to the new SheetView object that is
         a per-view object.
      
         Some things might be a little broken due to these changes.
      
      miguel.
      ed3cc889
  11. 27 Aug, 1998 2 commits
    • Arturo Espinosa's avatar
      Today: · 89dcab7c
      Arturo Espinosa authored
      
      
      Today:
      
      	- Finally implemented the selection correctly using the
      	  cool techniques Raster and Owen described to me on my
      	  visit to cool RHAD-land.
      
      	  This basically means Gnumeric does not look sharewareish
      	  when you select a range of cells.
      
      	- Zoom dialog box (copy from Excel)
      
      	- Various other sheet-editing facilities are now in place.
      
      	- Scrol-bar fixes and feature additions.
      
      Next:
      
      	I really need to do the file load/save code.
      	I really need some sane font code.
      
      15,011
      89dcab7c
    • Arturo Espinosa's avatar
      Add color support, take 1 · 1abfce71
      Arturo Espinosa authored
      1abfce71
  12. 26 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Today: · 061a1e74
      Arturo Espinosa authored
      
      
      Today:
      
      	- Column delete and Row delete work.  Bindings all over the
      	  place are working (context menus, menus, etc).
      
      	- Made scrollbars usable and include a tooltip-like thing
      	  like Excel does.
      
      	  They still are kind of inacurrate, and I just figured
      	  out a terrible design mistake that will be fixed tomorrow
      	  (it is kind of big).
      
      	- Various bug fixes to little things I had overlooked in
      	  cell insert/shift routines.
      
      Miguel.
      061a1e74
  13. 24 Aug, 1998 1 commit
    • Arturo Espinosa's avatar
      Lots of changes during the weekend: · ba7fbc1f
      Arturo Espinosa authored
      
      
      Lots of changes during the weekend:
      
      	- New style management code:  All styles are now managed by
      	  regions on a sheet (the default region, is attached to the
      	  complete sheet).
      
      	- Styles can now be partial: Only some parts of the style
      	  might be valid (this is very important).
      
      	- Insert column/Insert row/Shift rows has been fixed and
      	  it now computes properly the dependencies on any
      	  data change.
      
      	- Linking/unlinking formulas now takes care also of
      	  adding/removing the dependencies of the cell.
      
      Miguel.
      ba7fbc1f
  14. 22 Aug, 1998 2 commits
    • Arturo Espinosa's avatar
      Ok, fixed cell movement · f17355a6
      Arturo Espinosa authored
      
      
      Ok, fixed cell movement
      f17355a6
    • Miguel de Icaza's avatar
      Today: · ac57f8df
      Miguel de Icaza authored
      
      
      Today:
      
      	- Row insertion works.
      
      	- Dialog box for adding various things (equivalent to
      	  excel's Insert/Cells dialog box, any similarities
      	  with Excel are accidental).
      
      	- Plus the usual exciting features you would expect.
      
      Miguel
      
      1998-08-21  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/dialog-insert-cells.c: New file.  Handle the insert cells
      	dialog box.  This uses GtkCauldron for the first time.  That
      	routine is soooo cool!
      
      	* src/sheet.c (sheet_cell_remove): Remove the memory used by the
      	key in the hashtable as well.
      	(sheet_insert_col): new routine used to insert columns in the
      	spreadsheet, it is pretty elaborate.
      	(sheet_col_destroy, sheet_row_destroy): New routine used by the
      	column-overflow logic in the insertion routines.
      	(sheet_cell_add): Only attach a style to a cell if it does not
      	have any yet.
      	(sheet_move_row): New routine: shifts a row a number of columns.
      	(sheet_verify_selection_simple): New routine for warnging about
      	the multiple-selections case.  In the future it should provide a
      	help context.
      	(sheet_insert_row): Implement this new routine.
      
      	* src/clipboard.c (paste_cell): Simplify.
      
      	* src/cell.c (cell_make_value, cell_formula_relocate): New routines
      	based on the code that was done for the clipboard.  Now they are
      	used in other places as well.  cell_make_value actually fixes a
      	potential bug that caused formulas to reappear magically on
      	paste-values commands (never hit the bug, but it was there, I
      	swear to god).
      ac57f8df
  15. 21 Aug, 1998 2 commits
    • Arturo Espinosa's avatar
      Last night hacking got us: · 04ea538e
      Arturo Espinosa authored
      
      
      Last night hacking got us:
      
      	- Column insertion.
      	- COlumn shifting (insert and delete).
      
      Next step: row insertion.
      
      Miguel.
      04ea538e
    • Arturo Espinosa's avatar
      Format fixes · 4ee2ee43
      Arturo Espinosa authored
      
      
      Format fixes
      
      Paste works just like Excel now.  Dragging a selection
      moves the cursor and the selection properly.
      
      Move the paste-special dialog box to its own file.
      
      Other misc fixes.
      
      Miguel.
      4ee2ee43
  16. 20 Aug, 1998 2 commits
    • Chris Lahey's avatar
      Multi-field format type. · 4fc1f950
      Chris Lahey authored
      4fc1f950
    • Miguel de Icaza's avatar
      New value format framework installed. · e32cdefe
      Miguel de Icaza authored
      
      
      New value format framework installed.
      
      The idea is that we will precompile formats to avoid parsing the
      format everytime a cell is repainted.
      
      Miguel.
      
      1998-08-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/format.c (format_value): The new entry point for formating
      	values.  This takes a Value instead of a float.
      	NULL is never returned from format_value now: if there is a format
      	error, then value_string is used to display it.
      
      	(format_compile): This routine should always return, it cant fail,
      	in the worst * case it should just downgrade to simplistic formatting.
      
      	(format_destroy): This routine is invoked when the last user of
      	the format is gone (ie, refcount has reached zero) just before the
      	StyleFormat structure is actually released.  resources allocated
      	in format_compile should be disposed here
      e32cdefe
  17. 19 Aug, 1998 3 commits
    • Miguel de Icaza's avatar
      Basically: · af81b693
      Miguel de Icaza authored
      
      
      Basically:
      
      	- auto-alignment on cells without style works.
      
      	- Clean ups (use the new cell_ routines).
      
      	- Couple of bug fixes.
      
      	- Figured that aligment code works better if you
      	  actually call the routine on the cell.
      
      Miguel
      
      1998-08-19  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/sheet.c (sheet_cursor_set): New function.  Use this instead
      	of the view-specific routine (gnumeric_cursor_set).
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_can_move_cursor): ':' is a
      	valid separator for activating the cursor-cell selection mode.
      
      	* src/cell.c (cell_auto_align): New function.  This tries to
      	auto-align the cell contents depending on the value type.
      
      	* src/dialog-cell-format.c (cell_properties_apply): Create a
      	single style that is attached to a region and let each property
      	page fill the structure in.
      	(apply_align_format): Implement.  No wonder it was not working
      	last night.
      	(apply_number_formats): Fill the passed Style structure only.
      	Remove obsolete code.
      
      	* src/sheet.c (sheet_cell_new): New cells are born with auto-style
      	flag turned on.
      
      	* src/clipboard.c (paste_cell): Render the cell after computation
      	is finished.  Clean up the usage of the cell manipulation;  make
      	auto-style work on pasted cells.
      
      	* src/str.c (string_ref): Return the value referenced.
      af81b693
    • Arturo Espinosa's avatar
      Drag and Drop editing actions work now: · c3468eb6
      Arturo Espinosa authored
      
      
      Drag and Drop editing actions work now:
      
      	- Copy cells by contorl-dragging the border of a selection
      	- Move cells by dragging border of a selection
      	- Do other operations by right-button-dragging the selection border
      
      Miguel
      c3468eb6
    • Arturo Espinosa's avatar
      Alignment dialog box (does not work though, wonder why). · c73132df
      Arturo Espinosa authored
      
      
      Alignment dialog box (does not work though, wonder why).
      
      Various fixes to the cursor handling;
      
      Stippled cursors for autofill and drag;
      
      check in before going home.
      
      Miguel.
      c73132df
  18. 18 Aug, 1998 3 commits
    • Miguel de Icaza's avatar
      Make the selected column and row be always fully visible (ie, use the · 3c5f135d
      Miguel de Icaza authored
      1998-08-18  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/gnumeric-sheet.c (gnumeric_sheet_compute_visible_ranges):
      	Make the selected column and row be always fully visible (ie, use
      	the ->last_full_[col|row] instead of last_visible_[col|row].
      
      	* src/cell.c (cell_set_format): Call cell_queue_redraw after
      	changing the cell contents.
      3c5f135d
    • Chris Lahey's avatar
      Fixed the '.' bug. · ccd87b37
      Chris Lahey authored
      ccd87b37
    • Miguel de Icaza's avatar
      Today: · 8df6dcc8
      Miguel de Icaza authored
      
      
      Today:
      
      	- Cell format dialog box + working number formats.
      
      Miguel.
      
      1998-08-17  Miguel de Icaza  <miguel@nuclecu.unam.mx>
      
      	* src/eval.c (cell_eval): Use the formating routine now.
      
      	* src/expr.c (value_format): Format a Value with a StyleFormat.
      
      	* src/item-cursor.c (item_cursor_set_bounds_visibly): Force a
      	canvas update after moving the selection.
      
      	* src/sheet.c (sheet_selection_to_list): New function: generates a
      	list of cells from the sheet->selections list.
      
      	* src/style.c: Now styles have a "valid_flag" that has a bit
      	turned on for those parts of the style that are actually used.
      	This is required for adding the regions of style application in a
      	Sheet.
      	(style_destroy): destroy only those valid parts in a style.
      
      	* src/dialog-cell-format.c: New file.   Implements the cell/format
      	dialog box.
      
      	* src/cell.c (cell_render_value): new routine used to render the
      	cell->value into cell->text.
      	(cell_queue_redraw): new routine to queue individual redraws of
      	the screen.  I believe it is buggy, as the screen does not update
      	after an apply in the cell/format dialog box.
      	(cell_set_format): New routine to change the format of an existing
      	cell.
      
      	* src/format.c (format_number): Added color argument;  smaller
      	fixes to use it within gnumeric.
      
      	* src/main.c (main): Include i18n setup as per namsh's suggetion.
      8df6dcc8
  19. 17 Aug, 1998 1 commit
  20. 15 Aug, 1998 2 commits
    • Chris Lahey's avatar
      Latest version of format.c. · 178555c3
      Chris Lahey authored
      178555c3
    • Arturo Espinosa's avatar
      Various little fixes here and there: · c3a522d6
      Arturo Espinosa authored
      
      
      Various little fixes here and there:
      
      	- Basic support for dragging the selection is in (still does
      	  not do anything, will do the action binding later).
      
      	- Fixes to the cell-selection-code-when-you-type-a-formula code
      
      	- ExprTrees are now properly refcounted (instead of only
      	  refcounting the root node).  This is required for the
      	  Paste special/with-arithmetic operation feature.
      
      	- Expression decoding (for pasting a formula with relative
      	  references) now takes into account operator precedence to
      	  avoid cluttering the pasted expression with extra paretheses.
      
      	Other smallish fixes which I forget now.
      
      Miguel.
      c3a522d6
  21. 14 Aug, 1998 3 commits