GnuCash c935c2f+
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions
Options Dialog

Data Structures

class  GncOptionsDialog
 

Typedefs

typedef void(* GncOptionsDialogCallback) (GncOptionsDialog *, void *data)
 

Functions

void gnc_options_dialog_set_new_book_option_values (GncOptionDB *odb)
 Set the initial values of new book options to values specified in user preferences.
 
void gnc_business_options_gnome_initialize (void)
 Set up the business and counters pages in the File Preferences dialog.
 

Detailed Description

Typedef Documentation

◆ GncOptionsDialogCallback

typedef void(* GncOptionsDialogCallback) (GncOptionsDialog *, void *data)

Definition at line 42 of file dialog-options.hpp.

Function Documentation

◆ gnc_business_options_gnome_initialize()

void gnc_business_options_gnome_initialize ( void  )

Set up the business and counters pages in the File Preferences dialog.

Definition at line 234 of file business-options-gnome.cpp.

235{
236 GncOptionUIFactory::set_func(GncOptionUIType::OWNER,
237 create_option_widget<GncOptionUIType::OWNER>);
238 GncOptionUIFactory::set_func(GncOptionUIType::CUSTOMER,
239 create_option_widget<GncOptionUIType::OWNER>);
240 GncOptionUIFactory::set_func(GncOptionUIType::VENDOR,
241 create_option_widget<GncOptionUIType::OWNER>);
242 GncOptionUIFactory::set_func(GncOptionUIType::EMPLOYEE,
243 create_option_widget<GncOptionUIType::OWNER>);
244 GncOptionUIFactory::set_func(GncOptionUIType::JOB,
245 create_option_widget<GncOptionUIType::OWNER>);
246 GncOptionUIFactory::set_func(GncOptionUIType::INVOICE,
247 create_option_widget<GncOptionUIType::INVOICE>);
248 GncOptionUIFactory::set_func(GncOptionUIType::TAX_TABLE,
249 create_option_widget<GncOptionUIType::TAX_TABLE>);
250 GncOptionUIFactory::set_func(GncOptionUIType::INV_REPORT,
251 create_option_widget<GncOptionUIType::INV_REPORT>);
252}
static void set_func(GncOptionUIType type, WidgetCreateFunc func)
Register a WidgetCreateFunc.

◆ gnc_options_dialog_set_new_book_option_values()

void gnc_options_dialog_set_new_book_option_values ( GncOptionDB odb)

Set the initial values of new book options to values specified in user preferences.

Nothing to do with GncOptionsDialog, but it depends on Gtk and s used in both assistant-hierarchy and gnc-main-window.

Parameters
odbThe book's options database.

Definition at line 693 of file dialog-options.cpp.

694{
695 if (!odb) return;
696 auto num_split_action = gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL,
697 GNC_PREF_NUM_SOURCE);
698 if (num_split_action)
699 {
700 auto option{odb->find_option(OPTION_SECTION_ACCOUNTS,
701 OPTION_NAME_NUM_FIELD_SOURCE)};
702 auto num_source_button{option_get_gtk_widget(option)};
703 gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (num_source_button),
704 num_split_action);
705 }
706}
gboolean gnc_prefs_get_bool(const gchar *group, const gchar *pref_name)
Get a boolean value from the preferences backend.