/* 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.
*
#include "hb-currency.h"
+
#define DEFAULT_FORMAT_DATE "%x"
#define MAX_FRAC_DIGIT 6
#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
*/
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;
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;
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;
struct WinGeometry txn_wg;
+ // main window stuffs
gboolean wal_toolbar;
gboolean wal_spending;
gboolean wal_upcoming;
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;