/
constants.h
179 lines (154 loc) · 6.17 KB
/
constants.h
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
//----------------------------------------------------------------------------
// WARNING: The file constants.h is produced by CMake. If you want to make
// some changes in this file please use the templated version
// constants.h.in and rerun cmake to produce a refreshed
// version of constants.h
//
// Note: MMEX version changes are made in the file: ./CMakeLists.txt
//----------------------------------------------------------------------------
/*******************************************************
Copyright (C) 2009 VaDiM
This program 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.
This program 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, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
********************************************************/
#pragma once
#include "defs.h"
//----------------------------------------------------------------------------
class wxString;
extern const wxSizerFlags g_flagsH;
extern const wxSizerFlags g_flagsV;
extern const wxSizerFlags g_flagsBorder1H;
extern const wxSizerFlags g_flagsBorder1V;
extern const wxSizerFlags g_flagsCenter;
extern const wxSizerFlags g_flagsExpand;
extern const wxSizerFlags g_flagsExpandBorder1;
extern const wxString g_CancelLabel;
extern const wxString g_CloseLabel;
namespace mmex
{
extern const int MIN_DATAVERSION;
extern const wxString DATAVERSION;
extern const wxString DEFDATEFORMAT;
extern const wxString DEFDELIMTER;
/*
Uses for titles, reports, etc.
Do not use mmex::GetAppName() for such things.
*/
const wxString getProgramName();
const wxString getTitleProgramVersion();
const wxString getProgramCopyright();
const wxString getProgramDescription();
/*************************************************************************
MMEX_VERSION
Update the version definition for the program as follows:
Version Format = MAJOR.MINOR.PATCH, increment the:
1. MAJOR version when you make incompatible API changes,
2. MINOR version when you add functionality in a backwards-compatible manner, and
3. PATCH version when you make backwards-compatible bug fixes.
Ref: http://semver.org
Alpha, Beta, RC = -1 (Stable) won't add any suffix
Alpha, Beta, RC = 0 (Unstable) will add suffix to version without number
Alpha, Beta, RC > 0 (Unstable) will add suffix to version with number
For Internet Format for update checking read in util.cpp
*************************************************************************/
namespace version
{
const int Major = 1;
const int Minor = 4;
const int Patch = 0;
const int Alpha = 2;
const int Beta = -1;
const int RC = -1;
extern const wxString string;
extern const wxString generateProgramVersion
(int vMajor, int vMinor, int vPatch, int vAlpha, int vBeta, int vRC);
}
namespace weblink
{
const wxString addReferralToURL(const wxString& BaseURL, const wxString& CampSource);
extern const wxString WebSite;
extern const wxString Update;
extern const wxString UpdateLinks;
extern const wxString Changelog;
extern const wxString Download;
extern const wxString News;
extern const wxString NewsRSS;
extern const wxString Forum;
extern const wxString Wiki;
extern const wxString GitHub;
extern const wxString YouTube;
extern const wxString Slack;
extern const wxString BugReport;
extern const wxString Donate;
extern const wxString SquareCashGuan;
extern const wxString Twitter;
extern const wxString Facebook;
extern const wxString YahooQuotes;
extern const wxString YahooQuotesHistory;
extern const wxString BceCurrencyHistory;
extern const wxString DefStockUrl;
extern const wxString GooglePlay;
extern const wxString WebApp;
} // namespace weblink
} // namespace mmex
extern const wxString VIEW_TRANS_ALL_STR;
extern const wxString VIEW_TRANS_TODAY_STR;
extern const wxString VIEW_TRANS_CURRENT_MONTH_STR;
extern const wxString VIEW_TRANS_LAST_30_DAYS_STR;
extern const wxString VIEW_TRANS_LAST_90_DAYS_STR;
extern const wxString VIEW_TRANS_LAST_MONTH_STR;
extern const wxString VIEW_TRANS_LAST_3MONTHS_STR;
extern const wxString VIEW_TRANS_LAST_12MONTHS_STR;
extern const wxString VIEW_TRANS_CURRENT_YEAR_STR;
extern const wxString VIEW_TRANS_CURRENT_FIN_YEAR_STR;
extern const wxString VIEW_TRANS_LAST_YEAR_STR;
extern const wxString VIEW_TRANS_LAST_FIN_YEAR_STR;
extern const wxString VIEW_ACCOUNTS_ALL_STR;
extern const wxString VIEW_ACCOUNTS_OPEN_STR;
extern const wxString VIEW_ACCOUNTS_CLOSED_STR;
extern const wxString VIEW_ACCOUNTS_FAVORITES_STR;
extern const wxString LANGUAGE_PARAMETER;
extern const wxString INIDB_USE_TRANSACTION_SOUND;
extern const wxString INIDB_USE_ORG_DATE_COPYPASTE;
extern const wxString INIDB_SEND_USAGE_STATS;
extern const wxString INIDB_BUDGET_FINANCIAL_YEARS;
extern const wxString INIDB_BUDGET_INCLUDE_TRANSFERS;
extern const wxString INIDB_BUDGET_SETUP_WITHOUT_SUMMARY;
extern const wxString INIDB_BUDGET_SUMMARY_WITHOUT_CATEG;
extern const wxString INIDB_IGNORE_FUTURE_TRANSACTIONS;
extern const wxString ATTACHMENTS_FOLDER_DOCUMENTS;
extern const wxString ATTACHMENTS_FOLDER_DATABASE;
extern const wxString ATTACHMENTS_FOLDER_USERPROFILE;
extern const wxString ATTACHMENTS_FOLDER_APPDATA;
extern const wxString INIDB_NEWS_LAST_READ_DATE;
enum id
{
mmID_HOMEPAGE = wxID_HIGHEST + 1,
mmID_BILLS,
mmID_STOCKS,
mmID_ASSETS,
mmID_BUDGET,
mmID_REPORTS,
mmID_CHECKING,
mmID_BROWSER,
MENU_BILLSDEPOSITS,
MENU_STOCKS,
MENU_GOTOACCOUNT,
MENU_ASSETS,
MENU_VIEW_BUDGET_FINANCIAL_YEARS,
MENU_VIEW_BUDGET_SETUP_SUMMARY,
MENU_VIEW_BUDGET_CATEGORY_SUMMARY,
MENU_VIEW_BUDGET_TRANSFER_TOTAL,
MENU_VIEW_IGNORE_FUTURE_TRANSACTIONS,
MENU_VIEW_TOGGLE_FULLSCREEN,
ID_MMEX_MAX,
};