6#include <qt/forms/ui_sendcoinsentry.h>
15#include <QApplication>
21 platformStyle(_platformStyle)
30 ui->payToLayout->setSpacing(4);
49 ui->payTo->setText(QApplication::clipboard()->text());
61 ui->payAmount->setFocus();
84 ui->addAsLabel->clear();
85 ui->payAmount->clear();
89 ui->messageTextLabel->clear();
90 ui->messageTextLabel->hide();
91 ui->messageLabel->hide();
99 ui->checkboxSubtractFeeFromAmount->setChecked(
true);
122 ui->payTo->setValid(
false);
126 if (!
ui->payAmount->validate())
132 if (
ui->payAmount->value(
nullptr) <= 0)
134 ui->payAmount->setValid(
false);
140 ui->payAmount->setValid(
false);
160 QWidget::setTabOrder(prev,
ui->payTo);
161 QWidget::setTabOrder(
ui->payTo,
ui->addAsLabel);
162 QWidget *w =
ui->payAmount->setupTabChain(
ui->addAsLabel);
163 QWidget::setTabOrder(w,
ui->checkboxSubtractFeeFromAmount);
164 QWidget::setTabOrder(
ui->checkboxSubtractFeeFromAmount,
ui->addressBookButton);
165 QWidget::setTabOrder(
ui->addressBookButton,
ui->pasteButton);
166 QWidget::setTabOrder(
ui->pasteButton,
ui->deleteButton);
167 return ui->deleteButton;
179 ui->addAsLabel->clear();
189 ui->payTo->setText(address);
190 ui->payAmount->setFocus();
195 ui->payAmount->setValue(amount);
200 return ui->payTo->text().isEmpty();
205 ui->payTo->setFocus();
217 if (e->type() == QEvent::PaletteChange) {
223 QWidget::changeEvent(e);
233 if(!associatedLabel.isEmpty())
235 ui->addAsLabel->setText(associatedLabel);
int64_t CAmount
Amount in satoshis (Can be negative)
Widget that shows a list of sending or receiving addresses.
@ ForSelection
Open address book to pick address.
void setModel(AddressTableModel *model)
const QString & getReturnValue() const
QString labelForAddress(const QString &address) const
Look up label for address in address book, if not found return empty string.
bool getSubFeeFromAmount() const
void displayUnitChanged(BitcoinUnit unit)
BitcoinUnit getDisplayUnit() const
A single entry in the dialog for sending bitcoins.
bool updateLabel(const QString &address)
void setAddress(const QString &address)
bool isClear()
Return whether the entry is still empty and unedited.
void subtractFeeFromAmountChanged()
void useAvailableBalance(SendCoinsEntry *entry)
SendCoinsRecipient recipient
void setValue(const SendCoinsRecipient &value)
void changeEvent(QEvent *e) override
void on_payTo_textChanged(const QString &address)
void on_pasteButton_clicked()
SendCoinsEntry(const PlatformStyle *platformStyle, QWidget *parent=nullptr)
void setModel(WalletModel *model)
void useAvailableBalanceClicked()
void removeEntry(SendCoinsEntry *entry)
void setAmount(const CAmount &amount)
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 on_addressBookButton_clicked()
bool validate(interfaces::Node &node)
void checkSubtractFeeFromAmount()
SendCoinsRecipient getValue()
bool fSubtractFeeFromAmount
Interface to Bitcoin wallet from Qt view code.
AddressTableModel * getAddressTableModel() const
bool validateAddress(const QString &address) const
OptionsModel * getOptionsModel() const
Top-level interface for a bitcoin node (bitcoind process).
bool isDust(interfaces::Node &node, const QString &address, const CAmount &amount)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)