Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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
13class ClientModel;
15class TxViewDelegate;
16class PlatformStyle;
17class WalletModel;
18
19namespace Ui {
20class OverviewPage;
21}
22
24class QModelIndex;
26
28class OverviewPage : public QWidget {
30
31public:
32 explicit OverviewPage(const PlatformStyle *platformStyle,
33 QWidget *parent = nullptr);
35
38 void showOutOfSyncWarning(bool fShow);
39
40public Q_SLOTS:
42 void setPrivacy(bool privacy);
43
45 void transactionClicked(const QModelIndex &index);
47
48private:
49 Ui::OverviewPage *ui;
53 bool m_privacy{false};
54
56 std::unique_ptr<TransactionFilterProxy> filter;
57
58private Q_SLOTS:
59 void updateDisplayUnit();
60 void handleTransactionClicked(const QModelIndex &index);
61 void updateAlerts(const QString &warnings);
64};
65
66#endif // BITCOIN_QT_OVERVIEWPAGE_H
Model for Bitcoin network client.
Definition clientmodel.h:43
Overview ("home") page widget.
void updateDisplayUnit()
interfaces::WalletBalances m_balances
void setWalletModel(WalletModel *walletModel)
void updateAlerts(const QString &warnings)
void updateWatchOnlyLabels(bool showWatchOnly)
void setClientModel(ClientModel *clientModel)
WalletModel * walletModel
Ui::OverviewPage * ui
void handleTransactionClicked(const QModelIndex &index)
void transactionClicked(const QModelIndex &index)
void handleOutOfSyncWarningClicks()
std::unique_ptr< TransactionFilterProxy > filter
void outOfSyncWarningClicked()
void showOutOfSyncWarning(bool fShow)
ClientModel * clientModel
void setBalance(const interfaces::WalletBalances &balances)
TxViewDelegate * txdelegate
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85
Collection of wallet balances.
Definition wallet.h:347