GnuCash
2.6.99
|
Files | |
file | gnc-plugin-page-register.c |
Functions providing a register page for the GnuCash UI. | |
file | gnc-plugin-page-register.h |
Functions providing a register page for the GnuCash UI. | |
file | gnc-plugin-page-register.c |
Functions providing a register page for the GnuCash UI. | |
Data Structures | |
struct | status_action |
struct | GncPluginPageRegisterPrivate |
struct | GncPluginPageRegister |
struct | GncPluginPageRegisterClass |
struct | GncPluginPageRegister2Private |
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 | ASSOCIATE_TRANSACTION_FILE_LABEL N_("_Associate File with Transaction") |
#define | ASSOCIATE_TRANSACTION_LOCATION_LABEL N_("_Associate Location with Transaction") |
#define | EXECASSOCIATED_TRANSACTION_LABEL N_("_Open Associated File/Location") |
#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 | ASSOCIATE_TRANSACTION_FILE_TIP N_("Associate a file with the current transaction") |
#define | ASSOCIATE_TRANSACTION_LOCATION_TIP N_("Associate a location with the current transaction") |
#define | EXECASSOCIATED_TRANSACTION_TIP N_("Open the associated file or location with the current transaction") |
#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 | GNC_PLUGIN_PAGE_REGISTER_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_PAGE_REGISTER, GncPluginPageRegisterPrivate)) |
#define | KEY_REGISTER_TYPE "RegisterType" |
#define | KEY_ACCOUNT_NAME "AccountName" |
#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" |
#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 | 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 | 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 | TRANSACTION_UP_ACTION "TransactionUpAction" |
#define | TRANSACTION_DOWN_ACTION "TransactionDownAction" |
#define | CLEARED_VALUE "cleared_value" |
#define | DEFAULT_FILTER "0x001f" |
#define | GNC_PLUGIN_PAGE_REGISTER2_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNC_TYPE_PLUGIN_PAGE_REGISTER2, GncPluginPageRegister2Private)) |
#define | KEY_REGISTER_TYPE "RegisterType" |
#define | KEY_ACCOUNT_NAME "AccountName" |
#define | KEY_REGISTER_STYLE "RegisterStyle" |
#define | KEY_DOUBLE_LINE "DoubleLineMode" |
#define | KEY_EXTRA_DATES "ExtraDatesMode" |
#define | LABEL_ACCOUNT "Account" |
#define | LABEL_SUBACCOUNT "SubAccount" |
#define | LABEL_GL "GL" |
#define | LABEL_SEARCH "Search" |
#define | SPLIT_REGISTER_GUID "SplitRegister GUID" |
Typedefs | |
typedef struct GncPluginPageRegisterPrivate | GncPluginPageRegisterPrivate |
typedef struct GncPluginPageRegister2Private | GncPluginPageRegister2Private |
void gnc_plugin_page_register2_filter_end_cb | ( | GtkWidget * | radio, |
GncPluginPageRegister2 * | 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 GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 2238 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_response_cb | ( | GtkDialog * | dialog, |
gint | response, | ||
GncPluginPageRegister2 * | 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 filter 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 GncPluginPageRegister2 associated with this dialog box. |
Definition at line 2304 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_save_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister2 * | 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 GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 2273 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_select_range_cb | ( | GtkRadioButton * | button, |
GncPluginPageRegister2 * | page | ||
) |
This function is called when the "select range" radio button changes state. Since there are only two choices in this radio group, this one signal can be used to handle all cases. This function is responsible for setting the sensitivity of the table of widgets underneath the "select range" choice, and updating the time limitation on the register query. This is handled by a helper function when the radio button is selected (as potentially all the widgets in the table need to be inspected), and is trivial for the other case.
button | A pointer to the "select range" radio button. |
page | A pointer to the GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 2124 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_start_cb | ( | GtkWidget * | radio, |
GncPluginPageRegister2 * | 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 GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 2192 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_status_all_cb | ( | GtkButton * | button, |
GncPluginPageRegister2 * | 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 GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 2024 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_filter_status_one_cb | ( | GtkToggleButton * | button, |
GncPluginPageRegister2 * | 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 GncPluginPageRegister2 that is associated with this filter dialog. |
Definition at line 1980 of file gnc-plugin-page-register2.c.
Account* gnc_plugin_page_register2_get_account | ( | GncPluginPageRegister2 * | page | ) |
Get the Account associated with this register page.
page | A "register" page. |
Definition at line 798 of file gnc-plugin-page-register2.c.
GNCSplitReg2* gnc_plugin_page_register2_get_gsr | ( | GncPluginPage * | plugin_page | ) |
Get the GNCSplitReg data structure associated with this register page.
plugin_page | A "register" page. |
Definition at line 3838 of file gnc-plugin-page-register2.c.
GNCLedgerDisplay2* gnc_plugin_page_register2_get_ledger | ( | GncPluginPage * | plugin_page | ) |
Get the GNCLedgerDisplay data structure associated with this register page.
plugin_page | A "register" page. |
Definition at line 3853 of file gnc-plugin-page-register2.c.
GType gnc_plugin_page_register2_get_type | ( | void | ) |
Retrieve the type number for the plugin page.
Definition at line 560 of file gnc-plugin-page-register2.c.
GncPluginPage* gnc_plugin_page_register2_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 653 of file gnc-plugin-page-register2.c.
GncPluginPage* gnc_plugin_page_register2_new_gl | ( | void | ) |
Create a new "register" plugin page containing a general ledger.
Definition at line 699 of file gnc-plugin-page-register2.c.
GncPluginPage* gnc_plugin_page_register2_new_ledger | ( | GNCLedgerDisplay2 * | 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 708 of file gnc-plugin-page-register2.c.
void gnc_plugin_page_register2_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 3822 of file gnc-plugin-page-register2.c.
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 2407 of file gnc-plugin-page-register.c.
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 2475 of file gnc-plugin-page-register.c.
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 2443 of file gnc-plugin-page-register.c.
void gnc_plugin_page_register_filter_select_range_cb | ( | GtkRadioButton * | button, |
GncPluginPageRegister * | page | ||
) |
This function is called when the "select range" radio button changes state. Since there are only two choices in this radio group, this one signal can be used to handle all cases. This function is responsible for setting the sensitivity of the table of widgets underneath the "select range" choice, and updating the time limitation on the register query. This is handled by a helper function when the radio button is selected (as potentially all the widgets in the table need to be inspected), and is trivial for the other case.
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 2290 of file gnc-plugin-page-register.c.
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 2360 of file gnc-plugin-page-register.c.
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 2189 of file gnc-plugin-page-register.c.
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 2144 of file gnc-plugin-page-register.c.
Account * gnc_plugin_page_register_get_account | ( | GncPluginPageRegister * | page | ) |
Get the Account associated with this register page.
page | A "register" page. |
Definition at line 799 of file gnc-plugin-page-register.c.
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 3854 of file gnc-plugin-page-register.c.
GType gnc_plugin_page_register_get_type | ( | void | ) |
Retrieve the type number for the plugin page.
Definition at line 576 of file gnc-plugin-page-register.c.
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 659 of file gnc-plugin-page-register.c.
GncPluginPage * gnc_plugin_page_register_new_gl | ( | void | ) |
Create a new "register" plugin page containing a general ledger.
Definition at line 705 of file gnc-plugin-page-register.c.
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 714 of file gnc-plugin-page-register.c.
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 3838 of file gnc-plugin-page-register.c.
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 1909 of file gnc-plugin-page-register.c.
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 1966 of file gnc-plugin-page-register.c.
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 1937 of file gnc-plugin-page-register.c.
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 1856 of file gnc-plugin-page-register.c.