Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kreportsview.cpp
Show First 20 Lines • Show All 1269 Lines • ▼ Show 20 Line(s) | 1264 | list.push_back(MyMoneyReport( | |||
---|---|---|---|---|---|
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); | ||
1275 | 1275 | | |||
1276 | list.push_back(MyMoneyReport( | 1276 | list.push_back(MyMoneyReport( | ||
1277 | MyMoneyReport::eInstitution, | 1277 | MyMoneyReport::eInstitution, | ||
1278 | MyMoneyReport::eQCnone, | 1278 | MyMoneyReport::QueryColumns::None, | ||
1279 | MyMoneyTransactionFilter::yearToDate, | 1279 | MyMoneyTransactionFilter::yearToDate, | ||
1280 | MyMoneyReport::eDetailTop, | 1280 | MyMoneyReport::eDetailTop, | ||
1281 | i18n("Account Balances by Institution"), | 1281 | i18n("Account Balances by Institution"), | ||
1282 | i18n("Default Report") | 1282 | i18n("Default Report") | ||
1283 | )); | 1283 | )); | ||
1284 | 1284 | | |||
1285 | list.push_back(MyMoneyReport( | 1285 | list.push_back(MyMoneyReport( | ||
1286 | MyMoneyReport::eAccountType, | 1286 | MyMoneyReport::eAccountType, | ||
1287 | MyMoneyReport::eQCnone, | 1287 | MyMoneyReport::QueryColumns::None, | ||
1288 | MyMoneyTransactionFilter::yearToDate, | 1288 | MyMoneyTransactionFilter::yearToDate, | ||
1289 | MyMoneyReport::eDetailTop, | 1289 | MyMoneyReport::eDetailTop, | ||
1290 | i18n("Account Balances by Type"), | 1290 | i18n("Account Balances by Type"), | ||
1291 | i18n("Default Report") | 1291 | i18n("Default Report") | ||
1292 | )); | 1292 | )); | ||
1293 | 1293 | | |||
1294 | groups.push_back(list); | 1294 | groups.push_back(list); | ||
1295 | } | 1295 | } | ||
1296 | { | 1296 | { | ||
1297 | ReportGroup list("Transactions", i18n("Transactions")); | 1297 | ReportGroup list("Transactions", i18n("Transactions")); | ||
1298 | 1298 | | |||
1299 | list.push_back(MyMoneyReport( | 1299 | list.push_back(MyMoneyReport( | ||
1300 | MyMoneyReport::eAccount, | 1300 | MyMoneyReport::eAccount, | ||
1301 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag | MyMoneyReport::eQCbalance, | 1301 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag | MyMoneyReport::QueryColumns::Balance, | ||
1302 | MyMoneyTransactionFilter::yearToDate, | 1302 | MyMoneyTransactionFilter::yearToDate, | ||
1303 | MyMoneyReport::eDetailAll, | 1303 | MyMoneyReport::eDetailAll, | ||
1304 | i18n("Transactions by Account"), | 1304 | i18n("Transactions by Account"), | ||
1305 | i18n("Default Report") | 1305 | i18n("Default Report") | ||
1306 | )); | 1306 | )); | ||
1307 | //list.back().setConvertCurrency(false); | 1307 | //list.back().setConvertCurrency(false); | ||
1308 | list.push_back(MyMoneyReport( | 1308 | list.push_back(MyMoneyReport( | ||
1309 | MyMoneyReport::eCategory, | 1309 | MyMoneyReport::eCategory, | ||
1310 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount | MyMoneyReport::eQCtag, | 1310 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account | MyMoneyReport::QueryColumns::Tag, | ||
1311 | MyMoneyTransactionFilter::yearToDate, | 1311 | MyMoneyTransactionFilter::yearToDate, | ||
1312 | MyMoneyReport::eDetailAll, | 1312 | MyMoneyReport::eDetailAll, | ||
1313 | i18n("Transactions by Category"), | 1313 | i18n("Transactions by Category"), | ||
1314 | i18n("Default Report") | 1314 | i18n("Default Report") | ||
1315 | )); | 1315 | )); | ||
1316 | list.push_back(MyMoneyReport( | 1316 | list.push_back(MyMoneyReport( | ||
1317 | MyMoneyReport::ePayee, | 1317 | MyMoneyReport::ePayee, | ||
1318 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 1318 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
1319 | MyMoneyTransactionFilter::yearToDate, | 1319 | MyMoneyTransactionFilter::yearToDate, | ||
1320 | MyMoneyReport::eDetailAll, | 1320 | MyMoneyReport::eDetailAll, | ||
1321 | i18n("Transactions by Payee"), | 1321 | i18n("Transactions by Payee"), | ||
1322 | i18n("Default Report") | 1322 | i18n("Default Report") | ||
1323 | )); | 1323 | )); | ||
1324 | list.push_back(MyMoneyReport( | 1324 | list.push_back(MyMoneyReport( | ||
1325 | MyMoneyReport::eTag, | 1325 | MyMoneyReport::eTag, | ||
1326 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory, | 1326 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category, | ||
1327 | MyMoneyTransactionFilter::yearToDate, | 1327 | MyMoneyTransactionFilter::yearToDate, | ||
1328 | MyMoneyReport::eDetailAll, | 1328 | MyMoneyReport::eDetailAll, | ||
1329 | i18n("Transactions by Tag"), | 1329 | i18n("Transactions by Tag"), | ||
1330 | i18n("Default Report") | 1330 | i18n("Default Report") | ||
1331 | )); | 1331 | )); | ||
1332 | list.push_back(MyMoneyReport( | 1332 | list.push_back(MyMoneyReport( | ||
1333 | MyMoneyReport::eMonth, | 1333 | MyMoneyReport::eMonth, | ||
1334 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 1334 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
1335 | MyMoneyTransactionFilter::yearToDate, | 1335 | MyMoneyTransactionFilter::yearToDate, | ||
1336 | MyMoneyReport::eDetailAll, | 1336 | MyMoneyReport::eDetailAll, | ||
1337 | i18n("Transactions by Month"), | 1337 | i18n("Transactions by Month"), | ||
1338 | i18n("Default Report") | 1338 | i18n("Default Report") | ||
1339 | )); | 1339 | )); | ||
1340 | list.push_back(MyMoneyReport( | 1340 | list.push_back(MyMoneyReport( | ||
1341 | MyMoneyReport::eWeek, | 1341 | MyMoneyReport::eWeek, | ||
1342 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 1342 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
1343 | MyMoneyTransactionFilter::yearToDate, | 1343 | MyMoneyTransactionFilter::yearToDate, | ||
1344 | MyMoneyReport::eDetailAll, | 1344 | MyMoneyReport::eDetailAll, | ||
1345 | i18n("Transactions by Week"), | 1345 | i18n("Transactions by Week"), | ||
1346 | i18n("Default Report") | 1346 | i18n("Default Report") | ||
1347 | )); | 1347 | )); | ||
1348 | list.push_back(MyMoneyReport( | 1348 | list.push_back(MyMoneyReport( | ||
1349 | MyMoneyReport::eAccount, | 1349 | MyMoneyReport::eAccount, | ||
1350 | MyMoneyReport::eQCloan, | 1350 | MyMoneyReport::QueryColumns::Loan, | ||
1351 | MyMoneyTransactionFilter::allDates, | 1351 | MyMoneyTransactionFilter::allDates, | ||
1352 | MyMoneyReport::eDetailAll, | 1352 | MyMoneyReport::eDetailAll, | ||
1353 | i18n("Loan Transactions"), | 1353 | i18n("Loan Transactions"), | ||
1354 | i18n("Default Report") | 1354 | i18n("Default Report") | ||
1355 | )); | 1355 | )); | ||
1356 | list.back().setLoansOnly(true); | 1356 | list.back().setLoansOnly(true); | ||
1357 | list.push_back(MyMoneyReport( | 1357 | list.push_back(MyMoneyReport( | ||
1358 | MyMoneyReport::eAccountReconcile, | 1358 | MyMoneyReport::eAccountReconcile, | ||
1359 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCbalance, | 1359 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Balance, | ||
1360 | MyMoneyTransactionFilter::last3Months, | 1360 | MyMoneyTransactionFilter::last3Months, | ||
1361 | MyMoneyReport::eDetailAll, | 1361 | MyMoneyReport::eDetailAll, | ||
1362 | i18n("Transactions by Reconciliation Status"), | 1362 | i18n("Transactions by Reconciliation Status"), | ||
1363 | i18n("Default Report") | 1363 | i18n("Default Report") | ||
1364 | )); | 1364 | )); | ||
1365 | groups.push_back(list); | 1365 | groups.push_back(list); | ||
1366 | } | 1366 | } | ||
1367 | { | 1367 | { | ||
1368 | ReportGroup list("CashFlow", i18n("Cash Flow")); | 1368 | ReportGroup list("CashFlow", i18n("Cash Flow")); | ||
1369 | list.push_back(MyMoneyReport( | 1369 | list.push_back(MyMoneyReport( | ||
1370 | MyMoneyReport::eCashFlow, | 1370 | MyMoneyReport::eCashFlow, | ||
1371 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1371 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1372 | MyMoneyTransactionFilter::yearToDate, | 1372 | MyMoneyTransactionFilter::yearToDate, | ||
1373 | MyMoneyReport::eDetailAll, | 1373 | MyMoneyReport::eDetailAll, | ||
1374 | i18n("Cash Flow Transactions This Month"), | 1374 | i18n("Cash Flow Transactions This Month"), | ||
1375 | i18n("Default Report") | 1375 | i18n("Default Report") | ||
1376 | )); | 1376 | )); | ||
1377 | groups.push_back(list); | 1377 | groups.push_back(list); | ||
1378 | } | 1378 | } | ||
1379 | { | 1379 | { | ||
1380 | ReportGroup list("Investments", i18n("Investments")); | 1380 | ReportGroup list("Investments", i18n("Investments")); | ||
1381 | 1381 | | |||
1382 | list.push_back(MyMoneyReport( | 1382 | list.push_back(MyMoneyReport( | ||
1383 | MyMoneyReport::eTopAccount, | 1383 | MyMoneyReport::eTopAccount, | ||
1384 | MyMoneyReport::eQCaction | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1384 | MyMoneyReport::QueryColumns::Action | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1385 | MyMoneyTransactionFilter::yearToDate, | 1385 | MyMoneyTransactionFilter::yearToDate, | ||
1386 | MyMoneyReport::eDetailAll, | 1386 | MyMoneyReport::eDetailAll, | ||
1387 | i18n("Investment Transactions"), | 1387 | i18n("Investment Transactions"), | ||
1388 | i18n("Default Report") | 1388 | i18n("Default Report") | ||
1389 | )); | 1389 | )); | ||
1390 | list.back().setInvestmentsOnly(true); | 1390 | list.back().setInvestmentsOnly(true); | ||
1391 | 1391 | | |||
1392 | list.push_back(MyMoneyReport( | 1392 | list.push_back(MyMoneyReport( | ||
1393 | MyMoneyReport::eAccountByTopAccount, | 1393 | MyMoneyReport::eAccountByTopAccount, | ||
1394 | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1394 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1395 | MyMoneyTransactionFilter::yearToDate, | 1395 | MyMoneyTransactionFilter::yearToDate, | ||
1396 | MyMoneyReport::eDetailAll, | 1396 | MyMoneyReport::eDetailAll, | ||
1397 | i18n("Investment Holdings by Account"), | 1397 | i18n("Investment Holdings by Account"), | ||
1398 | i18n("Default Report") | 1398 | i18n("Default Report") | ||
1399 | )); | 1399 | )); | ||
1400 | list.back().setInvestmentsOnly(true); | 1400 | list.back().setInvestmentsOnly(true); | ||
1401 | 1401 | | |||
1402 | list.push_back(MyMoneyReport( | 1402 | list.push_back(MyMoneyReport( | ||
1403 | MyMoneyReport::eEquityType, | 1403 | MyMoneyReport::eEquityType, | ||
1404 | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1404 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1405 | MyMoneyTransactionFilter::yearToDate, | 1405 | MyMoneyTransactionFilter::yearToDate, | ||
1406 | MyMoneyReport::eDetailAll, | 1406 | MyMoneyReport::eDetailAll, | ||
1407 | i18n("Investment Holdings by Type"), | 1407 | i18n("Investment Holdings by Type"), | ||
1408 | i18n("Default Report") | 1408 | i18n("Default Report") | ||
1409 | )); | 1409 | )); | ||
1410 | list.back().setInvestmentsOnly(true); | 1410 | list.back().setInvestmentsOnly(true); | ||
1411 | 1411 | | |||
1412 | list.push_back(MyMoneyReport( | 1412 | list.push_back(MyMoneyReport( | ||
1413 | MyMoneyReport::eAccountByTopAccount, | 1413 | MyMoneyReport::eAccountByTopAccount, | ||
1414 | MyMoneyReport::eQCperformance, | 1414 | MyMoneyReport::QueryColumns::Performance, | ||
1415 | MyMoneyTransactionFilter::yearToDate, | 1415 | MyMoneyTransactionFilter::yearToDate, | ||
1416 | MyMoneyReport::eDetailAll, | 1416 | MyMoneyReport::eDetailAll, | ||
1417 | i18n("Investment Performance by Account"), | 1417 | i18n("Investment Performance by Account"), | ||
1418 | i18n("Default Report") | 1418 | i18n("Default Report") | ||
1419 | )); | 1419 | )); | ||
1420 | list.back().setInvestmentsOnly(true); | 1420 | list.back().setInvestmentsOnly(true); | ||
1421 | 1421 | | |||
1422 | list.push_back(MyMoneyReport( | 1422 | list.push_back(MyMoneyReport( | ||
1423 | MyMoneyReport::eEquityType, | 1423 | MyMoneyReport::eEquityType, | ||
1424 | MyMoneyReport::eQCperformance, | 1424 | MyMoneyReport::QueryColumns::Performance, | ||
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, | ||
▲ Show 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | |||||
1527 | list.back().setMovingAverageDays(10); | 1527 | list.back().setMovingAverageDays(10); | ||
1528 | groups.push_back(list); | 1528 | groups.push_back(list); | ||
1529 | } | 1529 | } | ||
1530 | { | 1530 | { | ||
1531 | ReportGroup list("Taxes", i18n("Taxes")); | 1531 | ReportGroup list("Taxes", i18n("Taxes")); | ||
1532 | 1532 | | |||
1533 | list.push_back(MyMoneyReport( | 1533 | list.push_back(MyMoneyReport( | ||
1534 | MyMoneyReport::eCategory, | 1534 | MyMoneyReport::eCategory, | ||
1535 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1535 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1536 | MyMoneyTransactionFilter::yearToDate, | 1536 | MyMoneyTransactionFilter::yearToDate, | ||
1537 | MyMoneyReport::eDetailAll, | 1537 | MyMoneyReport::eDetailAll, | ||
1538 | i18n("Tax Transactions by Category"), | 1538 | i18n("Tax Transactions by Category"), | ||
1539 | i18n("Default Report") | 1539 | i18n("Default Report") | ||
1540 | )); | 1540 | )); | ||
1541 | list.back().setTax(true); | 1541 | list.back().setTax(true); | ||
1542 | list.push_back(MyMoneyReport( | 1542 | list.push_back(MyMoneyReport( | ||
1543 | MyMoneyReport::ePayee, | 1543 | MyMoneyReport::ePayee, | ||
1544 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCaccount, | 1544 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | ||
1545 | MyMoneyTransactionFilter::yearToDate, | 1545 | MyMoneyTransactionFilter::yearToDate, | ||
1546 | MyMoneyReport::eDetailAll, | 1546 | MyMoneyReport::eDetailAll, | ||
1547 | i18n("Tax Transactions by Payee"), | 1547 | i18n("Tax Transactions by Payee"), | ||
1548 | i18n("Default Report") | 1548 | i18n("Default Report") | ||
1549 | )); | 1549 | )); | ||
1550 | list.back().setTax(true); | 1550 | list.back().setTax(true); | ||
1551 | list.push_back(MyMoneyReport( | 1551 | list.push_back(MyMoneyReport( | ||
1552 | MyMoneyReport::eCategory, | 1552 | MyMoneyReport::eCategory, | ||
1553 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1553 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1554 | MyMoneyTransactionFilter::lastFiscalYear, | 1554 | MyMoneyTransactionFilter::lastFiscalYear, | ||
1555 | MyMoneyReport::eDetailAll, | 1555 | MyMoneyReport::eDetailAll, | ||
1556 | i18n("Tax Transactions by Category Last Fiscal Year"), | 1556 | i18n("Tax Transactions by Category Last Fiscal Year"), | ||
1557 | i18n("Default Report") | 1557 | i18n("Default Report") | ||
1558 | )); | 1558 | )); | ||
1559 | list.back().setTax(true); | 1559 | list.back().setTax(true); | ||
1560 | list.push_back(MyMoneyReport( | 1560 | list.push_back(MyMoneyReport( | ||
1561 | MyMoneyReport::ePayee, | 1561 | MyMoneyReport::ePayee, | ||
1562 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCaccount, | 1562 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | ||
1563 | MyMoneyTransactionFilter::lastFiscalYear, | 1563 | MyMoneyTransactionFilter::lastFiscalYear, | ||
1564 | MyMoneyReport::eDetailAll, | 1564 | MyMoneyReport::eDetailAll, | ||
1565 | i18n("Tax Transactions by Payee Last Fiscal Year"), | 1565 | i18n("Tax Transactions by Payee Last Fiscal Year"), | ||
1566 | i18n("Default Report") | 1566 | i18n("Default Report") | ||
1567 | )); | 1567 | )); | ||
1568 | list.back().setTax(true); | 1568 | list.back().setTax(true); | ||
1569 | groups.push_back(list); | 1569 | groups.push_back(list); | ||
1570 | } | 1570 | } | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |