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
SendCoinsDialog Class Reference

Dialog for sending bitcoins. More...

#include <sendcoinsdialog.h>

+ Inheritance diagram for SendCoinsDialog:
+ Collaboration diagram for SendCoinsDialog:

Public Slots

void clear ()
 
void reject ()
 
void accept ()
 
SendCoinsEntryaddEntry ()
 
void updateTabsAndLabels ()
 
void setBalance (qint64 balance, qint64 unconfirmedBalance, qint64 immatureBalance)
 

Signals

void message (const QString &title, const QString &message, unsigned int style)
 

Public Member Functions

 SendCoinsDialog (QWidget *parent=0)
 
 ~SendCoinsDialog ()
 
void setModel (WalletModel *model)
 
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 setAddress (const QString &address)
 
void pasteEntry (const SendCoinsRecipient &rv)
 
bool handlePaymentRequest (const SendCoinsRecipient &recipient)
 

Private Slots

void on_sendButton_clicked ()
 
void removeEntry (SendCoinsEntry *entry)
 
void updateDisplayUnit ()
 
void coinControlFeatureChanged (bool)
 
void coinControlButtonClicked ()
 
void coinControlChangeChecked (int)
 
void coinControlChangeEdited (const QString &)
 
void coinControlUpdateLabels ()
 
void coinControlClipboardQuantity ()
 
void coinControlClipboardAmount ()
 
void coinControlClipboardFee ()
 
void coinControlClipboardAfterFee ()
 
void coinControlClipboardBytes ()
 
void coinControlClipboardPriority ()
 
void coinControlClipboardLowOutput ()
 
void coinControlClipboardChange ()
 

Private Member Functions

void processSendCoinsReturn (const WalletModel::SendCoinsReturn &sendCoinsReturn, const QString &msgArg=QString())
 

Private Attributes

Ui::SendCoinsDialogui
 
WalletModelmodel
 
bool fNewRecipientAllowed
 

Detailed Description

Dialog for sending bitcoins.

Definition at line 26 of file sendcoinsdialog.h.

Constructor & Destructor Documentation

SendCoinsDialog::SendCoinsDialog ( QWidget parent = 0)
explicit
SendCoinsDialog::~SendCoinsDialog ( )

Definition at line 106 of file sendcoinsdialog.cpp.

References ui.

Member Function Documentation

void SendCoinsDialog::accept ( )
slot

Definition at line 273 of file sendcoinsdialog.cpp.

References clear().

Referenced by on_sendButton_clicked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SendCoinsEntry * SendCoinsDialog::addEntry ( )
slot

Definition at line 278 of file sendcoinsdialog.cpp.

References SendCoinsEntry::clear(), coinControlUpdateLabels(), Ui_SendCoinsDialog::entries, model, removeEntry(), Ui_SendCoinsDialog::scrollArea, Ui_SendCoinsDialog::scrollAreaWidgetContents, SendCoinsEntry::setFocus(), SendCoinsEntry::setModel(), ui, and updateTabsAndLabels().

Referenced by clear(), pasteEntry(), removeEntry(), SendCoinsDialog(), and setAddress().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::clear ( )
slot

Definition at line 256 of file sendcoinsdialog.cpp.

References addEntry(), Ui_SendCoinsDialog::entries, ui, and updateTabsAndLabels().

Referenced by accept(), reject(), and SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlButtonClicked ( )
privateslot

Definition at line 524 of file sendcoinsdialog.cpp.

References coinControlUpdateLabels(), model, and CoinControlDialog::setModel().

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlChangeChecked ( int  state)
privateslot

Definition at line 533 of file sendcoinsdialog.cpp.

