30 #ifndef GNC_DIALOG_OPTIONS_HPP_ 31 #define GNC_DIALOG_OPTIONS_HPP_ 36 #include <gnc-option-ui.hpp> 47 GtkWidget * m_notebook;
48 GtkWidget * m_page_list_view;
49 GtkWidget * m_page_list;
50 GtkButton * m_help_button;
51 GtkButton * m_cancel_button;
52 GtkButton * m_apply_button;
53 GtkButton * m_ok_button;
55 GncOptionsDialogCallback m_apply_cb;
56 gpointer m_apply_cb_data;
58 GncOptionsDialogCallback m_help_cb;
59 gpointer m_help_cb_data;
61 GncOptionsDialogCallback m_close_cb;
62 gpointer m_close_cb_data;
68 const char* m_component_class;
71 bool m_destroying{
false};
82 GtkWidget* get_widget()
const noexcept {
return m_window; }
83 GtkWidget* get_page_list()
const noexcept {
return m_page_list; }
84 GtkWidget* get_page_list_view()
const noexcept {
return m_page_list_view; }
85 GtkWidget* get_notebook()
const noexcept {
return m_notebook; }
86 GncOptionDB* get_option_db() noexcept {
return m_option_db; }
88 build_contents(odb,
true); }
89 void build_contents(
GncOptionDB* odb,
bool show_dialog);
90 void set_sensitive(
bool sensitive) noexcept;
91 void changed() noexcept;
92 void set_apply_cb(GncOptionsDialogCallback,
void* cb_data) noexcept;
93 void call_apply_cb() noexcept;
94 void set_help_cb(GncOptionsDialogCallback,
void* cb_data) noexcept;
95 void call_help_cb() noexcept;
96 void set_close_cb(GncOptionsDialogCallback,
void* cb_data) noexcept;
97 void call_close_cb() noexcept;
98 void set_book_help_cb() noexcept;
99 void call_book_help_cb() noexcept;
100 void set_style_sheet_help_cb() noexcept;
101 void call_style_sheet_help_cb() noexcept;
114 #endif // GNC_DIALOG_OPTIONS_HPP_ Holds all of the options for a book, report, or stylesheet, organized by GncOptionSections.
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.
The primary C++ interface to options for books, reports, and stylesheets.