Merge #11997: [tests] util_tests.cpp: actually check ignored args
[bitcoinplatinum.git] / src / qt / overviewpage.h
blob0ce9f98c8c55f768f698f9c67e5786d7ab549f4a
1 // Copyright (c) 2011-2017 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 #ifndef BITCOIN_QT_OVERVIEWPAGE_H
6 #define BITCOIN_QT_OVERVIEWPAGE_H
8 #include <amount.h>
10 #include <QWidget>
11 #include <memory>
13 class ClientModel;
14 class TransactionFilterProxy;
15 class TxViewDelegate;
16 class PlatformStyle;
17 class WalletModel;
19 namespace Ui {
20 class OverviewPage;
23 QT_BEGIN_NAMESPACE
24 class QModelIndex;
25 QT_END_NAMESPACE
27 /** Overview ("home") page widget */
28 class OverviewPage : public QWidget
30 Q_OBJECT
32 public:
33 explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = 0);
34 ~OverviewPage();
36 void setClientModel(ClientModel *clientModel);
37 void setWalletModel(WalletModel *walletModel);
38 void showOutOfSyncWarning(bool fShow);
40 public Q_SLOTS:
41 void setBalance(const CAmount& balance, const CAmount& unconfirmedBalance, const CAmount& immatureBalance,
42 const CAmount& watchOnlyBalance, const CAmount& watchUnconfBalance, const CAmount& watchImmatureBalance);
44 Q_SIGNALS:
45 void transactionClicked(const QModelIndex &index);
46 void outOfSyncWarningClicked();
48 private:
49 Ui::OverviewPage *ui;
50 ClientModel *clientModel;
51 WalletModel *walletModel;
52 CAmount currentBalance;
53 CAmount currentUnconfirmedBalance;
54 CAmount currentImmatureBalance;
55 CAmount currentWatchOnlyBalance;
56 CAmount currentWatchUnconfBalance;
57 CAmount currentWatchImmatureBalance;
59 TxViewDelegate *txdelegate;
60 std::unique_ptr<TransactionFilterProxy> filter;
62 private Q_SLOTS:
63 void updateDisplayUnit();
64 void handleTransactionClicked(const QModelIndex &index);
65 void updateAlerts(const QString &warnings);
66 void updateWatchOnlyLabels(bool showWatchOnly);
67 void handleOutOfSyncWarningClicks();
70 #endif // BITCOIN_QT_OVERVIEWPAGE_H