References CoinControlDialog::coinControl, coinControlChangeEdited(), CCoinControl::destChange, Ui_SendCoinsDialog::labelCoinControlChangeLabel, Ui_SendCoinsDialog::lineEditCoinControlChange, QValidatedLineEdit::setEnabled(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlChangeEdited ( const QString &  text)
privateslot

Definition at line 548 of file sendcoinsdialog.cpp.

References CoinControlDialog::coinControl, CCoinControl::destChange, CBitcoinAddress::Get(), WalletModel::getAddressTableModel(), CBitcoinAddress::GetKeyID(), WalletModel::getPubKey(), CBitcoinAddress::IsValid(), Ui_SendCoinsDialog::labelCoinControlChangeLabel, AddressTableModel::labelForAddress(), model, and ui.

Referenced by coinControlChangeChecked(), and SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardAfterFee ( )
privateslot

Definition at line 482 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlAfterFee, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardAmount ( )
privateslot

Definition at line 470 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlAmount, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardBytes ( )
privateslot

Definition at line 488 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlBytes, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardChange ( )
privateslot

Definition at line 506 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlChange, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardFee ( )
privateslot

Definition at line 476 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlFee, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardLowOutput ( )
privateslot

Definition at line 500 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlLowOutput, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardPriority ( )
privateslot

Definition at line 494 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlPriority, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlClipboardQuantity ( )
privateslot

Definition at line 464 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::labelCoinControlQuantity, GUIUtil::setClipboard(), and ui.

Referenced by SendCoinsDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlFeatureChanged ( bool  checked)
privateslot

Definition at line 512 of file sendcoinsdialog.cpp.

References CoinControlDialog::coinControl, coinControlUpdateLabels(), Ui_SendCoinsDialog::frameCoinControl, model, CCoinControl::SetNull(), and ui.

Referenced by setModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::coinControlUpdateLabels ( )
privateslot

Definition at line 593 of file sendcoinsdialog.cpp.

References SendCoinsRecipient::amount, CoinControlDialog::coinControl, Ui_SendCoinsDialog::entries, OptionsModel::getCoinControlFeatures(), WalletModel::getOptionsModel(), SendCoinsEntry::getValue(), Ui_SendCoinsDialog::labelCoinControlAutomaticallySelected, Ui_SendCoinsDialog::labelCoinControlInsuffFunds, model, CoinControlDialog::payAmounts, ui, CoinControlDialog::updateLabels(), and Ui_SendCoinsDialog::widgetCoinControl.

Referenced by addEntry(), coinControlButtonClicked(), coinControlFeatureChanged(), on_sendButton_clicked(), setModel(), and updateTabsAndLabels().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool SendCoinsDialog::handlePaymentRequest ( const SendCoinsRecipient recipient)

Definition at line 378 of file sendcoinsdialog.cpp.

References SendCoinsRecipient::address, payments::PaymentDetails::expires(), PaymentRequestPlus::getDetails(), GetTime(), payments::PaymentDetails::has_expires(), PaymentRequestPlus::IsInitialized(), message(), CClientUIInterface::MSG_WARNING, pasteEntry(), and SendCoinsRecipient::paymentRequest.

Referenced by WalletView::handlePaymentRequest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal

Definition at line 160 of file moc_sendcoinsdialog.cpp.

Referenced by handlePaymentRequest(), and processSendCoinsReturn().

+ Here is the caller graph for this function:

void SendCoinsDialog::on_sendButton_clicked ( )
privateslot
void SendCoinsDialog::pasteEntry ( const SendCoinsRecipient rv)

Definition at line 354 of file sendcoinsdialog.cpp.

References addEntry(), Ui_SendCoinsDialog::entries, fNewRecipientAllowed, SendCoinsEntry::isClear(), SendCoinsEntry::setValue(), ui, and updateTabsAndLabels().

Referenced by handlePaymentRequest().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::processSendCoinsReturn ( const WalletModel::SendCoinsReturn sendCoinsReturn,
const QString &  msgArg = QString() 
)
private
void SendCoinsDialog::reject ( )
slot

Definition at line 268 of file sendcoinsdialog.cpp.

References clear().

+ Here is the call graph for this function:

void SendCoinsDialog::removeEntry ( SendCoinsEntry entry)
privateslot

Definition at line 305 of file sendcoinsdialog.cpp.

References addEntry(), Ui_SendCoinsDialog::entries, ui, and updateTabsAndLabels().

Referenced by addEntry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::setAddress ( const QString &  address)

Definition at line 334 of file sendcoinsdialog.cpp.

References addEntry(), Ui_SendCoinsDialog::entries, SendCoinsEntry::isClear(), SendCoinsEntry::setAddress(), and ui.

Referenced by WalletView::gotoSendCoinsPage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::setBalance ( qint64  balance,
qint64  unconfirmedBalance,
qint64  immatureBalance 
)
slot

Definition at line 404 of file sendcoinsdialog.cpp.

References BitcoinUnits::formatWithUnit(), OptionsModel::getDisplayUnit(), WalletModel::getOptionsModel(), Ui_SendCoinsDialog::labelBalance, model, and ui.

Referenced by setModel(), and updateDisplayUnit().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::setModel ( WalletModel model)

Definition at line 78 of file sendcoinsdialog.cpp.

References coinControlFeatureChanged(), coinControlUpdateLabels(), Ui_SendCoinsDialog::entries, Ui_SendCoinsDialog::frameCoinControl, WalletModel::getBalance(), OptionsModel::getCoinControlFeatures(), WalletModel::getImmatureBalance(), WalletModel::getOptionsModel(), WalletModel::getUnconfirmedBalance(), model, setBalance(), SendCoinsEntry::setModel(), ui, and updateDisplayUnit().

Referenced by WalletView::setWalletModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QWidget * SendCoinsDialog::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 318 of file sendcoinsdialog.cpp.

References Ui_SendCoinsDialog::addButton, Ui_SendCoinsDialog::clearButton, Ui_SendCoinsDialog::entries, Ui_SendCoinsDialog::sendButton, SendCoinsEntry::setupTabChain(), and ui.

Referenced by updateTabsAndLabels().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::updateDisplayUnit ( )
privateslot

Definition at line 415 of file sendcoinsdialog.cpp.

References WalletModel::getBalance(), model, and setBalance().

Referenced by setModel().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendCoinsDialog::updateTabsAndLabels ( )
slot

Definition at line 299 of file sendcoinsdialog.cpp.

References coinControlUpdateLabels(), and setupTabChain().

Referenced by addEntry(), clear(), pasteEntry(), and removeEntry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

bool SendCoinsDialog::fNewRecipientAllowed
private

Definition at line 55 of file sendcoinsdialog.h.

Referenced by on_sendButton_clicked(), pasteEntry(), and SendCoinsDialog().

WalletModel* SendCoinsDialog::model
private
Ui::SendCoinsDialog* SendCoinsDialog::ui
private

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