From dadc34655c3ab961b0b0b94a10eaaba710f0b5e8 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 4 Jul 2011 22:38:03 +0000 Subject: Added kmymoney git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmymoney@1239792 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmymoney2/dialogs/knewinvestmentwizard.h | 94 ++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 kmymoney2/dialogs/knewinvestmentwizard.h (limited to 'kmymoney2/dialogs/knewinvestmentwizard.h') diff --git a/kmymoney2/dialogs/knewinvestmentwizard.h b/kmymoney2/dialogs/knewinvestmentwizard.h new file mode 100644 index 0000000..7540521 --- /dev/null +++ b/kmymoney2/dialogs/knewinvestmentwizard.h @@ -0,0 +1,94 @@ +/*************************************************************************** + knewinvestmentwizard - description + ------------------- + begin : Sat Dec 4 2004 + copyright : (C) 2004 by Thomas Baumgart + email : Thomas Baumgart +***************************************************************************/ + +/*************************************************************************** + * * + * 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 KNEWINVESTMENTWIZARD_H +#define KNEWINVESTMENTWIZARD_H + +// ---------------------------------------------------------------------------- +// QT Includes + +// ---------------------------------------------------------------------------- +// KDE Includes + +// ---------------------------------------------------------------------------- +// Project Includes + +#include "../dialogs/knewinvestmentwizarddecl.h" +#include +#include + +/** + * This class contains the implementation of the new investment wizard. + * + * @author Thomas Baumgart + */ +class KNewInvestmentWizard : public KNewInvestmentWizardDecl +{ + Q_OBJECT +public: + /** + * Use this constructor for the creation of a new investment + */ + KNewInvestmentWizard( QWidget *parent = 0, const char *name = 0 ); + + /** + * Use this constructor for the modification of an existing investment + */ + KNewInvestmentWizard( const MyMoneyAccount& acc, QWidget *parent = 0, const char *name = 0 ); + + /** + * Use this constructor for the modification of an existing security + */ + KNewInvestmentWizard( const MyMoneySecurity& sec, QWidget *parent = 0, const char *name = 0 ); + + ~KNewInvestmentWizard(); + + /** + * This method sets the name in the name widget. + */ + void setName(const QString& name); + + /** + * Depending on the constructor used, this method either + * creates all necessary objects for the investment or updates + * them. + * + * @param parentId id of parent account for the investment + */ + void createObjects(const QString& parentId); + + const MyMoneyAccount& account(void) const { return m_account; } + +protected slots: + void next(void); + void slotCheckPage(void); + void slotCheckPage(const QString&); + void slotCheckForExistingSymbol(const QString&); + void slotSourceChanged(bool); + void slotHelp(void); + +private: + void init1(void); + void init2(void); + +private: + MyMoneyAccount m_account; + MyMoneySecurity m_security; + bool m_createAccount; +}; + +#endif -- cgit v1.2.1