Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
SendCoinsEntry Class Reference

A single entry in the dialog for sending bitcoins. More...

#include <sendcoinsentry.h>

+ Inheritance diagram for SendCoinsEntry:
+ Collaboration diagram for SendCoinsEntry:

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)
 
QWidgetsetupTabChain (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::SendCoinsEntryui
 
WalletModelmodel
 

Detailed Description

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.

Constructor & Destructor Documentation

SendCoinsEntry::SendCoinsEntry ( QWidget parent = 0)
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.

+ Here is the call graph for this function:

SendCoinsEntry::~SendCoinsEntry ( )

Definition at line 39 of file sendcoinsentry.cpp.

References ui.

Member Function Documentation

void SendCoinsEntry::clear ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsEntry::deleteClicked ( )
privateslot

Definition at line 105 of file sendcoinsentry.cpp.

References removeEntry().

Referenced by setModel().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

void SendCoinsEntry::on_addressBookButton_clicked ( )
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.

+ Here is the call graph for this function:

void SendCoinsEntry::on_pasteButton_clicked ( )
privateslot

Definition at line 44 of file sendcoinsentry.cpp.

References Ui_SendCoinsEntry::payTo, and ui.

void SendCoinsEntry::on_payTo_textChanged ( const QString &  address)
privateslot

Definition at line 63 of file sendcoinsentry.cpp.

References updateLabel().

+ Here is the call graph for this function:

void SendCoinsEntry::payAmountChanged ( )
signal

Definition at line 121 of file moc_sendcoinsentry.cpp.

Referenced by setModel().

+ Here is the caller graph for this function:

void SendCoinsEntry::removeEntry ( SendCoinsEntry entry)
signal

Definition at line 114 of file moc_sendcoinsentry.cpp.

Referenced by deleteClicked().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

void SendCoinsEntry::setFocus ( )

Definition at line 217 of file sendcoinsentry.cpp.

References Ui_SendCoinsEntry::payTo, and ui.

Referenced by SendCoinsDialog::addEntry().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QWidget * SendCoinsEntry::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).

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsEntry::setValue ( const SendCoinsRecipient value)
void SendCoinsEntry::updateDisplayUnit ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool SendCoinsEntry::updateLabel ( const QString &  address)
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

WalletModel* SendCoinsEntry::model
private
SendCoinsRecipient SendCoinsEntry::recipient
private

Definition at line 63 of file sendcoinsentry.h.

Referenced by getValue(), setValue(), and validate().

Ui::SendCoinsEntry* SendCoinsEntry::ui
private

The documentation for this class was generated from the following files: