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
14 class TransactionFilterProxy
;
27 /** Overview ("home") page widget */
28 class OverviewPage
: public QWidget
33 explicit OverviewPage(const PlatformStyle
*platformStyle
, QWidget
*parent
= 0);
36 void setClientModel(ClientModel
*clientModel
);
37 void setWalletModel(WalletModel
*walletModel
);
38 void showOutOfSyncWarning(bool fShow
);
41 void setBalance(const CAmount
& balance
, const CAmount
& unconfirmedBalance
, const CAmount
& immatureBalance
,
42 const CAmount
& watchOnlyBalance
, const CAmount
& watchUnconfBalance
, const CAmount
& watchImmatureBalance
);
45 void transactionClicked(const QModelIndex
&index
);
46 void outOfSyncWarningClicked();
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
;
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