Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/mymoney/mymoneyreport.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 57 | public: | |||
---|---|---|---|---|---|
60 | enum EReportType { eNoReport = 0, ePivotTable, eQueryTable, eInfoTable }; | 60 | enum EReportType { eNoReport = 0, ePivotTable, eQueryTable, eInfoTable }; | ||
61 | enum EColumnType { eNoColumns = 0, eDays = 1, eMonths = 1, eBiMonths = 2, eQuarters = 3, eWeeks = 7, eYears = 12 }; | 61 | enum EColumnType { eNoColumns = 0, eDays = 1, eMonths = 1, eBiMonths = 2, eQuarters = 3, eWeeks = 7, eYears = 12 }; | ||
62 | 62 | | |||
63 | // if you add bits to this bitmask, start with the value currently assigned to eQCend and update its value afterwards | 63 | // if you add bits to this bitmask, start with the value currently assigned to eQCend and update its value afterwards | ||
64 | // also don't forget to add column names to kQueryColumnsText in mymoneyreport.cpp | 64 | // also don't forget to add column names to kQueryColumnsText in mymoneyreport.cpp | ||
65 | enum EQueryColumns { eQCnone = 0x0, eQCbegin = 0x1, eQCnumber = 0x1, eQCpayee = 0x2, eQCcategory = 0x4, eQCtag = 0x8, eQCmemo = 0x10, eQCaccount = 0x20, eQCreconciled = 0x40, eQCaction = 0x80, eQCshares = 0x100, eQCprice = 0x200, eQCperformance = 0x400, eQCloan = 0x800, eQCbalance = 0x1000, eQCcapitalgain = 0x2000, eQCend = 0x4000 }; | 65 | enum EQueryColumns { eQCnone = 0x0, eQCbegin = 0x1, eQCnumber = 0x1, eQCpayee = 0x2, eQCcategory = 0x4, eQCtag = 0x8, eQCmemo = 0x10, eQCaccount = 0x20, eQCreconciled = 0x40, eQCaction = 0x80, eQCshares = 0x100, eQCprice = 0x200, eQCperformance = 0x400, eQCloan = 0x800, eQCbalance = 0x1000, eQCcapitalgain = 0x2000, eQCend = 0x4000 }; | ||
66 | 66 | | |||
67 | enum EDetailLevel { eDetailNone = 0, eDetailAll, eDetailTop, eDetailGroup, eDetailTotal, eDetailEnd }; | 67 | enum EDetailLevel { eDetailNone = 0, eDetailAll, eDetailTop, eDetailGroup, eDetailTotal, eDetailEnd }; | ||
68 | enum EInvestmentSum { eSumPeriod = 0, eSumOwnedAndSold, eSumOwned, eSumSold, eSumBought}; | ||||
68 | enum EChartType { eChartNone = 0, eChartLine, eChartBar, eChartPie, eChartRing, eChartStackedBar, eChartEnd }; | 69 | enum EChartType { eChartNone = 0, eChartLine, eChartBar, eChartPie, eChartRing, eChartStackedBar, eChartEnd }; | ||
69 | 70 | | |||
70 | enum dataOptionE { automatic = 0, userDefined, dataOptionCount }; | 71 | enum dataOptionE { automatic = 0, userDefined, dataOptionCount }; | ||
71 | 72 | | |||
72 | static const QStringList kRowTypeText; | 73 | static const QStringList kRowTypeText; | ||
73 | static const QStringList kColumnTypeText; | 74 | static const QStringList kColumnTypeText; | ||
74 | static const QStringList kQueryColumnsText; | 75 | static const QStringList kQueryColumnsText; | ||
75 | static const QStringList kDetailLevelText; | 76 | static const QStringList kDetailLevelText; | ||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | 135 | bool isInvestmentsOnly() const { | |||
135 | return m_investments; | 136 | return m_investments; | ||
136 | } | 137 | } | ||
137 | bool isLoansOnly() const { | 138 | bool isLoansOnly() const { | ||
138 | return m_loans; | 139 | return m_loans; | ||
139 | } | 140 | } | ||
140 | EDetailLevel detailLevel() const { | 141 | EDetailLevel detailLevel() const { | ||
141 | return m_detailLevel; | 142 | return m_detailLevel; | ||
142 | } | 143 | } | ||
144 | EInvestmentSum investmentSum() const { | ||||
145 | return m_investmentSum; | ||||
146 | } | ||||
143 | bool isHideTransactions() const { | 147 | bool isHideTransactions() const { | ||
144 | return m_hideTransactions; | 148 | return m_hideTransactions; | ||
145 | } | 149 | } | ||
146 | EChartType chartType() const { | 150 | EChartType chartType() const { | ||
147 | return m_chartType; | 151 | return m_chartType; | ||
148 | } | 152 | } | ||
149 | bool isChartDataLabels() const { | 153 | bool isChartDataLabels() const { | ||
150 | return m_chartDataLabels; | 154 | return m_chartDataLabels; | ||
▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 276 | void setInvestmentsOnly(bool _f) { | |||
273 | m_investments = _f; if (_f) m_loans = false; | 277 | m_investments = _f; if (_f) m_loans = false; | ||
274 | } | 278 | } | ||
275 | void setLoansOnly(bool _f) { | 279 | void setLoansOnly(bool _f) { | ||
276 | m_loans = _f; if (_f) m_investments = false; | 280 | m_loans = _f; if (_f) m_investments = false; | ||
277 | } | 281 | } | ||
278 | void setDetailLevel(EDetailLevel _detail) { | 282 | void setDetailLevel(EDetailLevel _detail) { | ||
279 | m_detailLevel = _detail; | 283 | m_detailLevel = _detail; | ||
280 | } | 284 | } | ||
285 | void setInvestmentSum(EInvestmentSum _sum) { | ||||
286 | m_investmentSum = _sum; | ||||
287 | } | ||||
281 | void setHideTransactions(bool _f) { | 288 | void setHideTransactions(bool _f) { | ||
282 | m_hideTransactions = _f; | 289 | m_hideTransactions = _f; | ||
283 | } | 290 | } | ||
284 | void setChartType(EChartType _type) { | 291 | void setChartType(EChartType _type) { | ||
285 | m_chartType = _type; | 292 | m_chartType = _type; | ||
286 | } | 293 | } | ||
287 | void setChartDataLabels(bool _f) { | 294 | void setChartDataLabels(bool _f) { | ||
288 | m_chartDataLabels = _f; | 295 | m_chartDataLabels = _f; | ||
▲ Show 20 Lines • Show All 298 Lines • ▼ Show 20 Line(s) | 592 | /** | |||
587 | * should be assigned by the UI system. | 594 | * should be assigned by the UI system. | ||
588 | */ | 595 | */ | ||
589 | QString m_group; | 596 | QString m_group; | ||
590 | /** | 597 | /** | ||
591 | * How much detail to show in the accounts | 598 | * How much detail to show in the accounts | ||
592 | */ | 599 | */ | ||
593 | enum EDetailLevel m_detailLevel; | 600 | enum EDetailLevel m_detailLevel; | ||
594 | /** | 601 | /** | ||
602 | * Whether to sum: all, sold, bought or owned value | ||||
603 | */ | ||||
604 | enum EInvestmentSum m_investmentSum; | ||||
605 | /** | ||||
595 | * Whether to show transactions or just totals. | 606 | * Whether to show transactions or just totals. | ||
596 | */ | 607 | */ | ||
597 | bool m_hideTransactions; | 608 | bool m_hideTransactions; | ||
598 | /** | 609 | /** | ||
599 | * Whether to convert all currencies to the base currency of the file (true). | 610 | * Whether to convert all currencies to the base currency of the file (true). | ||
600 | * If this is false, it's up to the report generator to decide how to handle | 611 | * If this is false, it's up to the report generator to decide how to handle | ||
601 | * the currency. | 612 | * the currency. | ||
602 | */ | 613 | */ | ||
▲ Show 20 Lines • Show All 225 Lines • Show Last 20 Lines |