summaryrefslogtreecommitdiffstats
path: root/kmymoney2/wizards/newuserwizard/knewuserwizard_p.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 22:38:03 +0000
commitdadc34655c3ab961b0b0b94a10eaaba710f0b5e8 (patch)
tree99e72842fe687baea16376a147619b6048d7e441 /kmymoney2/wizards/newuserwizard/knewuserwizard_p.h
downloadkmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.tar.gz
kmymoney-dadc34655c3ab961b0b0b94a10eaaba710f0b5e8.zip
Added kmymoney
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmymoney2/wizards/newuserwizard/knewuserwizard_p.h')
-rw-r--r--kmymoney2/wizards/newuserwizard/knewuserwizard_p.h140
1 files changed, 140 insertions, 0 deletions
diff --git a/kmymoney2/wizards/newuserwizard/knewuserwizard_p.h b/kmymoney2/wizards/newuserwizard/knewuserwizard_p.h
new file mode 100644
index 0000000..aa62725
--- /dev/null
+++ b/kmymoney2/wizards/newuserwizard/knewuserwizard_p.h
@@ -0,0 +1,140 @@
+/***************************************************************************
+ knewuserwizard_p.h
+ -------------------
+ begin : Sat Feb 18 2006
+ copyright : (C) 2006 Thomas Baumgart
+ email : Thomas Baumgart <ipwizard@users.sourceforge.net>
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KNEWUSERWIZARD_P_H
+#define KNEWUSERWIZARD_P_H
+
+// ----------------------------------------------------------------------------
+// QT Includes
+
+// ----------------------------------------------------------------------------
+// Project Includes
+
+#include <kmymoney/kmymoneywizard.h>
+
+#include "kintropagedecl.h"
+#include "kaccountpagedecl.h"
+#include "kpreferencepagedecl.h"
+#include "kfilepagedecl.h"
+
+#include "../wizardpages/userinfo.h"
+#include "../wizardpages/currency.h"
+#include "../wizardpages/accounts.h"
+
+#include <kmymoney/mymoneytemplate.h>
+
+class Wizard;
+
+namespace NewUserWizard {
+
+class IntroPage : public KIntroPageDecl, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ IntroPage(Wizard* parent, const char* name = 0);
+ KMyMoneyWizardPage* nextPage(void) const;
+};
+
+/**
+ * Wizard page collecting information about the user
+ *
+ * @author Thomas Baumgart
+ */
+class GeneralPage : public UserInfo, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ GeneralPage(Wizard* parent, const char* name = 0);
+ KMyMoneyWizardPage* nextPage(void) const;
+
+protected slots:
+ void slotLoadFromKABC(void);
+ void slotAddressBookLoaded(void);
+
+};
+
+/**
+ * Wizard page collecting information about the base currency
+ *
+ * @author Thomas Baumgart
+ */
+class CurrencyPage : public Currency, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ CurrencyPage(Wizard* parent, const char* name = 0);
+ void enterPage(void);
+ KMyMoneyWizardPage* nextPage(void) const;
+};
+
+/**
+ * Wizard page collecting information about the checking account
+ */
+class AccountPage : public KAccountPageDecl, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ AccountPage(Wizard* parent, const char* name = 0);
+ KMyMoneyWizardPage* nextPage(void) const;
+
+ virtual bool isComplete(void) const;
+};
+
+/**
+ * Wizard page collecting information about the account templates.
+ *
+ * @author Thomas Baumgart
+ */
+class CategoriesPage : public Accounts, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ CategoriesPage(Wizard* parent, const char* name = 0);
+ KMyMoneyWizardPage* nextPage(void) const;
+ QValueList<MyMoneyTemplate> selectedTemplates(void) const;
+};
+
+/**
+ * Wizard page to allow changing the preferences during setup
+ *
+ * @author Thomas Baumgart
+ */
+class PreferencePage : public KPreferencePageDecl, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ PreferencePage(Wizard* parent, const char* name = 0);
+ KMyMoneyWizardPage* nextPage(void) const;
+};
+
+/**
+ * Wizard page to allow selecting the filename
+ *
+ * @author Thomas Baumgart
+ */
+class FilePage : public KFilePageDecl, public WizardPage<Wizard>
+{
+ Q_OBJECT
+public:
+ FilePage(Wizard* parent, const char* name = 0);
+
+ virtual bool isComplete(void) const;
+};
+
+} // namespace
+
+#endif