aboutsummaryrefslogtreecommitdiff
path: root/src/qt/walletframe.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-18 18:05:26 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-18 18:06:19 +0200
commit26702e6930519c7d063796f2572a5b4ef5f29b06 (patch)
tree68f0f4bed9553ba7e926b9e954147c9299ab16b9 /src/qt/walletframe.h
parent81cab378cc351eb0e176dd7733a29df931d4f877 (diff)
downloadbitcoin-26702e6930519c7d063796f2572a5b4ef5f29b06.tar.xz
qt: merge walletstack and walletframe
There were too many levels of indirection here, and the functionality of walletframe and walletstack can easily be merged. This commit merges the two which cuts a lot of lines of boilerplate code.
Diffstat (limited to 'src/qt/walletframe.h')
-rw-r--r--src/qt/walletframe.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/qt/walletframe.h b/src/qt/walletframe.h
index eaae053ccd..4cc6d14e41 100644
--- a/src/qt/walletframe.h
+++ b/src/qt/walletframe.h
@@ -8,12 +8,17 @@
#define WALLETFRAME_H
#include <QFrame>
+#include <QMap>
class BitcoinGUI;
class ClientModel;
class SendCoinsRecipient;
class WalletModel;
-class WalletStack;
+class WalletView;
+
+QT_BEGIN_NAMESPACE
+class QStackedWidget;
+QT_END_NAMESPACE
class WalletFrame : public QFrame
{
@@ -35,7 +40,12 @@ public:
void showOutOfSyncWarning(bool fShow);
private:
- WalletStack *walletStack;
+ QStackedWidget *walletStack;
+ BitcoinGUI *gui;
+ ClientModel *clientModel;
+ QMap<QString, WalletView*> mapWalletViews;
+
+ bool bOutOfSync;
public slots:
/** Switch to overview (home) page */