Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kmymoneyview.h
Show All 40 Lines | |||||
41 | } | 41 | } | ||
42 | #endif | 42 | #endif | ||
43 | 43 | | |||
44 | namespace eAccountsModel { enum class Column; } | 44 | namespace eAccountsModel { enum class Column; } | ||
45 | namespace eMenu { enum class Action; } | 45 | namespace eMenu { enum class Action; } | ||
46 | namespace KMyMoneyPlugin { class OnlinePlugin; } | 46 | namespace KMyMoneyPlugin { class OnlinePlugin; } | ||
47 | namespace KMyMoneyPlugin { class StoragePlugin; } | 47 | namespace KMyMoneyPlugin { class StoragePlugin; } | ||
48 | namespace eDialogs { enum class ScheduleResultCode; } | 48 | namespace eDialogs { enum class ScheduleResultCode; } | ||
49 | namespace Icons { enum class Icon; } | ||||
49 | 50 | | |||
50 | class KMyMoneyApp; | 51 | class KMyMoneyApp; | ||
51 | class KHomeView; | 52 | class KHomeView; | ||
52 | class KAccountsView; | 53 | class KAccountsView; | ||
53 | class KCategoriesView; | 54 | class KCategoriesView; | ||
54 | class KInstitutionsView; | 55 | class KInstitutionsView; | ||
55 | class KPayeesView; | 56 | class KPayeesView; | ||
56 | class KTagsView; | 57 | class KTagsView; | ||
57 | class KBudgetView; | 58 | class KBudgetView; | ||
58 | class KScheduledView; | 59 | class KScheduledView; | ||
59 | class KGlobalLedgerView; | 60 | class KGlobalLedgerView; | ||
60 | class IMyMoneyOperationsFormat; | 61 | class IMyMoneyOperationsFormat; | ||
61 | class MyMoneyTransaction; | 62 | class MyMoneyTransaction; | ||
62 | class KInvestmentView; | 63 | class KInvestmentView; | ||
63 | class KReportsView; | 64 | class KReportsView; | ||
64 | class MyMoneySchedule; | 65 | class MyMoneySchedule; | ||
65 | class MyMoneySecurity; | 66 | class MyMoneySecurity; | ||
66 | class MyMoneyReport; | 67 | class MyMoneyReport; | ||
67 | class TransactionEditor; | 68 | class TransactionEditor; | ||
68 | class KForecastView; | | |||
69 | class KOnlineJobOutbox; | 69 | class KOnlineJobOutbox; | ||
tbaumgart: Remove if we don't need it anymore | |||||
70 | class KMyMoneyTitleLabel; | 70 | class KMyMoneyTitleLabel; | ||
71 | class MyMoneyAccount; | 71 | class MyMoneyAccount; | ||
72 | class MyMoneyMoney; | 72 | class MyMoneyMoney; | ||
73 | class MyMoneyObject; | 73 | class MyMoneyObject; | ||
74 | class QLabel; | 74 | class QLabel; | ||
75 | class KMyMoneyViewBase; | ||||
75 | 76 | | |||
76 | /** | 77 | /** | ||
77 | * This class represents the view of the MyMoneyFile which contains | 78 | * This class represents the view of the MyMoneyFile which contains | ||
78 | * Banks/Accounts/Transactions, Recurring transactions (or Bills & Deposits) | 79 | * Banks/Accounts/Transactions, Recurring transactions (or Bills & Deposits) | ||
79 | * and scripts (yet to be implemented). Each different aspect of the file | 80 | * and scripts (yet to be implemented). Each different aspect of the file | ||
80 | * is represented by a tab within the view. | 81 | * is represented by a tab within the view. | ||
81 | * | 82 | * | ||
82 | * @author Michael Edwardes 2001 Copyright 2000-2001 | 83 | * @author Michael Edwardes 2001 Copyright 2000-2001 | ||
Show All 36 Lines | 97 | private: | |||
119 | KCategoriesView *m_categoriesView; | 120 | KCategoriesView *m_categoriesView; | ||
120 | KPayeesView *m_payeesView; | 121 | KPayeesView *m_payeesView; | ||
121 | KTagsView *m_tagsView; | 122 | KTagsView *m_tagsView; | ||
122 | KBudgetView *m_budgetView; | 123 | KBudgetView *m_budgetView; | ||
123 | KScheduledView *m_scheduledView; | 124 | KScheduledView *m_scheduledView; | ||
124 | KGlobalLedgerView *m_ledgerView; | 125 | KGlobalLedgerView *m_ledgerView; | ||
125 | KInvestmentView *m_investmentView; | 126 | KInvestmentView *m_investmentView; | ||
126 | KReportsView* m_reportsView; | 127 | KReportsView* m_reportsView; | ||
127 | KForecastView* m_forecastView; | | |||
128 | KOnlineJobOutbox* m_onlineJobOutboxView; | 128 | KOnlineJobOutbox* m_onlineJobOutboxView; | ||
129 | 129 | | |||
tbaumgart: Remove this line, we don't need it anymore | |||||
130 | QHash<View,KPageWidgetItem*> viewFrames; | 130 | QHash<View, KPageWidgetItem*> viewFrames; | ||
131 | QHash<View, KMyMoneyViewBase*> viewBases; | ||||
131 | 132 | | |||
132 | KMyMoneyTitleLabel* m_header; | 133 | KMyMoneyTitleLabel* m_header; | ||
133 | bool m_inConstructor; | 134 | bool m_inConstructor; | ||
134 | bool m_fileOpen; | 135 | bool m_fileOpen; | ||
135 | QFileDevice::Permissions m_fmode; | 136 | QFileDevice::Permissions m_fmode; | ||
136 | int m_lastViewSelected; | 137 | int m_lastViewSelected; | ||
137 | 138 | | |||
138 | QMap<QString, KMyMoneyPlugin::StoragePlugin*>* m_storagePlugins; | 139 | QMap<QString, KMyMoneyPlugin::StoragePlugin*>* m_storagePlugins; | ||
▲ Show 20 Lines • Show All 190 Lines • ▼ Show 20 Line(s) | 204 | public: | |||
329 | void setStoragePlugins(QMap<QString, KMyMoneyPlugin::StoragePlugin*>& plugins); | 330 | void setStoragePlugins(QMap<QString, KMyMoneyPlugin::StoragePlugin*>& plugins); | ||
330 | 331 | | |||
331 | // TODO: remove that function | 332 | // TODO: remove that function | ||
332 | /** | 333 | /** | ||
333 | * ugly proxy function | 334 | * ugly proxy function | ||
334 | */ | 335 | */ | ||
335 | eDialogs::ScheduleResultCode enterSchedule(MyMoneySchedule& schedule, bool autoEnter, bool extendedKeys); | 336 | eDialogs::ScheduleResultCode enterSchedule(MyMoneySchedule& schedule, bool autoEnter, bool extendedKeys); | ||
336 | 337 | | |||
338 | void addView(KMyMoneyViewBase* view, const QString& name, View idView); | ||||
339 | void removeView(View idView); | ||||
340 | | ||||
337 | protected: | 341 | protected: | ||
338 | /** | 342 | /** | ||
339 | * Overwritten because KMyMoney has it's custom header. | 343 | * Overwritten because KMyMoney has it's custom header. | ||
340 | */ | 344 | */ | ||
341 | virtual bool showPageHeader() const; | 345 | virtual bool showPageHeader() const; | ||
342 | 346 | | |||
343 | 347 | | |||
344 | public Q_SLOTS: | 348 | public Q_SLOTS: | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |
Remove if we don't need it anymore