Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes
SendMPDialog Class Reference

Dialog for sending Master Protocol tokens. More...

#include <sendmpdialog.h>

+ Inheritance diagram for SendMPDialog:
+ Collaboration diagram for SendMPDialog:

Public Slots

void propertyComboBoxChanged (int idx)
 
void sendFromComboBoxChanged (int idx)
 
void clearButtonClicked ()
 
void sendButtonClicked ()
 
void balancesUpdated ()
 

Signals

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

Public Member Functions

 SendMPDialog (QWidget *parent=0)
 
void setModel (WalletModel *model)
 
void clearFields ()
 
void sendMPTransaction ()
 
void updateFrom ()
 
void updateProperty ()
 
void updateBalances ()
 
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 Member Functions

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

Private Attributes

Ui::SendMPDialogui
 
WalletModelmodel
 
bool fNewRecipientAllowed
 

Detailed Description

Dialog for sending Master Protocol tokens.

Definition at line 26 of file sendmpdialog.h.

Constructor & Destructor Documentation

SendMPDialog::SendMPDialog ( QWidget parent = 0)
explicit

Member Function Documentation

void SendMPDialog::balancesUpdated ( )
slot

Definition at line 445 of file sendmpdialog.cpp.

References updateBalances().

Referenced by SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::clearButtonClicked ( )
slot

Definition at line 435 of file sendmpdialog.cpp.

References clearFields().

Referenced by SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::clearFields ( )

Definition at line 130 of file sendmpdialog.cpp.

References Ui_SendMPDialog::amountLineEdit, Ui_SendMPDialog::sendToLineEdit, and ui.

Referenced by clearButtonClicked(), and sendMPTransaction().

+ Here is the caller graph for this function:

bool SendMPDialog::handlePaymentRequest ( const SendCoinsRecipient recipient)
void SendMPDialog::message ( const QString &  title,
const QString &  message,
unsigned int  style 
)
signal

Definition at line 110 of file moc_sendmpdialog.cpp.

void SendMPDialog::pasteEntry ( const SendCoinsRecipient rv)
void SendMPDialog::processSendMPReturn ( const WalletModel::SendCoinsReturn SendCoinsReturn,
const QString &  msgArg = QString() 
)
private
void SendMPDialog::propertyComboBoxChanged ( int  idx)
slot

Definition at line 430 of file sendmpdialog.cpp.

References updateProperty().

Referenced by SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::sendButtonClicked ( )
slot

Definition at line 440 of file sendmpdialog.cpp.

References sendMPTransaction().

Referenced by SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::sendFromComboBoxChanged ( int  idx)
slot

Definition at line 425 of file sendmpdialog.cpp.

References updateFrom().

Referenced by SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::sendMPTransaction ( )
void SendMPDialog::setAddress ( const QString &  address)
void SendMPDialog::setModel ( WalletModel model)

Definition at line 125 of file sendmpdialog.cpp.

References model.

Referenced by WalletView::setWalletModel().

+ Here is the caller graph for this function:

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

void SendMPDialog::updateBalances ( )

Definition at line 203 of file sendmpdialog.cpp.

References Ui_SendMPDialog::addressBalanceLabel, FormatDivisibleMP(), mastercore::FormatIndivisibleMP(), getUserAvailableMPbalance(), global_balance_money_maineco, global_balance_money_testeco, Ui_SendMPDialog::globalBalanceLabel, mastercore::isPropertyDivisible(), Ui_SendMPDialog::propertyComboBox, Ui_SendMPDialog::sendFromComboBox, and ui.

Referenced by balancesUpdated(), sendMPTransaction(), updateFrom(), and updateProperty().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::updateFrom ( )

Definition at line 136 of file sendmpdialog.cpp.

References feeCheck(), Ui_SendMPDialog::feeWarningLabel, FormatDivisibleMP(), Ui_SendMPDialog::sendFromComboBox, mastercore::set_wallet_totals(), ui, and updateBalances().

Referenced by sendFromComboBoxChanged(), and SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void SendMPDialog::updateProperty ( )

Definition at line 157 of file sendmpdialog.cpp.

References Ui_SendMPDialog::amountLineEdit, cs_tally, IsMyAddress(), mastercore::isPropertyDivisible(), LOCK, mastercore::mp_tally_map, Ui_SendMPDialog::propertyComboBox, Ui_SendMPDialog::sendFromComboBox, mastercore::set_wallet_totals(), ui, and updateBalances().

Referenced by propertyComboBoxChanged(), and SendMPDialog().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

bool SendMPDialog::fNewRecipientAllowed
private

Definition at line 58 of file sendmpdialog.h.

WalletModel* SendMPDialog::model
private

Definition at line 57 of file sendmpdialog.h.

Referenced by SendMPDialog(), sendMPTransaction(), and setModel().

Ui::SendMPDialog* SendMPDialog::ui
private

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