- 20 Aug, 1998 6 commits
-
-
Chris Lahey authored
-
Arturo Espinosa authored
Change of strategy: - We dont do "smart" autoformat of numbers and strings. That is what the "general" format is for. MigueL
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
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
-
- 19 Aug, 1998 3 commits
-
-
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.
-
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
-
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.
-
- 18 Aug, 1998 3 commits
-
-
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.
-
Chris Lahey authored
-
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.
-
- 17 Aug, 1998 4 commits
-
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Miguel de Icaza authored
1998-08-17 Miguel de Icaza <miguel@nuclecu.unam.mx> * src/main.c (main): Include i18n setup as per namsh's suggetion.
-
Nam SungHyun authored
-
- 15 Aug, 1998 2 commits
-
-
Chris Lahey authored
-
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.
-
- 14 Aug, 1998 7 commits
-
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Jaka Mocnik authored
1998-08-14 Jaka Mocnik <jaka.mocnik@kiss.uni-lj.si> * src/clipboard.h: changed PASTE_ALL to PASTE_ALL_TYPES. * src/gnumeric-util.c (gtk_radio_group_get_selected): changed to work. I guess it is a bit weird trying to access a next member of an int.
-
Arturo Espinosa authored
Various small fixes + goto dialogs + improved paste special.
-
Tom Tromey authored
Thu Aug 13 19:08:28 1998 Tom Tromey <tromey@cygnus.com> * src/xml-io.c: Look in gnome-xml for tree.h and parser.h.
-
- 13 Aug, 1998 3 commits
-
-
Arturo Espinosa authored
Paste special dialog box. Expression tree decoder (required for copy paste). Selection walking works properly just like in Excel.
-
Daniel Veillard authored
-
Arturo Espinosa authored
-
- 12 Aug, 1998 7 commits
-
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Arturo Espinosa authored
-
Arturo Espinosa authored
OK, first version of Gnumeric with cut/copy/paste support. It has a bug or two that I will fix tomorrow first thing in the morning. Tomorrow I will also do the "move" region thingie with the new fix to the canvas from Federico. Miguel.
-
Arturo Espinosa authored
Ok, fixed the problems with the bounds in the ItemCursor, but i still cant get events after I do a gnome_canvas_grab for the case of the dragging selection.
-
Arturo Espinosa authored
-
Arturo Espinosa authored
Work on the clipboard
-
- 11 Aug, 1998 1 commit
-
-
Arturo Espinosa authored
Ok, finally got recalculation working as it is supposed to work. This piece of code is so clean that it was actually a clean fix :-)
-
- 10 Aug, 1998 1 commit
-
-
Arturo Espinosa authored
Autocalc works (but I managed to break the recursive detection stuff, will fix that tomorrow). Quick-computations on the selected area (like Excel) works with different user-selectable functions. Fixed the horrible crash due to not removing my strings from the hash table ;-) Miguel
-
- 08 Aug, 1998 3 commits
-
-
Arturo Espinosa authored
It autocalcs! My technique is incredibly cool! The engine should support most excel features for recursive computations (we just need the dialog boxes now). It still has a wierdo crash from a mismatched string ref/unref but that is going to be trivial to fix. Next step: Functions in Perl.
-
Arturo Espinosa authored
-
Arturo Espinosa authored
Today it probably does not compile, but I have to leave now. This is basically the framework for getting computations working. My current approach is to register areas of interest for a cell. This is not perfect, but good enough: The idea is to walk the expression tree and look for cell references (cell references or ranges) and register those areas of "interest" for a cell. When a new text is entered into a cell, the "regions" of interest list is checked and if a match is found, then the cells on that region of interest are queued for recomputation. Of course, I do not know yet how to handle the recursive references. One option is to keep a counter (that starts at zero) during recomputation, ie something like: eval_cell (Cell *cell) { cell->use_count++; if (cell->use_count > threshold) return "Cycle too depth"; ... on value lookup: eval_cell (cell); ... cell->use_count--; }
-