![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
A single entry in the dialog for sending bitcoins. More...
#include <sendcoinsentry.h>
Public Slots | |
void | clear () |
Signals | |
void | removeEntry (SendCoinsEntry *entry) |
void | payAmountChanged () |
Public Member Functions | |
SendCoinsEntry (QWidget *parent=0) | |
~SendCoinsEntry () | |
void | setModel (WalletModel *model) |
bool | validate () |
SendCoinsRecipient | getValue () |
bool | isClear () |
Return whether the entry is still empty and unedited. More... | |
void | setValue (const SendCoinsRecipient &value) |
void | setAddress (const QString &address) |
QWidget * | setupTabChain (QWidget *prev) |
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907). More... | |
void | setFocus () |
Private Slots | |
void | deleteClicked () |
void | on_payTo_textChanged (const QString &address) |
void | on_addressBookButton_clicked () |
void | on_pasteButton_clicked () |
void | updateDisplayUnit () |
Private Member Functions | |
bool | updateLabel (const QString &address) |
Private Attributes | |
SendCoinsRecipient | recipient |
Ui::SendCoinsEntry * | ui |
WalletModel * | model |
A single entry in the dialog for sending bitcoins.
Stacked widget, with different UIs for payment requests with a strong payee identity.
Definition at line 23 of file sendcoinsentry.h.
|
explicit |
Definition at line 17 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, GUIUtil::bitcoinAddressFont(), Ui_SendCoinsEntry::payTo, Ui_SendCoinsEntry::payTo_is, Ui_SendCoinsEntry::payToLayout, Ui_SendCoinsEntry::SendCoins, GUIUtil::setupAddressWidget(), Ui_SendCoinsEntry::setupUi(), and ui.
SendCoinsEntry::~SendCoinsEntry | ( | ) |
Definition at line 39 of file sendcoinsentry.cpp.
References ui.
|
slot |
Definition at line 83 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, QValidatedLineEdit::clear(), BitcoinAmountField::clear(), Ui_SendCoinsEntry::memoTextLabel_is, Ui_SendCoinsEntry::memoTextLabel_s, Ui_SendCoinsEntry::messageLabel, Ui_SendCoinsEntry::messageTextLabel, Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payAmount_is, Ui_SendCoinsEntry::payAmount_s, Ui_SendCoinsEntry::payTo, Ui_SendCoinsEntry::payTo_is, Ui_SendCoinsEntry::payTo_s, ui, and updateDisplayUnit().
Referenced by SendCoinsDialog::addEntry(), and setModel().
|
privateslot |
Definition at line 105 of file sendcoinsentry.cpp.
References removeEntry().
Referenced by setModel().
SendCoinsRecipient SendCoinsEntry::getValue | ( | ) |
Definition at line 142 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, SendCoinsRecipient::address, SendCoinsRecipient::amount, PaymentRequestPlus::IsInitialized(), SendCoinsRecipient::label, SendCoinsRecipient::message, Ui_SendCoinsEntry::messageTextLabel, Ui_SendCoinsEntry::payAmount, SendCoinsRecipient::paymentRequest, Ui_SendCoinsEntry::payTo, recipient, ui, and BitcoinAmountField::value.
Referenced by SendCoinsDialog::coinControlUpdateLabels(), and SendCoinsDialog::on_sendButton_clicked().
bool SendCoinsEntry::isClear | ( | ) |
Return whether the entry is still empty and unedited.
Definition at line 212 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::payTo, Ui_SendCoinsEntry::payTo_is, Ui_SendCoinsEntry::payTo_s, and ui.
Referenced by SendCoinsDialog::pasteEntry(), and SendCoinsDialog::setAddress().
|
privateslot |
Definition at line 50 of file sendcoinsentry.cpp.
References AddressBookPage::ForSelection, WalletModel::getAddressTableModel(), AddressBookPage::getReturnValue(), model, Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payTo, AddressBookPage::SendingTab, AddressBookPage::setModel(), and ui.
|
privateslot |
Definition at line 44 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::payTo, and ui.
|
privateslot |
Definition at line 63 of file sendcoinsentry.cpp.
References updateLabel().
|
signal |
Definition at line 121 of file moc_sendcoinsentry.cpp.
Referenced by setModel().
|
signal |
Definition at line 114 of file moc_sendcoinsentry.cpp.
Referenced by deleteClicked().
void SendCoinsEntry::setAddress | ( | const QString & | address | ) |
Definition at line 206 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payTo, and ui.
Referenced by SendCoinsDialog::setAddress().
void SendCoinsEntry::setFocus | ( | ) |
Definition at line 217 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::payTo, and ui.
Referenced by SendCoinsDialog::addEntry().
void SendCoinsEntry::setModel | ( | WalletModel * | model | ) |
Definition at line 68 of file sendcoinsentry.cpp.
References clear(), Ui_SendCoinsEntry::deleteButton, Ui_SendCoinsEntry::deleteButton_is, Ui_SendCoinsEntry::deleteButton_s, deleteClicked(), WalletModel::getOptionsModel(), model, Ui_SendCoinsEntry::payAmount, payAmountChanged(), ui, and updateDisplayUnit().
Referenced by SendCoinsDialog::addEntry(), and SendCoinsDialog::setModel().
Set up the tab chain manually, as Qt messes up the tab chain by default in some cases (issue https://bugreports.qt-project.org/browse/QTBUG-10907).
Definition at line 157 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, Ui_SendCoinsEntry::addressBookButton, Ui_SendCoinsEntry::deleteButton, Ui_SendCoinsEntry::pasteButton, Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payTo, BitcoinAmountField::setupTabChain(), and ui.
Referenced by SendCoinsDialog::setupTabChain().
void SendCoinsEntry::setValue | ( | const SendCoinsRecipient & | value | ) |
Definition at line 168 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, SendCoinsRecipient::address, SendCoinsRecipient::amount, SendCoinsRecipient::authenticatedMerchant, PaymentRequestPlus::IsInitialized(), SendCoinsRecipient::label, Ui_SendCoinsEntry::memoTextLabel_is, Ui_SendCoinsEntry::memoTextLabel_s, SendCoinsRecipient::message, Ui_SendCoinsEntry::messageLabel, Ui_SendCoinsEntry::messageTextLabel, Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payAmount_is, Ui_SendCoinsEntry::payAmount_s, SendCoinsRecipient::paymentRequest, Ui_SendCoinsEntry::payTo, Ui_SendCoinsEntry::payTo_is, Ui_SendCoinsEntry::payTo_s, recipient, Ui_SendCoinsEntry::SendCoins_InsecurePaymentRequest, Ui_SendCoinsEntry::SendCoins_SecurePaymentRequest, BitcoinAmountField::setReadOnly(), BitcoinAmountField::setValue(), and ui.
Referenced by SendCoinsDialog::pasteEntry().
|
privateslot |
Definition at line 222 of file sendcoinsentry.cpp.
References OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), model, Ui_SendCoinsEntry::payAmount, Ui_SendCoinsEntry::payAmount_is, Ui_SendCoinsEntry::payAmount_s, BitcoinAmountField::setDisplayUnit(), and ui.
Referenced by clear(), and setModel().
|
private |
Definition at line 233 of file sendcoinsentry.cpp.
References Ui_SendCoinsEntry::addAsLabel, WalletModel::getAddressTableModel(), AddressTableModel::labelForAddress(), model, and ui.
Referenced by on_payTo_textChanged().
bool SendCoinsEntry::validate | ( | ) |
Definition at line 110 of file sendcoinsentry.cpp.
References GUIUtil::isDust(), PaymentRequestPlus::IsInitialized(), model, Ui_SendCoinsEntry::payAmount, SendCoinsRecipient::paymentRequest, Ui_SendCoinsEntry::payTo, recipient, QValidatedLineEdit::setValid(), BitcoinAmountField::setValid(), ui, BitcoinAmountField::validate(), WalletModel::validateAddress(), and BitcoinAmountField::value.
Referenced by SendCoinsDialog::on_sendButton_clicked().
|
private |
Definition at line 65 of file sendcoinsentry.h.
Referenced by on_addressBookButton_clicked(), setModel(), updateDisplayUnit(), updateLabel(), and validate().
|
private |
Definition at line 63 of file sendcoinsentry.h.
Referenced by getValue(), setValue(), and validate().
|
private |
Definition at line 64 of file sendcoinsentry.h.
Referenced by clear(), getValue(), isClear(), on_addressBookButton_clicked(), on_pasteButton_clicked(), SendCoinsEntry(), setAddress(), setFocus(), setModel(), setupTabChain(), setValue(), updateDisplayUnit(), updateLabel(), validate(), and ~SendCoinsEntry().