GnuCash
5.6-150-g038405b370+
|
Files | |
file | gnc-plugin-page-register.h |
Functions providing a register page for the GnuCash UI. | |
Data Structures | |
struct | status_action |
struct | GncPluginPageRegisterPrivate |
struct | GncPluginPageRegister |
struct | GncPluginPageRegisterClass |
Macros | |
#define | DEFAULT_LINES_AMOUNT 50 |
#define | DEFAULT_FILTER_NUM_DAYS_GL "30" |
#define | CUT_TRANSACTION_LABEL N_("Cu_t Transaction") |
#define | COPY_TRANSACTION_LABEL N_("_Copy Transaction") |
#define | PASTE_TRANSACTION_LABEL N_("_Paste Transaction") |
#define | DUPLICATE_TRANSACTION_LABEL N_("Dup_licate Transaction") |
#define | DELETE_TRANSACTION_LABEL N_("_Delete Transaction") |
#define | LINK_TRANSACTION_LABEL N_("_Manage Document Link…") |
#define | LINK_TRANSACTION_OPEN_LABEL N_("_Open Linked Document") |
#define | JUMP_LINKED_INVOICE_LABEL N_("Jump to Invoice") |
#define | CUT_SPLIT_LABEL N_("Cu_t Split") |
#define | COPY_SPLIT_LABEL N_("_Copy Split") |
#define | PASTE_SPLIT_LABEL N_("_Paste Split") |
#define | DUPLICATE_SPLIT_LABEL N_("Dup_licate Split") |
#define | DELETE_SPLIT_LABEL N_("_Delete Split") |
#define | CUT_TRANSACTION_TIP N_("Cut the selected transaction into clipboard") |
#define | COPY_TRANSACTION_TIP N_("Copy the selected transaction into clipboard") |
#define | PASTE_TRANSACTION_TIP N_("Paste the transaction from the clipboard") |
#define | DUPLICATE_TRANSACTION_TIP N_("Make a copy of the current transaction") |
#define | DELETE_TRANSACTION_TIP N_("Delete the current transaction") |
#define | LINK_TRANSACTION_TIP N_("Add, change, or unlink the document linked with the current transaction") |
#define | LINK_TRANSACTION_OPEN_TIP N_("Open the linked document for the current transaction") |
#define | JUMP_LINKED_INVOICE_TIP N_("Jump to the linked bill, invoice, or voucher") |
#define | CUT_SPLIT_TIP N_("Cut the selected split into clipboard") |
#define | COPY_SPLIT_TIP N_("Copy the selected split into clipboard") |
#define | PASTE_SPLIT_TIP N_("Paste the split from the clipboard") |
#define | DUPLICATE_SPLIT_TIP N_("Make a copy of the current split") |
#define | DELETE_SPLIT_TIP N_("Delete the current split") |
#define | CLEARED_VALUE "cleared_value" |
#define | DEFAULT_FILTER "0x001f" |
#define | DEFAULT_SORT_ORDER "BY_STANDARD" |
#define | KEY_REGISTER_TYPE "RegisterType" |
#define | KEY_ACCOUNT_NAME "AccountName" |
#define | KEY_ACCOUNT_GUID "AccountGuid" |
#define | KEY_REGISTER_STYLE "RegisterStyle" |
#define | KEY_DOUBLE_LINE "DoubleLineMode" |
#define | LABEL_ACCOUNT "Account" |
#define | LABEL_SUBACCOUNT "SubAccount" |
#define | LABEL_GL "GL" |
#define | LABEL_SEARCH "Search" |
#define | GNC_TYPE_PLUGIN_PAGE_REGISTER (gnc_plugin_page_register_get_type ()) |
#define | GNC_PLUGIN_PAGE_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegister)) |
#define | GNC_PLUGIN_PAGE_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) |
#define | GNC_IS_PLUGIN_PAGE_REGISTER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER)) |
#define | GNC_IS_PLUGIN_PAGE_REGISTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER)) |
#define | GNC_PLUGIN_PAGE_REGISTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) |
#define | GNC_PLUGIN_PAGE_REGISTER_NAME "GncPluginPageRegister" |
Functions | |
void | gnc_plugin_page_register_sort_button_cb (GtkToggleButton *button, GncPluginPageRegister *page) |
This function is called when a radio button in the "Sort By…" dialog is clicked. More... | |
void | gnc_plugin_page_register_sort_response_cb (GtkDialog *dialog, gint response, GncPluginPageRegister *page) |
This function is called when the "Sort By…" dialog is closed. More... | |
void | gnc_plugin_page_register_sort_order_save_cb (GtkToggleButton *button, GncPluginPageRegister *page) |
This function is called whenever the save sort order is checked or unchecked which allows saving of the sort order. More... | |
void | gnc_plugin_page_register_sort_order_reverse_cb (GtkToggleButton *button, GncPluginPageRegister *page) |
This function is called whenever the reverse sort order is checked or unchecked which allows reversing of the sort order. More... | |
void | gnc_plugin_page_register_set_sort_order (GncPluginPage *plugin_page, const gchar *sort_order) |
void | gnc_plugin_page_register_set_sort_reversed (GncPluginPage *plugin_page, gboolean reverse_order) |
void | gnc_plugin_page_register_filter_select_range_cb (GtkRadioButton *button, GncPluginPageRegister *page) |
This function is called when the radio buttons changes state. More... | |
void | gnc_plugin_page_register_filter_start_cb (GtkWidget *radio, GncPluginPageRegister *page) |
This function is called when one of the start date radio buttons is selected. More... | |
void | gnc_plugin_page_register_filter_end_cb (GtkWidget *radio, GncPluginPageRegister *page) |
This function is called when one of the end date radio buttons is selected. More... | |
void | gnc_plugin_page_register_filter_response_cb (GtkDialog *dialog, gint response, GncPluginPageRegister *page) |
This function is called when the "Filter By…" dialog is closed. More... | |
void | gnc_plugin_page_register_filter_status_all_cb (GtkButton *button, GncPluginPageRegister *page) |
This function is called whenever the "select all" status button is clicked. More... | |
void | gnc_plugin_page_register_filter_status_one_cb (GtkToggleButton *button, GncPluginPageRegister *page) |
This function is called whenever one of the status entries is checked or unchecked. More... | |
void | gnc_plugin_page_register_filter_save_cb (GtkToggleButton *button, GncPluginPageRegister *page) |
This function is called whenever the save status is checked or unchecked. More... | |
void | gnc_plugin_page_register_filter_days_changed_cb (GtkSpinButton *button, GncPluginPageRegister *page) |
This function is called when the "number of days" spin button is changed which is then saved and updates the time limitation on the register query. More... | |
void | gnc_plugin_page_register_set_filter (GncPluginPage *plugin_page, const gchar *filter) |
G_DEFINE_TYPE_WITH_PRIVATE (GncPluginPageRegister, gnc_plugin_page_register, GNC_TYPE_PLUGIN_PAGE) static GncPluginPage *gnc_plugin_page_register_new_common(GNCLedgerDisplay *ledger) | |
GncPluginPage * | gnc_plugin_page_register_new (Account *account, gboolean subaccounts) |
Create a new "register" plugin page, given a pointer to an account. More... | |
GncPluginPage * | gnc_plugin_page_register_new_gl (void) |
Create a new "register" plugin page containing a general journal. More... | |
GncPluginPage * | gnc_plugin_page_register_new_ledger (GNCLedgerDisplay *ledger) |
Create a new "register" plugin page, given a pointer to an already created ledger. More... | |
Account * | gnc_plugin_page_register_get_account (GncPluginPageRegister *page) |
Get the Account associated with this register page. More... | |
Transaction * | gnc_plugin_page_register_get_current_txn (GncPluginPageRegister *page) |
Get the currently selected transaction in this register page. More... | |
Query * | gnc_plugin_page_register_get_query (GncPluginPage *plugin_page) |
This function is called to get the query associated with this plugin page. More... | |
void | gnc_plugin_page_register_clear_current_filter (GncPluginPage *plugin_page) |
This function clears the registers current filter. More... | |
void | gnc_plugin_page_register_set_options (GncPluginPage *plugin_page, gint lines_default, gboolean read_only) |
Set various register options on a newly created "register" plugin page. More... | |
GNCSplitReg * | gnc_plugin_page_register_get_gsr (GncPluginPage *plugin_page) |
Get the GNCSplitReg data structure associated with this register page. More... | |
GType | gnc_plugin_page_register_get_type (void) |
Retrieve the type number for the plugin page. More... | |
void gnc_plugin_page_register_clear_current_filter | ( | GncPluginPage * | plugin_page | ) |
This function clears the registers current filter.
It is used so jumps to splits from other places can be completed otherwise the jump will be to the last active cell.
plugin_page | A pointer to the GncPluginPageRegister. |
Definition at line 2912 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_days_changed_cb | ( | GtkSpinButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called when the "number of days" spin button is changed which is then saved and updates the time limitation on the register query.
This is handled by a helper function as potentially all widgets will need to be examined.
button | A pointer to the "number of days" spin button. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 2939 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_end_cb | ( | GtkWidget * | radio, |
GncPluginPageRegister * | page | ||
) |
This function is called when one of the end date radio buttons is selected.
It updates the sensitivity of the date entry widget, then calls a common routine to determine the start/end times and update the register query.
*Note: This function is actually called twice for each new radio button selection. The first time call is to uncheck the old button, and the second time to check the new button. This does make a kind of sense, as radio buttons are nothing more than linked toggle buttons where only one can be active.
radio | The button whose state is changing. This will be the previously selected button the first of the pair of calls to this function, and will be the newly selected button the second time. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 3048 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_response_cb | ( | GtkDialog * | dialog, |
gint | response, | ||
GncPluginPageRegister * | page | ||
) |
This function is called when the "Filter By…" dialog is closed.
If the dialog was closed by any method other than clicking the OK button, the original sorting order will be restored.
dialog | A pointer to the dialog box. |
response | A numerical value indicating why the dialog box was closed. |
page | A pointer to the GncPluginPageRegister associated with this dialog box. |
Definition at line 3117 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_save_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called whenever the save status is checked or unchecked.
It will allow saving of the filter if required.
button | The toggle button that was changed. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 3085 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_select_range_cb | ( | GtkRadioButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called when the radio buttons changes state.
This function is responsible for setting the sensitivity of the widgets controlled by each radio button choice and updating the time limitation on the register query. This is handled by a helper function as potentially all widgets will need to be examined.
button | A pointer to the "select range" radio button. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 2872 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_start_cb | ( | GtkWidget * | radio, |
GncPluginPageRegister * | page | ||
) |
This function is called when one of the start date radio buttons is selected.
It updates the sensitivity of the date entry widget, then calls a common routine to determine the start/end times and update the register query.
*Note: This function is actually called twice for each new radio button selection. The first time call is to uncheck the old button, and the second time to check the new button. This does make a kind of sense, as radio buttons are nothing more than linked toggle buttons where only one can be active.
radio | The button whose state is changing. This will be the previously selected button the first of the pair of calls to this function, and will be the newly selected button the second time. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 3000 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_status_all_cb | ( | GtkButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called whenever the "select all" status button is clicked.
It updates all of the checkbox widgets, then updates the query on the register.
button | The button that was clicked. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 2769 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_filter_status_one_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called whenever one of the status entries is checked or unchecked.
It updates the status value maintained for the filter dialog, and calls another function to do the work of applying the change to the register itself.
button | The toggle button that was changed. |
page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 2724 of file gnc-plugin-page-register.cpp.
Account * gnc_plugin_page_register_get_account | ( | GncPluginPageRegister * | page | ) |
Get the Account associated with this register page.
page | A "register" page. |
Definition at line 680 of file gnc-plugin-page-register.cpp.
Transaction * gnc_plugin_page_register_get_current_txn | ( | GncPluginPageRegister * | page | ) |
Get the currently selected transaction in this register page.
page | A "register" page. |
Definition at line 696 of file gnc-plugin-page-register.cpp.
GNCSplitReg * gnc_plugin_page_register_get_gsr | ( | GncPluginPage * | plugin_page | ) |
Get the GNCSplitReg data structure associated with this register page.
plugin_page | A "register" page. |
Definition at line 5142 of file gnc-plugin-page-register.cpp.
Query * gnc_plugin_page_register_get_query | ( | GncPluginPage * | plugin_page | ) |
This function is called to get the query associated with this plugin page.
Get the Query associated with this "register" plugin page.
page | A pointer to the GncPluginPage. |
plugin_page | The "register" page to modify. |
Definition at line 2299 of file gnc-plugin-page-register.cpp.
GType gnc_plugin_page_register_get_type | ( | void | ) |
Retrieve the type number for the plugin page.
GncPluginPage * gnc_plugin_page_register_new | ( | Account * | account, |
gboolean | subaccounts | ||
) |
Create a new "register" plugin page, given a pointer to an account.
account | The pointer to the account to embed in the register. |
subaccounts | TRUE if all the sub-accounts of the specified account should be included in the register. |
Definition at line 564 of file gnc-plugin-page-register.cpp.
GncPluginPage * gnc_plugin_page_register_new_gl | ( | void | ) |
Create a new "register" plugin page containing a general journal.
Definition at line 594 of file gnc-plugin-page-register.cpp.
GncPluginPage * gnc_plugin_page_register_new_ledger | ( | GNCLedgerDisplay * | ledger | ) |
Create a new "register" plugin page, given a pointer to an already created ledger.
This function should be used when the ledger already exists. (E.G. From the "find transaction" code, or from the scheduled transaction code.)
ledger | The pointer to the ledger to embed into the register. |
Definition at line 603 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_set_options | ( | GncPluginPage * | plugin_page, |
gint | lines_default, | ||
gboolean | read_only | ||
) |
Set various register options on a newly created "register" plugin page.
plugin_page | The "register" page to modify. |
lines_default | Used to calculate the minimum preferred height of the plugin page. |
read_only | True if the register should be read-only. |
Definition at line 5126 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_sort_button_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called when a radio button in the "Sort By…" dialog is clicked.
button | The button that was toggled. |
page | A pointer to the GncPluginPageRegister associated with this dialog box. |
Definition at line 2426 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_sort_order_reverse_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called whenever the reverse sort order is checked or unchecked which allows reversing of the sort order.
button | The toggle button that was changed. |
page | A pointer to the GncPluginPageRegister that is associated with this sort order dialog. |
Definition at line 2483 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_sort_order_save_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called whenever the save sort order is checked or unchecked which allows saving of the sort order.
button | The toggle button that was changed. |
page | A pointer to the GncPluginPageRegister that is associated with this sort order dialog. |
Definition at line 2454 of file gnc-plugin-page-register.cpp.
void gnc_plugin_page_register_sort_response_cb | ( | GtkDialog * | dialog, |
gint | response, | ||
GncPluginPageRegister * | page | ||
) |
This function is called when the "Sort By…" dialog is closed.
If the dialog was closed by any method other than clicking the OK button, the original sorting order will be restored.
dialog | A pointer to the dialog box. |
response | A numerical value indicating why the dialog box was closed. |
page | A pointer to the GncPluginPageRegister associated with this dialog box. |
Definition at line 2362 of file gnc-plugin-page-register.cpp.