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