Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/xml/mymoneystoragenames.h
Show All 20 Lines | |||||
21 | // ---------------------------------------------------------------------------- | 21 | // ---------------------------------------------------------------------------- | ||
22 | // QT Includes | 22 | // QT Includes | ||
23 | 23 | | |||
24 | #include <QHash> | 24 | #include <QHash> | ||
25 | 25 | | |||
26 | // ---------------------------------------------------------------------------- | 26 | // ---------------------------------------------------------------------------- | ||
27 | // Project Includes | 27 | // Project Includes | ||
28 | 28 | | |||
29 | namespace MyMoneyStorageTags { | | |||
30 | | ||||
31 | enum tagNameE { tnInstitutions, tnPayees, tnCostCenters, | | |||
32 | tnTags, tnAccounts, tnTransactions, | | |||
33 | tnSchedules, tnSecurities, tnCurrencies, | | |||
34 | tnPrices, tnReports, tnBudgets, tnOnlineJobs, | | |||
35 | tnKMMFile, tnFileInfo, tnUser | | |||
36 | }; | | |||
37 | | ||||
38 | extern const QHash<tagNameE, QString> tagNames; | | |||
39 | } | | |||
40 | | ||||
41 | namespace MyMoneyStorageNodes { | | |||
42 | | ||||
43 | enum ndNameE { nnInstitution, nnPayee, nnCostCenter, | | |||
44 | nnTag, nnAccount, nnTransaction, | | |||
45 | nnScheduleTX, nnSecurity, nnCurrency, | | |||
46 | nnPrice, nnPricePair, nnReport, nnBudget, nnOnlineJob, | | |||
47 | nnKeyValuePairs, nnEquity | | |||
48 | }; | | |||
49 | | ||||
50 | extern const QHash<ndNameE, QString> nodeNames; | | |||
51 | } | | |||
52 | | ||||
53 | namespace MyMoneyStorageAttributes { | | |||
54 | | ||||
55 | enum attrNameE { anID, anDate, anCount, anFrom, anTo, | | |||
56 | anSource, anKey, anValue, anPrice, | | |||
57 | anName, anEmail, anCountry, anCity, | | |||
58 | anZipCode, anStreet, anTelephone | | |||
59 | }; | | |||
60 | | ||||
61 | extern const QHash<attrNameE, QString> attrNames; | | |||
62 | } | | |||
63 | | ||||
64 | namespace MyMoneyStandardAccounts { | | |||
65 | | ||||
66 | enum idNameE { stdAccLiability, stdAccAsset, stdAccExpense, stdAccIncome, stdAccEquity }; | | |||
67 | | ||||
68 | extern const QHash<idNameE, QString> stdAccNames; | | |||
69 | } | | |||
70 | | ||||
71 | enum class StdAccName { | | |||
72 | Liability, | | |||
73 | Asset, | | |||
74 | Expense, | | |||
75 | Income, | | |||
76 | Equity | | |||
77 | }; | | |||
78 | | ||||
79 | enum class Tag { | 29 | enum class Tag { | ||
80 | Institutions, | 30 | Institutions, | ||
81 | Payees, | 31 | Payees, | ||
82 | CostCenters, | 32 | CostCenters, | ||
83 | Tags, | 33 | Tags, | ||
84 | Accounts, | 34 | Accounts, | ||
85 | Transactions, | 35 | Transactions, | ||
86 | Schedules, | 36 | Schedules, | ||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 68 | namespace Element { | |||
153 | }; | 103 | }; | ||
154 | 104 | | |||
155 | enum class Institution { | 105 | enum class Institution { | ||
156 | AccountID, | 106 | AccountID, | ||
157 | AccountIDS, | 107 | AccountIDS, | ||
158 | Address | 108 | Address | ||
159 | }; | 109 | }; | ||
160 | 110 | | |||
161 | enum class Report { | | |||
162 | Payee, | | |||
163 | Tag, | | |||
164 | Account, | | |||
165 | Text, | | |||
166 | Type, | | |||
167 | State, | | |||
168 | Number, | | |||
169 | Amount, | | |||
170 | Dates, | | |||
171 | Category, | | |||
172 | AccountGroup | | |||
173 | }; | | |||
174 | | ||||
175 | enum class Budget { | | |||
176 | Budget = 0, | | |||
177 | Account, | | |||
178 | Period | | |||
179 | }; | | |||
180 | | ||||
181 | enum class Schedule { | 111 | enum class Schedule { | ||
182 | Payment, | 112 | Payment, | ||
183 | Payments | 113 | Payments | ||
184 | }; | 114 | }; | ||
185 | 115 | | |||
186 | enum class OnlineJob { | 116 | enum class OnlineJob { | ||
187 | OnlineTask | 117 | OnlineTask | ||
188 | }; | 118 | }; | ||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 248 | enum class Institution { | |||
323 | Street, | 253 | Street, | ||
324 | City, | 254 | City, | ||
325 | Zip, | 255 | Zip, | ||
326 | Telephone, | 256 | Telephone, | ||
327 | // insert new entries above this line | 257 | // insert new entries above this line | ||
328 | LastAttribute | 258 | LastAttribute | ||
329 | }; | 259 | }; | ||
330 | 260 | | |||
331 | enum class Report { | | |||
332 | ID = 0, Group, Type, Name, Comment, ConvertCurrency, Favorite, | | |||
333 | SkipZero, DateLock, DataLock, MovingAverageDays, | | |||
334 | IncludesActuals, IncludesForecast, IncludesPrice, | | |||
335 | IncludesAveragePrice, IncludesMovingAverage, | | |||
336 | IncludesSchedules, IncludesTransfers, IncludesUnused, | | |||
337 | MixedTime, Investments, Budget, | | |||
338 | ShowRowTotals, ShowColumnTotals, Detail, | | |||
339 | ColumnsAreDays, ChartType, | | |||
340 | ChartCHGridLines, ChartSVGridLines, | | |||
341 | ChartDataLabels, ChartByDefault, | | |||
342 | LogYAxis, ChartLineWidth, ColumnType, RowType, | | |||
343 | DataRangeStart, DataRangeEnd, | | |||
344 | DataMajorTick, DataMinorTick, | | |||
345 | YLabelsPrecision, QueryColumns, | | |||
346 | Tax, Loans, HideTransactions, InvestmentSum, | | |||
347 | SettlementPeriod, ShowSTLTCapitalGains, TermsSeparator, | | |||
348 | Pattern, CaseSensitive, RegEx, InvertText, State, | | |||
349 | From, To, | | |||
350 | // insert new entries above this line | | |||
351 | LastAttribute | | |||
352 | }; | | |||
353 | | ||||
354 | enum class Budget { | | |||
355 | ID = 0, | | |||
356 | Name, | | |||
357 | Start, | | |||
358 | Version, | | |||
359 | BudgetLevel, | | |||
360 | BudgetSubAccounts, | | |||
361 | Amount, | | |||
362 | // insert new entries above this line | | |||
363 | LastAttribute | | |||
364 | }; | | |||
365 | | ||||
366 | enum class Schedule { | 261 | enum class Schedule { | ||
367 | ID = 0, | 262 | ID = 0, | ||
368 | Name, | 263 | Name, | ||
369 | Type, | 264 | Type, | ||
370 | Occurrence, | 265 | Occurrence, | ||
371 | OccurrenceMultiplier, | 266 | OccurrenceMultiplier, | ||
372 | PaymentType, | 267 | PaymentType, | ||
373 | Fixed, | 268 | Fixed, | ||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
424 | QString attributeName(Attribute::Security attributeID); | 319 | QString attributeName(Attribute::Security attributeID); | ||
425 | 320 | | |||
426 | QString elementName(Element::KVP elementID); | 321 | QString elementName(Element::KVP elementID); | ||
427 | QString attributeName(Attribute::KVP attributeID); | 322 | QString attributeName(Attribute::KVP attributeID); | ||
428 | 323 | | |||
429 | QString elementName(Element::Institution elementID); | 324 | QString elementName(Element::Institution elementID); | ||
430 | QString attributeName(Attribute::Institution attributeID); | 325 | QString attributeName(Attribute::Institution attributeID); | ||
431 | 326 | | |||
432 | QString elementName(Element::Report elementID); | | |||
433 | QString attributeName(Attribute::Report attributeID); | | |||
434 | | ||||
435 | QString elementName(Element::Budget elementID); | | |||
436 | QString attributeName(Attribute::Budget attributeID); | | |||
437 | | ||||
438 | QString elementName(Element::Schedule elementID); | 327 | QString elementName(Element::Schedule elementID); | ||
439 | QString attributeName(Attribute::Schedule attributeID); | 328 | QString attributeName(Attribute::Schedule attributeID); | ||
440 | 329 | | |||
441 | QString elementName(Element::OnlineJob elementID); | 330 | QString elementName(Element::OnlineJob elementID); | ||
442 | QString attributeName(Attribute::OnlineJob attributeID); | 331 | QString attributeName(Attribute::OnlineJob attributeID); | ||
443 | 332 | | |||
444 | QString attributeName(Attribute::CostCenter attributeID); | 333 | QString attributeName(Attribute::CostCenter attributeID); | ||
445 | 334 | | |||
446 | QString stdAccName(StdAccName stdAccID); | | |||
447 | QString tagName(Tag tagID); | 335 | QString tagName(Tag tagID); | ||
448 | QString nodeName(Node nodeID); | 336 | QString nodeName(Node nodeID); | ||
449 | 337 | | |||
450 | namespace eMyMoney { namespace Budget { enum class Level; } } | | |||
451 | | ||||
452 | namespace eMyMoney { namespace Report { enum class RowType; } } | | |||
453 | namespace eMyMoney { namespace Report { enum class ColumnType; } } | | |||
454 | namespace eMyMoney { namespace Report { enum QueryColumn : int; } } | | |||
455 | namespace eMyMoney { namespace Report { enum class ChartType; } } | | |||
456 | namespace eMyMoney { namespace Report { enum class DataLock; } } | | |||
457 | namespace eMyMoney { namespace Report { enum class ReportType; } } | | |||
458 | namespace eMyMoney { namespace Report { enum class DetailLevel; } } | | |||
459 | | ||||
460 | QHash<eMyMoney::Budget::Level, QString> budgetLevelsLUT(); | | |||
461 | QString budgetLevels(eMyMoney::Budget::Level textID); | | |||
462 | | ||||
463 | QHash<eMyMoney::Report::RowType, QString> rowTypesLUT(); | | |||
464 | QString reportNames(eMyMoney::Report::RowType textID); | | |||
465 | eMyMoney::Report::RowType stringToRowType(const QString &text); | | |||
466 | QHash<eMyMoney::Report::ColumnType, QString> columTypesLUT(); | | |||
467 | QString reportNames(eMyMoney::Report::ColumnType textID); | | |||
468 | eMyMoney::Report::ColumnType stringToColumnType(const QString &text); | | |||
469 | QHash<eMyMoney::Report::QueryColumn, QString> queryColumnsLUT(); | | |||
470 | QString reportNamesForQC(eMyMoney::Report::QueryColumn textID); | | |||
471 | eMyMoney::Report::QueryColumn stringToQueryColumn(const QString &text); | | |||
472 | QHash<eMyMoney::Report::DetailLevel, QString> detailLevelLUT(); | | |||
473 | QString reportNames(eMyMoney::Report::DetailLevel textID); | | |||
474 | eMyMoney::Report::DetailLevel stringToDetailLevel(const QString &text); | | |||
475 | QHash<eMyMoney::Report::ChartType, QString> chartTypeLUT(); | | |||
476 | QString reportNames(eMyMoney::Report::ChartType textID); | | |||
477 | eMyMoney::Report::ChartType stringToChartType(const QString &text); | | |||
478 | QHash<int, QString> typeAttributeLUT(); | | |||
479 | QString typeAttributeToString(int textID); | | |||
480 | int stringToTypeAttribute(const QString &text); | | |||
481 | QHash<int, QString> stateAttributeLUT(); | | |||
482 | QString stateAttributeToString(int textID); | | |||
483 | int stringToStateAttribute(const QString &text); | | |||
484 | QHash<int, QString> dateLockLUT(); | | |||
485 | QString dateLockAttributeToString(int textID); | | |||
486 | int stringToDateLockAttribute(const QString &text); | | |||
487 | QHash<eMyMoney::Report::DataLock, QString> dataLockLUT(); | | |||
488 | QString reportNames(eMyMoney::Report::DataLock textID); | | |||
489 | eMyMoney::Report::DataLock stringToDataLockAttribute(const QString &text); | | |||
490 | QHash<int, QString> accountTypeAttributeLUT(); | | |||
491 | QString accountTypeAttributeToString(int textID); | | |||
492 | int stringToAccountTypeAttribute(const QString &text); | | |||
493 | eMyMoney::Report::ReportType rowTypeToReportType(eMyMoney::Report::RowType rowType); | | |||
494 | | ||||
495 | namespace eMyMoney { namespace Budget { enum class Level; } } | | |||
496 | | ||||
497 | QHash<eMyMoney::Budget::Level, QString> budgetLevelLUT(); | | |||
498 | QString budgetNames(eMyMoney::Budget::Level textID); | | |||
499 | eMyMoney::Budget::Level stringToBudgetLevel(const QString &text); | | |||
500 | | ||||
501 | #endif | 338 | #endif |