GnuCash
5.6-150-g038405b370+
|
GnuCash-specific ledger and journal displays based on RegisterCore. More...
Files | |
file | split-register-control.h |
TableControl specialized for the SplitRegister. | |
file | split-register-layout.h |
Create the actual register visual layout. | |
file | split-register-model-save.h |
Save handlers for the SplitRegister Model and Template SplitRegister model. | |
file | split-register-model.h |
TableModels specialized for SplitRegister and template SplitRegister. | |
file | split-register-p.h |
private declarations for SplitRegister | |
file | split-register.h |
API for checkbook register display area. | |
Data Structures | |
struct | SRInfo |
struct | SplitRegister |
The type, style and table for the register. More... | |
Macros | |
#define | SPLIT_TRANS_STR _("-- Split Transaction --") |
#define | STOCK_SPLIT_STR _("-- Stock Split --") |
#define | ACTION_BUY_STR _("Buy") |
#define | ACTION_SELL_STR _("Sell") |
Typedefs | |
typedef GtkWidget *(* | SRGetParentCallback) (gpointer user_data) |
Callback function type. | |
Enumerations | |
enum | RateReset_t { RATE_RESET_NOT_REQD = 0, RATE_RESET_REQD = 1, RATE_RESET_DONE = 2 } |
enum | SplitRegisterType { BANK_REGISTER, CASH_REGISTER, ASSET_REGISTER, CREDIT_REGISTER, LIABILITY_REGISTER, INCOME_REGISTER, EXPENSE_REGISTER, EQUITY_REGISTER, STOCK_REGISTER, CURRENCY_REGISTER, RECEIVABLE_REGISTER, PAYABLE_REGISTER, TRADING_REGISTER, NUM_SINGLE_REGISTER_TYPES, GENERAL_JOURNAL = NUM_SINGLE_REGISTER_TYPES, INCOME_LEDGER, PORTFOLIO_LEDGER, SEARCH_LEDGER, NUM_REGISTER_TYPES } |
Register types. More... | |
enum | SplitRegisterTypeGroup { REG_TYPE_GROUP_UNKNOWN, REG_TYPE_GROUP_CURRENCY, REG_TYPE_GROUP_APAR, REG_TYPE_GROUP_STOCK, REG_TYPE_GROUP_JOURNAL, REG_TYPE_GROUP_PORTFOLIO } |
Register group types. More... | |
enum | SplitRegisterStyle { REG_STYLE_LEDGER, REG_STYLE_AUTO_LEDGER, REG_STYLE_JOURNAL } |
Register styles. | |
enum | CursorClass { CURSOR_CLASS_NONE = -1, CURSOR_CLASS_SPLIT, CURSOR_CLASS_TRANS, NUM_CURSOR_CLASSES } |
Types of cursors. | |
Functions | |
TableControl * | gnc_split_register_control_new (void) |
Create a new TableControl specialized for the SplitRegister. More... | |
TableLayout * | gnc_split_register_layout_new (SplitRegister *reg) |
Generate the split register layout. More... | |
void | gnc_split_register_model_add_save_handlers (TableModel *model) |
void | gnc_template_register_model_add_save_handlers (TableModel *model) |
SRSaveData * | gnc_split_register_save_data_new (Transaction *trans, Split *split, gboolean expanded) |
void | gnc_split_register_save_data_destroy (SRSaveData *sd) |
TableModel * | gnc_split_register_model_new (void) |
TableModel * | gnc_template_register_model_new (void) |
SRInfo * | gnc_split_register_get_info (SplitRegister *reg) |
GtkWidget * | gnc_split_register_get_parent (SplitRegister *reg) |
Split * | gnc_split_register_get_split (SplitRegister *reg, VirtualCellLocation vcell_loc) |
Account * | gnc_split_register_get_default_account (SplitRegister *reg) |
Transaction * | gnc_split_register_get_trans (SplitRegister *reg, VirtualCellLocation vcell_loc) |
Split * | gnc_split_register_get_trans_split (SplitRegister *reg, VirtualCellLocation vcell_loc, VirtualCellLocation *trans_split_loc) |
gboolean | gnc_split_register_find_split (SplitRegister *reg, Transaction *trans, Split *trans_split, Split *split, CursorClass cursor_class, VirtualCellLocation *vcell_loc) |
void | gnc_split_register_show_trans (SplitRegister *reg, VirtualCellLocation start_loc) |
void | gnc_split_register_set_trans_visible (SplitRegister *reg, VirtualCellLocation vcell_loc, gboolean visible, gboolean only_blank_split) |
Set the visibility of the split rows belonging to a transaction located at vcell_loc. More... | |
void | gnc_split_register_set_cell_fractions (SplitRegister *reg, Split *split) |
CellBlock * | gnc_split_register_get_passive_cursor (SplitRegister *reg) |
CellBlock * | gnc_split_register_get_active_cursor (SplitRegister *reg) |
void | gnc_split_register_set_last_num (SplitRegister *reg, const char *num) |
Account * | gnc_split_register_get_account_by_name (SplitRegister *reg, BasicCell *cell, const char *name) |
Account * | gnc_split_register_get_account (SplitRegister *reg, const char *cell_name) |
gboolean | gnc_split_register_recn_cell_confirm (char old_flag, gpointer data) |
gboolean | gnc_split_register_check_cell (SplitRegister *reg, const char *cell_name) |
CursorClass | gnc_split_register_cursor_name_to_class (const char *cursor_name) |
gnc_numeric | gnc_split_register_debcred_cell_value (SplitRegister *reg) |
gboolean | gnc_split_reg_has_rate_cell (SplitRegisterType type) |
Determine if we need to perform any conversion on the splits in this transaction, and if so, what conversion we need. | |
gboolean | gnc_split_register_split_needs_amount (SplitRegister *reg, Split *split) |
gboolean | gnc_split_register_needs_conv_rate (SplitRegister *reg, Transaction *txn, Account *acc) |
SplitRegister * | gnc_split_register_new (SplitRegisterType type, SplitRegisterStyle style, gboolean use_double_line, gboolean is_template, gboolean mismatched_commodities) |
Creates a new split register. More... | |
void | gnc_split_register_destroy (SplitRegister *reg) |
Destroys a split register. More... | |
void | gnc_split_register_config (SplitRegister *reg, SplitRegisterType type, SplitRegisterStyle style, gboolean use_double_line) |
Sets a split register's type, style or line use. More... | |
void | gnc_split_register_set_reverse_sort (SplitRegister *reg, gboolean reverse_sort) |
Sets a split register's reverse sort order based on register. More... | |
void | gnc_split_register_set_auto_complete (SplitRegister *reg, gboolean do_auto_complete) |
Sets whether a register uses auto-completion. More... | |
void | gnc_split_register_set_read_only (SplitRegister *reg, gboolean read_only) |
Sets whether a register window is "read only". More... | |
SplitRegisterTypeGroup | gnc_split_register_get_register_group (SplitRegister *reg) |
Group registers for common layouts. More... | |
void | gnc_split_register_set_template_account (SplitRegister *reg, Account *template_account) |
Set the template account for use in a template register. More... | |
void | gnc_split_register_set_data (SplitRegister *reg, gpointer user_data, SRGetParentCallback get_parent) |
Sets the user data and callback hooks for the register. More... | |
CursorClass | gnc_split_register_get_current_cursor_class (SplitRegister *reg) |
Returns the class of a register's current cursor. More... | |
CursorClass | gnc_split_register_get_cursor_class (SplitRegister *reg, VirtualCellLocation vcell_loc) |
Returns the class of the cursor at the given virtual cell location. More... | |
Transaction * | gnc_split_register_get_current_trans (SplitRegister *reg) |
Gets the transaction at the current cursor location, which may be on the transaction itself or on any of its splits. More... | |
Split * | gnc_split_register_get_current_trans_split (SplitRegister *reg, VirtualCellLocation *vcell_loc) |
Gets the anchoring split of the transaction at the current cursor location, which may be on the transaction itself or on any of its splits. More... | |
Split * | gnc_split_register_get_current_split (SplitRegister *reg) |
Returns the split at which the cursor is currently located. More... | |
Split * | gnc_split_register_get_blank_split (SplitRegister *reg) |
Gets the blank split for a register. More... | |
gboolean | gnc_split_register_get_split_virt_loc (SplitRegister *reg, Split *split, VirtualCellLocation *vcell_loc) |
Searches the split register for a given split. More... | |
gboolean | gnc_split_register_get_split_amount_virt_loc (SplitRegister *reg, Split *split, VirtualLocation *virt_loc) |
Searches the split register for the given split and determines the location of either its credit (if non-zero) or debit cell. More... | |
Split * | gnc_split_register_duplicate_current (SplitRegister *reg) |
Duplicates either the current transaction or the current split depending on the register mode and cursor position. More... | |
void | gnc_split_register_copy_current (SplitRegister *reg) |
Makes a copy of the current entity, either a split or a transaction, so that it can be pasted later. More... | |
void | gnc_split_register_cut_current (SplitRegister *reg) |
Equivalent to copying the current entity and the deleting it with the appropriate delete method. More... | |
void | gnc_split_register_paste_current (SplitRegister *reg) |
Pastes a previous copied entity onto the current entity, but only if the copied and current entity have the same type. More... | |
void | gnc_split_register_delete_current_split (SplitRegister *reg) |
Deletes the split associated with the current cursor, if both are non-NULL. More... | |
void | gnc_split_register_delete_current_trans (SplitRegister *reg) |
Deletes the transaction associated with the current cursor, if both are non-NULL. More... | |
void | gnc_split_register_void_current_trans (SplitRegister *reg, const char *reason) |
Voids the transaction associated with the current cursor, if non-NULL. More... | |
void | gnc_split_register_unvoid_current_trans (SplitRegister *reg) |
Unvoids the transaction associated with the current cursor, if non-NULL. More... | |
void | gnc_split_register_empty_current_trans_except_split (SplitRegister *reg, Split *split) |
Deletes the non-transaction splits associated with the current cursor, if both are non-NULL. More... | |
void | gnc_split_register_empty_current_trans (SplitRegister *reg) |
void | gnc_split_register_cancel_cursor_split_changes (SplitRegister *reg) |
Cancels any changes made to the current cursor, reloads the cursor from the engine, reloads the table from the cursor, and updates the GUI. More... | |
void | gnc_split_register_cancel_cursor_trans_changes (SplitRegister *reg) |
Cancels any changes made to the current pending transaction, reloads the table from the engine, and updates the GUI. More... | |
void | gnc_split_register_load (SplitRegister *reg, GList *slist, GList *pre_filter_slist, Account *default_account) |
Populates the rows of a register. More... | |
gboolean | gnc_split_register_save (SplitRegister *reg, gboolean do_commit) |
Copy the contents of the current cursor to a split. More... | |
void | gnc_split_register_redraw (SplitRegister *reg) |
Causes a redraw of the register window associated with reg. More... | |
gboolean | gnc_split_register_changed (SplitRegister *reg) |
Returns TRUE if the register has changed cells. More... | |
void | gnc_split_register_show_present_divider (SplitRegister *reg, gboolean show_present) |
If TRUE, visually indicate the demarcation between splits with post dates prior to the present, and after. More... | |
void | gnc_split_register_expand_current_trans (SplitRegister *reg, gboolean expand) |
Expand the current transaction if it is collapsed. More... | |
void | gnc_split_register_collapse_current_trans (SplitRegister *reg) |
Mark the current transaction as collapsed, and do callbacks. More... | |
gboolean | gnc_split_register_current_trans_expanded (SplitRegister *reg) |
Return TRUE if current trans is expanded and style is REG_STYLE_LEDGER. More... | |
const char * | gnc_split_register_get_debit_string (SplitRegister *reg) |
Return the debit string used in the register. More... | |
const char * | gnc_split_register_get_credit_string (SplitRegister *reg) |
Return the credit string used in the register. More... | |
gboolean | gnc_split_register_is_blank_split (SplitRegister *reg, Split *split) |
Return TRUE if split is the blank_split. More... | |
void | gnc_split_register_change_blank_split_ref (SplitRegister *reg, Split *split) |
Change the blank_split reference from pointing to split to another split of the transaction. More... | |
gboolean | gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog) |
Pop up the exchange-rate dialog, maybe, for the current split. More... | |
gboolean | gnc_split_register_begin_edit_or_warn (SRInfo *info, Transaction *trans) |
GnuCash-specific ledger and journal displays based on RegisterCore.
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.
The Register itself is independent of GnuCash, and is designed so that it can be used with other applications. The Ledger is an adaptation of the Register for use by GnuCash. The Ledger sets up an explicit visual layout, putting certain types of cells in specific locations (e.g. date on left, summary in middle, value at right), and hooks up these cells to the various GnuCash financial objects.
This code is also theoretically independent of the actual GUI toolkit/widget-set (it once worked with both Motif and Gnome). The actual GUI-toolkit specific code is supposed to be in a GUI portability layer. Over the years, some gnome-isms may have snuck in; these should also be cleaned up.
enum SplitRegisterType |
Register types.
"registers" are single-account display windows. "ledgers" are multiple-account display windows
Definition at line 145 of file split-register.h.
Register group types.
used for grouping registers that have the same layout
Definition at line 173 of file split-register.h.
void gnc_split_register_cancel_cursor_split_changes | ( | SplitRegister * | reg | ) |
Cancels any changes made to the current cursor, reloads the cursor from the engine, reloads the table from the cursor, and updates the GUI.
The change flags are cleared.
Definition at line 1431 of file split-register.c.
void gnc_split_register_cancel_cursor_trans_changes | ( | SplitRegister * | reg | ) |
Cancels any changes made to the current pending transaction, reloads the table from the engine, and updates the GUI.
The change flags are cleared.
Definition at line 1454 of file split-register.c.
void gnc_split_register_change_blank_split_ref | ( | SplitRegister * | reg, |
Split * | split | ||
) |
Change the blank_split reference from pointing to split to another split of the transaction.
This is used when deleting a split after an autocomplete as the blank_split reference will be pointing to one of the splits so it does not cancel the whole transaction
Definition at line 1129 of file split-register.c.
gboolean gnc_split_register_changed | ( | SplitRegister * | reg | ) |
Returns TRUE if the register has changed cells.
Definition at line 2489 of file split-register.c.
void gnc_split_register_collapse_current_trans | ( | SplitRegister * | reg | ) |
Mark the current transaction as collapsed, and do callbacks.
void gnc_split_register_config | ( | SplitRegister * | reg, |
SplitRegisterType | type, | ||
SplitRegisterStyle | style, | ||
gboolean | use_double_line | ||
) |
Sets a split register's type, style or line use.
reg | a ::SplitRegister |
type | a SplitRegisterType to use for the register |
style | a SplitRegisterStyle to use for the register |
use_double_line | TRUE to show two lines for transactions, FALSE for one |
Definition at line 2932 of file split-register.c.
TableControl* gnc_split_register_control_new | ( | void | ) |
Create a new TableControl specialized for the SplitRegister.
Definition at line 1851 of file split-register-control.cpp.
void gnc_split_register_copy_current | ( | SplitRegister * | reg | ) |
Makes a copy of the current entity, either a split or a transaction, so that it can be pasted later.
Definition at line 862 of file split-register.c.
gboolean gnc_split_register_current_trans_expanded | ( | SplitRegister * | reg | ) |
Return TRUE if current trans is expanded and style is REG_STYLE_LEDGER.
Definition at line 282 of file split-register.c.
void gnc_split_register_cut_current | ( | SplitRegister * | reg | ) |
Equivalent to copying the current entity and the deleting it with the appropriate delete method.
Definition at line 868 of file split-register.c.
void gnc_split_register_delete_current_split | ( | SplitRegister * | reg | ) |
Deletes the split associated with the current cursor, if both are non-NULL.
Deleting the blank split just clears cursor values.
Definition at line 1159 of file split-register.c.
void gnc_split_register_delete_current_trans | ( | SplitRegister * | reg | ) |
Deletes the transaction associated with the current cursor, if both are non-NULL.
Definition at line 1214 of file split-register.c.
void gnc_split_register_destroy | ( | SplitRegister * | reg | ) |
Destroys a split register.
reg | a ::SplitRegister |
Definition at line 3104 of file split-register.c.
Split* gnc_split_register_duplicate_current | ( | SplitRegister * | reg | ) |
Duplicates either the current transaction or the current split depending on the register mode and cursor position.
Returns the split just created, or the 'main' split of the transaction just created, or NULL if nothing happened.
Definition at line 419 of file split-register.c.
void gnc_split_register_empty_current_trans_except_split | ( | SplitRegister * | reg, |
Split * | split | ||
) |
Deletes the non-transaction splits associated with the current cursor, if both are non-NULL.
Definition at line 1378 of file split-register.c.
void gnc_split_register_expand_current_trans | ( | SplitRegister * | reg, |
gboolean | expand | ||
) |
Expand the current transaction if it is collapsed.
Definition at line 222 of file split-register.c.
Split* gnc_split_register_get_blank_split | ( | SplitRegister * | reg | ) |
Gets the blank split for a register.
reg | a ::SplitRegister |
NULL
if there currently isn't one Definition at line 331 of file split-register.c.
const char* gnc_split_register_get_credit_string | ( | SplitRegister * | reg | ) |
Return the credit string used in the register.
Definition at line 2466 of file split-register.c.
CursorClass gnc_split_register_get_current_cursor_class | ( | SplitRegister * | reg | ) |
Returns the class of a register's current cursor.
reg | a ::SplitRegister |
Definition at line 546 of file split-register-util.c.
Split* gnc_split_register_get_current_split | ( | SplitRegister * | reg | ) |
Returns the split at which the cursor is currently located.
reg | a ::SplitRegister |
Definition at line 321 of file split-register.c.
Transaction* gnc_split_register_get_current_trans | ( | SplitRegister * | reg | ) |
Gets the transaction at the current cursor location, which may be on the transaction itself or on any of its splits.
reg | a ::SplitRegister |
NULL
Definition at line 297 of file split-register.c.
Split* gnc_split_register_get_current_trans_split | ( | SplitRegister * | reg, |
VirtualCellLocation * | vcell_loc | ||
) |
Gets the anchoring split of the transaction at the current cursor location, which may be on the transaction itself or on any of its splits.
reg | a ::SplitRegister |
vcell_loc | a pointer to be filled with the location of the transaction's virtual cell |
Definition at line 187 of file split-register-util.c.
CursorClass gnc_split_register_get_cursor_class | ( | SplitRegister * | reg, |
VirtualCellLocation | vcell_loc | ||
) |
Returns the class of the cursor at the given virtual cell location.
reg | a ::SplitRegister |
vcell_loc | the location of a virtual cell |
Definition at line 525 of file split-register-util.c.
const char* gnc_split_register_get_debit_string | ( | SplitRegister * | reg | ) |
Return the debit string used in the register.
Definition at line 2443 of file split-register.c.
SplitRegisterTypeGroup gnc_split_register_get_register_group | ( | SplitRegister * | reg | ) |
Group registers for common layouts.
reg | a ::SplitRegister |
Definition at line 3147 of file split-register.c.
gboolean gnc_split_register_get_split_amount_virt_loc | ( | SplitRegister * | reg, |
Split * | split, | ||
VirtualLocation * | virt_loc | ||
) |
Searches the split register for the given split and determines the location of either its credit (if non-zero) or debit cell.
reg | a ::SplitRegister |
split | the ::Split to find |
virt_loc | a pointer to be filled with the amount cell's location |
TRUE
if the split was found and the location has been stored at virt_loc, FALSE
otherwise Definition at line 381 of file split-register.c.
gboolean gnc_split_register_get_split_virt_loc | ( | SplitRegister * | reg, |
Split * | split, | ||
VirtualCellLocation * | vcell_loc | ||
) |
Searches the split register for a given split.
The search begins from the bottom row and works backwards. The location of the first virtual cell that matches will be returned in vcell_loc.
reg | a ::SplitRegister |
split | the ::Split to find |
vcell_loc | a pointer to be filled with the location of the matching virtual cell |
TRUE
if the split was found and the location has been stored at vcell_loc, FALSE
otherwise Definition at line 341 of file split-register.c.
gboolean gnc_split_register_handle_exchange | ( | SplitRegister * | reg, |
gboolean | force_dialog | ||
) |
Pop up the exchange-rate dialog, maybe, for the current split.
If force_dialog is TRUE, the forces the dialog to be called. If the dialog does not complete successfully, then return TRUE. Return FALSE in all other cases (meaning "move on")
Pop up the exchange-rate dialog, maybe, for the current split.
If the dialog does not complete successfully, then return TRUE. Return FALSE in all other cases (meaning "move on")
reg | the register to operate on |
force_dialog | pop a dialog even if we don't think we need it. |
Definition at line 1319 of file split-register-control.cpp.
gboolean gnc_split_register_is_blank_split | ( | SplitRegister * | reg, |
Split * | split | ||
) |
Return TRUE if split is the blank_split.
Definition at line 1116 of file split-register.c.
TableLayout* gnc_split_register_layout_new | ( | SplitRegister * | reg | ) |
Generate the split register layout.
Definition at line 867 of file split-register-layout.c.
void gnc_split_register_load | ( | SplitRegister * | reg, |
GList * | slist, | ||
GList * | pre_filter_slist, | ||
Account * | default_account | ||
) |
Populates the rows of a register.
The rows are filled, based on the register style, with data associated with the given list of splits slist. In addition, an area for the user to begin entering new transactions is placed at the tail end of the register. This area is anchored by the "blank split".
The account default_account, if provided, is used to determine various default values for the blank split (such as currency, last check number, and transfer account) for the blank split.
reg | a ::SplitRegister |
slist | a list of splits |
pre_filter_slist | the list of splits before applying filter |
default_account | an account to provide defaults for the blank split |
Definition at line 391 of file split-register-load.c.
SplitRegister* gnc_split_register_new | ( | SplitRegisterType | type, |
SplitRegisterStyle | style, | ||
gboolean | use_double_line, | ||
gboolean | is_template, | ||
gboolean | mismatched_commodities | ||
) |
Creates a new split register.
type | a SplitRegisterType to use for the new register |
style | a SplitRegisterStyle to use for the new register |
use_double_line | TRUE to show two lines for transactions, FALSE for one |
is_template | TRUE for a new template, FALSE otherwise |
Definition at line 2906 of file split-register.c.
void gnc_split_register_paste_current | ( | SplitRegister * | reg | ) |
Pastes a previous copied entity onto the current entity, but only if the copied and current entity have the same type.
Definition at line 911 of file split-register.c.
void gnc_split_register_redraw | ( | SplitRegister * | reg | ) |
Causes a redraw of the register window associated with reg.
Definition at line 1495 of file split-register.c.
gboolean gnc_split_register_save | ( | SplitRegister * | reg, |
gboolean | do_commit | ||
) |
Copy the contents of the current cursor to a split.
The split and transaction that are updated are the ones associated with the current cursor (register entry) position. If the do_commit flag is set, the transaction will also be committed. If it is the blank transaction, and the do_commit flag is set, a refresh will result in a new blank transaction. The method returns TRUE if something was changed.
Definition at line 1721 of file split-register.c.
void gnc_split_register_set_auto_complete | ( | SplitRegister * | reg, |
gboolean | do_auto_complete | ||
) |
Sets whether a register uses auto-completion.
reg | a ::SplitRegister |
do_auto_complete | TRUE to use auto-completion, FALSE otherwise |
Definition at line 2982 of file split-register.c.
void gnc_split_register_set_data | ( | SplitRegister * | reg, |
gpointer | user_data, | ||
SRGetParentCallback | get_parent | ||
) |
Sets the user data and callback hooks for the register.
void gnc_split_register_set_read_only | ( | SplitRegister * | reg, |
gboolean | read_only | ||
) |
Sets whether a register window is "read only".
reg | a ::SplitRegister |
read_only | TRUE to use "read only" mode, FALSE otherwise |
Definition at line 3141 of file split-register.c.
void gnc_split_register_set_reverse_sort | ( | SplitRegister * | reg, |
gboolean | reverse_sort | ||
) |
Sets a split register's reverse sort order based on register.
reg | a ::SplitRegister |
reverse_sort | TRUE reverse sort order, FALSE default |
Definition at line 2975 of file split-register.c.
void gnc_split_register_set_template_account | ( | SplitRegister * | reg, |
Account * | template_account | ||
) |
Set the template account for use in a template register.
reg | a ::SplitRegister |
template_account | the account to use for the template |
Definition at line 117 of file split-register-util.c.
void gnc_split_register_set_trans_visible | ( | SplitRegister * | reg, |
VirtualCellLocation | vcell_loc, | ||
gboolean | visible, | ||
gboolean | only_blank_split | ||
) |
Set the visibility of the split rows belonging to a transaction located at vcell_loc.
If only_blank_split is TRUE, only the row used for entering an additional split is affected. Despite the name, this should not be confused with the "blank split" row used for entering the first split of a brand-new transaction. Instead, here it only refers to rows not tied to any split at all, such as those created for entering new splits on old transactions or the 2nd through nth split on brand-new transactions.
Definition at line 317 of file split-register-util.c.
void gnc_split_register_show_present_divider | ( | SplitRegister * | reg, |
gboolean | show_present | ||
) |
If TRUE, visually indicate the demarcation between splits with post dates prior to the present, and after.
This will only make sense if the splits are ordered primarily by post date.
Definition at line 2521 of file split-register.c.
void gnc_split_register_unvoid_current_trans | ( | SplitRegister * | reg | ) |
Unvoids the transaction associated with the current cursor, if non-NULL.
Definition at line 1331 of file split-register.c.
void gnc_split_register_void_current_trans | ( | SplitRegister * | reg, |
const char * | reason | ||
) |
Voids the transaction associated with the current cursor, if non-NULL.
Definition at line 1281 of file split-register.c.