Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kenterscheduledlg.h
Context not available. | |||||
4 | begin : Sat Apr 7 2007 | 4 | begin : Sat Apr 7 2007 | ||
---|---|---|---|---|---|
5 | copyright : (C) 2007 by Thomas Baumgart | 5 | copyright : (C) 2007 by Thomas Baumgart | ||
6 | email : Thomas Baumgart <ipwizard@users.sourceforge.net> | 6 | email : Thomas Baumgart <ipwizard@users.sourceforge.net> | ||
7 | (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
7 | ***************************************************************************/ | 8 | ***************************************************************************/ | ||
8 | 9 | | |||
9 | /*************************************************************************** | 10 | /*************************************************************************** | ||
Context not available. | |||||
30 | // Project Includes | 31 | // Project Includes | ||
31 | 32 | | |||
32 | class MyMoneySchedule; | 33 | class MyMoneySchedule; | ||
34 | class MyMoneyTransaction; | ||||
33 | class TransactionEditor; | 35 | class TransactionEditor; | ||
34 | 36 | | |||
35 | #include "ui_kenterscheduledlgdecl.h" | 37 | namespace Ui { class KEnterScheduleDlg; } | ||
36 | #include "kmymoneyutils.h" | 38 | | ||
39 | namespace eDialogs { enum class ScheduleResultCode; } | ||||
37 | 40 | | |||
38 | /** | 41 | /** | ||
39 | * @author Thomas Baumgart | 42 | * @author Thomas Baumgart | ||
40 | */ | 43 | */ | ||
41 | class KEnterScheduleDlgDecl : public QDialog, public Ui::KEnterScheduleDlgDecl | 44 | | ||
42 | { | 45 | class KEnterScheduleDlgPrivate; | ||
43 | public: | 46 | class KEnterScheduleDlg : public QDialog | ||
44 | KEnterScheduleDlgDecl(QWidget *parent) : QDialog(parent) { | | |||
45 | setupUi(this); | | |||
46 | } | | |||
47 | }; | | |||
48 | class KEnterScheduleDlg : public KEnterScheduleDlgDecl | | |||
49 | { | 47 | { | ||
50 | Q_OBJECT | 48 | Q_OBJECT | ||
49 | Q_DISABLE_COPY(KEnterScheduleDlg) | ||||
50 | | ||||
51 | public: | 51 | public: | ||
52 | KEnterScheduleDlg(QWidget *parent, const MyMoneySchedule& schedule); | 52 | explicit KEnterScheduleDlg(QWidget *parent, const MyMoneySchedule& schedule); | ||
53 | ~KEnterScheduleDlg(); | 53 | ~KEnterScheduleDlg(); | ||
54 | 54 | | |||
55 | TransactionEditor* startEdit(); | 55 | TransactionEditor* startEdit(); | ||
Context not available. | |||||
67 | * value only makes sense, once the dialog has been executed. | 67 | * value only makes sense, once the dialog has been executed. | ||
68 | * Before execution it returns @a Cancel. | 68 | * Before execution it returns @a Cancel. | ||
69 | */ | 69 | */ | ||
70 | KMyMoneyUtils::EnterScheduleResultCodeE resultCode() const; | 70 | eDialogs::ScheduleResultCode resultCode() const; | ||
71 | 71 | | |||
72 | protected: | 72 | protected: | ||
73 | /// Overridden for internal reasons. No API changes. | 73 | /// Overridden for internal reasons. No API changes. | ||
74 | bool focusNextPrevChild(bool next); | 74 | bool focusNextPrevChild(bool next) override; | ||
75 | 75 | | |||
76 | /** | 76 | /** | ||
77 | * This method returns the adjusts @a _date according to | 77 | * This method returns the adjusts @a _date according to | ||
Context not available. | |||||
79 | */ | 79 | */ | ||
80 | QDate date(const QDate& _date) const; | 80 | QDate date(const QDate& _date) const; | ||
81 | 81 | | |||
82 | void resizeEvent(QResizeEvent* ev); | 82 | void resizeEvent(QResizeEvent* ev) override; | ||
83 | 83 | | |||
84 | public slots: | 84 | public slots: | ||
85 | int exec(); | 85 | int exec() override; | ||
86 | 86 | | |||
87 | private slots: | 87 | private slots: | ||
88 | void slotSetupSize(); | 88 | void slotSetupSize(); | ||
Context not available. | |||||
91 | void slotSkip(); | 91 | void slotSkip(); | ||
92 | 92 | | |||
93 | private: | 93 | private: | ||
94 | /// \internal d-pointer class. | 94 | KEnterScheduleDlgPrivate * const d_ptr; | ||
95 | class Private; | 95 | Q_DECLARE_PRIVATE(KEnterScheduleDlg) | ||
96 | /// \internal d-pointer instance. | | |||
97 | Private* const d; | | |||
98 | }; | 96 | }; | ||
99 | 97 | | |||
100 | #endif | 98 | #endif | ||
Context not available. |