23 #ifndef SPLIT_REGISTER_P_H 24 #define SPLIT_REGISTER_P_H 39 #define SPLIT_TRANS_STR _("-- Split Transaction --") 40 #define STOCK_SPLIT_STR _("-- Stock Split --") 42 #define ACTION_BUY_STR _("Buy") 43 #define ACTION_SELL_STR _("Sell") 46 RATE_RESET_NOT_REQD = 0,
137 const char *credit_str;
146 SRInfo * gnc_split_register_get_info (SplitRegister *reg);
148 GtkWidget *gnc_split_register_get_parent (SplitRegister *reg);
150 Split * gnc_split_register_get_split (SplitRegister *reg,
151 VirtualCellLocation vcell_loc);
153 Account * gnc_split_register_get_default_account (SplitRegister *reg);
155 Transaction * gnc_split_register_get_trans (SplitRegister *reg,
156 VirtualCellLocation vcell_loc);
159 gnc_split_register_get_trans_split (SplitRegister *reg,
160 VirtualCellLocation vcell_loc,
161 VirtualCellLocation *trans_split_loc);
163 gboolean gnc_split_register_find_split (SplitRegister *reg,
164 Transaction *trans, Split *trans_split,
166 VirtualCellLocation *vcell_loc);
168 void gnc_split_register_show_trans (SplitRegister *reg,
169 VirtualCellLocation start_loc);
182 VirtualCellLocation vcell_loc,
184 gboolean only_blank_split);
186 void gnc_split_register_set_cell_fractions (SplitRegister *reg, Split *split);
188 CellBlock * gnc_split_register_get_passive_cursor (SplitRegister *reg);
189 CellBlock * gnc_split_register_get_active_cursor (SplitRegister *reg);
191 void gnc_split_register_set_last_num (SplitRegister *reg,
const char *num);
193 Account * gnc_split_register_get_account_by_name(
194 SplitRegister *reg, BasicCell * cell,
const char *name);
195 Account * gnc_split_register_get_account (SplitRegister *reg,
196 const char *cell_name);
198 gboolean gnc_split_register_recn_cell_confirm (
char old_flag, gpointer data);
200 gboolean gnc_split_register_check_cell (SplitRegister *reg,
201 const char *cell_name);
203 CursorClass gnc_split_register_cursor_name_to_class (
const char *cursor_name);
205 gnc_numeric gnc_split_register_debcred_cell_value (SplitRegister *reg);
211 gboolean gnc_split_register_split_needs_amount(
212 SplitRegister *reg, Split *split);
213 gboolean gnc_split_register_needs_conv_rate(
214 SplitRegister *reg, Transaction *txn,
Account *acc);
Split * cursor_hint_trans_split
A split used to remember where to put the cursor.
gboolean full_refresh
flag indicating whether full refresh is ok
gpointer user_data
User data for users of SplitRegisters.
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.
GncGUID pending_trans_guid
The currently open transaction, if any.
gboolean trans_expanded
Indicates that the current transaction is expanded in ledger mode.
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...
gboolean traverse_to_new
If traverse is to the newly created split.
gboolean change_confirmed
true if the user has already confirmed changes of a reconciled split
time64 last_date_entered
The last date recorded in the blank split.
SRGetParentCallback get_parent
hook to get parent widget
GncGUID template_account
The template account which template transaction should belong to.
gboolean reg_loaded
set to TRUE after register is loaded
CursorClass
Types of cursors.
gboolean hint_set_by_traverse
If the hints were set by the traverse callback.
gboolean first_pass
true if we are loading the register for the first time
gboolean auto_complete
true if the transaction being edited was auto-filled
GncGUID default_account
The default account where new splits are added.
gboolean show_present_divider
true if the demarcation between 'past' and 'future' transactions should be visible ...
API for checkbook register display area.
CursorClass cursor_hint_cursor_class
Used to remember where to put the cursor.
gboolean separator_changed
true if the account separator has changed
Transaction * cursor_hint_trans
A transaction used to remember where to put the cursor.
Split * cursor_hint_split
A split used to remember where to put the cursor.
gboolean blank_split_edited
true if the current blank split has been edited and committed
GtkWidget *(* SRGetParentCallback)(gpointer user_data)
Callback function type.
gboolean quickfill_setup
true if we have setup the quickfills
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
RateReset_t rate_reset
RATE_RESET_NOT_REQD => No exchange rate dialog needed for current split RATE_RESET_REQD => Need new e...
const char * debit_str
configured strings for debit/credit headers
gboolean exact_traversal
A flag indicating if the last traversal was 'exact'.
Account * rate_account
account on the current split when the exchange rate was last set
SplitRegisterType
Register types.
The type used to store guids in C.
GncGUID blank_split_guid
The blank split at the bottom of the register.