|
GnuCash c935c2f+
|
An infrastructure for building a modular matrix of cells like a spreadsheet or checkbook register. More...
Modules | |
| Cell | |
| A "Cell" is an active object which is designed to read a specific kind of user input. | |
| Cellblock | |
| A "Cellblock" is an array of active cells. | |
| Table | |
| The "Table" is a displayed matrix. | |
Files | |
| file | register-common.h |
| Common declarations for the register core. | |
Data Structures | |
| struct | VirtualCellLocation |
| The VirtualCellLocation structure contains the virtual location of a virtual cell. More... | |
| struct | VirtualLocation |
| The VirtualLocation structure contains the virtual location of a physical cell. More... | |
Macros | |
| #define | BASIC_CELL_TYPE_NAME "basic-cell" |
| #define | COMBO_CELL_TYPE_NAME "combo-cell" |
| #define | DATE_CELL_TYPE_NAME "date-cell" |
| #define | NUM_CELL_TYPE_NAME "num-cell" |
| #define | PRICE_CELL_TYPE_NAME "price-cell" |
| #define | RECN_CELL_TYPE_NAME "recn-cell" |
| #define | DOCLINK_CELL_TYPE_NAME "doclink-cell" |
| #define | QUICKFILL_CELL_TYPE_NAME "quickfill-cell" |
| #define | FORMULA_CELL_TYPE_NAME "formula-cell" |
| #define | CHECKBOX_CELL_TYPE_NAME "checkbox-cell" |
| #define | COMPLETION_CELL_TYPE_NAME "completion-cell" |
Functions | |
| void | gnc_register_init (void) |
| void | gnc_register_shutdown (void) |
| void | gnc_register_add_cell_type (const char *cell_type_name, CellCreateFunc cell_creator) |
| BasicCell * | gnc_register_make_cell (const char *cell_type_name) |
| gboolean | virt_cell_loc_equal (VirtualCellLocation vcl1, VirtualCellLocation vcl2) |
| gboolean | virt_loc_equal (VirtualLocation vl1, VirtualLocation vl2) |
Variables | |
| char * | BasicCell::cell_name |
| gchar * | BasicCell::cell_type_name |
| char * | BasicCell::value |
| guint | BasicCell::value_chars |
| current value | |
| gboolean | BasicCell::changed |
| number of characters in value | |
| gboolean | BasicCell::conditionally_changed |
| true if value modified | |
| CellSetValueFunc | BasicCell::set_value |
| true if value modified conditionally | |
| CellDestroyFunc | BasicCell::destroy |
| CellEnterFunc | BasicCell::enter_cell |
| CellModifyVerifyFunc | BasicCell::modify_verify |
| CellDirectUpdateFunc | BasicCell::direct_update |
| CellLeaveFunc | BasicCell::leave_cell |
| CellRealizeFunc | BasicCell::gui_realize |
| CellMoveFunc | BasicCell::gui_move |
| CellDestroyFunc | BasicCell::gui_destroy |
| char * | BasicCell::sample_text |
| CellAlignment | BasicCell::alignment |
| sample text for sizing purposes | |
| gboolean | BasicCell::expandable |
| horizontal alignment in column | |
| gboolean | BasicCell::span |
| can fill with extra space | |
| gboolean | BasicCell::is_popup |
| can span multiple columns | |
| gpointer | BasicCell::gui_private |
| is a popup widget | |
An infrastructure for building a modular matrix of cells like a spreadsheet or checkbook register.
Each cell may be specialized to perform a particular function, e.g. to read dates, numerical amounts, or text. The register core has been designed to be easy to extend, modular, easy to maintain, and memory efficient. It is intended to be used for building financial apps and spreadsheets.
The register core is built from several types of components: Cells, Cellblocks, Cursors, and the Table.
The register core should not have any 'knowledge' of the accounting model of GnuCash or of the workings of the main application. It should not be specific to a particular GUI (such as Gnome/GTK). It should be possible to use the register core in a stand-alone fashion.
For information on the GnuCash-specific register implementation that has been built atop this core, see Split Register.
| #define BASIC_CELL_TYPE_NAME "basic-cell" |
Definition at line 64 of file register-common.h.
| #define CHECKBOX_CELL_TYPE_NAME "checkbox-cell" |
Definition at line 73 of file register-common.h.
| #define COMBO_CELL_TYPE_NAME "combo-cell" |
Definition at line 65 of file register-common.h.
| #define COMPLETION_CELL_TYPE_NAME "completion-cell" |
Definition at line 74 of file register-common.h.
| #define DATE_CELL_TYPE_NAME "date-cell" |
Definition at line 66 of file register-common.h.
| #define DOCLINK_CELL_TYPE_NAME "doclink-cell" |
Definition at line 70 of file register-common.h.
| #define FORMULA_CELL_TYPE_NAME "formula-cell" |
Definition at line 72 of file register-common.h.
| #define NUM_CELL_TYPE_NAME "num-cell" |
Definition at line 67 of file register-common.h.
| #define PRICE_CELL_TYPE_NAME "price-cell" |
Definition at line 68 of file register-common.h.
| #define QUICKFILL_CELL_TYPE_NAME "quickfill-cell" |
Definition at line 71 of file register-common.h.
| #define RECN_CELL_TYPE_NAME "recn-cell" |
Definition at line 69 of file register-common.h.
| void gnc_register_add_cell_type | ( | const char * | cell_type_name, |
| CellCreateFunc | cell_creator | ||
| ) |
Definition at line 84 of file register-common.c.
| void gnc_register_init | ( | void | ) |
Definition at line 45 of file register-common.c.
| BasicCell * gnc_register_make_cell | ( | const char * | cell_type_name | ) |
Definition at line 94 of file register-common.c.
| void gnc_register_shutdown | ( | void | ) |
Definition at line 74 of file register-common.c.
| gboolean virt_cell_loc_equal | ( | VirtualCellLocation | vcl1, |
| VirtualCellLocation | vcl2 | ||
| ) |
Definition at line 102 of file register-common.c.
| gboolean virt_loc_equal | ( | VirtualLocation | vl1, |
| VirtualLocation | vl2 | ||
| ) |
Definition at line 109 of file register-common.c.
| CellAlignment BasicCell::alignment |
sample text for sizing purposes
Definition at line 239 of file basiccell.h.
| char* BasicCell::cell_name |
Definition at line 214 of file basiccell.h.
| gchar* BasicCell::cell_type_name |
Definition at line 215 of file basiccell.h.
| gboolean BasicCell::changed |
number of characters in value
Definition at line 219 of file basiccell.h.
| gboolean BasicCell::conditionally_changed |
true if value modified
Definition at line 220 of file basiccell.h.
| CellDestroyFunc BasicCell::destroy |
Definition at line 224 of file basiccell.h.
| CellDirectUpdateFunc BasicCell::direct_update |
Definition at line 229 of file basiccell.h.
| CellEnterFunc BasicCell::enter_cell |
Definition at line 227 of file basiccell.h.
| gboolean BasicCell::expandable |
horizontal alignment in column
Definition at line 240 of file basiccell.h.
| CellDestroyFunc BasicCell::gui_destroy |
Definition at line 235 of file basiccell.h.
| CellMoveFunc BasicCell::gui_move |
Definition at line 234 of file basiccell.h.
| gpointer BasicCell::gui_private |
is a popup widget
Definition at line 244 of file basiccell.h.
| CellRealizeFunc BasicCell::gui_realize |
Definition at line 233 of file basiccell.h.
| gboolean BasicCell::is_popup |
can span multiple columns
Definition at line 242 of file basiccell.h.
| CellLeaveFunc BasicCell::leave_cell |
Definition at line 230 of file basiccell.h.
| CellModifyVerifyFunc BasicCell::modify_verify |
Definition at line 228 of file basiccell.h.
| char* BasicCell::sample_text |
Definition at line 238 of file basiccell.h.
| CellSetValueFunc BasicCell::set_value |
true if value modified conditionally
Definition at line 223 of file basiccell.h.
| gboolean BasicCell::span |
can fill with extra space
Definition at line 241 of file basiccell.h.
| char* BasicCell::value |
Definition at line 216 of file basiccell.h.
| guint BasicCell::value_chars |
current value
Definition at line 217 of file basiccell.h.