/* HomeBank -- Free, easy, personal accounting for everyone. * Copyright (C) 1995-2016 Maxime DOYEN * * This file is part of HomeBank. * * HomeBank is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * HomeBank is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef __HB_PREFERENCES_H__ #define __HB_PREFERENCES_H__ #include "hb-currency.h" #define DEFAULT_FORMAT_DATE "%x" #define MAX_FRAC_DIGIT 6 //Tango light #define LIGHT_EXP_COLOR "#fcaf3e" //Orange #define LIGHT_INC_COLOR "#8ae234" //Chameleon #define LIGHT_WARN_COLOR "#ef2929" //Scarlett Red //Tango medium #define MEDIUM_EXP_COLOR "#f57900" //Orange #define MEDIUM_INC_COLOR "#73d216" //Chameleon #define MEDIUM_WARN_COLOR "#cc0000" //Scarlett Red //Tango dark #define DEFAULT_EXP_COLOR "#ce5c00" //Orange #define DEFAULT_INC_COLOR "#4e9a36" //Chameleon #define DEFAULT_WARN_COLOR "#a40000" //Scarlett Red /* ** Preference datas */ struct WinGeometry { gint l, t, w, h, s; }; struct Preferences { //general gboolean showsplash; gboolean loadlast; gboolean appendscheduled; gboolean do_update_currency; gshort fisc_year_day; gshort fisc_year_month; gint date_range_wal; gchar *path_hbfile; //interface gchar *language; gshort toolbar_style; //gboolean rules_hint; gshort grid_lines; gboolean custom_colors; gchar *color_exp; gchar *color_inc; gchar *color_warn; //transactions gint date_range_txn; gint date_future_nbdays; gboolean hidereconciled; gboolean showremind; gboolean heritdate; gint lst_ope_columns[NUM_LST_DSPOPE+1]; gint lst_ope_col_size[NUM_LST_DSPOPE+1]; gint lst_ope_sort_id; // -- implicit -- gint lst_ope_sort_order; // -- implicit -- //display format gchar *date_format; gchar IntCurrSymbol[8]; gboolean vehicle_unit_ismile; // true if unit is mile, default Km gboolean vehicle_unit_isgal; // true if unit is gallon, default Liter //data exchange options gboolean dtex_nointro; gint dtex_datefmt; gint dtex_ofxname; gint dtex_ofxmemo; gboolean dtex_qifmemo; gboolean dtex_qifswap; gchar *path_import; gchar *path_export; //report options gint date_range_rep; gint report_color_scheme; gboolean stat_byamount; gboolean stat_showrate; gboolean stat_showdetail; gboolean budg_showdetail; //euro zone gboolean euro_active; gint euro_country; gdouble euro_value; Currency minor_cur; //chart options //gboolean chart_legend; /* windows/dialogs size an position */ struct WinGeometry wal_wg; struct WinGeometry acc_wg; struct WinGeometry sta_wg; struct WinGeometry tme_wg; struct WinGeometry ove_wg; struct WinGeometry bud_wg; struct WinGeometry cst_wg; struct WinGeometry txn_wg; gboolean wal_toolbar; gboolean wal_spending; gboolean wal_upcoming; gint wal_vpaned; gint wal_hpaned; //vehiclecost units (mile/gal or km/liters) gchar *vehicle_unit_dist; gchar *vehicle_unit_vol; gchar *vehicle_unit_100; gchar *vehicle_unit_distbyvol; }; void homebank_prefs_set_default(void); void homebank_pref_free(void); void homebank_pref_createformat(void); void homebank_pref_init_measurement_units(void); gboolean homebank_pref_load(void); gboolean homebank_pref_save(void); void homebank_pref_setdefault(void); #endif