|
GnuCash c935c2f+
|
Files | |
| file | dialog-preferences.c |
| Dialog for handling user preferences. | |
| file | dialog-preferences.h |
| Dialog for handling user preferences. | |
Data Structures | |
| struct | addition |
| This data structure holds the information for a single addition to the preferences dialog. More... | |
| struct | copy_data |
| This data structure is used while building the preferences dialog to copy a grid from a glade file to the dialog under construction. More... | |
Macros | |
| #define | DIALOG_PREFERENCES_CM_CLASS "dialog-newpreferences" |
| #define | GNC_PREFS_GROUP "dialogs.preferences" |
| #define | PREF_PREFIX_LEN sizeof("pref/") - 1 |
| #define | PREFS_WIDGET_HASH "prefs_widget_hash" |
| #define | NOTEBOOK "notebook" |
Functions | |
| void | gnc_preferences_response_cb (GtkDialog *dialog, gint response, GtkDialog *unused) |
| Handle a user click on one of the buttons at the bottom of the preference dialog. | |
| void | gnc_account_separator_pref_changed_cb (GtkEntry *entry, GtkWidget *dialog) |
| This function is called whenever the account separator is changed in the preferences dialog. | |
| void | gnc_save_on_close_expires_cb (GtkToggleButton *button, GtkWidget *dialog) |
| Called when the save-on-close checkbutton is toggled. | |
| gboolean | gnc_preferences_delete_event_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
| void | gnc_preferences_add_page (const gchar *filename, const gchar *widgetname, const gchar *tabname) |
| This function adds a full page of preferences to the preferences dialog. | |
| void | gnc_preferences_add_to_page (const gchar *filename, const gchar *widgetname, const gchar *tabname) |
| This function adds a partial page of preferences to the preferences dialog. | |
| void | gnc_preferences_dialog (GtkWindow *parent) |
| This function creates the preferences dialog and presents it to the user. | |
Variables | |
| GSList * | add_ins = NULL |
| A list of all additions that have been made to the preferences dialog. | |
| #define DIALOG_PREFERENCES_CM_CLASS "dialog-newpreferences" |
Definition at line 84 of file dialog-preferences.c.
| #define GNC_PREFS_GROUP "dialogs.preferences" |
Definition at line 85 of file dialog-preferences.c.
| #define NOTEBOOK "notebook" |
Definition at line 88 of file dialog-preferences.c.
| #define PREF_PREFIX_LEN sizeof("pref/") - 1 |
Definition at line 86 of file dialog-preferences.c.
| #define PREFS_WIDGET_HASH "prefs_widget_hash" |
Definition at line 87 of file dialog-preferences.c.
| void gnc_account_separator_pref_changed_cb | ( | GtkEntry * | entry, |
| GtkWidget * | dialog | ||
| ) |
This function is called whenever the account separator is changed in the preferences dialog.
It updates the example label in the "Account" page of the preferences dialog.
Definition at line 156 of file dialog-preferences.c.
| void gnc_preferences_add_page | ( | const gchar * | filename, |
| const gchar * | widgetname, | ||
| const gchar * | tabname | ||
| ) |
This function adds a full page of preferences to the preferences dialog.
When the dialog is created, the specified widget will be pulled from the specified glade file and added to the preferences dialog with the specified tab name. The tab name may not be duplicated. For example, the Business code might have a full page of its own preferences.
| filename | The name of a glade file. |
| widgetname | The name of the widget to extract from the glade file. |
| tabname | The (translated!) name this page of preferences should have in the dialog notebook. |
Definition at line 419 of file dialog-preferences.c.
| void gnc_preferences_add_to_page | ( | const gchar * | filename, |
| const gchar * | widgetname, | ||
| const gchar * | tabname | ||
| ) |
This function adds a partial page of preferences to the preferences dialog.
When the dialog is created, the specified widget will be pulled from the specified glade file and added to the preferences dialog with the specified tab name. The tab name may be duplicated. For example, the HBCI preferences may share a "Data Import" page with QIF and other methods.
| filename | The name of a glade file. |
| widgetname | The name of the widget to extract from the glade file. |
| tabname | The (translated!) name this page of preferences should have in the dialog notebook. |
Definition at line 434 of file dialog-preferences.c.
| gboolean gnc_preferences_delete_event_cb | ( | GtkWidget * | widget, |
| GdkEvent * | event, | ||
| gpointer | user_data | ||
| ) |
Definition at line 1185 of file dialog-preferences.c.
| void gnc_preferences_dialog | ( | GtkWindow * | parent | ) |
This function creates the preferences dialog and presents it to the user.
The preferences dialog is a singleton, so if a preferences dialog already exists it will be raised to the top of the window stack instead of creating a new dialog.
Definition at line 1564 of file dialog-preferences.c.
| void gnc_preferences_response_cb | ( | GtkDialog * | dialog, |
| gint | response, | ||
| GtkDialog * | unused | ||
| ) |
Handle a user click on one of the buttons at the bottom of the preference dialog.
Also handles delete_window events, which have conveniently converted to a response by GtkDialog.
Definition at line 1207 of file dialog-preferences.c.
| void gnc_save_on_close_expires_cb | ( | GtkToggleButton * | button, |
| GtkWidget * | dialog | ||
| ) |
Called when the save-on-close checkbutton is toggled.
Definition at line 290 of file dialog-preferences.c.
| GSList* add_ins = NULL |
A list of all additions that have been made to the preferences dialog.
The data fields for this list are addition data structures.
Definition at line 122 of file dialog-preferences.c.