Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
sendcoinsentry.h
Go to the documentation of this file.
1// Copyright (c) 2011-2015 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_SENDCOINSENTRY_H
6#define BITCOIN_QT_SENDCOINSENTRY_H
7
9
10#include <QStackedWidget>
11
12class WalletModel;
13class PlatformStyle;
14
15namespace interfaces {
16class Node;
17} // namespace interfaces
18
19namespace Ui {
20class SendCoinsEntry;
21}
22
28class SendCoinsEntry : public QStackedWidget {
30
31public:
33 QWidget *parent = nullptr);
35
39
41 bool isClear();
42
43 void setValue(const SendCoinsRecipient &value);
44 void setAddress(const QString &address);
45 void setAmount(const Amount amount);
46
51 QWidget *setupTabChain(QWidget *prev);
52
53 void setFocus();
54
55public Q_SLOTS:
56 void clear();
58
64
65private Q_SLOTS:
66 void deleteClicked();
68 void on_payTo_textChanged(const QString &address);
71 void updateDisplayUnit();
72
73private:
75 Ui::SendCoinsEntry *ui;
78
79 bool updateLabel(const QString &address);
80};
81
82#endif // BITCOIN_QT_SENDCOINSENTRY_H
A single entry in the dialog for sending bitcoins.
WalletModel * model
void setFocus()
bool updateLabel(const QString &address)
void setAmount(const Amount amount)
void setAddress(const QString &address)
bool isClear()
Return whether the entry is still empty and unedited.
void subtractFeeFromAmountChanged()
void useAvailableBalance(SendCoinsEntry *entry)
~SendCoinsEntry()
SendCoinsRecipient recipient
void setValue(const SendCoinsRecipient &value)
void updateDisplayUnit()
void on_payTo_textChanged(const QString &address)
void on_pasteButton_clicked()
void setModel(WalletModel *model)
void useAvailableBalanceClicked()
void removeEntry(SendCoinsEntry *entry)
void payAmountChanged()
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
const PlatformStyle * platformStyle
void deleteClicked()
void clear()
void on_addressBookButton_clicked()
bool validate(interfaces::Node &node)
Ui::SendCoinsEntry * ui
void checkSubtractFeeFromAmount()
SendCoinsRecipient getValue()
Interface to Bitcoin wallet from Qt view code.
Definition walletmodel.h:47
Top-level interface for a bitcoin node (bitcoind process).
Definition node.h:59
Definition init.h:28
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