1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2018 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"
25 #define DEFAULT_FORMAT_DATE "%x"
27 #define MAX_FRAC_DIGIT 6
30 #define LIGHT_EXP_COLOR "#fcaf3e" //Orange
31 #define LIGHT_INC_COLOR "#8ae234" //Chameleon
32 #define LIGHT_WARN_COLOR "#ef2929" //Scarlett Red
35 #define MEDIUM_EXP_COLOR "#f57900" //Orange
36 #define MEDIUM_INC_COLOR "#73d216" //Chameleon
37 #define MEDIUM_WARN_COLOR "#cc0000" //Scarlett Red
40 #define DEFAULT_EXP_COLOR "#ce5c00" //Orange
41 #define DEFAULT_INC_COLOR "#4e9a36" //Chameleon
42 #define DEFAULT_WARN_COLOR "#a40000" //Scarlett Red
59 gboolean appendscheduled
;
60 gboolean do_update_currency
;
62 gshort fisc_year_month
;
69 //gboolean rules_hint;
71 gboolean custom_colors
;
78 gint date_future_nbdays
;
79 gboolean hidereconciled
;
82 gint lst_ope_columns
[NUM_LST_DSPOPE
+1];
83 gint lst_ope_col_size
[NUM_LST_DSPOPE
+1];
84 gint lst_ope_sort_id
; // -- implicit --
85 gint lst_ope_sort_order
; // -- implicit --
89 gchar IntCurrSymbol
[8];
90 gboolean vehicle_unit_ismile
; // true if unit is mile, default Km
91 gboolean vehicle_unit_isgal
; // true if unit is gallon, default Liter
93 //data exchange options
94 gboolean dtex_nointro
;
98 gboolean dtex_qifmemo
;
99 gboolean dtex_qifswap
;
105 gint report_color_scheme
;
106 gboolean stat_byamount
;
107 gboolean stat_showrate
;
108 gboolean stat_showdetail
;
109 gboolean budg_showdetail
;
112 gboolean euro_active
;
118 //gboolean chart_legend;
120 /* windows/dialogs size an position */
121 struct WinGeometry wal_wg
;
122 struct WinGeometry acc_wg
;
124 struct WinGeometry sta_wg
;
125 struct WinGeometry tme_wg
;
126 struct WinGeometry ove_wg
;
127 struct WinGeometry bud_wg
;
128 struct WinGeometry cst_wg
;
130 struct WinGeometry txn_wg
;
132 // main window stuffs
133 gboolean wal_toolbar
;
134 gboolean wal_spending
;
135 gboolean wal_upcoming
;
141 gshort pnl_acc_col_acc_width
;
142 gshort pnl_acc_show_by
;
143 gshort pnl_upc_col_pay_width
;
144 gshort pnl_upc_col_mem_width
;
147 //vehiclecost units (mile/gal or km/liters)
149 gchar
*vehicle_unit_dist
;
150 gchar
*vehicle_unit_vol
;
151 gchar
*vehicle_unit_100
;
152 gchar
*vehicle_unit_distbyvol
;
157 void homebank_prefs_set_default(void);
158 void homebank_pref_free(void);
159 void homebank_pref_createformat(void);
160 void homebank_pref_init_measurement_units(void);
161 gboolean
homebank_pref_load(void);
162 gboolean
homebank_pref_save(void);
163 void homebank_pref_setdefault(void);