Bitcoin
overviewpage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 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.
4 
5 #ifndef BITCOIN_QT_OVERVIEWPAGE_H
6 #define BITCOIN_QT_OVERVIEWPAGE_H
7 
8 #include <interfaces/wallet.h>
9 
10 #include <QWidget>
11 #include <memory>
12 
13 class ClientModel;
15 class TxViewDelegate;
16 class PlatformStyle;
17 class WalletModel;
18 
19 namespace Ui {
20  class OverviewPage;
21 }
22 
23 QT_BEGIN_NAMESPACE
24 class QModelIndex;
25 QT_END_NAMESPACE
26 
28 class OverviewPage : public QWidget
29 {
30  Q_OBJECT
31 
32 public:
33  explicit OverviewPage(const PlatformStyle *platformStyle, QWidget *parent = nullptr);
34  ~OverviewPage();
35 
38  void showOutOfSyncWarning(bool fShow);
39 
40 public Q_SLOTS:
41  void setBalance(const interfaces::WalletBalances& balances);
42 
43 Q_SIGNALS:
44  void transactionClicked(const QModelIndex &index);
46 
47 private:
52 
54  std::unique_ptr<TransactionFilterProxy> filter;
55 
56 private Q_SLOTS:
57  void updateDisplayUnit();
58  void handleTransactionClicked(const QModelIndex &index);
59  void updateAlerts(const QString &warnings);
60  void updateWatchOnlyLabels(bool showWatchOnly);
62 };
63 
64 #endif // BITCOIN_QT_OVERVIEWPAGE_H
Definition: transactionfilterproxy.h:14
void handleTransactionClicked(const QModelIndex &index)
Definition: overviewpage.cpp:144
void updateAlerts(const QString &warnings)
Definition: overviewpage.cpp:265
Definition: overviewpage.h:28
Definition: walletmodel.h:125
~OverviewPage()
Definition: overviewpage.cpp:155
Definition: addressbookpage.h:14
Collection of wallet balances.
Definition: wallet.h:321
interfaces::WalletBalances m_balances
Definition: overviewpage.h:51
void transactionClicked(const QModelIndex &index)
Definition: moc_overviewpage.cpp:178
void showOutOfSyncWarning(bool fShow)
Definition: overviewpage.cpp:271
void handleOutOfSyncWarningClicks()
Definition: overviewpage.cpp:150
std::unique_ptr< TransactionFilterProxy > filter
Definition: overviewpage.h:54
TxViewDelegate * txdelegate
Definition: overviewpage.h:53
void setWalletModel(WalletModel *walletModel)
Definition: overviewpage.cpp:215
void updateDisplayUnit()
Definition: overviewpage.cpp:250
ClientModel * clientModel
Definition: overviewpage.h:49
WalletModel * walletModel
Definition: overviewpage.h:50
Definition: ui_overviewpage.h:391
void setClientModel(ClientModel *clientModel)
Definition: overviewpage.cpp:204
Definition: overviewpage.cpp:26
void outOfSyncWarningClicked()
Definition: moc_overviewpage.cpp:185
Definition: clientmodel.h:44
void setBalance(const interfaces::WalletBalances &balances)
Definition: overviewpage.cpp:160
void updateWatchOnlyLabels(bool showWatchOnly)
Definition: overviewpage.cpp:191
Definition: platformstyle.h:13
Ui::OverviewPage * ui
Definition: overviewpage.h:48
OverviewPage(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
Definition: overviewpage.cpp:113