GnuCash
2.6.99
|
GnuCash-specific ledger and journal displays based on Register Core. More...
Files | |
file | split-register-layout.h |
Create the actual register visual layout. | |
Functions | |
TableLayout * | gnc_split_register_layout_new (SplitRegister *reg) |
GnuCash-specific ledger and journal displays based on Register Core.
The split register is a spreadsheet-like area that looks like a checkbook register. It displays transactions and allows the user to edit them in-place. The register does not contain any of the other window decorations that one might want to have for a free standing window (e.g. menubars, * toolbars, etc.)
The layout of the register is configurable. There's a broad variety of cell types to choose from: date cells that know how to parse dates, price cells that know how to parse prices, etc. These cells can be laid out in any column; even a multi-row layout is supported. The name "split register" is derived from the fact that this register can display multiple rows of transaction splits underneath a transaction title/summary row.
An area for entering new transactions is provided at the bottom of the register.
All user input to the register is handled by the 'cursor', which is mapped onto one of the displayed rows.
Some notes about the "blank split":
Q: What is the "blank split"?
A: A new, empty split appended to the bottom of the ledger window. The blank split provides an area where the user can type in new split/transaction info. The "blank split" is treated in a special way for a number of reasons:
To implement the above, the register "user_data" is used to store an SRInfo structure containing the blank split.
TableLayout* gnc_split_register_layout_new | ( | SplitRegister * | reg | ) |
Generate the split register layout.
Definition at line 833 of file split-register-layout.c.