Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kreportsview.cpp
Show First 20 Lines • Show All 1168 Lines • ▼ Show 20 Line(s) | |||||
1169 | 1169 | | |||
1170 | void KReportsView::defaultReports(QList<ReportGroup>& groups) | 1170 | void KReportsView::defaultReports(QList<ReportGroup>& groups) | ||
1171 | { | 1171 | { | ||
1172 | { | 1172 | { | ||
1173 | ReportGroup list("Income and Expenses", i18n("Income and Expenses")); | 1173 | ReportGroup list("Income and Expenses", i18n("Income and Expenses")); | ||
1174 | 1174 | | |||
1175 | list.push_back(MyMoneyReport( | 1175 | list.push_back(MyMoneyReport( | ||
1176 | MyMoneyReport::eExpenseIncome, | 1176 | MyMoneyReport::eExpenseIncome, | ||
1177 | MyMoneyReport::eMonths, | 1177 | MyMoneyReport::Column::Months, | ||
1178 | MyMoneyTransactionFilter::currentMonth, | 1178 | MyMoneyTransactionFilter::currentMonth, | ||
1179 | MyMoneyReport::eDetailAll, | 1179 | MyMoneyReport::eDetailAll, | ||
1180 | i18n("Income and Expenses This Month"), | 1180 | i18n("Income and Expenses This Month"), | ||
1181 | i18n("Default Report") | 1181 | i18n("Default Report") | ||
1182 | )); | 1182 | )); | ||
1183 | list.push_back(MyMoneyReport( | 1183 | list.push_back(MyMoneyReport( | ||
1184 | MyMoneyReport::eExpenseIncome, | 1184 | MyMoneyReport::eExpenseIncome, | ||
1185 | MyMoneyReport::eMonths, | 1185 | MyMoneyReport::Column::Months, | ||
1186 | MyMoneyTransactionFilter::yearToDate, | 1186 | MyMoneyTransactionFilter::yearToDate, | ||
1187 | MyMoneyReport::eDetailAll, | 1187 | MyMoneyReport::eDetailAll, | ||
1188 | i18n("Income and Expenses This Year"), | 1188 | i18n("Income and Expenses This Year"), | ||
1189 | i18n("Default Report") | 1189 | i18n("Default Report") | ||
1190 | )); | 1190 | )); | ||
1191 | list.push_back(MyMoneyReport( | 1191 | list.push_back(MyMoneyReport( | ||
1192 | MyMoneyReport::eExpenseIncome, | 1192 | MyMoneyReport::eExpenseIncome, | ||
1193 | MyMoneyReport::eYears, | 1193 | MyMoneyReport::Column::Years, | ||
1194 | MyMoneyTransactionFilter::allDates, | 1194 | MyMoneyTransactionFilter::allDates, | ||
1195 | MyMoneyReport::eDetailAll, | 1195 | MyMoneyReport::eDetailAll, | ||
1196 | i18n("Income and Expenses By Year"), | 1196 | i18n("Income and Expenses By Year"), | ||
1197 | i18n("Default Report") | 1197 | i18n("Default Report") | ||
1198 | )); | 1198 | )); | ||
1199 | 1199 | | |||
1200 | list.push_back(MyMoneyReport( | 1200 | list.push_back(MyMoneyReport( | ||
1201 | MyMoneyReport::eExpenseIncome, | 1201 | MyMoneyReport::eExpenseIncome, | ||
1202 | MyMoneyReport::eMonths, | 1202 | MyMoneyReport::Column::Months, | ||
1203 | MyMoneyTransactionFilter::last12Months, | 1203 | MyMoneyTransactionFilter::last12Months, | ||
1204 | MyMoneyReport::eDetailTop, | 1204 | MyMoneyReport::eDetailTop, | ||
1205 | i18n("Income and Expenses Graph"), | 1205 | i18n("Income and Expenses Graph"), | ||
1206 | i18n("Default Report") | 1206 | i18n("Default Report") | ||
1207 | )); | 1207 | )); | ||
1208 | list.back().setChartByDefault(true); | 1208 | list.back().setChartByDefault(true); | ||
1209 | list.back().setChartType(MyMoneyReport::eChartLine); | 1209 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1210 | list.back().setChartDataLabels(false); | 1210 | list.back().setChartDataLabels(false); | ||
1211 | 1211 | | |||
1212 | list.push_back(MyMoneyReport( | 1212 | list.push_back(MyMoneyReport( | ||
1213 | MyMoneyReport::eExpenseIncome, | 1213 | MyMoneyReport::eExpenseIncome, | ||
1214 | MyMoneyReport::eMonths, | 1214 | MyMoneyReport::Column::Months, | ||
1215 | MyMoneyTransactionFilter::yearToDate, | 1215 | MyMoneyTransactionFilter::yearToDate, | ||
1216 | MyMoneyReport::eDetailGroup, | 1216 | MyMoneyReport::eDetailGroup, | ||
1217 | i18n("Income and Expenses Pie Chart"), | 1217 | i18n("Income and Expenses Pie Chart"), | ||
1218 | i18n("Default Report") | 1218 | i18n("Default Report") | ||
1219 | )); | 1219 | )); | ||
1220 | list.back().setChartByDefault(true); | 1220 | list.back().setChartByDefault(true); | ||
1221 | list.back().setChartType(MyMoneyReport::eChartPie); | 1221 | list.back().setChartType(MyMoneyReport::eChartPie); | ||
1222 | list.back().setShowingRowTotals(false); | 1222 | list.back().setShowingRowTotals(false); | ||
1223 | 1223 | | |||
1224 | groups.push_back(list); | 1224 | groups.push_back(list); | ||
1225 | } | 1225 | } | ||
1226 | { | 1226 | { | ||
1227 | ReportGroup list("Net Worth", i18n("Net Worth")); | 1227 | ReportGroup list("Net Worth", i18n("Net Worth")); | ||
1228 | 1228 | | |||
1229 | list.push_back(MyMoneyReport( | 1229 | list.push_back(MyMoneyReport( | ||
1230 | MyMoneyReport::eAssetLiability, | 1230 | MyMoneyReport::eAssetLiability, | ||
1231 | MyMoneyReport::eMonths, | 1231 | MyMoneyReport::Column::Months, | ||
1232 | MyMoneyTransactionFilter::yearToDate, | 1232 | MyMoneyTransactionFilter::yearToDate, | ||
1233 | MyMoneyReport::eDetailTop, | 1233 | MyMoneyReport::eDetailTop, | ||
1234 | i18n("Net Worth By Month"), | 1234 | i18n("Net Worth By Month"), | ||
1235 | i18n("Default Report") | 1235 | i18n("Default Report") | ||
1236 | )); | 1236 | )); | ||
1237 | list.push_back(MyMoneyReport( | 1237 | list.push_back(MyMoneyReport( | ||
1238 | MyMoneyReport::eAssetLiability, | 1238 | MyMoneyReport::eAssetLiability, | ||
1239 | MyMoneyReport::eMonths, | 1239 | MyMoneyReport::Column::Months, | ||
1240 | MyMoneyTransactionFilter::today, | 1240 | MyMoneyTransactionFilter::today, | ||
1241 | MyMoneyReport::eDetailTop, | 1241 | MyMoneyReport::eDetailTop, | ||
1242 | i18n("Net Worth Today"), | 1242 | i18n("Net Worth Today"), | ||
1243 | i18n("Default Report") | 1243 | i18n("Default Report") | ||
1244 | )); | 1244 | )); | ||
1245 | list.push_back(MyMoneyReport( | 1245 | list.push_back(MyMoneyReport( | ||
1246 | MyMoneyReport::eAssetLiability, | 1246 | MyMoneyReport::eAssetLiability, | ||
1247 | MyMoneyReport::eYears, | 1247 | MyMoneyReport::Column::Years, | ||
1248 | MyMoneyTransactionFilter::allDates, | 1248 | MyMoneyTransactionFilter::allDates, | ||
1249 | MyMoneyReport::eDetailTop, | 1249 | MyMoneyReport::eDetailTop, | ||
1250 | i18n("Net Worth By Year"), | 1250 | i18n("Net Worth By Year"), | ||
1251 | i18n("Default Report") | 1251 | i18n("Default Report") | ||
1252 | )); | 1252 | )); | ||
1253 | list.push_back(MyMoneyReport( | 1253 | list.push_back(MyMoneyReport( | ||
1254 | MyMoneyReport::eAssetLiability, | 1254 | MyMoneyReport::eAssetLiability, | ||
1255 | MyMoneyReport::eMonths, | 1255 | MyMoneyReport::Column::Months, | ||
1256 | MyMoneyTransactionFilter::next7Days, | 1256 | MyMoneyTransactionFilter::next7Days, | ||
1257 | MyMoneyReport::eDetailTop, | 1257 | MyMoneyReport::eDetailTop, | ||
1258 | i18n("7-day Cash Flow Forecast"), | 1258 | i18n("7-day Cash Flow Forecast"), | ||
1259 | i18n("Default Report") | 1259 | i18n("Default Report") | ||
1260 | )); | 1260 | )); | ||
1261 | list.back().setIncludingSchedules(true); | 1261 | list.back().setIncludingSchedules(true); | ||
1262 | list.back().setColumnsAreDays(true); | 1262 | list.back().setColumnsAreDays(true); | ||
1263 | 1263 | | |||
1264 | list.push_back(MyMoneyReport( | 1264 | list.push_back(MyMoneyReport( | ||
1265 | MyMoneyReport::eAssetLiability, | 1265 | MyMoneyReport::eAssetLiability, | ||
1266 | MyMoneyReport::eMonths, | 1266 | MyMoneyReport::Column::Months, | ||
1267 | MyMoneyTransactionFilter::last12Months, | 1267 | MyMoneyTransactionFilter::last12Months, | ||
1268 | MyMoneyReport::eDetailTotal, | 1268 | MyMoneyReport::eDetailTotal, | ||
1269 | i18n("Net Worth Graph"), | 1269 | i18n("Net Worth Graph"), | ||
1270 | i18n("Default Report") | 1270 | i18n("Default Report") | ||
1271 | )); | 1271 | )); | ||
1272 | list.back().setChartByDefault(true); | 1272 | list.back().setChartByDefault(true); | ||
1273 | list.back().setChartGridLines(false); | 1273 | list.back().setChartGridLines(false); | ||
1274 | list.back().setChartType(MyMoneyReport::eChartLine); | 1274 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Line(s) | 1422 | list.push_back(MyMoneyReport( | |||
1425 | MyMoneyTransactionFilter::yearToDate, | 1425 | MyMoneyTransactionFilter::yearToDate, | ||
1426 | MyMoneyReport::eDetailAll, | 1426 | MyMoneyReport::eDetailAll, | ||
1427 | i18n("Investment Performance by Type"), | 1427 | i18n("Investment Performance by Type"), | ||
1428 | i18n("Default Report") | 1428 | i18n("Default Report") | ||
1429 | )); | 1429 | )); | ||
1430 | list.back().setInvestmentsOnly(true); | 1430 | list.back().setInvestmentsOnly(true); | ||
1431 | list.push_back(MyMoneyReport( | 1431 | list.push_back(MyMoneyReport( | ||
1432 | MyMoneyReport::eAssetLiability, | 1432 | MyMoneyReport::eAssetLiability, | ||
1433 | MyMoneyReport::eMonths, | 1433 | MyMoneyReport::Column::Months, | ||
1434 | MyMoneyTransactionFilter::today, | 1434 | MyMoneyTransactionFilter::today, | ||
1435 | MyMoneyReport::eDetailAll, | 1435 | MyMoneyReport::eDetailAll, | ||
1436 | i18n("Investment Holdings Pie"), | 1436 | i18n("Investment Holdings Pie"), | ||
1437 | i18n("Default Report") | 1437 | i18n("Default Report") | ||
1438 | )); | 1438 | )); | ||
1439 | list.back().setChartByDefault(true); | 1439 | list.back().setChartByDefault(true); | ||
1440 | list.back().setChartGridLines(false); | 1440 | list.back().setChartGridLines(false); | ||
1441 | list.back().setChartType(MyMoneyReport::eChartPie); | 1441 | list.back().setChartType(MyMoneyReport::eChartPie); | ||
1442 | list.back().setInvestmentsOnly(true); | 1442 | list.back().setInvestmentsOnly(true); | ||
1443 | 1443 | | |||
1444 | list.push_back(MyMoneyReport( | 1444 | list.push_back(MyMoneyReport( | ||
1445 | MyMoneyReport::eAssetLiability, | 1445 | MyMoneyReport::eAssetLiability, | ||
1446 | MyMoneyReport::eMonths, | 1446 | MyMoneyReport::Column::Months, | ||
1447 | MyMoneyTransactionFilter::last12Months, | 1447 | MyMoneyTransactionFilter::last12Months, | ||
1448 | MyMoneyReport::eDetailAll, | 1448 | MyMoneyReport::eDetailAll, | ||
1449 | i18n("Investment Worth Graph"), | 1449 | i18n("Investment Worth Graph"), | ||
1450 | i18n("Default Report") | 1450 | i18n("Default Report") | ||
1451 | )); | 1451 | )); | ||
1452 | list.back().setChartByDefault(true); | 1452 | list.back().setChartByDefault(true); | ||
1453 | list.back().setChartGridLines(false); | 1453 | list.back().setChartGridLines(false); | ||
1454 | list.back().setChartType(MyMoneyReport::eChartLine); | 1454 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1455 | list.back().setColumnsAreDays(true); | 1455 | list.back().setColumnsAreDays(true); | ||
1456 | list.back().setInvestmentsOnly(true); | 1456 | list.back().setInvestmentsOnly(true); | ||
1457 | 1457 | | |||
1458 | list.push_back(MyMoneyReport( | 1458 | list.push_back(MyMoneyReport( | ||
1459 | MyMoneyReport::eAssetLiability, | 1459 | MyMoneyReport::eAssetLiability, | ||
1460 | MyMoneyReport::eMonths, | 1460 | MyMoneyReport::Column::Months, | ||
1461 | MyMoneyTransactionFilter::last12Months, | 1461 | MyMoneyTransactionFilter::last12Months, | ||
1462 | MyMoneyReport::eDetailAll, | 1462 | MyMoneyReport::eDetailAll, | ||
1463 | i18n("Investment Price Graph"), | 1463 | i18n("Investment Price Graph"), | ||
1464 | i18n("Default Report") | 1464 | i18n("Default Report") | ||
1465 | )); | 1465 | )); | ||
1466 | list.back().setChartByDefault(true); | 1466 | list.back().setChartByDefault(true); | ||
1467 | list.back().setChartGridLines(false); | 1467 | list.back().setChartGridLines(false); | ||
1468 | list.back().setChartType(MyMoneyReport::eChartLine); | 1468 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1469 | list.back().setColumnsAreDays(true); | 1469 | list.back().setColumnsAreDays(true); | ||
1470 | list.back().setInvestmentsOnly(true); | 1470 | list.back().setInvestmentsOnly(true); | ||
1471 | list.back().setIncludingBudgetActuals(false); | 1471 | list.back().setIncludingBudgetActuals(false); | ||
1472 | list.back().setIncludingPrice(true); | 1472 | list.back().setIncludingPrice(true); | ||
1473 | list.back().setConvertCurrency(true); | 1473 | list.back().setConvertCurrency(true); | ||
1474 | list.back().setChartDataLabels(false); | 1474 | list.back().setChartDataLabels(false); | ||
1475 | list.back().setSkipZero(true); | 1475 | list.back().setSkipZero(true); | ||
1476 | 1476 | | |||
1477 | list.push_back(MyMoneyReport( | 1477 | list.push_back(MyMoneyReport( | ||
1478 | MyMoneyReport::eAssetLiability, | 1478 | MyMoneyReport::eAssetLiability, | ||
1479 | MyMoneyReport::eMonths, | 1479 | MyMoneyReport::Column::Months, | ||
1480 | MyMoneyTransactionFilter::last12Months, | 1480 | MyMoneyTransactionFilter::last12Months, | ||
1481 | MyMoneyReport::eDetailAll, | 1481 | MyMoneyReport::eDetailAll, | ||
1482 | i18n("Investment Moving Average Price Graph"), | 1482 | i18n("Investment Moving Average Price Graph"), | ||
1483 | i18n("Default Report") | 1483 | i18n("Default Report") | ||
1484 | )); | 1484 | )); | ||
1485 | list.back().setChartByDefault(true); | 1485 | list.back().setChartByDefault(true); | ||
1486 | list.back().setChartGridLines(false); | 1486 | list.back().setChartGridLines(false); | ||
1487 | list.back().setChartType(MyMoneyReport::eChartLine); | 1487 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1488 | list.back().setColumnsAreDays(true); | 1488 | list.back().setColumnsAreDays(true); | ||
1489 | list.back().setInvestmentsOnly(true); | 1489 | list.back().setInvestmentsOnly(true); | ||
1490 | list.back().setIncludingBudgetActuals(false); | 1490 | list.back().setIncludingBudgetActuals(false); | ||
1491 | list.back().setIncludingAveragePrice(true); | 1491 | list.back().setIncludingAveragePrice(true); | ||
1492 | list.back().setMovingAverageDays(10); | 1492 | list.back().setMovingAverageDays(10); | ||
1493 | list.back().setConvertCurrency(true); | 1493 | list.back().setConvertCurrency(true); | ||
1494 | list.back().setChartDataLabels(false); | 1494 | list.back().setChartDataLabels(false); | ||
1495 | 1495 | | |||
1496 | list.push_back(MyMoneyReport( | 1496 | list.push_back(MyMoneyReport( | ||
1497 | MyMoneyReport::eAssetLiability, | 1497 | MyMoneyReport::eAssetLiability, | ||
1498 | MyMoneyReport::eMonths, | 1498 | MyMoneyReport::Column::Months, | ||
1499 | MyMoneyTransactionFilter::last30Days, | 1499 | MyMoneyTransactionFilter::last30Days, | ||
1500 | MyMoneyReport::eDetailAll, | 1500 | MyMoneyReport::eDetailAll, | ||
1501 | i18n("Investment Moving Average"), | 1501 | i18n("Investment Moving Average"), | ||
1502 | i18n("Default Report") | 1502 | i18n("Default Report") | ||
1503 | )); | 1503 | )); | ||
1504 | list.back().setChartGridLines(false); | 1504 | list.back().setChartGridLines(false); | ||
1505 | list.back().setChartType(MyMoneyReport::eChartLine); | 1505 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1506 | list.back().setColumnsAreDays(true); | 1506 | list.back().setColumnsAreDays(true); | ||
1507 | list.back().setInvestmentsOnly(true); | 1507 | list.back().setInvestmentsOnly(true); | ||
1508 | list.back().setIncludingBudgetActuals(false); | 1508 | list.back().setIncludingBudgetActuals(false); | ||
1509 | list.back().setIncludingMovingAverage(true); | 1509 | list.back().setIncludingMovingAverage(true); | ||
1510 | list.back().setMovingAverageDays(10); | 1510 | list.back().setMovingAverageDays(10); | ||
1511 | 1511 | | |||
1512 | list.push_back(MyMoneyReport( | 1512 | list.push_back(MyMoneyReport( | ||
1513 | MyMoneyReport::eAssetLiability, | 1513 | MyMoneyReport::eAssetLiability, | ||
1514 | MyMoneyReport::eMonths, | 1514 | MyMoneyReport::Column::Months, | ||
1515 | MyMoneyTransactionFilter::last30Days, | 1515 | MyMoneyTransactionFilter::last30Days, | ||
1516 | MyMoneyReport::eDetailAll, | 1516 | MyMoneyReport::eDetailAll, | ||
1517 | i18n("Investment Moving Average vs Actual"), | 1517 | i18n("Investment Moving Average vs Actual"), | ||
1518 | i18n("Default Report") | 1518 | i18n("Default Report") | ||
1519 | )); | 1519 | )); | ||
1520 | list.back().setChartByDefault(true); | 1520 | list.back().setChartByDefault(true); | ||
1521 | list.back().setChartGridLines(false); | 1521 | list.back().setChartGridLines(false); | ||
1522 | list.back().setChartType(MyMoneyReport::eChartLine); | 1522 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 1530 | { | |||
1568 | list.back().setTax(true); | 1568 | list.back().setTax(true); | ||
1569 | groups.push_back(list); | 1569 | groups.push_back(list); | ||
1570 | } | 1570 | } | ||
1571 | { | 1571 | { | ||
1572 | ReportGroup list("Budgeting", i18n("Budgeting")); | 1572 | ReportGroup list("Budgeting", i18n("Budgeting")); | ||
1573 | 1573 | | |||
1574 | list.push_back(MyMoneyReport( | 1574 | list.push_back(MyMoneyReport( | ||
1575 | MyMoneyReport::eBudgetActual, | 1575 | MyMoneyReport::eBudgetActual, | ||
1576 | MyMoneyReport::eMonths, | 1576 | MyMoneyReport::Column::Months, | ||
1577 | MyMoneyTransactionFilter::yearToDate, | 1577 | MyMoneyTransactionFilter::yearToDate, | ||
1578 | MyMoneyReport::eDetailAll, | 1578 | MyMoneyReport::eDetailAll, | ||
1579 | i18n("Budgeted vs. Actual This Year"), | 1579 | i18n("Budgeted vs. Actual This Year"), | ||
1580 | i18n("Default Report") | 1580 | i18n("Default Report") | ||
1581 | )); | 1581 | )); | ||
1582 | list.back().setShowingRowTotals(true); | 1582 | list.back().setShowingRowTotals(true); | ||
1583 | list.back().setBudget("Any", true); | 1583 | list.back().setBudget("Any", true); | ||
1584 | 1584 | | |||
1585 | list.push_back(MyMoneyReport( | 1585 | list.push_back(MyMoneyReport( | ||
1586 | MyMoneyReport::eBudgetActual, | 1586 | MyMoneyReport::eBudgetActual, | ||
1587 | MyMoneyReport::eMonths, | 1587 | MyMoneyReport::Column::Months, | ||
1588 | MyMoneyTransactionFilter::yearToMonth, | 1588 | MyMoneyTransactionFilter::yearToMonth, | ||
1589 | MyMoneyReport::eDetailAll, | 1589 | MyMoneyReport::eDetailAll, | ||
1590 | i18n("Budgeted vs. Actual This Year (YTM)"), | 1590 | i18n("Budgeted vs. Actual This Year (YTM)"), | ||
1591 | i18n("Default Report") | 1591 | i18n("Default Report") | ||
1592 | )); | 1592 | )); | ||
1593 | list.back().setShowingRowTotals(true); | 1593 | list.back().setShowingRowTotals(true); | ||
1594 | list.back().setBudget("Any", true); | 1594 | list.back().setBudget("Any", true); | ||
1595 | // in case we're in January, we show the last year | 1595 | // in case we're in January, we show the last year | ||
1596 | if (QDate::currentDate().month() == 1) { | 1596 | if (QDate::currentDate().month() == 1) { | ||
1597 | list.back().setDateFilter(MyMoneyTransactionFilter::lastYear); | 1597 | list.back().setDateFilter(MyMoneyTransactionFilter::lastYear); | ||
1598 | } | 1598 | } | ||
1599 | 1599 | | |||
1600 | list.push_back(MyMoneyReport( | 1600 | list.push_back(MyMoneyReport( | ||
1601 | MyMoneyReport::eBudgetActual, | 1601 | MyMoneyReport::eBudgetActual, | ||
1602 | MyMoneyReport::eMonths, | 1602 | MyMoneyReport::Column::Months, | ||
1603 | MyMoneyTransactionFilter::currentMonth, | 1603 | MyMoneyTransactionFilter::currentMonth, | ||
1604 | MyMoneyReport::eDetailAll, | 1604 | MyMoneyReport::eDetailAll, | ||
1605 | i18n("Monthly Budgeted vs. Actual"), | 1605 | i18n("Monthly Budgeted vs. Actual"), | ||
1606 | i18n("Default Report") | 1606 | i18n("Default Report") | ||
1607 | )); | 1607 | )); | ||
1608 | list.back().setBudget("Any", true); | 1608 | list.back().setBudget("Any", true); | ||
1609 | 1609 | | |||
1610 | list.push_back(MyMoneyReport( | 1610 | list.push_back(MyMoneyReport( | ||
1611 | MyMoneyReport::eBudgetActual, | 1611 | MyMoneyReport::eBudgetActual, | ||
1612 | MyMoneyReport::eMonths, | 1612 | MyMoneyReport::Column::Months, | ||
1613 | MyMoneyTransactionFilter::currentYear, | 1613 | MyMoneyTransactionFilter::currentYear, | ||
1614 | MyMoneyReport::eDetailAll, | 1614 | MyMoneyReport::eDetailAll, | ||
1615 | i18n("Yearly Budgeted vs. Actual"), | 1615 | i18n("Yearly Budgeted vs. Actual"), | ||
1616 | i18n("Default Report") | 1616 | i18n("Default Report") | ||
1617 | )); | 1617 | )); | ||
1618 | list.back().setBudget("Any", true); | 1618 | list.back().setBudget("Any", true); | ||
1619 | list.back().setShowingRowTotals(true); | 1619 | list.back().setShowingRowTotals(true); | ||
1620 | 1620 | | |||
1621 | list.push_back(MyMoneyReport( | 1621 | list.push_back(MyMoneyReport( | ||
1622 | MyMoneyReport::eBudget, | 1622 | MyMoneyReport::eBudget, | ||
1623 | MyMoneyReport::eMonths, | 1623 | MyMoneyReport::Column::Months, | ||
1624 | MyMoneyTransactionFilter::currentMonth, | 1624 | MyMoneyTransactionFilter::currentMonth, | ||
1625 | MyMoneyReport::eDetailAll, | 1625 | MyMoneyReport::eDetailAll, | ||
1626 | i18n("Monthly Budget"), | 1626 | i18n("Monthly Budget"), | ||
1627 | i18n("Default Report") | 1627 | i18n("Default Report") | ||
1628 | )); | 1628 | )); | ||
1629 | list.back().setBudget("Any", false); | 1629 | list.back().setBudget("Any", false); | ||
1630 | 1630 | | |||
1631 | list.push_back(MyMoneyReport( | 1631 | list.push_back(MyMoneyReport( | ||
1632 | MyMoneyReport::eBudget, | 1632 | MyMoneyReport::eBudget, | ||
1633 | MyMoneyReport::eMonths, | 1633 | MyMoneyReport::Column::Months, | ||
1634 | MyMoneyTransactionFilter::currentYear, | 1634 | MyMoneyTransactionFilter::currentYear, | ||
1635 | MyMoneyReport::eDetailAll, | 1635 | MyMoneyReport::eDetailAll, | ||
1636 | i18n("Yearly Budget"), | 1636 | i18n("Yearly Budget"), | ||
1637 | i18n("Default Report") | 1637 | i18n("Default Report") | ||
1638 | )); | 1638 | )); | ||
1639 | list.back().setBudget("Any", false); | 1639 | list.back().setBudget("Any", false); | ||
1640 | list.back().setShowingRowTotals(true); | 1640 | list.back().setShowingRowTotals(true); | ||
1641 | list.push_back(MyMoneyReport( | 1641 | list.push_back(MyMoneyReport( | ||
1642 | MyMoneyReport::eBudgetActual, | 1642 | MyMoneyReport::eBudgetActual, | ||
1643 | MyMoneyReport::eMonths, | 1643 | MyMoneyReport::Column::Months, | ||
1644 | MyMoneyTransactionFilter::currentYear, | 1644 | MyMoneyTransactionFilter::currentYear, | ||
1645 | MyMoneyReport::eDetailGroup, | 1645 | MyMoneyReport::eDetailGroup, | ||
1646 | i18n("Yearly Budgeted vs Actual Graph"), | 1646 | i18n("Yearly Budgeted vs Actual Graph"), | ||
1647 | i18n("Default Report") | 1647 | i18n("Default Report") | ||
1648 | )); | 1648 | )); | ||
1649 | list.back().setChartByDefault(true); | 1649 | list.back().setChartByDefault(true); | ||
1650 | list.back().setChartGridLines(false); | 1650 | list.back().setChartGridLines(false); | ||
1651 | list.back().setBudget("Any", true); | 1651 | list.back().setBudget("Any", true); | ||
1652 | list.back().setChartType(MyMoneyReport::eChartLine); | 1652 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1653 | 1653 | | |||
1654 | groups.push_back(list); | 1654 | groups.push_back(list); | ||
1655 | } | 1655 | } | ||
1656 | { | 1656 | { | ||
1657 | ReportGroup list("Forecast", i18n("Forecast")); | 1657 | ReportGroup list("Forecast", i18n("Forecast")); | ||
1658 | 1658 | | |||
1659 | list.push_back(MyMoneyReport( | 1659 | list.push_back(MyMoneyReport( | ||
1660 | MyMoneyReport::eAssetLiability, | 1660 | MyMoneyReport::eAssetLiability, | ||
1661 | MyMoneyReport::eMonths, | 1661 | MyMoneyReport::Column::Months, | ||
1662 | MyMoneyTransactionFilter::next12Months, | 1662 | MyMoneyTransactionFilter::next12Months, | ||
1663 | MyMoneyReport::eDetailTop, | 1663 | MyMoneyReport::eDetailTop, | ||
1664 | i18n("Forecast By Month"), | 1664 | i18n("Forecast By Month"), | ||
1665 | i18n("Default Report") | 1665 | i18n("Default Report") | ||
1666 | )); | 1666 | )); | ||
1667 | list.back().setIncludingForecast(true); | 1667 | list.back().setIncludingForecast(true); | ||
1668 | 1668 | | |||
1669 | list.push_back(MyMoneyReport( | 1669 | list.push_back(MyMoneyReport( | ||
1670 | MyMoneyReport::eAssetLiability, | 1670 | MyMoneyReport::eAssetLiability, | ||
1671 | MyMoneyReport::eMonths, | 1671 | MyMoneyReport::Column::Months, | ||
1672 | MyMoneyTransactionFilter::nextQuarter, | 1672 | MyMoneyTransactionFilter::nextQuarter, | ||
1673 | MyMoneyReport::eDetailTop, | 1673 | MyMoneyReport::eDetailTop, | ||
1674 | i18n("Forecast Next Quarter"), | 1674 | i18n("Forecast Next Quarter"), | ||
1675 | i18n("Default Report") | 1675 | i18n("Default Report") | ||
1676 | )); | 1676 | )); | ||
1677 | list.back().setColumnsAreDays(true); | 1677 | list.back().setColumnsAreDays(true); | ||
1678 | list.back().setIncludingForecast(true); | 1678 | list.back().setIncludingForecast(true); | ||
1679 | 1679 | | |||
1680 | list.push_back(MyMoneyReport( | 1680 | list.push_back(MyMoneyReport( | ||
1681 | MyMoneyReport::eExpenseIncome, | 1681 | MyMoneyReport::eExpenseIncome, | ||
1682 | MyMoneyReport::eMonths, | 1682 | MyMoneyReport::Column::Months, | ||
1683 | MyMoneyTransactionFilter::currentYear, | 1683 | MyMoneyTransactionFilter::currentYear, | ||
1684 | MyMoneyReport::eDetailTop, | 1684 | MyMoneyReport::eDetailTop, | ||
1685 | i18n("Income and Expenses Forecast This Year"), | 1685 | i18n("Income and Expenses Forecast This Year"), | ||
1686 | i18n("Default Report") | 1686 | i18n("Default Report") | ||
1687 | )); | 1687 | )); | ||
1688 | list.back().setIncludingForecast(true); | 1688 | list.back().setIncludingForecast(true); | ||
1689 | 1689 | | |||
1690 | list.push_back(MyMoneyReport( | 1690 | list.push_back(MyMoneyReport( | ||
1691 | MyMoneyReport::eAssetLiability, | 1691 | MyMoneyReport::eAssetLiability, | ||
1692 | MyMoneyReport::eMonths, | 1692 | MyMoneyReport::Column::Months, | ||
1693 | MyMoneyTransactionFilter::next3Months, | 1693 | MyMoneyTransactionFilter::next3Months, | ||
1694 | MyMoneyReport::eDetailTotal, | 1694 | MyMoneyReport::eDetailTotal, | ||
1695 | i18n("Net Worth Forecast Graph"), | 1695 | i18n("Net Worth Forecast Graph"), | ||
1696 | i18n("Default Report") | 1696 | i18n("Default Report") | ||
1697 | )); | 1697 | )); | ||
1698 | list.back().setColumnsAreDays(true); | 1698 | list.back().setColumnsAreDays(true); | ||
1699 | list.back().setIncludingForecast(true); | 1699 | list.back().setIncludingForecast(true); | ||
1700 | list.back().setChartByDefault(true); | 1700 | list.back().setChartByDefault(true); | ||
1701 | list.back().setChartGridLines(false); | 1701 | list.back().setChartGridLines(false); | ||
1702 | list.back().setChartType(MyMoneyReport::eChartLine); | 1702 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1703 | groups.push_back(list); | 1703 | groups.push_back(list); | ||
1704 | } | 1704 | } | ||
1705 | { | 1705 | { | ||
1706 | ReportGroup list("Information", i18n("General Information")); | 1706 | ReportGroup list("Information", i18n("General Information")); | ||
1707 | 1707 | | |||
1708 | list.push_back(MyMoneyReport( | 1708 | list.push_back(MyMoneyReport( | ||
1709 | MyMoneyReport::eSchedule, | 1709 | MyMoneyReport::eSchedule, | ||
1710 | MyMoneyReport::eMonths, | 1710 | MyMoneyReport::Column::Months, | ||
1711 | MyMoneyTransactionFilter::next12Months, | 1711 | MyMoneyTransactionFilter::next12Months, | ||
1712 | MyMoneyReport::eDetailAll, | 1712 | MyMoneyReport::eDetailAll, | ||
1713 | i18n("Schedule Information"), | 1713 | i18n("Schedule Information"), | ||
1714 | i18n("Default Report") | 1714 | i18n("Default Report") | ||
1715 | )); | 1715 | )); | ||
1716 | list.back().setDetailLevel(MyMoneyReport::eDetailAll); | 1716 | list.back().setDetailLevel(MyMoneyReport::eDetailAll); | ||
1717 | list.push_back(MyMoneyReport( | 1717 | list.push_back(MyMoneyReport( | ||
1718 | MyMoneyReport::eSchedule, | 1718 | MyMoneyReport::eSchedule, | ||
1719 | MyMoneyReport::eMonths, | 1719 | MyMoneyReport::Column::Months, | ||
1720 | MyMoneyTransactionFilter::next12Months, | 1720 | MyMoneyTransactionFilter::next12Months, | ||
1721 | MyMoneyReport::eDetailAll, | 1721 | MyMoneyReport::eDetailAll, | ||
1722 | i18n("Schedule Summary Information"), | 1722 | i18n("Schedule Summary Information"), | ||
1723 | i18n("Default Report") | 1723 | i18n("Default Report") | ||
1724 | )); | 1724 | )); | ||
1725 | list.back().setDetailLevel(MyMoneyReport::eDetailTop); | 1725 | list.back().setDetailLevel(MyMoneyReport::eDetailTop); | ||
1726 | list.push_back(MyMoneyReport( | 1726 | list.push_back(MyMoneyReport( | ||
1727 | MyMoneyReport::eAccountInfo, | 1727 | MyMoneyReport::eAccountInfo, | ||
1728 | MyMoneyReport::eMonths, | 1728 | MyMoneyReport::Column::Months, | ||
1729 | MyMoneyTransactionFilter::today, | 1729 | MyMoneyTransactionFilter::today, | ||
1730 | MyMoneyReport::eDetailAll, | 1730 | MyMoneyReport::eDetailAll, | ||
1731 | i18n("Account Information"), | 1731 | i18n("Account Information"), | ||
1732 | i18n("Default Report") | 1732 | i18n("Default Report") | ||
1733 | )); | 1733 | )); | ||
1734 | list.back().setConvertCurrency(false); | 1734 | list.back().setConvertCurrency(false); | ||
1735 | list.push_back(MyMoneyReport( | 1735 | list.push_back(MyMoneyReport( | ||
1736 | MyMoneyReport::eAccountLoanInfo, | 1736 | MyMoneyReport::eAccountLoanInfo, | ||
1737 | MyMoneyReport::eMonths, | 1737 | MyMoneyReport::Column::Months, | ||
1738 | MyMoneyTransactionFilter::today, | 1738 | MyMoneyTransactionFilter::today, | ||
1739 | MyMoneyReport::eDetailAll, | 1739 | MyMoneyReport::eDetailAll, | ||
1740 | i18n("Loan Information"), | 1740 | i18n("Loan Information"), | ||
1741 | i18n("Default Report") | 1741 | i18n("Default Report") | ||
1742 | )); | 1742 | )); | ||
1743 | list.back().setConvertCurrency(false); | 1743 | list.back().setConvertCurrency(false); | ||
1744 | groups.push_back(list); | 1744 | groups.push_back(list); | ||
1745 | } | 1745 | } | ||
Show All 39 Lines |