Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kreportsview_p.h
Show First 20 Lines • Show All 349 Lines • ▼ Show 20 Line(s) | 348 | try { | |||
---|---|---|---|---|---|
350 | if (!m_report.id().isEmpty()) | 350 | if (!m_report.id().isEmpty()) | ||
351 | m_report = MyMoneyFile::instance()->report(m_report.id()); | 351 | m_report = MyMoneyFile::instance()->report(m_report.id()); | ||
352 | } catch (const MyMoneyException &) { | 352 | } catch (const MyMoneyException &) { | ||
353 | } | 353 | } | ||
354 | 354 | | |||
355 | delete m_table; | 355 | delete m_table; | ||
356 | m_table = 0; | 356 | m_table = 0; | ||
357 | 357 | | |||
358 | if (m_report.reportType() == MyMoneyReport::ePivotTable) { | 358 | if (m_report.reportType() == MyMoneyReport::Report::PivotTable) { | ||
359 | m_table = new PivotTable(m_report); | 359 | m_table = new PivotTable(m_report); | ||
360 | m_chartEnabled = true; | 360 | m_chartEnabled = true; | ||
361 | } else if (m_report.reportType() == MyMoneyReport::eQueryTable) { | 361 | } else if (m_report.reportType() == MyMoneyReport::Report::QueryTable) { | ||
362 | m_table = new QueryTable(m_report); | 362 | m_table = new QueryTable(m_report); | ||
363 | m_chartEnabled = false; | 363 | m_chartEnabled = false; | ||
364 | } else if (m_report.reportType() == MyMoneyReport::eInfoTable) { | 364 | } else if (m_report.reportType() == MyMoneyReport::Report::InfoTable) { | ||
365 | m_table = new ObjectInfoTable(m_report); | 365 | m_table = new ObjectInfoTable(m_report); | ||
366 | m_chartEnabled = false; | 366 | m_chartEnabled = false; | ||
367 | } | 367 | } | ||
368 | 368 | | |||
369 | m_control->ui->buttonChart->setEnabled(m_chartEnabled); | 369 | m_control->ui->buttonChart->setEnabled(m_chartEnabled); | ||
370 | 370 | | |||
371 | m_showingChart = !m_showingChart; | 371 | m_showingChart = !m_showingChart; | ||
372 | toggleChart(); | 372 | toggleChart(); | ||
▲ Show 20 Lines • Show All 429 Lines • ▼ Show 20 Line(s) | 442 | public: | |||
802 | } | 802 | } | ||
803 | 803 | | |||
804 | void defaultReports(QList<ReportGroup>& groups) | 804 | void defaultReports(QList<ReportGroup>& groups) | ||
805 | { | 805 | { | ||
806 | { | 806 | { | ||
807 | ReportGroup list("Income and Expenses", i18n("Income and Expenses")); | 807 | ReportGroup list("Income and Expenses", i18n("Income and Expenses")); | ||
808 | 808 | | |||
809 | list.push_back(MyMoneyReport( | 809 | list.push_back(MyMoneyReport( | ||
810 | MyMoneyReport::eExpenseIncome, | 810 | MyMoneyReport::Row::ExpenseIncome, | ||
811 | MyMoneyReport::eMonths, | 811 | MyMoneyReport::Column::Months, | ||
812 | TransactionFilter::Date::CurrentMonth, | 812 | TransactionFilter::Date::CurrentMonth, | ||
813 | MyMoneyReport::eDetailAll, | 813 | MyMoneyReport::eDetailAll, | ||
814 | i18n("Income and Expenses This Month"), | 814 | i18n("Income and Expenses This Month"), | ||
815 | i18n("Default Report") | 815 | i18n("Default Report") | ||
816 | )); | 816 | )); | ||
817 | list.push_back(MyMoneyReport( | 817 | list.push_back(MyMoneyReport( | ||
818 | MyMoneyReport::eExpenseIncome, | 818 | MyMoneyReport::Row::ExpenseIncome, | ||
819 | MyMoneyReport::eMonths, | 819 | MyMoneyReport::Column::Months, | ||
820 | TransactionFilter::Date::YearToDate, | 820 | TransactionFilter::Date::YearToDate, | ||
821 | MyMoneyReport::eDetailAll, | 821 | MyMoneyReport::eDetailAll, | ||
822 | i18n("Income and Expenses This Year"), | 822 | i18n("Income and Expenses This Year"), | ||
823 | i18n("Default Report") | 823 | i18n("Default Report") | ||
824 | )); | 824 | )); | ||
825 | list.push_back(MyMoneyReport( | 825 | list.push_back(MyMoneyReport( | ||
826 | MyMoneyReport::eExpenseIncome, | 826 | MyMoneyReport::Row::ExpenseIncome, | ||
827 | MyMoneyReport::eYears, | 827 | MyMoneyReport::Column::Years, | ||
828 | TransactionFilter::Date::All, | 828 | TransactionFilter::Date::All, | ||
829 | MyMoneyReport::eDetailAll, | 829 | MyMoneyReport::eDetailAll, | ||
830 | i18n("Income and Expenses By Year"), | 830 | i18n("Income and Expenses By Year"), | ||
831 | i18n("Default Report") | 831 | i18n("Default Report") | ||
832 | )); | 832 | )); | ||
833 | 833 | | |||
834 | list.push_back(MyMoneyReport( | 834 | list.push_back(MyMoneyReport( | ||
835 | MyMoneyReport::eExpenseIncome, | 835 | MyMoneyReport::Row::ExpenseIncome, | ||
836 | MyMoneyReport::eMonths, | 836 | MyMoneyReport::Column::Months, | ||
837 | TransactionFilter::Date::Last12Months, | 837 | TransactionFilter::Date::Last12Months, | ||
838 | MyMoneyReport::eDetailTop, | 838 | MyMoneyReport::eDetailTop, | ||
839 | i18n("Income and Expenses Graph"), | 839 | i18n("Income and Expenses Graph"), | ||
840 | i18n("Default Report") | 840 | i18n("Default Report") | ||
841 | )); | 841 | )); | ||
842 | list.back().setChartByDefault(true); | 842 | list.back().setChartByDefault(true); | ||
843 | list.back().setChartType(MyMoneyReport::eChartLine); | 843 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
844 | list.back().setChartDataLabels(false); | 844 | list.back().setChartDataLabels(false); | ||
845 | 845 | | |||
846 | list.push_back(MyMoneyReport( | 846 | list.push_back(MyMoneyReport( | ||
847 | MyMoneyReport::eExpenseIncome, | 847 | MyMoneyReport::Row::ExpenseIncome, | ||
848 | MyMoneyReport::eMonths, | 848 | MyMoneyReport::Column::Months, | ||
849 | TransactionFilter::Date::YearToDate, | 849 | TransactionFilter::Date::YearToDate, | ||
850 | MyMoneyReport::eDetailGroup, | 850 | MyMoneyReport::eDetailGroup, | ||
851 | i18n("Income and Expenses Pie Chart"), | 851 | i18n("Income and Expenses Pie Chart"), | ||
852 | i18n("Default Report") | 852 | i18n("Default Report") | ||
853 | )); | 853 | )); | ||
854 | list.back().setChartByDefault(true); | 854 | list.back().setChartByDefault(true); | ||
855 | list.back().setChartType(MyMoneyReport::eChartPie); | 855 | list.back().setChartType(MyMoneyReport::eChartPie); | ||
856 | list.back().setShowingRowTotals(false); | 856 | list.back().setShowingRowTotals(false); | ||
857 | 857 | | |||
858 | groups.push_back(list); | 858 | groups.push_back(list); | ||
859 | } | 859 | } | ||
860 | { | 860 | { | ||
861 | ReportGroup list("Net Worth", i18n("Net Worth")); | 861 | ReportGroup list("Net Worth", i18n("Net Worth")); | ||
862 | 862 | | |||
863 | list.push_back(MyMoneyReport( | 863 | list.push_back(MyMoneyReport( | ||
864 | MyMoneyReport::eAssetLiability, | 864 | MyMoneyReport::Row::AssetLiability, | ||
865 | MyMoneyReport::eMonths, | 865 | MyMoneyReport::Column::Months, | ||
866 | TransactionFilter::Date::YearToDate, | 866 | TransactionFilter::Date::YearToDate, | ||
867 | MyMoneyReport::eDetailTop, | 867 | MyMoneyReport::eDetailTop, | ||
868 | i18n("Net Worth By Month"), | 868 | i18n("Net Worth By Month"), | ||
869 | i18n("Default Report") | 869 | i18n("Default Report") | ||
870 | )); | 870 | )); | ||
871 | list.push_back(MyMoneyReport( | 871 | list.push_back(MyMoneyReport( | ||
872 | MyMoneyReport::eAssetLiability, | 872 | MyMoneyReport::Row::AssetLiability, | ||
873 | MyMoneyReport::eMonths, | 873 | MyMoneyReport::Column::Months, | ||
874 | TransactionFilter::Date::Today, | 874 | TransactionFilter::Date::Today, | ||
875 | MyMoneyReport::eDetailTop, | 875 | MyMoneyReport::eDetailTop, | ||
876 | i18n("Net Worth Today"), | 876 | i18n("Net Worth Today"), | ||
877 | i18n("Default Report") | 877 | i18n("Default Report") | ||
878 | )); | 878 | )); | ||
879 | list.push_back(MyMoneyReport( | 879 | list.push_back(MyMoneyReport( | ||
880 | MyMoneyReport::eAssetLiability, | 880 | MyMoneyReport::Row::AssetLiability, | ||
881 | MyMoneyReport::eYears, | 881 | MyMoneyReport::Column::Years, | ||
882 | TransactionFilter::Date::All, | 882 | TransactionFilter::Date::All, | ||
883 | MyMoneyReport::eDetailTop, | 883 | MyMoneyReport::eDetailTop, | ||
884 | i18n("Net Worth By Year"), | 884 | i18n("Net Worth By Year"), | ||
885 | i18n("Default Report") | 885 | i18n("Default Report") | ||
886 | )); | 886 | )); | ||
887 | list.push_back(MyMoneyReport( | 887 | list.push_back(MyMoneyReport( | ||
888 | MyMoneyReport::eAssetLiability, | 888 | MyMoneyReport::Row::AssetLiability, | ||
889 | MyMoneyReport::eMonths, | 889 | MyMoneyReport::Column::Months, | ||
890 | TransactionFilter::Date::Next7Days, | 890 | TransactionFilter::Date::Next7Days, | ||
891 | MyMoneyReport::eDetailTop, | 891 | MyMoneyReport::eDetailTop, | ||
892 | i18n("7-day Cash Flow Forecast"), | 892 | i18n("7-day Cash Flow Forecast"), | ||
893 | i18n("Default Report") | 893 | i18n("Default Report") | ||
894 | )); | 894 | )); | ||
895 | list.back().setIncludingSchedules(true); | 895 | list.back().setIncludingSchedules(true); | ||
896 | list.back().setColumnsAreDays(true); | 896 | list.back().setColumnsAreDays(true); | ||
897 | 897 | | |||
898 | list.push_back(MyMoneyReport( | 898 | list.push_back(MyMoneyReport( | ||
899 | MyMoneyReport::eAssetLiability, | 899 | MyMoneyReport::Row::AssetLiability, | ||
900 | MyMoneyReport::eMonths, | 900 | MyMoneyReport::Column::Months, | ||
901 | TransactionFilter::Date::Last12Months, | 901 | TransactionFilter::Date::Last12Months, | ||
902 | MyMoneyReport::eDetailTotal, | 902 | MyMoneyReport::eDetailTotal, | ||
903 | i18n("Net Worth Graph"), | 903 | i18n("Net Worth Graph"), | ||
904 | i18n("Default Report") | 904 | i18n("Default Report") | ||
905 | )); | 905 | )); | ||
906 | list.back().setChartByDefault(true); | 906 | list.back().setChartByDefault(true); | ||
907 | list.back().setChartCHGridLines(false); | 907 | list.back().setChartCHGridLines(false); | ||
908 | list.back().setChartSVGridLines(false); | 908 | list.back().setChartSVGridLines(false); | ||
909 | list.back().setChartType(MyMoneyReport::eChartLine); | 909 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
910 | 910 | | |||
911 | list.push_back(MyMoneyReport( | 911 | list.push_back(MyMoneyReport( | ||
912 | MyMoneyReport::eInstitution, | 912 | MyMoneyReport::Row::Institution, | ||
913 | MyMoneyReport::eQCnone, | 913 | MyMoneyReport::QueryColumns::None, | ||
914 | TransactionFilter::Date::YearToDate, | 914 | TransactionFilter::Date::YearToDate, | ||
915 | MyMoneyReport::eDetailTop, | 915 | MyMoneyReport::eDetailTop, | ||
916 | i18n("Account Balances by Institution"), | 916 | i18n("Account Balances by Institution"), | ||
917 | i18n("Default Report") | 917 | i18n("Default Report") | ||
918 | )); | 918 | )); | ||
919 | 919 | | |||
920 | list.push_back(MyMoneyReport( | 920 | list.push_back(MyMoneyReport( | ||
921 | MyMoneyReport::eAccountType, | 921 | MyMoneyReport::Row::AccountType, | ||
922 | MyMoneyReport::eQCnone, | 922 | MyMoneyReport::QueryColumns::None, | ||
923 | TransactionFilter::Date::YearToDate, | 923 | TransactionFilter::Date::YearToDate, | ||
924 | MyMoneyReport::eDetailTop, | 924 | MyMoneyReport::eDetailTop, | ||
925 | i18n("Account Balances by Type"), | 925 | i18n("Account Balances by Type"), | ||
926 | i18n("Default Report") | 926 | i18n("Default Report") | ||
927 | )); | 927 | )); | ||
928 | 928 | | |||
929 | groups.push_back(list); | 929 | groups.push_back(list); | ||
930 | } | 930 | } | ||
931 | { | 931 | { | ||
932 | ReportGroup list("Transactions", i18n("Transactions")); | 932 | ReportGroup list("Transactions", i18n("Transactions")); | ||
933 | 933 | | |||
934 | list.push_back(MyMoneyReport( | 934 | list.push_back(MyMoneyReport( | ||
935 | MyMoneyReport::eAccount, | 935 | MyMoneyReport::Row::Account, | ||
936 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag | MyMoneyReport::eQCbalance, | 936 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag | MyMoneyReport::QueryColumns::Balance, | ||
937 | TransactionFilter::Date::YearToDate, | 937 | TransactionFilter::Date::YearToDate, | ||
938 | MyMoneyReport::eDetailAll, | 938 | MyMoneyReport::eDetailAll, | ||
939 | i18n("Transactions by Account"), | 939 | i18n("Transactions by Account"), | ||
940 | i18n("Default Report") | 940 | i18n("Default Report") | ||
941 | )); | 941 | )); | ||
942 | //list.back().setConvertCurrency(false); | 942 | //list.back().setConvertCurrency(false); | ||
943 | list.push_back(MyMoneyReport( | 943 | list.push_back(MyMoneyReport( | ||
944 | MyMoneyReport::eCategory, | 944 | MyMoneyReport::Row::Category, | ||
945 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount | MyMoneyReport::eQCtag, | 945 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account | MyMoneyReport::QueryColumns::Tag, | ||
946 | TransactionFilter::Date::YearToDate, | 946 | TransactionFilter::Date::YearToDate, | ||
947 | MyMoneyReport::eDetailAll, | 947 | MyMoneyReport::eDetailAll, | ||
948 | i18n("Transactions by Category"), | 948 | i18n("Transactions by Category"), | ||
949 | i18n("Default Report") | 949 | i18n("Default Report") | ||
950 | )); | 950 | )); | ||
951 | list.push_back(MyMoneyReport( | 951 | list.push_back(MyMoneyReport( | ||
952 | MyMoneyReport::ePayee, | 952 | MyMoneyReport::Row::Payee, | ||
953 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 953 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
954 | TransactionFilter::Date::YearToDate, | 954 | TransactionFilter::Date::YearToDate, | ||
955 | MyMoneyReport::eDetailAll, | 955 | MyMoneyReport::eDetailAll, | ||
956 | i18n("Transactions by Payee"), | 956 | i18n("Transactions by Payee"), | ||
957 | i18n("Default Report") | 957 | i18n("Default Report") | ||
958 | )); | 958 | )); | ||
959 | list.push_back(MyMoneyReport( | 959 | list.push_back(MyMoneyReport( | ||
960 | MyMoneyReport::eTag, | 960 | MyMoneyReport::Row::Tag, | ||
961 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory, | 961 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category, | ||
962 | TransactionFilter::Date::YearToDate, | 962 | TransactionFilter::Date::YearToDate, | ||
963 | MyMoneyReport::eDetailAll, | 963 | MyMoneyReport::eDetailAll, | ||
964 | i18n("Transactions by Tag"), | 964 | i18n("Transactions by Tag"), | ||
965 | i18n("Default Report") | 965 | i18n("Default Report") | ||
966 | )); | 966 | )); | ||
967 | list.push_back(MyMoneyReport( | 967 | list.push_back(MyMoneyReport( | ||
968 | MyMoneyReport::eMonth, | 968 | MyMoneyReport::Row::Month, | ||
969 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 969 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
970 | TransactionFilter::Date::YearToDate, | 970 | TransactionFilter::Date::YearToDate, | ||
971 | MyMoneyReport::eDetailAll, | 971 | MyMoneyReport::eDetailAll, | ||
972 | i18n("Transactions by Month"), | 972 | i18n("Transactions by Month"), | ||
973 | i18n("Default Report") | 973 | i18n("Default Report") | ||
974 | )); | 974 | )); | ||
975 | list.push_back(MyMoneyReport( | 975 | list.push_back(MyMoneyReport( | ||
976 | MyMoneyReport::eWeek, | 976 | MyMoneyReport::Row::Week, | ||
977 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCtag, | 977 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Tag, | ||
978 | TransactionFilter::Date::YearToDate, | 978 | TransactionFilter::Date::YearToDate, | ||
979 | MyMoneyReport::eDetailAll, | 979 | MyMoneyReport::eDetailAll, | ||
980 | i18n("Transactions by Week"), | 980 | i18n("Transactions by Week"), | ||
981 | i18n("Default Report") | 981 | i18n("Default Report") | ||
982 | )); | 982 | )); | ||
983 | list.push_back(MyMoneyReport( | 983 | list.push_back(MyMoneyReport( | ||
984 | MyMoneyReport::eAccount, | 984 | MyMoneyReport::Row::Account, | ||
985 | MyMoneyReport::eQCloan, | 985 | MyMoneyReport::QueryColumns::Loan, | ||
986 | TransactionFilter::Date::All, | 986 | TransactionFilter::Date::All, | ||
987 | MyMoneyReport::eDetailAll, | 987 | MyMoneyReport::eDetailAll, | ||
988 | i18n("Loan Transactions"), | 988 | i18n("Loan Transactions"), | ||
989 | i18n("Default Report") | 989 | i18n("Default Report") | ||
990 | )); | 990 | )); | ||
991 | list.back().setLoansOnly(true); | 991 | list.back().setLoansOnly(true); | ||
992 | list.push_back(MyMoneyReport( | 992 | list.push_back(MyMoneyReport( | ||
993 | MyMoneyReport::eAccountReconcile, | 993 | MyMoneyReport::Row::AccountReconcile, | ||
994 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory | MyMoneyReport::eQCbalance, | 994 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Balance, | ||
995 | TransactionFilter::Date::Last3Months, | 995 | TransactionFilter::Date::Last3Months, | ||
996 | MyMoneyReport::eDetailAll, | 996 | MyMoneyReport::eDetailAll, | ||
997 | i18n("Transactions by Reconciliation Status"), | 997 | i18n("Transactions by Reconciliation Status"), | ||
998 | i18n("Default Report") | 998 | i18n("Default Report") | ||
999 | )); | 999 | )); | ||
1000 | groups.push_back(list); | 1000 | groups.push_back(list); | ||
1001 | } | 1001 | } | ||
1002 | { | 1002 | { | ||
1003 | ReportGroup list("CashFlow", i18n("Cash Flow")); | 1003 | ReportGroup list("CashFlow", i18n("Cash Flow")); | ||
1004 | list.push_back(MyMoneyReport( | 1004 | list.push_back(MyMoneyReport( | ||
1005 | MyMoneyReport::eCashFlow, | 1005 | MyMoneyReport::Row::CashFlow, | ||
1006 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1006 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1007 | TransactionFilter::Date::YearToDate, | 1007 | TransactionFilter::Date::YearToDate, | ||
1008 | MyMoneyReport::eDetailAll, | 1008 | MyMoneyReport::eDetailAll, | ||
1009 | i18n("Cash Flow Transactions This Month"), | 1009 | i18n("Cash Flow Transactions This Month"), | ||
1010 | i18n("Default Report") | 1010 | i18n("Default Report") | ||
1011 | )); | 1011 | )); | ||
1012 | groups.push_back(list); | 1012 | groups.push_back(list); | ||
1013 | } | 1013 | } | ||
1014 | { | 1014 | { | ||
1015 | ReportGroup list("Investments", i18n("Investments")); | 1015 | ReportGroup list("Investments", i18n("Investments")); | ||
1016 | 1016 | | |||
1017 | list.push_back(MyMoneyReport( | 1017 | list.push_back(MyMoneyReport( | ||
1018 | MyMoneyReport::eTopAccount, | 1018 | MyMoneyReport::Row::TopAccount, | ||
1019 | MyMoneyReport::eQCaction | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1019 | MyMoneyReport::QueryColumns::Action | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1020 | TransactionFilter::Date::YearToDate, | 1020 | TransactionFilter::Date::YearToDate, | ||
1021 | MyMoneyReport::eDetailAll, | 1021 | MyMoneyReport::eDetailAll, | ||
1022 | i18n("Investment Transactions"), | 1022 | i18n("Investment Transactions"), | ||
1023 | i18n("Default Report") | 1023 | i18n("Default Report") | ||
1024 | )); | 1024 | )); | ||
1025 | list.back().setInvestmentsOnly(true); | 1025 | list.back().setInvestmentsOnly(true); | ||
1026 | 1026 | | |||
1027 | list.push_back(MyMoneyReport( | 1027 | list.push_back(MyMoneyReport( | ||
1028 | MyMoneyReport::eAccountByTopAccount, | 1028 | MyMoneyReport::Row::AccountByTopAccount, | ||
1029 | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1029 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1030 | TransactionFilter::Date::YearToDate, | 1030 | TransactionFilter::Date::YearToDate, | ||
1031 | MyMoneyReport::eDetailAll, | 1031 | MyMoneyReport::eDetailAll, | ||
1032 | i18n("Investment Holdings by Account"), | 1032 | i18n("Investment Holdings by Account"), | ||
1033 | i18n("Default Report") | 1033 | i18n("Default Report") | ||
1034 | )); | 1034 | )); | ||
1035 | list.back().setInvestmentsOnly(true); | 1035 | list.back().setInvestmentsOnly(true); | ||
1036 | 1036 | | |||
1037 | list.push_back(MyMoneyReport( | 1037 | list.push_back(MyMoneyReport( | ||
1038 | MyMoneyReport::eEquityType, | 1038 | MyMoneyReport::Row::EquityType, | ||
1039 | MyMoneyReport::eQCshares | MyMoneyReport::eQCprice, | 1039 | MyMoneyReport::QueryColumns::Shares | MyMoneyReport::QueryColumns::Price, | ||
1040 | TransactionFilter::Date::YearToDate, | 1040 | TransactionFilter::Date::YearToDate, | ||
1041 | MyMoneyReport::eDetailAll, | 1041 | MyMoneyReport::eDetailAll, | ||
1042 | i18n("Investment Holdings by Type"), | 1042 | i18n("Investment Holdings by Type"), | ||
1043 | i18n("Default Report") | 1043 | i18n("Default Report") | ||
1044 | )); | 1044 | )); | ||
1045 | list.back().setInvestmentsOnly(true); | 1045 | list.back().setInvestmentsOnly(true); | ||
1046 | 1046 | | |||
1047 | list.push_back(MyMoneyReport( | 1047 | list.push_back(MyMoneyReport( | ||
1048 | MyMoneyReport::eAccountByTopAccount, | 1048 | MyMoneyReport::Row::AccountByTopAccount, | ||
1049 | MyMoneyReport::eQCperformance, | 1049 | MyMoneyReport::QueryColumns::Performance, | ||
1050 | TransactionFilter::Date::YearToDate, | 1050 | TransactionFilter::Date::YearToDate, | ||
1051 | MyMoneyReport::eDetailAll, | 1051 | MyMoneyReport::eDetailAll, | ||
1052 | i18n("Investment Performance by Account"), | 1052 | i18n("Investment Performance by Account"), | ||
1053 | i18n("Default Report") | 1053 | i18n("Default Report") | ||
1054 | )); | 1054 | )); | ||
1055 | list.back().setInvestmentsOnly(true); | 1055 | list.back().setInvestmentsOnly(true); | ||
1056 | 1056 | | |||
1057 | list.push_back(MyMoneyReport( | 1057 | list.push_back(MyMoneyReport( | ||
1058 | MyMoneyReport::eEquityType, | 1058 | MyMoneyReport::Row::EquityType, | ||
1059 | MyMoneyReport::eQCperformance, | 1059 | MyMoneyReport::QueryColumns::Performance, | ||
1060 | TransactionFilter::Date::YearToDate, | 1060 | TransactionFilter::Date::YearToDate, | ||
1061 | MyMoneyReport::eDetailAll, | 1061 | MyMoneyReport::eDetailAll, | ||
1062 | i18n("Investment Performance by Type"), | 1062 | i18n("Investment Performance by Type"), | ||
1063 | i18n("Default Report") | 1063 | i18n("Default Report") | ||
1064 | )); | 1064 | )); | ||
1065 | list.back().setInvestmentsOnly(true); | 1065 | list.back().setInvestmentsOnly(true); | ||
1066 | 1066 | | |||
1067 | list.push_back(MyMoneyReport( | 1067 | list.push_back(MyMoneyReport( | ||
1068 | MyMoneyReport::eAccountByTopAccount, | 1068 | MyMoneyReport::Row::AccountByTopAccount, | ||
1069 | MyMoneyReport::eQCcapitalgain, | 1069 | MyMoneyReport::QueryColumns::Capitalgain, | ||
1070 | TransactionFilter::Date::YearToDate, | 1070 | TransactionFilter::Date::YearToDate, | ||
1071 | MyMoneyReport::eDetailAll, | 1071 | MyMoneyReport::eDetailAll, | ||
1072 | i18n("Investment Capital Gains by Account"), | 1072 | i18n("Investment Capital Gains by Account"), | ||
1073 | i18n("Default Report") | 1073 | i18n("Default Report") | ||
1074 | )); | 1074 | )); | ||
1075 | list.back().setInvestmentsOnly(true); | 1075 | list.back().setInvestmentsOnly(true); | ||
1076 | 1076 | | |||
1077 | list.push_back(MyMoneyReport( | 1077 | list.push_back(MyMoneyReport( | ||
1078 | MyMoneyReport::eEquityType, | 1078 | MyMoneyReport::Row::EquityType, | ||
1079 | MyMoneyReport::eQCcapitalgain, | 1079 | MyMoneyReport::QueryColumns::Capitalgain, | ||
1080 | TransactionFilter::Date::YearToDate, | 1080 | TransactionFilter::Date::YearToDate, | ||
1081 | MyMoneyReport::eDetailAll, | 1081 | MyMoneyReport::eDetailAll, | ||
1082 | i18n("Investment Capital Gains by Type"), | 1082 | i18n("Investment Capital Gains by Type"), | ||
1083 | i18n("Default Report") | 1083 | i18n("Default Report") | ||
1084 | )); | 1084 | )); | ||
1085 | list.back().setInvestmentsOnly(true); | 1085 | list.back().setInvestmentsOnly(true); | ||
1086 | 1086 | | |||
1087 | list.push_back(MyMoneyReport( | 1087 | list.push_back(MyMoneyReport( | ||
1088 | MyMoneyReport::eAssetLiability, | 1088 | MyMoneyReport::Row::AssetLiability, | ||
1089 | MyMoneyReport::eMonths, | 1089 | MyMoneyReport::Column::Months, | ||
1090 | TransactionFilter::Date::Today, | 1090 | TransactionFilter::Date::Today, | ||
1091 | MyMoneyReport::eDetailAll, | 1091 | MyMoneyReport::eDetailAll, | ||
1092 | i18n("Investment Holdings Pie"), | 1092 | i18n("Investment Holdings Pie"), | ||
1093 | i18n("Default Report") | 1093 | i18n("Default Report") | ||
1094 | )); | 1094 | )); | ||
1095 | list.back().setChartByDefault(true); | 1095 | list.back().setChartByDefault(true); | ||
1096 | list.back().setChartCHGridLines(false); | 1096 | list.back().setChartCHGridLines(false); | ||
1097 | list.back().setChartSVGridLines(false); | 1097 | list.back().setChartSVGridLines(false); | ||
1098 | list.back().setChartType(MyMoneyReport::eChartPie); | 1098 | list.back().setChartType(MyMoneyReport::eChartPie); | ||
1099 | list.back().setInvestmentsOnly(true); | 1099 | list.back().setInvestmentsOnly(true); | ||
1100 | 1100 | | |||
1101 | list.push_back(MyMoneyReport( | 1101 | list.push_back(MyMoneyReport( | ||
1102 | MyMoneyReport::eAssetLiability, | 1102 | MyMoneyReport::Row::AssetLiability, | ||
1103 | MyMoneyReport::eMonths, | 1103 | MyMoneyReport::Column::Months, | ||
1104 | TransactionFilter::Date::Last12Months, | 1104 | TransactionFilter::Date::Last12Months, | ||
1105 | MyMoneyReport::eDetailAll, | 1105 | MyMoneyReport::eDetailAll, | ||
1106 | i18n("Investment Worth Graph"), | 1106 | i18n("Investment Worth Graph"), | ||
1107 | i18n("Default Report") | 1107 | i18n("Default Report") | ||
1108 | )); | 1108 | )); | ||
1109 | list.back().setChartByDefault(true); | 1109 | list.back().setChartByDefault(true); | ||
1110 | list.back().setChartCHGridLines(false); | 1110 | list.back().setChartCHGridLines(false); | ||
1111 | list.back().setChartSVGridLines(false); | 1111 | list.back().setChartSVGridLines(false); | ||
1112 | list.back().setChartType(MyMoneyReport::eChartLine); | 1112 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1113 | list.back().setColumnsAreDays(true); | 1113 | list.back().setColumnsAreDays(true); | ||
1114 | list.back().setInvestmentsOnly(true); | 1114 | list.back().setInvestmentsOnly(true); | ||
1115 | 1115 | | |||
1116 | list.push_back(MyMoneyReport( | 1116 | list.push_back(MyMoneyReport( | ||
1117 | MyMoneyReport::eAssetLiability, | 1117 | MyMoneyReport::Row::AssetLiability, | ||
1118 | MyMoneyReport::eMonths, | 1118 | MyMoneyReport::Column::Months, | ||
1119 | TransactionFilter::Date::Last12Months, | 1119 | TransactionFilter::Date::Last12Months, | ||
1120 | MyMoneyReport::eDetailAll, | 1120 | MyMoneyReport::eDetailAll, | ||
1121 | i18n("Investment Price Graph"), | 1121 | i18n("Investment Price Graph"), | ||
1122 | i18n("Default Report") | 1122 | i18n("Default Report") | ||
1123 | )); | 1123 | )); | ||
1124 | list.back().setChartByDefault(true); | 1124 | list.back().setChartByDefault(true); | ||
1125 | list.back().setChartCHGridLines(false); | 1125 | list.back().setChartCHGridLines(false); | ||
1126 | list.back().setChartSVGridLines(false); | 1126 | list.back().setChartSVGridLines(false); | ||
1127 | list.back().setChartType(MyMoneyReport::eChartLine); | 1127 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1128 | list.back().setColumnsAreDays(true); | 1128 | list.back().setColumnsAreDays(true); | ||
1129 | list.back().setInvestmentsOnly(true); | 1129 | list.back().setInvestmentsOnly(true); | ||
1130 | list.back().setIncludingBudgetActuals(false); | 1130 | list.back().setIncludingBudgetActuals(false); | ||
1131 | list.back().setIncludingPrice(true); | 1131 | list.back().setIncludingPrice(true); | ||
1132 | list.back().setConvertCurrency(true); | 1132 | list.back().setConvertCurrency(true); | ||
1133 | list.back().setChartDataLabels(false); | 1133 | list.back().setChartDataLabels(false); | ||
1134 | list.back().setSkipZero(true); | 1134 | list.back().setSkipZero(true); | ||
1135 | list.back().setShowingColumnTotals(false); | 1135 | list.back().setShowingColumnTotals(false); | ||
1136 | list.back().setShowingRowTotals(false); | 1136 | list.back().setShowingRowTotals(false); | ||
1137 | 1137 | | |||
1138 | list.push_back(MyMoneyReport( | 1138 | list.push_back(MyMoneyReport( | ||
1139 | MyMoneyReport::eAssetLiability, | 1139 | MyMoneyReport::Row::AssetLiability, | ||
1140 | MyMoneyReport::eMonths, | 1140 | MyMoneyReport::Column::Months, | ||
1141 | TransactionFilter::Date::Last12Months, | 1141 | TransactionFilter::Date::Last12Months, | ||
1142 | MyMoneyReport::eDetailAll, | 1142 | MyMoneyReport::eDetailAll, | ||
1143 | i18n("Investment Moving Average Price Graph"), | 1143 | i18n("Investment Moving Average Price Graph"), | ||
1144 | i18n("Default Report") | 1144 | i18n("Default Report") | ||
1145 | )); | 1145 | )); | ||
1146 | list.back().setChartByDefault(true); | 1146 | list.back().setChartByDefault(true); | ||
1147 | list.back().setChartCHGridLines(false); | 1147 | list.back().setChartCHGridLines(false); | ||
1148 | list.back().setChartSVGridLines(false); | 1148 | list.back().setChartSVGridLines(false); | ||
1149 | list.back().setChartType(MyMoneyReport::eChartLine); | 1149 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1150 | list.back().setColumnsAreDays(true); | 1150 | list.back().setColumnsAreDays(true); | ||
1151 | list.back().setInvestmentsOnly(true); | 1151 | list.back().setInvestmentsOnly(true); | ||
1152 | list.back().setIncludingBudgetActuals(false); | 1152 | list.back().setIncludingBudgetActuals(false); | ||
1153 | list.back().setIncludingAveragePrice(true); | 1153 | list.back().setIncludingAveragePrice(true); | ||
1154 | list.back().setMovingAverageDays(10); | 1154 | list.back().setMovingAverageDays(10); | ||
1155 | list.back().setConvertCurrency(true); | 1155 | list.back().setConvertCurrency(true); | ||
1156 | list.back().setChartDataLabels(false); | 1156 | list.back().setChartDataLabels(false); | ||
1157 | list.back().setShowingColumnTotals(false); | 1157 | list.back().setShowingColumnTotals(false); | ||
1158 | list.back().setShowingRowTotals(false); | 1158 | list.back().setShowingRowTotals(false); | ||
1159 | 1159 | | |||
1160 | list.push_back(MyMoneyReport( | 1160 | list.push_back(MyMoneyReport( | ||
1161 | MyMoneyReport::eAssetLiability, | 1161 | MyMoneyReport::Row::AssetLiability, | ||
1162 | MyMoneyReport::eMonths, | 1162 | MyMoneyReport::Column::Months, | ||
1163 | TransactionFilter::Date::Last30Days, | 1163 | TransactionFilter::Date::Last30Days, | ||
1164 | MyMoneyReport::eDetailAll, | 1164 | MyMoneyReport::eDetailAll, | ||
1165 | i18n("Investment Moving Average"), | 1165 | i18n("Investment Moving Average"), | ||
1166 | i18n("Default Report") | 1166 | i18n("Default Report") | ||
1167 | )); | 1167 | )); | ||
1168 | list.back().setChartCHGridLines(false); | 1168 | list.back().setChartCHGridLines(false); | ||
1169 | list.back().setChartSVGridLines(false); | 1169 | list.back().setChartSVGridLines(false); | ||
1170 | list.back().setChartType(MyMoneyReport::eChartLine); | 1170 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1171 | list.back().setColumnsAreDays(true); | 1171 | list.back().setColumnsAreDays(true); | ||
1172 | list.back().setInvestmentsOnly(true); | 1172 | list.back().setInvestmentsOnly(true); | ||
1173 | list.back().setIncludingBudgetActuals(false); | 1173 | list.back().setIncludingBudgetActuals(false); | ||
1174 | list.back().setIncludingMovingAverage(true); | 1174 | list.back().setIncludingMovingAverage(true); | ||
1175 | list.back().setMovingAverageDays(10); | 1175 | list.back().setMovingAverageDays(10); | ||
1176 | 1176 | | |||
1177 | list.push_back(MyMoneyReport( | 1177 | list.push_back(MyMoneyReport( | ||
1178 | MyMoneyReport::eAssetLiability, | 1178 | MyMoneyReport::Row::AssetLiability, | ||
1179 | MyMoneyReport::eMonths, | 1179 | MyMoneyReport::Column::Months, | ||
1180 | TransactionFilter::Date::Last30Days, | 1180 | TransactionFilter::Date::Last30Days, | ||
1181 | MyMoneyReport::eDetailAll, | 1181 | MyMoneyReport::eDetailAll, | ||
1182 | i18n("Investment Moving Average vs Actual"), | 1182 | i18n("Investment Moving Average vs Actual"), | ||
1183 | i18n("Default Report") | 1183 | i18n("Default Report") | ||
1184 | )); | 1184 | )); | ||
1185 | list.back().setChartByDefault(true); | 1185 | list.back().setChartByDefault(true); | ||
1186 | list.back().setChartCHGridLines(false); | 1186 | list.back().setChartCHGridLines(false); | ||
1187 | list.back().setChartSVGridLines(false); | 1187 | list.back().setChartSVGridLines(false); | ||
1188 | list.back().setChartType(MyMoneyReport::eChartLine); | 1188 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1189 | list.back().setColumnsAreDays(true); | 1189 | list.back().setColumnsAreDays(true); | ||
1190 | list.back().setInvestmentsOnly(true); | 1190 | list.back().setInvestmentsOnly(true); | ||
1191 | list.back().setIncludingBudgetActuals(true); | 1191 | list.back().setIncludingBudgetActuals(true); | ||
1192 | list.back().setIncludingMovingAverage(true); | 1192 | list.back().setIncludingMovingAverage(true); | ||
1193 | list.back().setMovingAverageDays(10); | 1193 | list.back().setMovingAverageDays(10); | ||
1194 | groups.push_back(list); | 1194 | groups.push_back(list); | ||
1195 | } | 1195 | } | ||
1196 | { | 1196 | { | ||
1197 | ReportGroup list("Taxes", i18n("Taxes")); | 1197 | ReportGroup list("Taxes", i18n("Taxes")); | ||
1198 | 1198 | | |||
1199 | list.push_back(MyMoneyReport( | 1199 | list.push_back(MyMoneyReport( | ||
1200 | MyMoneyReport::eCategory, | 1200 | MyMoneyReport::Row::Category, | ||
1201 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1201 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1202 | TransactionFilter::Date::YearToDate, | 1202 | TransactionFilter::Date::YearToDate, | ||
1203 | MyMoneyReport::eDetailAll, | 1203 | MyMoneyReport::eDetailAll, | ||
1204 | i18n("Tax Transactions by Category"), | 1204 | i18n("Tax Transactions by Category"), | ||
1205 | i18n("Default Report") | 1205 | i18n("Default Report") | ||
1206 | )); | 1206 | )); | ||
1207 | list.back().setTax(true); | 1207 | list.back().setTax(true); | ||
1208 | list.push_back(MyMoneyReport( | 1208 | list.push_back(MyMoneyReport( | ||
1209 | MyMoneyReport::ePayee, | 1209 | MyMoneyReport::Row::Payee, | ||
1210 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCaccount, | 1210 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | ||
1211 | TransactionFilter::Date::YearToDate, | 1211 | TransactionFilter::Date::YearToDate, | ||
1212 | MyMoneyReport::eDetailAll, | 1212 | MyMoneyReport::eDetailAll, | ||
1213 | i18n("Tax Transactions by Payee"), | 1213 | i18n("Tax Transactions by Payee"), | ||
1214 | i18n("Default Report") | 1214 | i18n("Default Report") | ||
1215 | )); | 1215 | )); | ||
1216 | list.back().setTax(true); | 1216 | list.back().setTax(true); | ||
1217 | list.push_back(MyMoneyReport( | 1217 | list.push_back(MyMoneyReport( | ||
1218 | MyMoneyReport::eCategory, | 1218 | MyMoneyReport::Row::Category, | ||
1219 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCaccount, | 1219 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Account, | ||
1220 | TransactionFilter::Date::LastFiscalYear, | 1220 | TransactionFilter::Date::LastFiscalYear, | ||
1221 | MyMoneyReport::eDetailAll, | 1221 | MyMoneyReport::eDetailAll, | ||
1222 | i18n("Tax Transactions by Category Last Fiscal Year"), | 1222 | i18n("Tax Transactions by Category Last Fiscal Year"), | ||
1223 | i18n("Default Report") | 1223 | i18n("Default Report") | ||
1224 | )); | 1224 | )); | ||
1225 | list.back().setTax(true); | 1225 | list.back().setTax(true); | ||
1226 | list.push_back(MyMoneyReport( | 1226 | list.push_back(MyMoneyReport( | ||
1227 | MyMoneyReport::ePayee, | 1227 | MyMoneyReport::Row::Payee, | ||
1228 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCcategory | MyMoneyReport::eQCaccount, | 1228 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Category | MyMoneyReport::QueryColumns::Account, | ||
1229 | TransactionFilter::Date::LastFiscalYear, | 1229 | TransactionFilter::Date::LastFiscalYear, | ||
1230 | MyMoneyReport::eDetailAll, | 1230 | MyMoneyReport::eDetailAll, | ||
1231 | i18n("Tax Transactions by Payee Last Fiscal Year"), | 1231 | i18n("Tax Transactions by Payee Last Fiscal Year"), | ||
1232 | i18n("Default Report") | 1232 | i18n("Default Report") | ||
1233 | )); | 1233 | )); | ||
1234 | list.back().setTax(true); | 1234 | list.back().setTax(true); | ||
1235 | groups.push_back(list); | 1235 | groups.push_back(list); | ||
1236 | } | 1236 | } | ||
1237 | { | 1237 | { | ||
1238 | ReportGroup list("Budgeting", i18n("Budgeting")); | 1238 | ReportGroup list("Budgeting", i18n("Budgeting")); | ||
1239 | 1239 | | |||
1240 | list.push_back(MyMoneyReport( | 1240 | list.push_back(MyMoneyReport( | ||
1241 | MyMoneyReport::eBudgetActual, | 1241 | MyMoneyReport::Row::BudgetActual, | ||
1242 | MyMoneyReport::eMonths, | 1242 | MyMoneyReport::Column::Months, | ||
1243 | TransactionFilter::Date::YearToDate, | 1243 | TransactionFilter::Date::YearToDate, | ||
1244 | MyMoneyReport::eDetailAll, | 1244 | MyMoneyReport::eDetailAll, | ||
1245 | i18n("Budgeted vs. Actual This Year"), | 1245 | i18n("Budgeted vs. Actual This Year"), | ||
1246 | i18n("Default Report") | 1246 | i18n("Default Report") | ||
1247 | )); | 1247 | )); | ||
1248 | list.back().setShowingRowTotals(true); | 1248 | list.back().setShowingRowTotals(true); | ||
1249 | list.back().setBudget("Any", true); | 1249 | list.back().setBudget("Any", true); | ||
1250 | 1250 | | |||
1251 | list.push_back(MyMoneyReport( | 1251 | list.push_back(MyMoneyReport( | ||
1252 | MyMoneyReport::eBudgetActual, | 1252 | MyMoneyReport::Row::BudgetActual, | ||
1253 | MyMoneyReport::eMonths, | 1253 | MyMoneyReport::Column::Months, | ||
1254 | TransactionFilter::Date::YearToMonth, | 1254 | TransactionFilter::Date::YearToMonth, | ||
1255 | MyMoneyReport::eDetailAll, | 1255 | MyMoneyReport::eDetailAll, | ||
1256 | i18n("Budgeted vs. Actual This Year (YTM)"), | 1256 | i18n("Budgeted vs. Actual This Year (YTM)"), | ||
1257 | i18n("Default Report") | 1257 | i18n("Default Report") | ||
1258 | )); | 1258 | )); | ||
1259 | list.back().setShowingRowTotals(true); | 1259 | list.back().setShowingRowTotals(true); | ||
1260 | list.back().setBudget("Any", true); | 1260 | list.back().setBudget("Any", true); | ||
1261 | // in case we're in January, we show the last year | 1261 | // in case we're in January, we show the last year | ||
1262 | if (QDate::currentDate().month() == 1) { | 1262 | if (QDate::currentDate().month() == 1) { | ||
1263 | list.back().setDateFilter(TransactionFilter::Date::LastYear); | 1263 | list.back().setDateFilter(TransactionFilter::Date::LastYear); | ||
1264 | } | 1264 | } | ||
1265 | 1265 | | |||
1266 | list.push_back(MyMoneyReport( | 1266 | list.push_back(MyMoneyReport( | ||
1267 | MyMoneyReport::eBudgetActual, | 1267 | MyMoneyReport::Row::BudgetActual, | ||
1268 | MyMoneyReport::eMonths, | 1268 | MyMoneyReport::Column::Months, | ||
1269 | TransactionFilter::Date::CurrentMonth, | 1269 | TransactionFilter::Date::CurrentMonth, | ||
1270 | MyMoneyReport::eDetailAll, | 1270 | MyMoneyReport::eDetailAll, | ||
1271 | i18n("Monthly Budgeted vs. Actual"), | 1271 | i18n("Monthly Budgeted vs. Actual"), | ||
1272 | i18n("Default Report") | 1272 | i18n("Default Report") | ||
1273 | )); | 1273 | )); | ||
1274 | list.back().setBudget("Any", true); | 1274 | list.back().setBudget("Any", true); | ||
1275 | 1275 | | |||
1276 | list.push_back(MyMoneyReport( | 1276 | list.push_back(MyMoneyReport( | ||
1277 | MyMoneyReport::eBudgetActual, | 1277 | MyMoneyReport::Row::BudgetActual, | ||
1278 | MyMoneyReport::eMonths, | 1278 | MyMoneyReport::Column::Months, | ||
1279 | TransactionFilter::Date::CurrentYear, | 1279 | TransactionFilter::Date::CurrentYear, | ||
1280 | MyMoneyReport::eDetailAll, | 1280 | MyMoneyReport::eDetailAll, | ||
1281 | i18n("Yearly Budgeted vs. Actual"), | 1281 | i18n("Yearly Budgeted vs. Actual"), | ||
1282 | i18n("Default Report") | 1282 | i18n("Default Report") | ||
1283 | )); | 1283 | )); | ||
1284 | list.back().setBudget("Any", true); | 1284 | list.back().setBudget("Any", true); | ||
1285 | list.back().setShowingRowTotals(true); | 1285 | list.back().setShowingRowTotals(true); | ||
1286 | 1286 | | |||
1287 | list.push_back(MyMoneyReport( | 1287 | list.push_back(MyMoneyReport( | ||
1288 | MyMoneyReport::eBudget, | 1288 | MyMoneyReport::Row::Budget, | ||
1289 | MyMoneyReport::eMonths, | 1289 | MyMoneyReport::Column::Months, | ||
1290 | TransactionFilter::Date::CurrentMonth, | 1290 | TransactionFilter::Date::CurrentMonth, | ||
1291 | MyMoneyReport::eDetailAll, | 1291 | MyMoneyReport::eDetailAll, | ||
1292 | i18n("Monthly Budget"), | 1292 | i18n("Monthly Budget"), | ||
1293 | i18n("Default Report") | 1293 | i18n("Default Report") | ||
1294 | )); | 1294 | )); | ||
1295 | list.back().setBudget("Any", false); | 1295 | list.back().setBudget("Any", false); | ||
1296 | 1296 | | |||
1297 | list.push_back(MyMoneyReport( | 1297 | list.push_back(MyMoneyReport( | ||
1298 | MyMoneyReport::eBudget, | 1298 | MyMoneyReport::Row::Budget, | ||
1299 | MyMoneyReport::eMonths, | 1299 | MyMoneyReport::Column::Months, | ||
1300 | TransactionFilter::Date::CurrentYear, | 1300 | TransactionFilter::Date::CurrentYear, | ||
1301 | MyMoneyReport::eDetailAll, | 1301 | MyMoneyReport::eDetailAll, | ||
1302 | i18n("Yearly Budget"), | 1302 | i18n("Yearly Budget"), | ||
1303 | i18n("Default Report") | 1303 | i18n("Default Report") | ||
1304 | )); | 1304 | )); | ||
1305 | list.back().setBudget("Any", false); | 1305 | list.back().setBudget("Any", false); | ||
1306 | list.back().setShowingRowTotals(true); | 1306 | list.back().setShowingRowTotals(true); | ||
1307 | list.push_back(MyMoneyReport( | 1307 | list.push_back(MyMoneyReport( | ||
1308 | MyMoneyReport::eBudgetActual, | 1308 | MyMoneyReport::Row::BudgetActual, | ||
1309 | MyMoneyReport::eMonths, | 1309 | MyMoneyReport::Column::Months, | ||
1310 | TransactionFilter::Date::CurrentYear, | 1310 | TransactionFilter::Date::CurrentYear, | ||
1311 | MyMoneyReport::eDetailGroup, | 1311 | MyMoneyReport::eDetailGroup, | ||
1312 | i18n("Yearly Budgeted vs Actual Graph"), | 1312 | i18n("Yearly Budgeted vs Actual Graph"), | ||
1313 | i18n("Default Report") | 1313 | i18n("Default Report") | ||
1314 | )); | 1314 | )); | ||
1315 | list.back().setChartByDefault(true); | 1315 | list.back().setChartByDefault(true); | ||
1316 | list.back().setChartCHGridLines(false); | 1316 | list.back().setChartCHGridLines(false); | ||
1317 | list.back().setChartSVGridLines(false); | 1317 | list.back().setChartSVGridLines(false); | ||
1318 | list.back().setBudget("Any", true); | 1318 | list.back().setBudget("Any", true); | ||
1319 | list.back().setChartType(MyMoneyReport::eChartLine); | 1319 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1320 | 1320 | | |||
1321 | groups.push_back(list); | 1321 | groups.push_back(list); | ||
1322 | } | 1322 | } | ||
1323 | { | 1323 | { | ||
1324 | ReportGroup list("Forecast", i18n("Forecast")); | 1324 | ReportGroup list("Forecast", i18n("Forecast")); | ||
1325 | 1325 | | |||
1326 | list.push_back(MyMoneyReport( | 1326 | list.push_back(MyMoneyReport( | ||
1327 | MyMoneyReport::eAssetLiability, | 1327 | MyMoneyReport::Row::AssetLiability, | ||
1328 | MyMoneyReport::eMonths, | 1328 | MyMoneyReport::Column::Months, | ||
1329 | TransactionFilter::Date::Next12Months, | 1329 | TransactionFilter::Date::Next12Months, | ||
1330 | MyMoneyReport::eDetailTop, | 1330 | MyMoneyReport::eDetailTop, | ||
1331 | i18n("Forecast By Month"), | 1331 | i18n("Forecast By Month"), | ||
1332 | i18n("Default Report") | 1332 | i18n("Default Report") | ||
1333 | )); | 1333 | )); | ||
1334 | list.back().setIncludingForecast(true); | 1334 | list.back().setIncludingForecast(true); | ||
1335 | 1335 | | |||
1336 | list.push_back(MyMoneyReport( | 1336 | list.push_back(MyMoneyReport( | ||
1337 | MyMoneyReport::eAssetLiability, | 1337 | MyMoneyReport::Row::AssetLiability, | ||
1338 | MyMoneyReport::eMonths, | 1338 | MyMoneyReport::Column::Months, | ||
1339 | TransactionFilter::Date::NextQuarter, | 1339 | TransactionFilter::Date::NextQuarter, | ||
1340 | MyMoneyReport::eDetailTop, | 1340 | MyMoneyReport::eDetailTop, | ||
1341 | i18n("Forecast Next Quarter"), | 1341 | i18n("Forecast Next Quarter"), | ||
1342 | i18n("Default Report") | 1342 | i18n("Default Report") | ||
1343 | )); | 1343 | )); | ||
1344 | list.back().setColumnsAreDays(true); | 1344 | list.back().setColumnsAreDays(true); | ||
1345 | list.back().setIncludingForecast(true); | 1345 | list.back().setIncludingForecast(true); | ||
1346 | 1346 | | |||
1347 | list.push_back(MyMoneyReport( | 1347 | list.push_back(MyMoneyReport( | ||
1348 | MyMoneyReport::eExpenseIncome, | 1348 | MyMoneyReport::Row::ExpenseIncome, | ||
1349 | MyMoneyReport::eMonths, | 1349 | MyMoneyReport::Column::Months, | ||
1350 | TransactionFilter::Date::CurrentYear, | 1350 | TransactionFilter::Date::CurrentYear, | ||
1351 | MyMoneyReport::eDetailTop, | 1351 | MyMoneyReport::eDetailTop, | ||
1352 | i18n("Income and Expenses Forecast This Year"), | 1352 | i18n("Income and Expenses Forecast This Year"), | ||
1353 | i18n("Default Report") | 1353 | i18n("Default Report") | ||
1354 | )); | 1354 | )); | ||
1355 | list.back().setIncludingForecast(true); | 1355 | list.back().setIncludingForecast(true); | ||
1356 | 1356 | | |||
1357 | list.push_back(MyMoneyReport( | 1357 | list.push_back(MyMoneyReport( | ||
1358 | MyMoneyReport::eAssetLiability, | 1358 | MyMoneyReport::Row::AssetLiability, | ||
1359 | MyMoneyReport::eMonths, | 1359 | MyMoneyReport::Column::Months, | ||
1360 | TransactionFilter::Date::Next3Months, | 1360 | TransactionFilter::Date::Next3Months, | ||
1361 | MyMoneyReport::eDetailTotal, | 1361 | MyMoneyReport::eDetailTotal, | ||
1362 | i18n("Net Worth Forecast Graph"), | 1362 | i18n("Net Worth Forecast Graph"), | ||
1363 | i18n("Default Report") | 1363 | i18n("Default Report") | ||
1364 | )); | 1364 | )); | ||
1365 | list.back().setColumnsAreDays(true); | 1365 | list.back().setColumnsAreDays(true); | ||
1366 | list.back().setIncludingForecast(true); | 1366 | list.back().setIncludingForecast(true); | ||
1367 | list.back().setChartByDefault(true); | 1367 | list.back().setChartByDefault(true); | ||
1368 | list.back().setChartCHGridLines(false); | 1368 | list.back().setChartCHGridLines(false); | ||
1369 | list.back().setChartSVGridLines(false); | 1369 | list.back().setChartSVGridLines(false); | ||
1370 | list.back().setChartType(MyMoneyReport::eChartLine); | 1370 | list.back().setChartType(MyMoneyReport::eChartLine); | ||
1371 | groups.push_back(list); | 1371 | groups.push_back(list); | ||
1372 | } | 1372 | } | ||
1373 | { | 1373 | { | ||
1374 | ReportGroup list("Information", i18n("General Information")); | 1374 | ReportGroup list("Information", i18n("General Information")); | ||
1375 | 1375 | | |||
1376 | list.push_back(MyMoneyReport( | 1376 | list.push_back(MyMoneyReport( | ||
1377 | MyMoneyReport::eSchedule, | 1377 | MyMoneyReport::Row::Schedule, | ||
1378 | MyMoneyReport::eMonths, | 1378 | MyMoneyReport::Column::Months, | ||
1379 | TransactionFilter::Date::Next12Months, | 1379 | TransactionFilter::Date::Next12Months, | ||
1380 | MyMoneyReport::eDetailAll, | 1380 | MyMoneyReport::eDetailAll, | ||
1381 | i18n("Schedule Information"), | 1381 | i18n("Schedule Information"), | ||
1382 | i18n("Default Report") | 1382 | i18n("Default Report") | ||
1383 | )); | 1383 | )); | ||
1384 | list.back().setDetailLevel(MyMoneyReport::eDetailAll); | 1384 | list.back().setDetailLevel(MyMoneyReport::eDetailAll); | ||
1385 | list.push_back(MyMoneyReport( | 1385 | list.push_back(MyMoneyReport( | ||
1386 | MyMoneyReport::eSchedule, | 1386 | MyMoneyReport::Row::Schedule, | ||
1387 | MyMoneyReport::eMonths, | 1387 | MyMoneyReport::Column::Months, | ||
1388 | TransactionFilter::Date::Next12Months, | 1388 | TransactionFilter::Date::Next12Months, | ||
1389 | MyMoneyReport::eDetailAll, | 1389 | MyMoneyReport::eDetailAll, | ||
1390 | i18n("Schedule Summary Information"), | 1390 | i18n("Schedule Summary Information"), | ||
1391 | i18n("Default Report") | 1391 | i18n("Default Report") | ||
1392 | )); | 1392 | )); | ||
1393 | list.back().setDetailLevel(MyMoneyReport::eDetailTop); | 1393 | list.back().setDetailLevel(MyMoneyReport::eDetailTop); | ||
1394 | list.push_back(MyMoneyReport( | 1394 | list.push_back(MyMoneyReport( | ||
1395 | MyMoneyReport::eAccountInfo, | 1395 | MyMoneyReport::Row::AccountInfo, | ||
1396 | MyMoneyReport::eMonths, | 1396 | MyMoneyReport::Column::Months, | ||
1397 | TransactionFilter::Date::Today, | 1397 | TransactionFilter::Date::Today, | ||
1398 | MyMoneyReport::eDetailAll, | 1398 | MyMoneyReport::eDetailAll, | ||
1399 | i18n("Account Information"), | 1399 | i18n("Account Information"), | ||
1400 | i18n("Default Report") | 1400 | i18n("Default Report") | ||
1401 | )); | 1401 | )); | ||
1402 | list.back().setConvertCurrency(false); | 1402 | list.back().setConvertCurrency(false); | ||
1403 | list.push_back(MyMoneyReport( | 1403 | list.push_back(MyMoneyReport( | ||
1404 | MyMoneyReport::eAccountLoanInfo, | 1404 | MyMoneyReport::Row::AccountLoanInfo, | ||
1405 | MyMoneyReport::eMonths, | 1405 | MyMoneyReport::Column::Months, | ||
1406 | TransactionFilter::Date::Today, | 1406 | TransactionFilter::Date::Today, | ||
1407 | MyMoneyReport::eDetailAll, | 1407 | MyMoneyReport::eDetailAll, | ||
1408 | i18n("Loan Information"), | 1408 | i18n("Loan Information"), | ||
1409 | i18n("Default Report") | 1409 | i18n("Default Report") | ||
1410 | )); | 1410 | )); | ||
1411 | list.back().setConvertCurrency(false); | 1411 | list.back().setConvertCurrency(false); | ||
1412 | groups.push_back(list); | 1412 | groups.push_back(list); | ||
1413 | } | 1413 | } | ||
Show All 32 Lines |