Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kreportconfigurationfilterdlg.h
Show All 22 Lines | |||||
23 | 23 | | |||
24 | #ifndef KREPORTCONFIGURATIONFILTERDLG_H | 24 | #ifndef KREPORTCONFIGURATIONFILTERDLG_H | ||
25 | #define KREPORTCONFIGURATIONFILTERDLG_H | 25 | #define KREPORTCONFIGURATIONFILTERDLG_H | ||
26 | 26 | | |||
27 | // ---------------------------------------------------------------------------- | 27 | // ---------------------------------------------------------------------------- | ||
28 | // QT Includes | 28 | // QT Includes | ||
29 | 29 | | |||
30 | #include <QVector> | 30 | #include <QVector> | ||
31 | #include <QDoubleValidator> | ||||
31 | 32 | | |||
32 | // ---------------------------------------------------------------------------- | 33 | // ---------------------------------------------------------------------------- | ||
33 | // KDE Includes | 34 | // KDE Includes | ||
34 | 35 | | |||
35 | // ---------------------------------------------------------------------------- | 36 | // ---------------------------------------------------------------------------- | ||
36 | // Project Includes | 37 | // Project Includes | ||
37 | 38 | | |||
38 | #include "kfindtransactiondlg.h" | 39 | #include "kfindtransactiondlg.h" | ||
39 | #include "mymoneyreport.h" | 40 | #include "mymoneyreport.h" | ||
40 | #include "mymoneybudget.h" | 41 | #include "mymoneybudget.h" | ||
41 | #include "kmymoneyreportconfigtabimpl.h" | 42 | #include "kmymoneyreportconfigtabimpl.h" | ||
42 | 43 | | |||
43 | 44 | | |||
44 | class kMyMoneyReportConfigTab1Decl; | 45 | class kMyMoneyReportConfigTab1Decl; | ||
45 | class kMyMoneyReportConfigTab2Decl; | 46 | class kMyMoneyReportConfigTab2Decl; | ||
46 | class kMyMoneyReportConfigTab3Decl; | 47 | class kMyMoneyReportConfigTab3Decl; | ||
47 | class kMyMoneyReportConfigTabChartDecl; | 48 | class kMyMoneyReportConfigTabChartDecl; | ||
49 | class kMyMoneyReportConfigTabRangeDecl; | ||||
48 | class MyMoneyBudget; | 50 | class MyMoneyBudget; | ||
49 | 51 | | |||
50 | /** | 52 | /** | ||
51 | * @author Ace Jones | 53 | * @author Ace Jones | ||
52 | */ | 54 | */ | ||
53 | class KReportConfigurationFilterDlg : public KFindTransactionDlg | 55 | class KReportConfigurationFilterDlg : public KFindTransactionDlg | ||
54 | { | 56 | { | ||
55 | Q_OBJECT | 57 | Q_OBJECT | ||
56 | public: | 58 | public: | ||
57 | explicit KReportConfigurationFilterDlg(MyMoneyReport report, QWidget *parent = 0); | 59 | explicit KReportConfigurationFilterDlg(MyMoneyReport report, QWidget *parent = 0); | ||
58 | ~KReportConfigurationFilterDlg(); | 60 | ~KReportConfigurationFilterDlg(); | ||
59 | 61 | | |||
60 | const MyMoneyReport& getConfig() const { | 62 | const MyMoneyReport& getConfig() const { | ||
61 | return m_currentState; | 63 | return m_currentState; | ||
62 | } | 64 | } | ||
63 | 65 | | |||
64 | protected: | 66 | protected: | ||
65 | kMyMoneyReportConfigTab1Decl* m_tab1; | 67 | kMyMoneyReportConfigTab1Decl* m_tab1; | ||
66 | kMyMoneyReportConfigTab2Decl* m_tab2; | 68 | kMyMoneyReportConfigTab2Decl* m_tab2; | ||
67 | kMyMoneyReportConfigTab3Decl* m_tab3; | 69 | kMyMoneyReportConfigTab3Decl* m_tab3; | ||
68 | kMyMoneyReportConfigTabChartDecl* m_tabChart; | 70 | kMyMoneyReportConfigTabChartDecl* m_tabChart; | ||
71 | kMyMoneyReportConfigTabRangeDecl* m_tabRange; | ||||
69 | 72 | | |||
70 | MyMoneyReport m_initialState; | 73 | MyMoneyReport m_initialState; | ||
71 | MyMoneyReport m_currentState; | 74 | MyMoneyReport m_currentState; | ||
72 | 75 | | |||
73 | protected slots: | 76 | protected slots: | ||
74 | void slotRowTypeChanged(int); | 77 | void slotRowTypeChanged(int); | ||
75 | void slotColumnTypeChanged(int); | 78 | void slotColumnTypeChanged(int); | ||
76 | void slotReset(); | 79 | void slotReset(); | ||
77 | void slotSearch(); | 80 | void slotSearch(); | ||
78 | void slotShowHelp(); | 81 | void slotShowHelp(); | ||
79 | /** | 82 | /** | ||
80 | * This is to enable/disable the check to Include Transfers based on whether Categories are filtered or not. | 83 | * This is to enable/disable the check to Include Transfers based on whether Categories are filtered or not. | ||
81 | * This is because if Categories are filtered, transfers will not be included anyway | 84 | * This is because if Categories are filtered, transfers will not be included anyway | ||
82 | */ | 85 | */ | ||
83 | virtual void slotDateChanged(); | 86 | virtual void slotDateChanged(); | ||
84 | 87 | | |||
85 | void slotUpdateCheckTransfers(); | 88 | void slotUpdateCheckTransfers(); | ||
86 | void slotUpdateColumnsCombo(); | 89 | void slotUpdateColumnsCombo(); | ||
90 | void slotLogAxisChanged(int state); | ||||
87 | 91 | | |||
88 | private: | 92 | private: | ||
89 | QVector<MyMoneyBudget> m_budgets; | 93 | QVector<MyMoneyBudget> m_budgets; | ||
90 | }; | 94 | }; | ||
91 | | ||||
92 | #endif | 95 | #endif |