Dash Core  0.12.2.1
P2P Digital Currency
SendCoinsEntry Class Reference

#include <sendcoinsentry.h>

+ Inheritance diagram for SendCoinsEntry:

Public Slots

void clear ()
 

Signals

void removeEntry (SendCoinsEntry *entry)
 
void payAmountChanged ()
 
void subtractFeeFromAmountChanged ()
 

Public Member Functions

 SendCoinsEntry (const PlatformStyle *platformStyle, QWidget *parent=0)
 
 ~SendCoinsEntry ()
 
void setModel (WalletModel *model)
 
bool validate ()
 
SendCoinsRecipient getValue ()
 
bool isClear ()
 
void setValue (const SendCoinsRecipient &value)
 
void setAddress (const QString &address)
 
QWidget * setupTabChain (QWidget *prev)
 
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
 
const PlatformStyleplatformStyle
 

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 24 of file sendcoinsentry.h.

Constructor & Destructor Documentation

◆ SendCoinsEntry()

SendCoinsEntry::SendCoinsEntry ( const PlatformStyle platformStyle,
QWidget *  parent = 0 
)
explicit

Definition at line 19 of file sendcoinsentry.cpp.

◆ ~SendCoinsEntry()

SendCoinsEntry::~SendCoinsEntry ( )

Definition at line 57 of file sendcoinsentry.cpp.

Member Function Documentation

◆ clear

void SendCoinsEntry::clear ( )
slot

Definition at line 96 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::addEntry(), and setModel().

◆ deleteClicked

void SendCoinsEntry::deleteClicked ( )
privateslot

Definition at line 119 of file sendcoinsentry.cpp.

Referenced by SendCoinsEntry().

◆ getValue()

SendCoinsRecipient SendCoinsEntry::getValue ( )

◆ isClear()

bool SendCoinsEntry::isClear ( )

Return whether the entry is still empty and unedited

Definition at line 235 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::pasteEntry(), and SendCoinsDialog::setAddress().

◆ on_addressBookButton_clicked

void SendCoinsEntry::on_addressBookButton_clicked ( )
privateslot

Definition at line 68 of file sendcoinsentry.cpp.

◆ on_pasteButton_clicked

void SendCoinsEntry::on_pasteButton_clicked ( )
privateslot

Definition at line 62 of file sendcoinsentry.cpp.

◆ on_payTo_textChanged

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

Definition at line 81 of file sendcoinsentry.cpp.

◆ payAmountChanged

void SendCoinsEntry::payAmountChanged ( )
signal

Definition at line 194 of file moc_sendcoinsentry.cpp.

Referenced by SendCoinsEntry().

◆ removeEntry

void SendCoinsEntry::removeEntry ( SendCoinsEntry entry)
signal

Definition at line 187 of file moc_sendcoinsentry.cpp.

Referenced by deleteClicked().

◆ setAddress()

void SendCoinsEntry::setAddress ( const QString &  address)

Definition at line 229 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::setAddress().

◆ setFocus()

void SendCoinsEntry::setFocus ( )

Definition at line 240 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::addEntry().

◆ setModel()

void SendCoinsEntry::setModel ( WalletModel model)

Definition at line 86 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::addEntry(), and SendCoinsDialog::setModel().

◆ setupTabChain()

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 179 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::setupTabChain().

◆ setValue()

void SendCoinsEntry::setValue ( const SendCoinsRecipient value)

Definition at line 191 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::pasteEntry().

◆ subtractFeeFromAmountChanged

void SendCoinsEntry::subtractFeeFromAmountChanged ( )
signal

Definition at line 200 of file moc_sendcoinsentry.cpp.

Referenced by SendCoinsEntry().

◆ updateDisplayUnit

void SendCoinsEntry::updateDisplayUnit ( )
privateslot

Definition at line 245 of file sendcoinsentry.cpp.

Referenced by clear(), and setModel().

◆ updateLabel()

bool SendCoinsEntry::updateLabel ( const QString &  address)
private

Definition at line 256 of file sendcoinsentry.cpp.

Referenced by on_payTo_textChanged().

◆ validate()

bool SendCoinsEntry::validate ( )

Definition at line 124 of file sendcoinsentry.cpp.

Referenced by SendCoinsDialog::on_sendButton_clicked().

Member Data Documentation

◆ model

WalletModel* SendCoinsEntry::model
private

◆ platformStyle

const PlatformStyle* SendCoinsEntry::platformStyle
private

Definition at line 68 of file sendcoinsentry.h.

Referenced by on_addressBookButton_clicked(), and SendCoinsEntry().

◆ recipient

SendCoinsRecipient SendCoinsEntry::recipient
private

Definition at line 65 of file sendcoinsentry.h.

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

◆ ui


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