Bitcoin ABC  0.29.2
P2P Digital Currency
overviewpage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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  Q_OBJECT
30 
31 public:
32  explicit OverviewPage(const PlatformStyle *platformStyle,
33  QWidget *parent = nullptr);
34  ~OverviewPage();
35 
38  void showOutOfSyncWarning(bool fShow);
39 
40 public Q_SLOTS:
41  void setBalance(const interfaces::WalletBalances &balances);
42  void setPrivacy(bool privacy);
43 
44 Q_SIGNALS:
45  void transactionClicked(const QModelIndex &index);
47 
48 private:
49  Ui::OverviewPage *ui;
53  bool m_privacy{false};
54 
56  std::unique_ptr<TransactionFilterProxy> filter;
57 
58 private Q_SLOTS:
59  void updateDisplayUnit();
60  void handleTransactionClicked(const QModelIndex &index);
61  void updateAlerts(const QString &warnings);
62  void updateWatchOnlyLabels(bool showWatchOnly);
64 };
65 
66 #endif // BITCOIN_QT_OVERVIEWPAGE_H
Model for Bitcoin network client.
Definition: clientmodel.h:43
Overview ("home") page widget.
Definition: overviewpage.h:28
void updateDisplayUnit()
interfaces::WalletBalances m_balances
Definition: overviewpage.h:52
void setWalletModel(WalletModel *walletModel)
void updateAlerts(const QString &warnings)
void updateWatchOnlyLabels(bool showWatchOnly)
void setClientModel(ClientModel *clientModel)
WalletModel * walletModel
Definition: overviewpage.h:51
Ui::OverviewPage * ui
Definition: overviewpage.h:49
void handleTransactionClicked(const QModelIndex &index)
void transactionClicked(const QModelIndex &index)
void handleOutOfSyncWarningClicks()
OverviewPage(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
std::unique_ptr< TransactionFilterProxy > filter
Definition: overviewpage.h:56
void outOfSyncWarningClicked()
void showOutOfSyncWarning(bool fShow)
ClientModel * clientModel
Definition: overviewpage.h:50
void setBalance(const interfaces::WalletBalances &balances)
TxViewDelegate * txdelegate
Definition: overviewpage.h:55
void setPrivacy(bool privacy)
Filter the transaction list according to pre-specified rules.
Interface to Bitcoin wallet from Qt view code.
Definition: walletmodel.h:47
Collection of wallet balances.
Definition: wallet.h:347