add gitignore
[chaz/homebank] / src / enums.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2014 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,
99 LST_DSPOPE_STATUS, /* fake column */
100 LST_DSPOPE_DATE, /* fake column */
101 LST_DSPOPE_INFO, /* fake column */
102 LST_DSPOPE_PAYEE, /* fake column */
103 LST_DSPOPE_WORDING, /* fake column */
104 LST_DSPOPE_AMOUNT, /* fake column */
105 LST_DSPOPE_EXPENSE, /* fake column */
106 LST_DSPOPE_INCOME, /* fake column */
107 LST_DSPOPE_CATEGORY, /* fake column */
108 LST_DSPOPE_TAGS, /* fake column */
109 LST_DSPOPE_BALANCE,
110 /* here we insert account column, only used for detail */
111 LST_DSPOPE_ACCOUNT,
112 NUM_LST_DSPOPE
113 };
114
115 /* list_import_transaction */
116 #define LST_OPE_IMPTOGGLE 2
117
118
119
120 /* list define archive (defarchive) */
121 enum
122 {
123 LST_DEFARC_DATAS,
124 LST_DEFARC_OLDPOS,
125 LST_DEFARC_AUTO,
126 NUM_LST_DEFARC
127 };
128
129 /* csv format validator */
130 enum
131 {
132 CSV_STRING,
133 CSV_DATE,
134 CSV_INT,
135 CSV_DOUBLE
136 };
137
138 enum
139 {
140 PRF_DATEFMT_MDY,
141 PRF_DATEFMT_DMY,
142 PRF_DATEFMT_YMD
143 };
144
145
146 #endif
This page took 0.043961 seconds and 4 git commands to generate.