]> Dogcows Code - chaz/homebank/blob - src/enums.h
Merge branch 'upstream'
[chaz/homebank] / src / enums.h
1 /* HomeBank -- Free, easy, personal accounting for everyone.
2 * Copyright (C) 1995-2019 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
84 /* list display transaction (dsp_account) */
85 enum
86 {
87 LST_DSPOPE_DATAS, /* 0 so columns id start at 1 */
88 LST_DSPOPE_STATUS, /* 1 fake column */
89 LST_DSPOPE_DATE, /* 2 fake column */
90 LST_DSPOPE_INFO, /* 3 fake column */
91 LST_DSPOPE_PAYEE, /* 4 fake column */
92 LST_DSPOPE_MEMO, /* 5 fake column */
93 LST_DSPOPE_AMOUNT, /* 6 fake column */
94 LST_DSPOPE_EXPENSE, /* 7 fake column */
95 LST_DSPOPE_INCOME, /* 8 fake column */
96 LST_DSPOPE_CATEGORY,/* 9 fake column */
97 LST_DSPOPE_TAGS, /* 10 fake column */
98 LST_DSPOPE_BALANCE, /* 11 fake column */
99 LST_DSPOPE_CLR, /* 12 fake column */
100 /* here we insert account column, only used for detail */
101 LST_DSPOPE_ACCOUNT, /* 13 fake column : not stored */
102 NUM_LST_DSPOPE
103 };
104
105
106
107 /* csv format validator */
108 enum
109 {
110 CSV_STRING,
111 CSV_DATE,
112 CSV_INT,
113 CSV_DOUBLE
114 };
115
116 enum
117 {
118 PRF_DATEFMT_MDY,
119 PRF_DATEFMT_DMY,
120 PRF_DATEFMT_YMD,
121 NUM_PRF_DATEFMT
122 };
123
124
125 #endif
This page took 0.032801 seconds and 4 git commands to generate.