]> Dogcows Code - chaz/homebank/blob - src/ui-pref.h
524c6adef843340d674380e55f48df4b5faf1354
[chaz/homebank] / src / ui-pref.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
6 * HomeBank is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * HomeBank is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef __HB_PREFERENCE_GTK_H__
21 #define __HB_PREFERENCE_GTK_H__
22
23
24 struct defpref_data
25 {
26 // common
27 GtkWidget *window;
28 GtkWidget *LV_page;
29 GtkWidget *GR_page;
30 GtkWidget *label;
31 GtkWidget *image;
32 GtkWidget *BT_clear;
33
34 // general
35 GtkWidget *CM_show_splash;
36 GtkWidget *CM_load_last;
37 GtkWidget *CM_append_scheduled;
38 GtkWidget *CM_do_update_currency;
39 GtkWidget *ST_path_hbfile, *BT_path_hbfile;
40 GtkWidget *CM_bak_is_automatic;
41 GtkWidget *GR_bak_freq;
42 GtkWidget *LB_bak_max_num_copies, *NB_bak_max_num_copies;
43 GtkWidget *CY_daterange_wal;
44 GtkWidget *NB_fiscyearday;
45 GtkWidget *CY_fiscyearmonth;
46
47
48
49 GtkWidget *CY_language;
50 GtkWidget *CY_toolbar;
51
52
53
54
55
56 GtkWidget *LB_colors, *CY_colors;
57
58 GtkWidget *GR_colors;
59 GtkWidget *CM_custom_colors;
60 GtkWidget *LB_exp_color, *CP_exp_color;
61 GtkWidget *CP_inc_color;
62 GtkWidget *CP_warn_color;
63 //GtkWidget *CM_ruleshint;
64 GtkWidget *CY_gridlines;
65
66 //GtkWidget *LV_opecolumns;
67 GtkWidget *BT_go_up;
68 GtkWidget *BT_go_down;
69
70
71 GtkWidget *CM_runwizard;
72
73 GtkWidget *ST_path_import, *BT_path_import;
74 GtkWidget *ST_path_export, *BT_path_export;
75
76 GtkWidget *CM_herit_date;
77 GtkWidget *CM_hide_reconciled;
78 GtkWidget *CM_show_remind;
79 GtkWidget *CM_memoacp;
80 GtkWidget *ST_memoacp_days;
81
82 GtkWidget *ST_datefmt;
83 GtkWidget *LB_date;
84
85 GtkWidget *CM_unitismile;
86 GtkWidget *CM_unitisgal;
87
88 GtkWidget *CY_daterange_txn;
89 GtkWidget *ST_datefuture_nbdays;
90 GtkWidget *CY_daterange_rep;
91
92 /* currencies */
93 GtkWidget *LB_default;
94 GtkWidget *BT_default;
95
96 GtkWidget *CM_euro_enable;
97 GtkWidget *GRP_currency;
98 GtkWidget *GRP_rate;
99 GtkWidget *GRP_format;
100
101 GtkWidget *CY_euro_preset;
102 GtkWidget *ST_euro_country;
103 GtkWidget *NB_euro_value;
104
105 GtkWidget *ST_euro_symbol;
106 GtkWidget *CM_euro_isprefix;
107 GtkWidget *ST_euro_decimalchar;
108 GtkWidget *ST_euro_groupingchar;
109 GtkWidget *NB_euro_fracdigits;
110 GtkWidget *LB_numbereuro;
111
112 //GtkWidget *ST_euro_symbol;
113 //GtkWidget *NB_euro_nbdec;
114 //GtkWidget *CM_euro_thsep;
115
116 GtkWidget *CM_stat_byamount;
117 GtkWidget *CM_stat_showdetail;
118 GtkWidget *CM_stat_showrate;
119
120 GtkWidget *CM_budg_showdetail;
121
122 GtkWidget *CY_color_scheme;
123 GtkWidget *DA_colors;
124
125 GtkWidget *CM_chartlegend;
126
127 GtkWidget *CY_dtex_datefmt;
128 GtkWidget *CY_dtex_ofxname;
129 GtkWidget *CY_dtex_ofxmemo;
130 GtkWidget *CM_dtex_qifmemo;
131 GtkWidget *CM_dtex_qifswap;
132 GtkWidget *CM_dtex_ucfirst;
133 GtkWidget *CY_dtex_csvsep;
134
135 gint country;
136
137 GtkWidget *PI_plugin_columns;
138 };
139
140 enum
141 {
142 PREF_GENERAL,
143 PREF_INTERFACE,
144 PREF_LOCALE, //old DISPLAY
145 PREF_TXN, //old COLUMNS
146 PREF_IMPORT,
147 PREF_REPORT,
148 PREF_BACKUP,
149 PREF_FOLDERS,
150 PREF_EURO,
151 PREF_PLUGINS,
152 PREF_MAX
153 };
154
155
156 typedef struct
157 {
158 gchar *locale;
159 gchar *name;
160 } LangName;
161
162
163 typedef struct
164 {
165 gshort id;
166 gchar *iso;
167 gchar *name;
168 gdouble value;
169 //gchar *prefix_symbol; /* max symbol is 3 digits in unicode */
170 //gchar *suffix_symbol; /* but mostly is 1 digit */
171 gchar *symbol;
172 gboolean sym_prefix;
173 gchar *decimal_char;
174 gchar *grouping_char;
175 gshort frac_digits;
176 } EuroParams;
177
178
179 enum {
180 PRF_PATH_WALLET,
181 PRF_PATH_IMPORT,
182 PRF_PATH_EXPORT,
183 };
184
185 void free_pref_icons(void);
186 void load_pref_icons(void);
187
188 GtkWidget *defpref_dialog_new (gint initial_selection);
189
190 #endif
This page took 0.038246 seconds and 3 git commands to generate.