Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/investtransactioneditor.cpp
Context not available. | |||||
41 | #include "kmymoneyaccountselector.h" | 41 | #include "kmymoneyaccountselector.h" | ||
---|---|---|---|---|---|
42 | #include "kmymoneymvccombo.h" | 42 | #include "kmymoneymvccombo.h" | ||
43 | #include "mymoneyfile.h" | 43 | #include "mymoneyfile.h" | ||
44 | #include "mymoneyprice.h" | ||||
44 | #include "ksplittransactiondlg.h" | 45 | #include "ksplittransactiondlg.h" | ||
45 | #include "kcurrencycalculator.h" | 46 | #include "kcurrencycalculator.h" | ||
46 | #include "kmymoneyglobalsettings.h" | 47 | #include "kmymoneyglobalsettings.h" | ||
Context not available. | |||||
525 | 526 | | |||
526 | // interest-account | 527 | // interest-account | ||
527 | aSet.clear(); | 528 | aSet.clear(); | ||
528 | aSet.addAccountGroup(MyMoneyAccount::Income); | 529 | aSet.addAccountGroup(eMyMoney::Account::Income); | ||
529 | aSet.load(interest->selector()); | 530 | aSet.load(interest->selector()); | ||
530 | setupCategoryWidget(interest, m_interestSplits, id, SLOT(slotEditInterestSplits())); | 531 | setupCategoryWidget(interest, m_interestSplits, id, SLOT(slotEditInterestSplits())); | ||
531 | 532 | | |||
532 | // fee-account | 533 | // fee-account | ||
533 | aSet.clear(); | 534 | aSet.clear(); | ||
534 | aSet.addAccountGroup(MyMoneyAccount::Expense); | 535 | aSet.addAccountGroup(eMyMoney::Account::Expense); | ||
535 | aSet.load(fees->selector()); | 536 | aSet.load(fees->selector()); | ||
536 | setupCategoryWidget(fees, m_feeSplits, id, SLOT(slotEditFeeSplits())); | 537 | setupCategoryWidget(fees, m_feeSplits, id, SLOT(slotEditFeeSplits())); | ||
537 | 538 | | |||
Context not available. | |||||
559 | QList<MyMoneySplit>::const_iterator it_s; | 560 | QList<MyMoneySplit>::const_iterator it_s; | ||
560 | for (it_s = m_transaction.splits().constBegin(); !haveEquityAccount && it_s != m_transaction.splits().constEnd(); ++it_s) { | 561 | for (it_s = m_transaction.splits().constBegin(); !haveEquityAccount && it_s != m_transaction.splits().constEnd(); ++it_s) { | ||
561 | MyMoneyAccount acc = MyMoneyFile::instance()->account((*it_s).accountId()); | 562 | MyMoneyAccount acc = MyMoneyFile::instance()->account((*it_s).accountId()); | ||
562 | if (acc.accountType() == MyMoneyAccount::Equity) | 563 | if (acc.accountType() == eMyMoney::Account::Equity) | ||
563 | haveEquityAccount = true; | 564 | haveEquityAccount = true; | ||
564 | } | 565 | } | ||
565 | 566 | | |||
566 | // asset-account | 567 | // asset-account | ||
567 | AccountSet aSet; | 568 | AccountSet aSet; | ||
568 | aSet.clear(); | 569 | aSet.clear(); | ||
569 | aSet.addAccountType(MyMoneyAccount::Checkings); | 570 | aSet.addAccountType(eMyMoney::Account::Checkings); | ||
570 | aSet.addAccountType(MyMoneyAccount::Savings); | 571 | aSet.addAccountType(eMyMoney::Account::Savings); | ||
571 | aSet.addAccountType(MyMoneyAccount::Cash); | 572 | aSet.addAccountType(eMyMoney::Account::Cash); | ||
572 | aSet.addAccountType(MyMoneyAccount::Asset); | 573 | aSet.addAccountType(eMyMoney::Account::Asset); | ||
573 | aSet.addAccountType(MyMoneyAccount::Currency); | 574 | aSet.addAccountType(eMyMoney::Account::Currency); | ||
574 | aSet.addAccountType(MyMoneyAccount::CreditCard); | 575 | aSet.addAccountType(eMyMoney::Account::CreditCard); | ||
575 | if (KMyMoneyGlobalSettings::expertMode() || haveEquityAccount) | 576 | if (KMyMoneyGlobalSettings::expertMode() || haveEquityAccount) | ||
576 | aSet.addAccountGroup(MyMoneyAccount::Equity); | 577 | aSet.addAccountGroup(eMyMoney::Account::Equity); | ||
577 | aSet.load(asset->selector()); | 578 | aSet.load(asset->selector()); | ||
578 | 579 | | |||
579 | // security | 580 | // security | ||
Context not available. | |||||
610 | 611 | | |||
611 | // interest-account | 612 | // interest-account | ||
612 | aSet.clear(); | 613 | aSet.clear(); | ||
613 | aSet.addAccountGroup(MyMoneyAccount::Income); | 614 | aSet.addAccountGroup(eMyMoney::Account::Income); | ||
614 | aSet.load(interest->selector()); | 615 | aSet.load(interest->selector()); | ||
615 | setupCategoryWidget(interest, m_interestSplits, id, SLOT(slotEditInterestSplits())); | 616 | setupCategoryWidget(interest, m_interestSplits, id, SLOT(slotEditInterestSplits())); | ||
616 | slotUpdateInterestVisibility(interest->currentText()); | 617 | slotUpdateInterestVisibility(interest->currentText()); | ||
617 | 618 | | |||
618 | // fee-account | 619 | // fee-account | ||
619 | aSet.clear(); | 620 | aSet.clear(); | ||
620 | aSet.addAccountGroup(MyMoneyAccount::Expense); | 621 | aSet.addAccountGroup(eMyMoney::Account::Expense); | ||
621 | aSet.load(fees->selector()); | 622 | aSet.load(fees->selector()); | ||
622 | setupCategoryWidget(fees, m_feeSplits, id, SLOT(slotEditFeeSplits())); | 623 | setupCategoryWidget(fees, m_feeSplits, id, SLOT(slotEditFeeSplits())); | ||
623 | slotUpdateFeeVisibility(fees->currentText()); | 624 | slotUpdateFeeVisibility(fees->currentText()); | ||
Context not available. |