|
GnuCash c935c2f+
|
Files | |
| file | gnc-plugin-page-register-filter.cpp |
| Functions providing a register page filter for the GnuCash UI. | |
| file | gnc-plugin-page-register-filter.hpp |
| Functions providing a register page filter for the GnuCash UI. | |
| file | gnc-plugin-page-register.h |
| Functions providing a register page for the GnuCash UI. | |
Data Structures | |
| struct | RegisterFilterDialog |
| struct | status_action |
| struct | FilterData |
| struct | RegisterSortDialog |
| struct | SortData |
| struct | GncPluginPageRegisterPrivate |
| struct | GncPluginPageRegister |
| struct | GncPluginPageRegisterClass |
Macros | |
| #define | DEFAULT_LINES_AMOUNT 50 |
| #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 Business item") |
| #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 invoice, bill, expense or credit note") |
| #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 | 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" |
Enumerations | |
| enum | GncPrefJumpMultSplits : gint { JUMP_DEFAULT = 0 , JUMP_LARGEST_VALUE_FIRST_SPLIT = 1 , JUMP_SMALLEST_VALUE_FIRST_SPLIT = 2 } |
Functions | |
| void | gnc_ppr_filter_select_range_cb (GtkRadioButton *button, RegisterFilterDialog *rfd) |
| This function is called when the radio buttons changes state. | |
| void | gnc_ppr_filter_start_cb (GtkWidget *radio, RegisterFilterDialog *rfd) |
| This function is called when one of the start date radio buttons is selected. | |
| void | gnc_ppr_filter_end_cb (GtkWidget *radio, RegisterFilterDialog *rfd) |
| This function is called when one of the end date radio buttons is selected. | |
| void | gnc_ppr_filter_response_cb (GtkDialog *dialog, gint response, RegisterFilterDialog *rfd) |
| This function is called when the "Filter By…" dialog is closed. | |
| void | gnc_ppr_filter_status_select_all_cb (GtkButton *button, RegisterFilterDialog *rfd) |
| This function is called whenever the "select all" status button is clicked. | |
| void | gnc_ppr_filter_status_clear_all_cb (GtkButton *button, RegisterFilterDialog *rfd) |
| This function is called whenever the "clear all" status button is clicked. | |
| void | gnc_ppr_filter_status_one_cb (GtkToggleButton *button, RegisterFilterDialog *rfd) |
| This function is called whenever one of the status entries is checked or unchecked. | |
| void | gnc_ppr_filter_save_cb (GtkToggleButton *button, RegisterFilterDialog *rfd) |
| This function is called whenever the save status is checked or unchecked. | |
| void | gnc_ppr_filter_days_changed_cb (GtkSpinButton *button, RegisterFilterDialog *rfd) |
| 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. | |
| void | gnc_ppr_filter_start_toggle_cb (GtkToggleButton *button, RegisterFilterDialog *rfd) |
| This function is called when one of the check buttons for start relative or start date is changed. | |
| void | gnc_ppr_filter_end_toggle_cb (GtkToggleButton *button, RegisterFilterDialog *rfd) |
| This function is called when one of the check buttons for end relative or end date is changed. | |
| void | gnc_ppr_filter_start_end_days_changed_cb (GtkSpinButton *button, RegisterFilterDialog *rfd) |
| This function is called when the "days ago" spin button is changed which is then saved and updates the time limitation on the register query. | |
| void | gnc_ppr_filter_set_tooltip (GncPluginPage *plugin_page, FilterData *fd) |
| This function is used to update the tooltip shown in the register which shows a summary of the current filter. | |
| void | gnc_ppr_filter_clear_current_filter (GncPluginPage *plugin_page) |
| This function is used to clear the current filter so that a specific split can be shown in the register. | |
| void | gnc_ppr_filter_update_register (GncPluginPage *plugin_page) |
| This function is called to update the register. | |
| void | gnc_ppr_filter_by (GncPluginPage *plugin_page, Query *query, FilterData *fd, bool show_save_button) |
| This function is called for the filter dialog. | |
| void | gnc_ppr_sort_response_cb (GtkDialog *dialog, gint response, RegisterSortDialog *rsd) |
| This function is called when the "Sort By…" dialog is closed. | |
| void | gnc_ppr_sort_button_cb (GtkToggleButton *button, RegisterSortDialog *rsd) |
| This function is called when a radio button in the "Sort By…" dialog is clicked. | |
| void | gnc_ppr_sort_order_save_cb (GtkToggleButton *button, RegisterSortDialog *rsd) |
| This function is called whenever the save sort order is checked or unchecked which allows saving of the sort order. | |
| void | gnc_ppr_sort_order_reverse_cb (GtkToggleButton *button, RegisterSortDialog *rsd) |
| This function is called whenever the reverse sort order is checked or unchecked which allows reversing of the sort order. | |
| void | gnc_ppr_sort_update_register (GncPluginPage *plugin_page) |
| This function is called to update the register. | |
| void | gnc_ppr_sort_dialog (GncPluginPage *plugin_page, SplitRegister *reg, SortData *sd, bool show_save_button) |
| This function is called for the sort dialog. | |
| 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. | |
| GncPluginPage * | gnc_plugin_page_register_new_gl (void) |
| Create a new "register" plugin page containing a general journal. | |
| GncPluginPage * | gnc_plugin_page_register_new_ledger (GNCLedgerDisplay *ledger) |
| Create a new "register" plugin page, given a pointer to an already created ledger. | |
| Account * | gnc_plugin_page_register_get_account (GncPluginPageRegister *page) |
| Get the Account associated with this register page. | |
| Transaction * | gnc_plugin_page_register_get_current_txn (GncPluginPageRegister *page) |
| Get the currently selected transaction in this register page. | |
| Query * | gnc_plugin_page_register_get_query (GncPluginPage *plugin_page) |
| This function is called to get the query associated with this plugin page. | |
| void | gnc_plugin_page_register_query_update (GncPluginPageRegister *page, Query *query) |
| This updates the query after the filters have been applied. | |
| void | gnc_plugin_page_register_update_for_search_query (GncPluginPageRegister *page) |
| This checks if the register is a search register and if so saves the query. | |
| void | gnc_plugin_register_set_enable_refresh (GncPluginPageRegister *page, gboolean enable_refresh) |
| This allows controlling when refreshes happen, used to reduce refreshes when different aspects of the register filter change, namely date and status. | |
| void | gnc_plugin_page_register_clear_current_filter (GncPluginPage *plugin_page) |
| This function clears the registers current filter. | |
| 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. | |
| GNCSplitReg * | gnc_plugin_page_register_get_gsr (GncPluginPage *plugin_page) |
| Get the GNCSplitReg data structure associated with this register page. | |
| FilterData * | gnc_plugin_page_register_get_filter_data (GncPluginPage *plugin_page) |
| Get the FilterData data structure associated with this register page. | |
| SortData * | gnc_plugin_page_register_get_sort_data (GncPluginPage *plugin_page) |
| Get the SortData data structure associated with this register page. | |
| GType | gnc_plugin_page_register_get_type (void) |
| Retrieve the type number for the plugin page. | |
| #define COPY_SPLIT_LABEL N_("_Copy Split") |
Definition at line 227 of file gnc-plugin-page-register.cpp.
| #define COPY_SPLIT_TIP N_("Copy the selected split into clipboard") |
Definition at line 240 of file gnc-plugin-page-register.cpp.
| #define COPY_TRANSACTION_LABEL N_("_Copy Transaction") |
Definition at line 211 of file gnc-plugin-page-register.cpp.
| #define COPY_TRANSACTION_TIP N_("Copy the selected transaction into clipboard") |
Definition at line 232 of file gnc-plugin-page-register.cpp.
| #define CUT_SPLIT_LABEL N_("Cu_t Split") |
Definition at line 226 of file gnc-plugin-page-register.cpp.
| #define CUT_SPLIT_TIP N_("Cut the selected split into clipboard") |
Definition at line 239 of file gnc-plugin-page-register.cpp.
| #define CUT_TRANSACTION_LABEL N_("Cu_t Transaction") |
Definition at line 210 of file gnc-plugin-page-register.cpp.
| #define CUT_TRANSACTION_TIP N_("Cut the selected transaction into clipboard") |
Definition at line 231 of file gnc-plugin-page-register.cpp.
| #define DEFAULT_LINES_AMOUNT 50 |
Definition at line 105 of file gnc-plugin-page-register.cpp.
| #define DELETE_SPLIT_LABEL N_("_Delete Split") |
Definition at line 230 of file gnc-plugin-page-register.cpp.
| #define DELETE_SPLIT_TIP N_("Delete the current split") |
Definition at line 243 of file gnc-plugin-page-register.cpp.
| #define DELETE_TRANSACTION_LABEL N_("_Delete Transaction") |
Definition at line 214 of file gnc-plugin-page-register.cpp.
| #define DELETE_TRANSACTION_TIP N_("Delete the current transaction") |
Definition at line 235 of file gnc-plugin-page-register.cpp.
| #define DUPLICATE_SPLIT_LABEL N_("Dup_licate Split") |
Definition at line 229 of file gnc-plugin-page-register.cpp.
| #define DUPLICATE_SPLIT_TIP N_("Make a copy of the current split") |
Definition at line 242 of file gnc-plugin-page-register.cpp.
| #define DUPLICATE_TRANSACTION_LABEL N_("Dup_licate Transaction") |
Definition at line 213 of file gnc-plugin-page-register.cpp.
| #define DUPLICATE_TRANSACTION_TIP N_("Make a copy of the current transaction") |
Definition at line 234 of file gnc-plugin-page-register.cpp.
| #define GNC_IS_PLUGIN_PAGE_REGISTER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER)) |
Definition at line 60 of file gnc-plugin-page-register.h.
| #define GNC_IS_PLUGIN_PAGE_REGISTER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER)) |
Definition at line 61 of file gnc-plugin-page-register.h.
| #define GNC_PLUGIN_PAGE_REGISTER | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegister)) |
Definition at line 58 of file gnc-plugin-page-register.h.
| #define GNC_PLUGIN_PAGE_REGISTER_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) |
Definition at line 59 of file gnc-plugin-page-register.h.
| #define GNC_PLUGIN_PAGE_REGISTER_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterClass)) |
Definition at line 62 of file gnc-plugin-page-register.h.
| #define GNC_PLUGIN_PAGE_REGISTER_NAME "GncPluginPageRegister" |
Definition at line 63 of file gnc-plugin-page-register.h.
| #define GNC_TYPE_PLUGIN_PAGE_REGISTER (gnc_plugin_page_register_get_type ()) |
Definition at line 57 of file gnc-plugin-page-register.h.
| #define JUMP_LINKED_INVOICE_LABEL N_("Jump to Business item") |
Definition at line 225 of file gnc-plugin-page-register.cpp.
| #define JUMP_LINKED_INVOICE_TIP N_("Jump to the linked invoice, bill, expense or credit note") |
Definition at line 238 of file gnc-plugin-page-register.cpp.
| #define KEY_ACCOUNT_GUID "AccountGuid" |
Definition at line 1321 of file gnc-plugin-page-register.cpp.
| #define KEY_ACCOUNT_NAME "AccountName" |
Definition at line 1320 of file gnc-plugin-page-register.cpp.
| #define KEY_DOUBLE_LINE "DoubleLineMode" |
Definition at line 1323 of file gnc-plugin-page-register.cpp.
| #define KEY_REGISTER_STYLE "RegisterStyle" |
Definition at line 1322 of file gnc-plugin-page-register.cpp.
| #define KEY_REGISTER_TYPE "RegisterType" |
Definition at line 1319 of file gnc-plugin-page-register.cpp.
| #define LABEL_ACCOUNT "Account" |
Definition at line 1325 of file gnc-plugin-page-register.cpp.
| #define LABEL_GL "GL" |
Definition at line 1327 of file gnc-plugin-page-register.cpp.
| #define LABEL_SEARCH "Search" |
Definition at line 1328 of file gnc-plugin-page-register.cpp.
| #define LABEL_SUBACCOUNT "SubAccount" |
Definition at line 1326 of file gnc-plugin-page-register.cpp.
| #define LINK_TRANSACTION_LABEL N_("_Manage Document Link…") |
Definition at line 218 of file gnc-plugin-page-register.cpp.
| #define LINK_TRANSACTION_OPEN_LABEL N_("_Open Linked Document") |
Definition at line 222 of file gnc-plugin-page-register.cpp.
| #define LINK_TRANSACTION_OPEN_TIP N_("Open the linked document for the current transaction") |
Definition at line 237 of file gnc-plugin-page-register.cpp.
| #define LINK_TRANSACTION_TIP N_("Add, change, or unlink the document linked with the current transaction") |
Definition at line 236 of file gnc-plugin-page-register.cpp.
| #define PASTE_SPLIT_LABEL N_("_Paste Split") |
Definition at line 228 of file gnc-plugin-page-register.cpp.
| #define PASTE_SPLIT_TIP N_("Paste the split from the clipboard") |
Definition at line 241 of file gnc-plugin-page-register.cpp.
| #define PASTE_TRANSACTION_LABEL N_("_Paste Transaction") |
Definition at line 212 of file gnc-plugin-page-register.cpp.
| #define PASTE_TRANSACTION_TIP N_("Paste the transaction from the clipboard") |
Definition at line 233 of file gnc-plugin-page-register.cpp.
| enum GncPrefJumpMultSplits : gint |
Definition at line 95 of file gnc-plugin-page-register.cpp.
| G_DEFINE_TYPE_WITH_PRIVATE | ( | GncPluginPageRegister | , |
| gnc_plugin_page_register | , | ||
| GNC_TYPE_PLUGIN_PAGE | |||
| ) |
Definition at line 381 of file gnc-plugin-page-register.cpp.
| 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 1922 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 580 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 596 of file gnc-plugin-page-register.cpp.
| struct FilterData * gnc_plugin_page_register_get_filter_data | ( | GncPluginPage * | plugin_page | ) |
Get the FilterData data structure associated with this register page.
| plugin_page | A "register" page. |
Definition at line 3780 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 3766 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 1853 of file gnc-plugin-page-register.cpp.
| struct SortData * gnc_plugin_page_register_get_sort_data | ( | GncPluginPage * | plugin_page | ) |
Get the SortData data structure associated with this register page.
| plugin_page | A "register" page. |
Definition at line 3791 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 464 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 494 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 503 of file gnc-plugin-page-register.cpp.
| void gnc_plugin_page_register_query_update | ( | GncPluginPageRegister * | page, |
| Query * | query | ||
| ) |
This updates the query after the filters have been applied.
| plugin_page | A pointer to the GncPluginPageRegister. |
| query | The updated query |
Definition at line 1866 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 3750 of file gnc-plugin-page-register.cpp.
| void gnc_plugin_page_register_update_for_search_query | ( | GncPluginPageRegister * | page | ) |
This checks if the register is a search register and if so saves the query.
| plugin_page | A pointer to the GncPluginPageRegister. |
Definition at line 1883 of file gnc-plugin-page-register.cpp.
| void gnc_plugin_register_set_enable_refresh | ( | GncPluginPageRegister * | page, |
| gboolean | enable_refresh | ||
| ) |
This allows controlling when refreshes happen, used to reduce refreshes when different aspects of the register filter change, namely date and status.
| plugin_page | A pointer to the GncPluginPageRegister. |
| enable_refresh | Used to controll wehn refresh is required |
Definition at line 1909 of file gnc-plugin-page-register.cpp.
| void gnc_ppr_filter_by | ( | GncPluginPage * | plugin_page, |
| Query * | query, | ||
| FilterData * | fd, | ||
| bool | show_save_button | ||
| ) |
This function is called for the filter dialog.
| plugin_page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
| query | A pointer to the current register query. |
| fd | A pointer to the filter data structure for remembering state. |
| show_save_button | Set to True to show save button. |
Definition at line 1657 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_clear_current_filter | ( | GncPluginPage * | plugin_page | ) |
This function is used to clear the current filter so that a specific split can be shown in the register.
| page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 728 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_days_changed_cb | ( | GtkSpinButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1054 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_end_cb | ( | GtkWidget * | radio, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1147 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_end_toggle_cb | ( | GtkToggleButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
This function is called when one of the check buttons for end relative or end date is changed.
It activates the associated widget and deactivates the other.
| button | A pointer to a GtkToggleButton widget. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1287 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_response_cb | ( | GtkDialog * | dialog, |
| gint | response, | ||
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1372 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_save_cb | ( | GtkToggleButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1342 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_select_range_cb | ( | GtkRadioButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1009 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_set_tooltip | ( | GncPluginPage * | plugin_page, |
| FilterData * | fd | ||
| ) |
This function is used to update the tooltip shown in the register which shows a summary of the current filter.
| page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
| fd | A pointer to the filter data used for filter state. |
Definition at line 531 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_start_cb | ( | GtkWidget * | radio, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1104 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_start_end_days_changed_cb | ( | GtkSpinButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
This function is called when the "days ago" 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 "days ago" spin button. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1198 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_start_toggle_cb | ( | GtkToggleButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
This function is called when one of the check buttons for start relative or start date is changed.
It activates the associated widget and deactivates the other.
| button | A pointer to a GtkToggleButton widget. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 1231 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_status_clear_all_cb | ( | GtkButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
This function is called whenever the "clear 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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 906 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_status_one_cb | ( | GtkToggleButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 784 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_status_select_all_cb | ( | GtkButton * | button, |
| RegisterFilterDialog * | rfd | ||
| ) |
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. |
| rfd | A pointer to the filter dialog structure. |
Definition at line 873 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_filter_update_register | ( | GncPluginPage * | plugin_page | ) |
This function is called to update the register.
| page | A pointer to the GncPluginPageRegister that is associated with this filter dialog. |
Definition at line 745 of file gnc-plugin-page-register-filter.cpp.
| void gnc_ppr_sort_button_cb | ( | GtkToggleButton * | button, |
| RegisterSortDialog * | rsd | ||
| ) |
This function is called when a radio button in the "Sort By…" dialog is clicked.
| button | The button that was toggled. |
| rsd | A pointer to the sort dialog structure. |
Definition at line 372 of file gnc-plugin-page-register-sort.cpp.
| void gnc_ppr_sort_dialog | ( | GncPluginPage * | plugin_page, |
| SplitRegister * | reg, | ||
| SortData * | sd, | ||
| bool | show_save_button | ||
| ) |
This function is called for the sort dialog.
| plugin_page | A pointer to the GncPluginPageRegister that is associated with this sort dialog. |
| reg | A pointer to the SplitRegister of the current register. |
| fd | A pointer to the sort data structure for remembering state. |
| show_save_button | Set to True to show save button. |
Definition at line 530 of file gnc-plugin-page-register-sort.cpp.
| void gnc_ppr_sort_order_reverse_cb | ( | GtkToggleButton * | button, |
| RegisterSortDialog * | rsd | ||
| ) |
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. |
| rsd | A pointer to the sort dialog structure. |
Definition at line 429 of file gnc-plugin-page-register-sort.cpp.
| void gnc_ppr_sort_order_save_cb | ( | GtkToggleButton * | button, |
| RegisterSortDialog * | rsd | ||
| ) |
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. |
| rsd | A pointer to the sort dialog structure. |
Definition at line 403 of file gnc-plugin-page-register-sort.cpp.
| void gnc_ppr_sort_response_cb | ( | GtkDialog * | dialog, |
| gint | response, | ||
| RegisterSortDialog * | rsd | ||
| ) |
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. |
| rsd | A pointer to the sort dialog structure. |
Definition at line 309 of file gnc-plugin-page-register-sort.cpp.
| void gnc_ppr_sort_update_register | ( | GncPluginPage * | plugin_page | ) |
This function is called to update the register.
| page | A pointer to the GncPluginPageRegister that is associated with this sort order dialog. |
Definition at line 220 of file gnc-plugin-page-register-sort.cpp.
| GtkWidget* RegisterSortDialog::act_radio |
Definition at line 64 of file gnc-plugin-page-register-sort.cpp.
| std::string status_action::action_name |
Definition at line 151 of file gnc-plugin-page-register-filter.cpp.
| cleared_match_t FilterData::cleared_match |
Definition at line 44 of file gnc-plugin-page-register-filter.hpp.
| int FilterData::days |
Definition at line 51 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::dialog |
Definition at line 73 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* FilterData::dialog |
Definition at line 43 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterSortDialog::dialog |
Definition at line 62 of file gnc-plugin-page-register-sort.cpp.
| GtkWidget* SortData::dialog |
Definition at line 43 of file gnc-plugin-page-register-sort.hpp.
| GncAccountingPeriod FilterData::end_ap |
Definition at line 48 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::end_date |
Definition at line 87 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::end_date_check |
Definition at line 86 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::end_days |
Definition at line 89 of file gnc-plugin-page-register-filter.cpp.
| int FilterData::end_days |
Definition at line 50 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::end_days_check |
Definition at line 88 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::end_latest |
Definition at line 83 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::end_relative |
Definition at line 85 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::end_relative_check |
Definition at line 84 of file gnc-plugin-page-register-filter.cpp.
| time64 FilterData::end_time |
Definition at line 49 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::num_days |
Definition at line 91 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterSortDialog::num_radio |
Definition at line 63 of file gnc-plugin-page-register-sort.cpp.
| cleared_match_t RegisterFilterDialog::original_cleared_match |
Definition at line 93 of file gnc-plugin-page-register-filter.cpp.
| int RegisterFilterDialog::original_days |
Definition at line 100 of file gnc-plugin-page-register-filter.cpp.
| GncAccountingPeriod RegisterFilterDialog::original_end_ap |
Definition at line 97 of file gnc-plugin-page-register-filter.cpp.
| int RegisterFilterDialog::original_end_days |
Definition at line 99 of file gnc-plugin-page-register-filter.cpp.
| time64 RegisterFilterDialog::original_end_time |
Definition at line 98 of file gnc-plugin-page-register-filter.cpp.
| bool RegisterSortDialog::original_reverse_order |
Definition at line 67 of file gnc-plugin-page-register-sort.cpp.
| bool RegisterFilterDialog::original_save_filter |
Definition at line 101 of file gnc-plugin-page-register-filter.cpp.
| bool RegisterSortDialog::original_save_order |
Definition at line 68 of file gnc-plugin-page-register-sort.cpp.
| SortType RegisterSortDialog::original_sort_type |
Definition at line 66 of file gnc-plugin-page-register-sort.cpp.
| GncAccountingPeriod RegisterFilterDialog::original_start_ap |
Definition at line 94 of file gnc-plugin-page-register-filter.cpp.
| int RegisterFilterDialog::original_start_days |
Definition at line 96 of file gnc-plugin-page-register-filter.cpp.
| time64 RegisterFilterDialog::original_start_time |
Definition at line 95 of file gnc-plugin-page-register-filter.cpp.
| GncPluginPage* RegisterFilterDialog::plugin_page |
Definition at line 72 of file gnc-plugin-page-register-filter.cpp.
| GncPluginPage* RegisterSortDialog::plugin_page |
Definition at line 60 of file gnc-plugin-page-register-sort.cpp.
| SplitRegister* RegisterSortDialog::reg |
Definition at line 61 of file gnc-plugin-page-register-sort.cpp.
| bool SortData::reverse_order |
Definition at line 45 of file gnc-plugin-page-register-sort.hpp.
| bool FilterData::save_filter |
Definition at line 52 of file gnc-plugin-page-register-filter.hpp.
| bool SortData::save_order |
Definition at line 46 of file gnc-plugin-page-register-sort.hpp.
| bool RegisterFilterDialog::show_save_button |
Definition at line 103 of file gnc-plugin-page-register-filter.cpp.
| bool RegisterSortDialog::show_save_button |
Definition at line 70 of file gnc-plugin-page-register-sort.cpp.
| SortType SortData::sort_type |
Definition at line 44 of file gnc-plugin-page-register-sort.hpp.
| GncAccountingPeriod FilterData::start_ap |
Definition at line 45 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::start_date |
Definition at line 79 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::start_date_check |
Definition at line 78 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::start_days |
Definition at line 81 of file gnc-plugin-page-register-filter.cpp.
| int FilterData::start_days |
Definition at line 47 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::start_days_check |
Definition at line 80 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::start_earliest |
Definition at line 75 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::start_relative |
Definition at line 77 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* RegisterFilterDialog::start_relative_check |
Definition at line 76 of file gnc-plugin-page-register-filter.cpp.
| time64 FilterData::start_time |
Definition at line 46 of file gnc-plugin-page-register-filter.hpp.
| GtkWidget* RegisterFilterDialog::table |
Definition at line 74 of file gnc-plugin-page-register-filter.cpp.
| int status_action::value |
Definition at line 152 of file gnc-plugin-page-register-filter.cpp.
| GtkWidget* status_action::widget |
Definition at line 153 of file gnc-plugin-page-register-filter.cpp.