Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
walletframe.h
Go to the documentation of this file.
1// Copyright (c) 2011-present 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_WALLETFRAME_H
6#define BITCOIN_QT_WALLETFRAME_H
7
8#include <QFrame>
9#include <QMap>
10
11class ClientModel;
12class PlatformStyle;
14class WalletModel;
15class WalletView;
16
18class QStackedWidget;
20
28class WalletFrame : public QFrame
29{
31
32public:
33 explicit WalletFrame(const PlatformStyle* platformStyle, QWidget* parent);
35
37
41
42 bool handlePaymentRequest(const SendCoinsRecipient& recipient);
43
44 void showOutOfSyncWarning(bool fShow);
45
46 QSize sizeHint() const override { return m_size_hint; }
47
50 void message(const QString& title, const QString& message, unsigned int style);
52
53private:
54 QStackedWidget *walletStack;
57
59
61
63
64public:
67
68public Q_SLOTS:
70 void gotoOverviewPage();
72 void gotoHistoryPage();
76 void gotoSendCoinsPage(QString addr = "");
77
79 void gotoSignMessageTab(QString addr = "");
81 void gotoVerifyMessageTab(QString addr = "");
82
84 void gotoLoadPSBT(bool from_clipboard = false);
85
87 void encryptWallet();
89 void backupWallet();
91 void changePassphrase();
93 void unlockWallet();
94
99};
100
101#endif // BITCOIN_QT_WALLETFRAME_H
Model for Bitcoin network client.
Definition clientmodel.h:57
A container for embedding all wallet-related controls into BitcoinGUI.
Definition walletframe.h:29
void currentWalletSet()
bool addView(WalletView *walletView)
void changePassphrase()
Change encrypted wallet passphrase.
WalletModel * currentWalletModel() const
void gotoHistoryPage()
Switch to history (transactions) page.
void unlockWallet()
Ask for passphrase to unlock wallet temporarily.
void gotoSignMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to sign message tab.
WalletView * currentWalletView() const
void gotoOverviewPage()
Switch to overview (home) page.
ClientModel * clientModel
Definition walletframe.h:55
const PlatformStyle * platformStyle
Definition walletframe.h:60
void gotoSendCoinsPage(QString addr="")
Switch to send coins page.
void removeWallet(WalletModel *wallet_model)
void setClientModel(ClientModel *clientModel)
bool bOutOfSync
Definition walletframe.h:58
void backupWallet()
Backup the wallet.
QStackedWidget * walletStack
Definition walletframe.h:54
void usedSendingAddresses()
Show used sending addresses.
void createWalletButtonClicked()
void encryptWallet()
Encrypt the wallet.
QSize sizeHint() const override
Definition walletframe.h:46
void usedReceivingAddresses()
Show used receiving addresses.
void message(const QString &title, const QString &message, unsigned int style)
const QSize m_size_hint
Definition walletframe.h:62
void setCurrentWallet(WalletModel *wallet_model)
bool handlePaymentRequest(const SendCoinsRecipient &recipient)
QMap< WalletModel *, WalletView * > mapWalletViews
Definition walletframe.h:56
void gotoLoadPSBT(bool from_clipboard=false)
Load Partially Signed Bitcoin Transaction.
void showOutOfSyncWarning(bool fShow)
void gotoReceiveCoinsPage()
Switch to receive coins page.
void gotoVerifyMessageTab(QString addr="")
Show Sign/Verify Message dialog and switch to verify message tab.
Interface to Bitcoin wallet from Qt view code.
Definition walletmodel.h:49
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82