Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kreportsview.cpp
Show First 20 Lines • Show All 1167 Lines • ▼ Show 20 Line(s) | |||||
1168 | } | 1168 | } | ||
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::Row::ExpenseIncome, | ||
1177 | MyMoneyReport::Column::Months, | 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::Row::ExpenseIncome, | ||
1185 | MyMoneyReport::Column::Months, | 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::Row::ExpenseIncome, | ||
1193 | MyMoneyReport::Column::Years, | 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::Row::ExpenseIncome, | ||
1202 | MyMoneyReport::Column::Months, | 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::Row::ExpenseIncome, | ||
1214 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1231 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1239 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1247 | MyMoneyReport::Column::Years, | 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::Row::AssetLiability, | ||
1255 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1266 | MyMoneyReport::Column::Months, | 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); | ||
1275 | 1275 | | |||
1276 | list.push_back(MyMoneyReport( | 1276 | list.push_back(MyMoneyReport( | ||
1277 | MyMoneyReport::eInstitution, | 1277 | MyMoneyReport::Row::Institution, | ||
1278 | MyMoneyReport::QueryColumns::None, | 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::Row::AccountType, | ||
1287 | MyMoneyReport::QueryColumns::None, | 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::Row::Account, | ||
1301 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag | MyMoneyReport::QueryColumns::Balance, | 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::Row::Category, | ||
1310 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account | MyMoneyReport::QueryColumns::Tag, | 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::Row::Payee, | ||
1318 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | 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::Row::Tag, | ||
1326 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category, | 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::Row::Month, | ||
1334 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | 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::Row::Week, | ||
1342 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | 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::Row::Account, | ||
1350 | MyMoneyReport::QueryColumns::Loan, | 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::Row::AccountReconcile, | ||
1359 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Balance, | 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::Row::CashFlow, | ||
1371 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | 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::Row::TopAccount, | ||
1384 | MyMoneyReport::QueryColumns::Action | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | 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::Row::AccountByTopAccount, | ||
1394 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | 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::Row::EquityType, | ||
1404 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | 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::Row::AccountByTopAccount, | ||
1414 | MyMoneyReport::QueryColumns::Performance, | 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::Row::EquityType, | ||
1424 | MyMoneyReport::QueryColumns::Performance, | 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::Row::AssetLiability, | ||
1433 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1446 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1460 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1479 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1498 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1514 | MyMoneyReport::Column::Months, | 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); | ||
1523 | list.back().setColumnsAreDays(true); | 1523 | list.back().setColumnsAreDays(true); | ||
1524 | list.back().setInvestmentsOnly(true); | 1524 | list.back().setInvestmentsOnly(true); | ||
1525 | list.back().setIncludingBudgetActuals(true); | 1525 | list.back().setIncludingBudgetActuals(true); | ||
1526 | list.back().setIncludingMovingAverage(true); | 1526 | list.back().setIncludingMovingAverage(true); | ||
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::Row::Category, | ||
1535 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | 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::Row::Payee, | ||
1544 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | 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::Row::Category, | ||
1553 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | 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::Row::Payee, | ||
1562 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | 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 | } | ||
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::Row::BudgetActual, | ||
1576 | MyMoneyReport::Column::Months, | 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::Row::BudgetActual, | ||
1587 | MyMoneyReport::Column::Months, | 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::Row::BudgetActual, | ||
1602 | MyMoneyReport::Column::Months, | 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::Row::BudgetActual, | ||
1612 | MyMoneyReport::Column::Months, | 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::Row::Budget, | ||
1623 | MyMoneyReport::Column::Months, | 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::Row::Budget, | ||
1633 | MyMoneyReport::Column::Months, | 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::Row::BudgetActual, | ||
1643 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1661 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1671 | MyMoneyReport::Column::Months, | 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::Row::ExpenseIncome, | ||
1682 | MyMoneyReport::Column::Months, | 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::Row::AssetLiability, | ||
1692 | MyMoneyReport::Column::Months, | 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::Row::Schedule, | ||
1710 | MyMoneyReport::Column::Months, | 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::Row::Schedule, | ||
1719 | MyMoneyReport::Column::Months, | 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::Row::AccountInfo, | ||
1728 | MyMoneyReport::Column::Months, | 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::Row::AccountLoanInfo, | ||
1737 | MyMoneyReport::Column::Months, | 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); | ||
Show All 40 Lines |