1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 Maxime DOYEN
4 * This file is part of HomeBank.
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.
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.
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/>.
20 #ifndef __HB_PREFERENCES_H__
21 #define __HB_PREFERENCES_H__
23 #include "hb-currency.h"
26 #define DEFAULT_FORMAT_DATE "%x"
28 #define MAX_FRAC_DIGIT 6
31 #define LIGHT_EXP_COLOR "#fcaf3e" //Orange
32 #define LIGHT_INC_COLOR "#8ae234" //Chameleon
33 #define LIGHT_WARN_COLOR "#ef2929" //Scarlett Red
36 #define MEDIUM_EXP_COLOR "#f57900" //Orange
37 #define MEDIUM_INC_COLOR "#73d216" //Chameleon
38 #define MEDIUM_WARN_COLOR "#cc0000" //Scarlett Red
41 #define DEFAULT_EXP_COLOR "#ce5c00" //Orange
42 #define DEFAULT_INC_COLOR "#4e9a36" //Chameleon
43 #define DEFAULT_WARN_COLOR "#a40000" //Scarlett Red
46 #define PRF_DTEX_CSVSEP_BUFFER "\t,; "
49 PRF_DTEX_CSVSEP_COMMA
,
50 PRF_DTEX_CSVSEP_SEMICOLON
,
51 PRF_DTEX_CSVSEP_SPACE
,
70 gboolean appendscheduled
;
71 gboolean do_update_currency
;
77 gboolean icon_symbolic
;
79 gboolean custom_colors
;
88 gshort fisc_year_month
;
89 gboolean vehicle_unit_ismile
; // true if unit is mile, default Km
90 gboolean vehicle_unit_isgal
; // true if unit is gallon, default Liter
94 gint date_future_nbdays
;
95 gboolean hidereconciled
;
99 gshort txn_memoacp_days
;
105 gboolean dtex_qifmemo
;
106 gboolean dtex_qifswap
;
107 gboolean dtex_ucfirst
;
112 gint report_color_scheme
;
113 gboolean stat_byamount
;
114 gboolean stat_showrate
;
115 gboolean stat_showdetail
;
116 gboolean budg_showdetail
;
119 gboolean bak_is_automatic
;
120 gshort bak_max_num_copies
;
130 gboolean euro_active
;
136 //---- others data -----
137 gboolean dtex_nointro
;
138 gchar IntCurrSymbol
[8];
139 gint lst_impope_columns
[NUM_LST_DSPOPE
+1];
140 gint lst_ope_columns
[NUM_LST_DSPOPE
+1];
141 gint lst_ope_col_width
[NUM_LST_DSPOPE
+1];
142 gint lst_ope_sort_id
; // -- implicit --
143 gint lst_ope_sort_order
; // -- implicit --
145 /* windows/dialogs size an position */
146 struct WinGeometry wal_wg
;
147 struct WinGeometry acc_wg
;
149 struct WinGeometry sta_wg
;
150 struct WinGeometry tme_wg
;
151 struct WinGeometry ove_wg
;
152 struct WinGeometry bud_wg
;
153 struct WinGeometry cst_wg
;
155 struct WinGeometry txn_wg
;
157 // main window stuffs
158 gboolean wal_toolbar
;
159 gboolean wal_spending
;
160 gboolean wal_upcoming
;
166 gshort pnl_acc_col_acc_width
;
167 gshort pnl_acc_show_by
;
168 gshort pnl_upc_col_pay_width
;
169 gshort pnl_upc_col_mem_width
;
172 //vehiclecost units (mile/gal or km/liters)
174 gchar
*vehicle_unit_dist
;
175 gchar
*vehicle_unit_vol
;
176 gchar
*vehicle_unit_100
;
177 gchar
*vehicle_unit_distbyvol
;
182 void homebank_prefs_set_default(void);
183 void homebank_pref_free(void);
184 void homebank_pref_createformat(void);
185 void homebank_pref_init_measurement_units(void);
186 gboolean
homebank_pref_load(void);
187 gboolean
homebank_pref_save(void);
188 void homebank_pref_setdefault(void);