]> Dogcows Code - chaz/homebank/blob - src/ui-pref.h
import homebank-5.2.4
[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
134 gint country;
135
136 };
137
138
139 typedef struct
140 {
141 gchar *locale;
142 gchar *name;
143 } LangName;
144
145
146 typedef struct
147 {
148 gshort id;
149 gchar *iso;
150 gchar *name;
151 gdouble value;
152 //gchar *prefix_symbol; /* max symbol is 3 digits in unicode */
153 //gchar *suffix_symbol; /* but mostly is 1 digit */
154 gchar *symbol;
155 gboolean sym_prefix;
156 gchar *decimal_char;
157 gchar *grouping_char;
158 gshort frac_digits;
159 } EuroParams;
160
161
162 enum {
163 PRF_PATH_WALLET,
164 PRF_PATH_IMPORT,
165 PRF_PATH_EXPORT,
166 };
167
168 void free_pref_icons(void);
169 void load_pref_icons(void);
170
171 GtkWidget *defpref_dialog_new (void);
172
173 #endif
This page took 0.038957 seconds and 4 git commands to generate.