51 #define GNC_PREFS_GROUP_GENERAL "general"
52 #define GNC_PREFS_GROUP_GENERAL_REGISTER "general.register"
53 #define GNC_PREFS_GROUP_GENERAL_REPORT "general.report"
54 #define GNC_PREFS_GROUP_WARNINGS "general.warnings"
55 #define GNC_PREFS_GROUP_WARNINGS_TEMP "warnings.temporary"
56 #define GNC_PREFS_GROUP_WARNINGS_PERM "warnings.permanent"
57 #define GNC_PREFS_GROUP_ACCT_SUMMARY "window.pages.account-tree.summary"
60 #define GNC_PREF_SAVE_GEOMETRY "save-window-geometry"
61 #define GNC_PREF_LAST_PATH "last-path"
62 #define GNC_PREF_USE_NEW "use-new-window"
63 #define GNC_PREF_ACCOUNTING_LABELS "use-accounting-labels"
64 #define GNC_PREF_ACCOUNT_SEPARATOR "account-separator"
65 #define GNC_PREF_NEGATIVE_IN_RED "negative-in-red"
66 #define GNC_PREF_NUM_SOURCE "num-source"
67 #define GNC_PREF_DATE_FORMAT "date-format"
68 #define GNC_PREF_DATE_COMPL_THISYEAR "date-completion-thisyear"
69 #define GNC_PREF_DATE_COMPL_SLIDING "date-completion-sliding"
70 #define GNC_PREF_DATE_BACKMONTHS "date-backmonths"
71 #define GNC_PREF_SHOW_LEAF_ACCT_NAMES "show-leaf-account-names"
72 #define GNC_PREF_ENTER_MOVES_TO_END "enter-moves-to-end"
74 #define GNC_PREF_DRAW_HOR_LINES "draw-horizontal-lines"
75 #define GNC_PREF_DRAW_VERT_LINES "draw-vertical-lines"
76 #define GNC_PREF_ALT_COLOR_BY_TRANS "alternate-color-by-transaction"
77 #define GNC_PREF_USE_THEME_COLORS "use-theme-colors"
78 #define GNC_PREF_TAB_TRANS_MEMORISED "tab-to-transfer-on-memorised"
79 #define GNC_PREF_FUTURE_AFTER_BLANK "future-after-blank-transaction"
81 #define GNC_PREF_START_CHOICE_ABS "start-choice-absolute"
82 #define GNC_PREF_START_CHOICE_REL "start-choice-relative"
83 #define GNC_PREF_START_DATE "start-date"
84 #define GNC_PREF_START_PERIOD "start-period"
85 #define GNC_PREF_END_CHOICE_ABS "end-choice-absolute"
86 #define GNC_PREF_END_CHOICE_REL "end-choice-relative"
87 #define GNC_PREF_END_DATE "end-date"
88 #define GNC_PREF_END_PERIOD "end-period"
90 #define GNC_PREF_CURRENCY_OTHER "currency-other"
91 #define GNC_PREF_CURRENCY_CHOICE_LOCALE "currency-choice-locale"
92 #define GNC_PREF_CURRENCY_CHOICE_OTHER "currency-choice-other"
98 const gchar *gnc_prefs_get_namespace_regexp(
void);
99 void gnc_prefs_set_namespace_regexp(
const gchar *str);
101 gboolean gnc_prefs_is_debugging_enabled(
void);
102 void gnc_prefs_set_debugging(gboolean d);
104 gboolean gnc_prefs_is_extra_enabled(
void);
105 void gnc_prefs_set_extra(gboolean enabled);
107 gboolean gnc_prefs_get_file_save_compressed(
void);
108 void gnc_prefs_set_file_save_compressed(gboolean compressed);
110 gint gnc_prefs_get_file_retention_policy(
void);
111 void gnc_prefs_set_file_retention_policy(gint policy);
113 gint gnc_prefs_get_file_retention_days(
void);
114 void gnc_prefs_set_file_retention_days(gint days);
116 guint gnc_prefs_get_long_version(
void );
150 const gchar *pref_name,
173 const gchar *pref_name,
251 const gchar *pref_name,
253 const gchar *property);
274 const gchar *pref_name);
289 const gchar *pref_name);
304 const gchar *pref_name);
319 const gchar *pref_name);
334 const gchar *pref_name);
349 const gchar *pref_name);
365 const gchar *pref_name,
366 gdouble *x, gdouble *y);
386 const gchar *pref_name);
408 const gchar *pref_name,
424 const gchar *pref_name,
440 const gchar *pref_name,
456 const gchar *pref_name,
475 const gchar *pref_name,
491 const gchar *pref_name,
510 const gchar *pref_name,
511 gdouble x, gdouble y);
527 const gchar *pref_name,
538 const gchar *pref_name);
void gnc_prefs_reset_group(const gchar *group)
gboolean gnc_prefs_set_value(const gchar *group, const gchar *pref_name, GVariant *value)
gchar * gnc_prefs_get_string(const gchar *group, const gchar *pref_name)
gulong gnc_prefs_register_cb(const char *group, const gchar *pref_name, gpointer func, gpointer user_data)
gboolean gnc_prefs_set_int(const gchar *group, const gchar *pref_name, gint value)
void gnc_prefs_reset(const gchar *group, const gchar *pref_name)
gboolean gnc_prefs_set_string(const gchar *group, const gchar *pref_name, const gchar *value)
gint64 gnc_prefs_get_int64(const gchar *group, const gchar *pref_name)
gint gnc_prefs_get_int(const gchar *group, const gchar *pref_name)
void gnc_prefs_remove_cb_by_id(const gchar *group, guint id)
void gnc_prefs_bind(const gchar *group, const gchar *pref_name, gpointer object, const gchar *property)
gboolean gnc_prefs_set_bool(const gchar *group, const gchar *pref_name, gboolean value)
gboolean gnc_prefs_set_enum(const gchar *group, const gchar *pref_name, gint value)
gint gnc_prefs_get_enum(const gchar *group, const gchar *pref_name)
gboolean gnc_prefs_set_float(const gchar *group, const gchar *pref_name, gdouble value)
gboolean gnc_prefs_set_coords(const gchar *group, const gchar *pref_name, gdouble x, gdouble y)
void gnc_prefs_get_coords(const gchar *group, const gchar *pref_name, gdouble *x, gdouble *y)
void gnc_prefs_remove_group_cb_by_func(const gchar *group, gpointer func, gpointer user_data)
GVariant * gnc_prefs_get_value(const gchar *group, const gchar *pref_name)
guint gnc_prefs_register_group_cb(const gchar *group, gpointer func, gpointer user_data)
gboolean gnc_prefs_get_bool(const gchar *group, const gchar *pref_name)
gboolean gnc_prefs_is_set_up(void)
void gnc_prefs_remove_cb_by_func(const gchar *group, const gchar *pref_name, gpointer func, gpointer user_data)
gdouble gnc_prefs_get_float(const gchar *group, const gchar *pref_name)
gboolean gnc_prefs_set_int64(const gchar *group, const gchar *pref_name, gint64 value)