import homebank-5.1.2
[chaz/homebank] / src / enums.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2016 Maxime DOYEN
3 *
4 * This file is part of HomeBank.
5 *
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.
10 *
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.
15 *
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/>.
18 */
19
20 #ifndef __HB_ENUMS_H__
21 #define __HB_ENUMS_H__
22
23
24 /* hbfile/account/import update flags */
25 enum
26 {
27 UF_TITLE = 1 << 0, //1
28 UF_SENSITIVE = 1 << 1, //2
29 UF_BALANCE = 1 << 2, //4
30 UF_VISUAL = 1 << 3, //8
31 UF_REFRESHALL = 1 << 4 //16
32 };
33
34
35 /*
36 ** list pixbuf (account/transaction)
37 */
38 enum
39 {
40 LST_PIXBUF_ADD,
41 LST_PIXBUF_EDIT,
42 LST_PIXBUF_REMIND,
43 LST_PIXBUF_VALID,
44 LST_PIXBUF_AUTO,
45 LST_PIXBUF_WARNING,
46 NUM_LST_PIXBUF
47 };
48
49 /*
50 ** paymode pixbuf
51 */
52 enum
53 {
54 PAYMODE_NONE,
55 PAYMODE_CCARD,
56 PAYMODE_CHECK,
57 PAYMODE_CASH,
58 PAYMODE_XFER,
59 PAYMODE_INTXFER,
60 /* 4.1 new payments here */
61 PAYMODE_DCARD,
62 PAYMODE_REPEATPMT,
63 PAYMODE_EPAYMENT,
64 PAYMODE_DEPOSIT,
65 PAYMODE_FEE,
66 /* 4.6 new paymode */
67 PAYMODE_DIRECTDEBIT,
68 // PAYMODE_,
69 NUM_PAYMODE_MAX
70 };
71
72 /*
73 ** toolbar item type
74 */
75 enum
76 {
77 TOOLBAR_SEPARATOR,
78 TOOLBAR_BUTTON,
79 TOOLBAR_TOGGLE
80 };
81
82 /*
83 ** scheduled unit
84 */
85 enum
86 {
87 AUTO_UNIT_DAY,
88 AUTO_UNIT_WEEK,
89 AUTO_UNIT_MONTH,
90 //AUTO_UNIT_QUARTER,
91 AUTO_UNIT_YEAR
92 };
93
94
95 /* list display transaction (dsp_account) */
96 enum
97 {
98 LST_DSPOPE_DATAS, /* 0 so columns id start at 1 */
99 LST_DSPOPE_STATUS, /* 1 fake column */
100 LST_DSPOPE_DATE, /* 2 fake column */
101 LST_DSPOPE_INFO, /* 3 fake column */
102 LST_DSPOPE_PAYEE, /* 4 fake column */
103 LST_DSPOPE_WORDING, /* 5 fake column */
104 LST_DSPOPE_AMOUNT, /* 6 fake column */
105 LST_DSPOPE_EXPENSE, /* 7 fake column */
106 LST_DSPOPE_INCOME, /* 8 fake column */
107 LST_DSPOPE_CATEGORY,/* 9 fake column */
108 LST_DSPOPE_TAGS, /* 10 fake column */
109 LST_DSPOPE_BALANCE, /* 11 fake column */
110 LST_DSPOPE_CLR, /* 12 fake column */
111 /* here we insert account column, only used for detail */
112 LST_DSPOPE_ACCOUNT, /* 13 fake column : not stored */
113 NUM_LST_DSPOPE
114 };
115
116 /* list_import_transaction */
117 #define LST_OPE_IMPTOGGLE 2
118
119
120
121 /* list define archive (defarchive) */
122 enum
123 {
124 LST_DEFARC_DATAS,
125 LST_DEFARC_OLDPOS,
126 LST_DEFARC_AUTO,
127 NUM_LST_DEFARC
128 };
129
130 /* csv format validator */
131 enum
132 {
133 CSV_STRING,
134 CSV_DATE,
135 CSV_INT,
136 CSV_DOUBLE
137 };
138
139 enum
140 {
141 PRF_DATEFMT_MDY,
142 PRF_DATEFMT_DMY,
143 PRF_DATEFMT_YMD,
144 NUM_PRF_DATEFMT
145 };
146
147
148 #endif
This page took 0.044751 seconds and 4 git commands to generate.