Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/wizards/endingbalancedlg/kendingbalancedlg.h
Context not available. | |||||
28 | // ---------------------------------------------------------------------------- | 28 | // ---------------------------------------------------------------------------- | ||
---|---|---|---|---|---|
29 | // Project Includes | 29 | // Project Includes | ||
30 | 30 | | |||
31 | #include "ui_kendingbalancedlgdecl.h" | | |||
32 | | ||||
33 | #include "mymoneyaccount.h" | | |||
34 | | ||||
35 | class QDate; | 31 | class QDate; | ||
36 | 32 | | |||
33 | class MyMoneyMoney; | ||||
37 | class MyMoneyAccount; | 34 | class MyMoneyAccount; | ||
38 | class MyMoneyTransaction; | 35 | class MyMoneyTransaction; | ||
39 | 36 | | |||
Context not available. | |||||
45 | * | 42 | * | ||
46 | * @author Thomas Baumgart | 43 | * @author Thomas Baumgart | ||
47 | */ | 44 | */ | ||
48 | class KEndingBalanceDlgDecl : public QWizard, public Ui::KEndingBalanceDlgDecl | 45 | | ||
49 | { | 46 | class KEndingBalanceDlgPrivate; | ||
50 | public: | 47 | class KEndingBalanceDlg : public QWizard | ||
51 | KEndingBalanceDlgDecl(QWidget *parent) : QWizard(parent) { | | |||
52 | setupUi(this); | | |||
53 | } | | |||
54 | }; | | |||
55 | class KEndingBalanceDlg : public KEndingBalanceDlgDecl | | |||
56 | { | 48 | { | ||
57 | Q_OBJECT | 49 | Q_OBJECT | ||
50 | Q_DISABLE_COPY(KEndingBalanceDlg) | ||||
51 | | ||||
58 | public: | 52 | public: | ||
59 | enum { Page_CheckingStart, Page_PreviousPostpone, | 53 | enum { Page_CheckingStart, Page_PreviousPostpone, | ||
60 | Page_CheckingStatementInfo, Page_InterestChargeCheckings | 54 | Page_CheckingStatementInfo, Page_InterestChargeCheckings | ||
61 | }; | 55 | }; | ||
62 | 56 | | |||
63 | explicit KEndingBalanceDlg(const MyMoneyAccount& account, QWidget *parent = 0); | 57 | explicit KEndingBalanceDlg(const MyMoneyAccount& account, QWidget *parent = nullptr); | ||
64 | ~KEndingBalanceDlg(); | 58 | ~KEndingBalanceDlg(); | ||
65 | 59 | | |||
66 | const MyMoneyMoney endingBalance() const; | 60 | MyMoneyMoney endingBalance() const; | ||
67 | const MyMoneyMoney previousBalance() const; | 61 | MyMoneyMoney previousBalance() const; | ||
68 | const QDate statementDate() const { | 62 | QDate statementDate() const; | ||
69 | return field("statementDate").toDate(); | | |||
70 | }; | | |||
71 | 63 | | |||
72 | const MyMoneyTransaction interestTransaction(); | 64 | MyMoneyTransaction interestTransaction(); | ||
73 | const MyMoneyTransaction chargeTransaction(); | 65 | MyMoneyTransaction chargeTransaction(); | ||
74 | 66 | | |||
75 | /** | 67 | /** | ||
76 | * This method returns the id of the next page in the wizard. | 68 | * This method returns the id of the next page in the wizard. | ||
Context not available. | |||||
82 | 74 | | |||
83 | protected: | 75 | protected: | ||
84 | bool createTransaction(MyMoneyTransaction& t, const int sign, const MyMoneyMoney& amount, const QString& category, const QDate& date); | 76 | bool createTransaction(MyMoneyTransaction& t, const int sign, const MyMoneyMoney& amount, const QString& category, const QDate& date); | ||
85 | const MyMoneyMoney adjustedReturnValue(const MyMoneyMoney& v) const; | 77 | MyMoneyMoney adjustedReturnValue(const MyMoneyMoney& v) const; | ||
86 | void createCategory(const QString& txt, QString& id, const MyMoneyAccount& parent); | 78 | void createCategory(const QString& txt, QString& id, const MyMoneyAccount& parent); | ||
87 | 79 | | |||
88 | protected slots: | 80 | protected slots: | ||
Context not available. | |||||
105 | void createCategory(MyMoneyAccount& acc, const MyMoneyAccount& parent); | 97 | void createCategory(MyMoneyAccount& acc, const MyMoneyAccount& parent); | ||
106 | 98 | | |||
107 | private: | 99 | private: | ||
108 | /// \internal d-pointer class. | 100 | KEndingBalanceDlgPrivate * const d_ptr; | ||
109 | class Private; | 101 | Q_DECLARE_PRIVATE(KEndingBalanceDlg) | ||
110 | /// \internal d-pointer instance. | | |||
111 | Private* const d; | | |||
112 | }; | 102 | }; | ||
113 | 103 | | |||
114 | #endif | 104 | #endif | ||
Context not available. |