Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/wizards/newaccountwizard/khierarchypage.h
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | khierarchypage.h | ||||
3 | ------------------- | ||||
4 | begin : Tue Sep 25 2007 | ||||
5 | copyright : (C) 2007 Thomas Baumgart | ||||
6 | email : Thomas Baumgart <ipwizard@users.sourceforge.net> | ||||
7 | ***************************************************************************/ | ||||
8 | | ||||
9 | /*************************************************************************** | ||||
10 | * * | ||||
11 | * This program is free software; you can redistribute it and/or modify * | ||||
12 | * it under the terms of the GNU General Public License as published by * | ||||
13 | * the Free Software Foundation; either version 2 of the License, or * | ||||
14 | * (at your option) any later version. * | ||||
15 | * * | ||||
16 | ***************************************************************************/ | ||||
17 | | ||||
18 | #ifndef KNEWACCOUNTWIZARDHIERACHRYPAGE_H | ||||
19 | #define KNEWACCOUNTWIZARDHIERACHRYPAGE_H | ||||
20 | | ||||
21 | // ---------------------------------------------------------------------------- | ||||
22 | // QT Includes | ||||
23 | | ||||
24 | #include <QWidget> | ||||
25 | | ||||
26 | // ---------------------------------------------------------------------------- | ||||
27 | // KDE Includes | ||||
28 | | ||||
29 | // ---------------------------------------------------------------------------- | ||||
30 | // Project Includes | ||||
31 | | ||||
32 | #include "wizardpage.h" | ||||
33 | | ||||
34 | class MyMoneyAccount; | ||||
35 | | ||||
36 | namespace NewAccountWizard | ||||
37 | { | ||||
38 | class Wizard; | ||||
39 | class HierarchyFilterProxyModel; | ||||
40 | | ||||
41 | class HierarchyPagePrivate; | ||||
42 | class HierarchyPage : public QWidget, public WizardPage<Wizard> | ||||
43 | { | ||||
44 | Q_OBJECT | ||||
45 | Q_DISABLE_COPY(HierarchyPage) | ||||
46 | | ||||
47 | public: | ||||
48 | explicit HierarchyPage(Wizard* parent); | ||||
49 | ~HierarchyPage() override; | ||||
50 | | ||||
51 | void enterPage(void); | ||||
52 | KMyMoneyWizardPage* nextPage(void) const; | ||||
53 | QWidget* initialFocusWidget(void) const override; | ||||
54 | const MyMoneyAccount& parentAccount(void); | ||||
55 | | ||||
56 | bool isComplete(void) const; | ||||
57 | | ||||
58 | protected slots: | ||||
59 | void parentAccountChanged(); | ||||
60 | | ||||
61 | private: | ||||
62 | Q_DECLARE_PRIVATE_D(WizardPage<Wizard>::d_ptr, HierarchyPage) | ||||
63 | friend class Wizard; | ||||
64 | friend class AccountSummaryPage; | ||||
65 | }; | ||||
66 | | ||||
67 | } // namespace | ||||
68 | | ||||
69 | #endif |