Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/khomeview.cpp
Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Line(s) | |||||
292 | } | 292 | } | ||
293 | 293 | | |||
294 | void KHomeView::showNetWorthGraph() | 294 | void KHomeView::showNetWorthGraph() | ||
295 | { | 295 | { | ||
296 | d->m_html += QString("<div class=\"shadow\"><div class=\"displayblock\"><div class=\"summaryheader\">%1</div>\n<div class=\"gap\"> </div>\n").arg(i18n("Net Worth Forecast")); | 296 | d->m_html += QString("<div class=\"shadow\"><div class=\"displayblock\"><div class=\"summaryheader\">%1</div>\n<div class=\"gap\"> </div>\n").arg(i18n("Net Worth Forecast")); | ||
297 | 297 | | |||
298 | MyMoneyReport reportCfg = MyMoneyReport( | 298 | MyMoneyReport reportCfg = MyMoneyReport( | ||
299 | MyMoneyReport::eAssetLiability, | 299 | MyMoneyReport::eAssetLiability, | ||
300 | MyMoneyReport::eMonths, | 300 | MyMoneyReport::Column::Months, | ||
301 | MyMoneyTransactionFilter::userDefined, // overridden by the setDateFilter() call below | 301 | MyMoneyTransactionFilter::userDefined, // overridden by the setDateFilter() call below | ||
302 | MyMoneyReport::eDetailTotal, | 302 | MyMoneyReport::eDetailTotal, | ||
303 | i18n("Net Worth Forecast"), | 303 | i18n("Net Worth Forecast"), | ||
304 | i18n("Generated Report")); | 304 | i18n("Generated Report")); | ||
305 | 305 | | |||
306 | reportCfg.setChartByDefault(true); | 306 | reportCfg.setChartByDefault(true); | ||
307 | reportCfg.setChartGridLines(false); | 307 | reportCfg.setChartGridLines(false); | ||
308 | reportCfg.setChartDataLabels(false); | 308 | reportCfg.setChartDataLabels(false); | ||
▲ Show 20 Lines • Show All 1140 Lines • ▼ Show 20 Line(s) | 1446 | { | |||
1449 | if (file->countBudgets()) { | 1449 | if (file->countBudgets()) { | ||
1450 | int prec = MyMoneyMoney::denomToPrec(file->baseCurrency().smallestAccountFraction()); | 1450 | int prec = MyMoneyMoney::denomToPrec(file->baseCurrency().smallestAccountFraction()); | ||
1451 | bool isOverrun = false; | 1451 | bool isOverrun = false; | ||
1452 | int i = 0; | 1452 | int i = 0; | ||
1453 | 1453 | | |||
1454 | //config report just like "Monthly Budgeted vs Actual | 1454 | //config report just like "Monthly Budgeted vs Actual | ||
1455 | MyMoneyReport reportCfg = MyMoneyReport( | 1455 | MyMoneyReport reportCfg = MyMoneyReport( | ||
1456 | MyMoneyReport::eBudgetActual, | 1456 | MyMoneyReport::eBudgetActual, | ||
1457 | MyMoneyReport::eMonths, | 1457 | MyMoneyReport::Column::Months, | ||
1458 | MyMoneyTransactionFilter::currentMonth, | 1458 | MyMoneyTransactionFilter::currentMonth, | ||
1459 | MyMoneyReport::eDetailAll, | 1459 | MyMoneyReport::eDetailAll, | ||
1460 | i18n("Monthly Budgeted vs. Actual"), | 1460 | i18n("Monthly Budgeted vs. Actual"), | ||
1461 | i18n("Generated Report")); | 1461 | i18n("Generated Report")); | ||
1462 | 1462 | | |||
1463 | reportCfg.setBudget("Any", true); | 1463 | reportCfg.setBudget("Any", true); | ||
1464 | 1464 | | |||
1465 | reports::PivotTable table(reportCfg); | 1465 | reports::PivotTable table(reportCfg); | ||
▲ Show 20 Lines • Show All 560 Lines • Show Last 20 Lines |