![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
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 () |
| 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 | 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::SendMPDialog * | ui |
| WalletModel * | model |
| bool | fNewRecipientAllowed |
Dialog for sending Master Protocol tokens.
Definition at line 26 of file sendmpdialog.h.
|
explicit |
Definition at line 68 of file sendmpdialog.cpp.
References Ui_SendMPDialog::amountLineEdit, balancesUpdated(), Ui_SendMPDialog::clearButton, clearButtonClicked(), mastercore::getPropertyName(), global_balance_money_maineco, global_balance_money_testeco, global_balance_reserved_maineco, global_balance_reserved_testeco, mastercore::isPropertyDivisible(), model, Ui_SendMPDialog::propertyComboBox, propertyComboBoxChanged(), Ui_SendMPDialog::sendButton, sendButtonClicked(), Ui_SendMPDialog::sendFromComboBox, sendFromComboBoxChanged(), Ui_SendMPDialog::sendToLineEdit, Ui_SendMPDialog::setupUi(), ui, updateFrom(), and updateProperty().
Here is the call graph for this function:
|
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:
|
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 | ) |
|
signal |
Definition at line 110 of file moc_sendmpdialog.cpp.
| void SendMPDialog::pasteEntry | ( | const SendCoinsRecipient & | rv | ) |
|
private |
|
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:
|
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:
|
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 | ( | ) |
Definition at line 233 of file sendmpdialog.cpp.
References Ui_SendMPDialog::amountLineEdit, clearFields(), FormatDivisibleMP(), mastercore::FormatIndivisibleMP(), base_uint< BITS >::GetHex(), mastercore::GetLatestBlockTime(), mastercore::getPropertyName(), getUserAvailableMPbalance(), mastercore::isPropertyDivisible(), CBitcoinAddress::IsValid(), model, MSC_TYPE_SIMPLE_SEND, Ui_SendMPDialog::propertyComboBox, WalletModel::requestUnlock(), mastercore::send_INTERNAL_1packet(), Ui_SendMPDialog::sendFromComboBox, Ui_SendMPDialog::sendToLineEdit, mastercore::set_wallet_totals(), GUIUtil::setClipboard(), CBase58Data::SetString(), mastercore::StrToInt64(), CBase58Data::ToString(), ui, and updateBalances().
Referenced by sendButtonClicked().
Here is the call graph for this function:
Here is the caller graph for this function:| 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: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:
|
private |
Definition at line 58 of file sendmpdialog.h.
|
private |
Definition at line 57 of file sendmpdialog.h.
Referenced by SendMPDialog(), sendMPTransaction(), and setModel().
|
private |
Definition at line 56 of file sendmpdialog.h.
Referenced by clearFields(), SendMPDialog(), sendMPTransaction(), updateBalances(), updateFrom(), and updateProperty().
1.8.8