1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
|
/* HomeBank -- Free, easy, personal accounting for everyone.
* Copyright (C) 1995-2024 Maxime DOYEN
*
* This file is part of HomeBank.
*
* HomeBank is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* HomeBank is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __HB_ENUMS_H__
#define __HB_ENUMS_H__
/*
** paymode pixbuf
*/
#define OLDPAYMODE_INTXFER 5
typedef enum {
DEFAULT,
PREFER_DARK,
PREFER_LIGHT
} ColorScheme;
typedef enum {
HB_STRING_NONE,
HB_STRING_CLIPBOARD,
HB_STRING_PRINT,
HB_STRING_EXPORT
} ToStringMode;
enum
{
PAYMODE_NONE,
PAYMODE_CCARD,
PAYMODE_CHECK,
PAYMODE_CASH,
PAYMODE_XFER,
PAYMODE_OBSOLETEINTXFER,
/* 4.1 new payments here */
PAYMODE_DCARD = 6,
PAYMODE_REPEATPMT,
PAYMODE_EPAYMENT,
PAYMODE_DEPOSIT,
PAYMODE_FEE,
/* 4.6 new paymode */
PAYMODE_DIRECTDEBIT,
/* 5.8 new paymode */
PAYMODE_MOBPHONE,
// PAYMODE_,
NUM_PAYMODE_MAX
};
#define NUM_PAYMODE_KEY 12
/* list display transaction (dsp_account) */
enum
{
//0 is invalid column
LST_DSPOPE_STATUS = 1, /* 1 fake column */
LST_DSPOPE_DATE, /* 2 fake column */
LST_DSPOPE_PAYNUMBER, /* 3 fake column <5.8 xxx_INFO */
LST_DSPOPE_PAYEE, /* 4 fake column */
LST_DSPOPE_MEMO, /* 5 fake column */
LST_DSPOPE_AMOUNT, /* 6 fake column */
LST_DSPOPE_EXPENSE, /* 7 fake column */
LST_DSPOPE_INCOME, /* 8 fake column */
LST_DSPOPE_CATEGORY, /* 9 fake column */
LST_DSPOPE_TAGS, /* 10 fake column */
LST_DSPOPE_BALANCE, /* 11 fake column */
LST_DSPOPE_CLR, /* 12 fake column */
/* here we insert account column, only used for detail */
LST_DSPOPE_ACCOUNT, /* 13 fake column : not stored */
LST_DSPOPE_MATCH, /* 14 fake column : not stored */
LST_DSPOPE_GRPFLAG,
NUM_LST_DSPOPE
};
typedef enum {
GRPFLAG_ANY = -1,
GRPFLAG_NONE = 0,
GRPFLAG_RED = 1,
GRPFLAG_ORANGE,
GRPFLAG_YELLOW,
GRPFLAG_GREEN,
GRPFLAG_BLUE,
GRPFLAG_PURPLE,
NUM_GRPFLAG
} HbGrpFlag;
//sort for various glist
enum {
HB_GLIST_SORT_KEY, //0
HB_GLIST_SORT_NAME, //1
HB_GLIST_SORT_POS //2
};
//
enum {
HB_LIST_QUICK_SELECT_UNSET,
HB_LIST_QUICK_SELECT_ALL,
HB_LIST_QUICK_SELECT_NONE,
HB_LIST_QUICK_SELECT_INVERT
};
//
enum {
PRF_DATEFMT_MDY,
PRF_DATEFMT_DMY,
PRF_DATEFMT_YMD,
NUM_PRF_DATEFMT
};
enum {
PRF_OFXNAME_IGNORE,
PRF_OFXNAME_MEMO,
PRF_OFXNAME_PAYEE,
PRF_OFXNAME_NUMBER
};
enum {
PRF_OFXMEMO_IGNORE,
PRF_OFXMEMO_NUMBER,
PRF_OFXMEMO_MEMO,
PRF_OFXMEMO_PAYEE
};
#define PRF_DTEX_CSVSEP_BUFFER "\t,; "
enum {
PRF_DTEX_CSVSEP_TAB,
PRF_DTEX_CSVSEP_COMMA,
PRF_DTEX_CSVSEP_SEMICOLON,
PRF_DTEX_CSVSEP_SPACE,
};
/*
** list pixbuf (account/transaction)
*//*
enum
{
LST_PIXBUF_ADD,
LST_PIXBUF_EDIT,
LST_PIXBUF_REMIND,
LST_PIXBUF_VALID,
LST_PIXBUF_AUTO,
LST_PIXBUF_WARNING,
NUM_LST_PIXBUF
};*/
/*
** toolbar item type
*//*
enum
{
TOOLBAR_SEPARATOR,
TOOLBAR_BUTTON,
TOOLBAR_TOGGLE
};*/
#endif
|