X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhb-preferences.h;h=2dddc2f1c84182090a136acd3d557e009c36f940;hp=cf7e1a30da518d5d557ad9b23d4fb03accab09fc;hb=5499ff44ef50b751b58f27fd13594f7dd4f959b7;hpb=cd13d9691c46c2b2d6d459e9e6a76bed1c21b7a6 diff --git a/src/hb-preferences.h b/src/hb-preferences.h index cf7e1a3..2dddc2f 100644 --- a/src/hb-preferences.h +++ b/src/hb-preferences.h @@ -1,5 +1,5 @@ /* HomeBank -- Free, easy, personal accounting for everyone. - * Copyright (C) 1995-2018 Maxime DOYEN + * Copyright (C) 1995-2019 Maxime DOYEN * * This file is part of HomeBank. * @@ -22,6 +22,7 @@ #include "hb-currency.h" + #define DEFAULT_FORMAT_DATE "%x" #define MAX_FRAC_DIGIT 6 @@ -41,6 +42,16 @@ #define DEFAULT_INC_COLOR "#4e9a36" //Chameleon #define DEFAULT_WARN_COLOR "#a40000" //Scarlett Red + +#define PRF_DTEX_CSVSEP_BUFFER "\t,; " +enum { + PRF_DTEX_CSVSEP_TAB, + PRF_DTEX_CSVSEP_COMMA, + PRF_DTEX_CSVSEP_SEMICOLON, + PRF_DTEX_CSVSEP_SPACE, +}; + + /* ** Preference datas */ @@ -58,47 +69,43 @@ struct Preferences 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; + + gboolean icon_symbolic; gshort grid_lines; gboolean custom_colors; gchar *color_exp; gchar *color_inc; gchar *color_warn; + //locale + gchar *language; + gchar *date_format; + gshort fisc_year_day; + gshort fisc_year_month; + gboolean vehicle_unit_ismile; // true if unit is mile, default Km + gboolean vehicle_unit_isgal; // true if unit is gallon, default Liter + //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 -- + gboolean txn_memoacp; + gshort txn_memoacp_days; - //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; + //import/export gint dtex_datefmt; gint dtex_ofxname; gint dtex_ofxmemo; gboolean dtex_qifmemo; gboolean dtex_qifswap; - gchar *path_import; - gchar *path_export; + gboolean dtex_ucfirst; + gint dtex_csvsep; //report options gint date_range_rep; @@ -106,7 +113,18 @@ struct Preferences gboolean stat_byamount; gboolean stat_showrate; gboolean stat_showdetail; - gboolean budg_showdetail; + gboolean budg_showdetail; + + //backup option + gboolean bak_is_automatic; + gshort bak_max_num_copies; + + //folders + gchar *path_hbfile; + + gchar *path_import; + gchar *path_export; + gchar *path_attach; //euro zone gboolean euro_active; @@ -114,9 +132,16 @@ struct Preferences gdouble euro_value; Currency minor_cur; - //chart options - //gboolean chart_legend; + //---- others data ----- + gboolean dtex_nointro; + gchar IntCurrSymbol[8]; + gint lst_impope_columns[NUM_LST_DSPOPE+1]; + gint lst_ope_columns[NUM_LST_DSPOPE+1]; + gint lst_ope_col_width[NUM_LST_DSPOPE+1]; + gint lst_ope_sort_id; // -- implicit -- + gint lst_ope_sort_order; // -- implicit -- + /* windows/dialogs size an position */ struct WinGeometry wal_wg; struct WinGeometry acc_wg; @@ -142,7 +167,7 @@ struct Preferences gshort pnl_acc_show_by; gshort pnl_upc_col_pay_width; gshort pnl_upc_col_mem_width; - + gchar *pnl_list_tab; //vehiclecost units (mile/gal or km/liters)