X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fhomebank;a=blobdiff_plain;f=src%2Fhb-preferences.h;h=2dddc2f1c84182090a136acd3d557e009c36f940;hp=a9ac1e77ae4330c2fe4b05195a06683774b437fc;hb=5499ff44ef50b751b58f27fd13594f7dd4f959b7;hpb=996fa4ab9f6b836001f8ad0eecbfd3821687fea7 diff --git a/src/hb-preferences.h b/src/hb-preferences.h index a9ac1e7..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-2016 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 -- - - //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 + gboolean txn_memoacp; + gshort txn_memoacp_days; - //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,12 +132,20 @@ 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; + struct WinGeometry sta_wg; struct WinGeometry tme_wg; struct WinGeometry ove_wg; @@ -128,6 +154,7 @@ struct Preferences struct WinGeometry txn_wg; + // main window stuffs gboolean wal_toolbar; gboolean wal_spending; gboolean wal_upcoming; @@ -135,6 +162,13 @@ struct Preferences gint wal_vpaned; gint wal_hpaned; + //home panel + gshort pnl_acc_col_acc_width; + 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) gchar *vehicle_unit_dist;