Bitcoin Core
31.1.0
P2P Digital Currency
Toggle main menu visibility
Loading...
Searching...
No Matches
src
qt
sendcoinsentry.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_SENDCOINSENTRY_H
6
#define BITCOIN_QT_SENDCOINSENTRY_H
7
8
#include <
qt/sendcoinsrecipient.h
>
9
10
#include <QWidget>
11
12
class
WalletModel
;
13
class
PlatformStyle
;
14
15
namespace
interfaces
{
16
class
Node
;
17
}
// namespace interfaces
18
19
namespace
Ui
{
20
class
SendCoinsEntry;
21
}
22
26
class
SendCoinsEntry
:
public
QWidget
27
{
28
Q_OBJECT
29
30
public
:
31
explicit
SendCoinsEntry
(
const
PlatformStyle
*
platformStyle
, QWidget *parent =
nullptr
);
32
~SendCoinsEntry
();
33
34
void
setModel
(
WalletModel
*
model
);
35
bool
validate
(
interfaces::Node
&
node
);
36
SendCoinsRecipient
getValue
();
37
39
bool
isClear
();
40
41
void
setValue
(
const
SendCoinsRecipient
&value);
42
void
setAddress
(
const
QString &address);
43
void
setAmount
(
const
CAmount
&amount);
44
48
QWidget *
setupTabChain
(QWidget *prev);
49
50
void
setFocus
();
51
52
public
Q_SLOTS:
53
void
clear
();
54
void
checkSubtractFeeFromAmount
();
55
56
Q_SIGNALS:
57
void
removeEntry
(
SendCoinsEntry
*entry);
58
void
useAvailableBalance
(
SendCoinsEntry
* entry);
59
void
payAmountChanged
();
60
void
subtractFeeFromAmountChanged
();
61
62
private
Q_SLOTS:
63
void
deleteClicked
();
64
void
useAvailableBalanceClicked
();
65
void
on_payTo_textChanged
(
const
QString &address);
66
void
on_addressBookButton_clicked
();
67
void
on_pasteButton_clicked
();
68
void
updateDisplayUnit
();
69
70
protected
:
71
void
changeEvent
(QEvent* e)
override
;
72
73
private
:
74
SendCoinsRecipient
recipient
;
75
Ui::SendCoinsEntry *
ui
;
76
WalletModel
*
model
{
nullptr
};
77
const
PlatformStyle
*
platformStyle
;
78
79
bool
updateLabel
(
const
QString &address);
80
};
81
82
#endif
// BITCOIN_QT_SENDCOINSENTRY_H
CAmount
int64_t CAmount
Amount in satoshis (Can be negative).
Definition
amount.h:12
PlatformStyle
Definition
platformstyle.h:14
SendCoinsEntry::model
WalletModel * model
Definition
sendcoinsentry.h:76
SendCoinsEntry::setFocus
void setFocus()
Definition
sendcoinsentry.cpp:203
SendCoinsEntry::updateLabel
bool updateLabel(const QString &address)
Definition
sendcoinsentry.cpp:226
SendCoinsEntry::setAddress
void setAddress(const QString &address)
Definition
sendcoinsentry.cpp:187
SendCoinsEntry::isClear
bool isClear()
Return whether the entry is still empty and unedited.
Definition
sendcoinsentry.cpp:198
SendCoinsEntry::subtractFeeFromAmountChanged
void subtractFeeFromAmountChanged()
SendCoinsEntry::useAvailableBalance
void useAvailableBalance(SendCoinsEntry *entry)
SendCoinsEntry::~SendCoinsEntry
~SendCoinsEntry()
Definition
sendcoinsentry.cpp:41
SendCoinsEntry::recipient
SendCoinsRecipient recipient
Definition
sendcoinsentry.h:74
SendCoinsEntry::setValue
void setValue(const SendCoinsRecipient &value)
Definition
sendcoinsentry.cpp:170
SendCoinsEntry::changeEvent
void changeEvent(QEvent *e) override
Definition
sendcoinsentry.cpp:215
SendCoinsEntry::updateDisplayUnit
void updateDisplayUnit()
Definition
sendcoinsentry.cpp:208
SendCoinsEntry::on_payTo_textChanged
void on_payTo_textChanged(const QString &address)
Definition
sendcoinsentry.cpp:65
SendCoinsEntry::on_pasteButton_clicked
void on_pasteButton_clicked()
Definition
sendcoinsentry.cpp:46
SendCoinsEntry::SendCoinsEntry
SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
Definition
sendcoinsentry.cpp:18
SendCoinsEntry::setModel
void setModel(WalletModel *model)
Definition
sendcoinsentry.cpp:70
SendCoinsEntry::useAvailableBalanceClicked
void useAvailableBalanceClicked()
Definition
sendcoinsentry.cpp:107
SendCoinsEntry::removeEntry
void removeEntry(SendCoinsEntry *entry)
SendCoinsEntry::payAmountChanged
void payAmountChanged()
SendCoinsEntry::setAmount
void setAmount(const CAmount &amount)
Definition
sendcoinsentry.cpp:193
SendCoinsEntry::setupTabChain
QWidget * setupTabChain(QWidget *prev)
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://...
Definition
sendcoinsentry.cpp:158
SendCoinsEntry::platformStyle
const PlatformStyle * platformStyle
Definition
sendcoinsentry.h:77
SendCoinsEntry::deleteClicked
void deleteClicked()
Definition
sendcoinsentry.cpp:102
SendCoinsEntry::clear
void clear()
Definition
sendcoinsentry.cpp:80
SendCoinsEntry::on_addressBookButton_clicked
void on_addressBookButton_clicked()
Definition
sendcoinsentry.cpp:52
SendCoinsEntry::validate
bool validate(interfaces::Node &node)
Definition
sendcoinsentry.cpp:112
SendCoinsEntry::ui
Ui::SendCoinsEntry * ui
Definition
sendcoinsentry.h:75
SendCoinsEntry::checkSubtractFeeFromAmount
void checkSubtractFeeFromAmount()
Definition
sendcoinsentry.cpp:97
SendCoinsEntry::getValue
SendCoinsRecipient getValue()
Definition
sendcoinsentry.cpp:147
SendCoinsRecipient
Definition
sendcoinsrecipient.h:16
WalletModel
Interface to Bitcoin wallet from Qt view code.
Definition
walletmodel.h:49
interfaces::Node
Top-level interface for a bitcoin node (bitcoind process).
Definition
node.h:70
Ui
Definition
addressbookpage.h:14
interfaces
Definition
interfaces.cpp:41
node
Definition
messages.h:21
sendcoinsrecipient.h
Generated on
for Bitcoin Core by
1.17.0