7 #include <validation.h> 19 m_addressTableModel(0),
21 m_typeRole(Qt::UserRole),
36 return lineEdit()->text();
39 int index = currentIndex();
45 return itemText(index);
52 if(currentIndex() != -1)
65 setLineEdit(validatedLineEdit);
66 setEditable(editable);
71 completer()->setCompletionMode(QCompleter::InlineCompletion);
72 connect(validatedLineEdit, SIGNAL(editingFinished()),
this, SLOT(
on_editingFinished()));
81 vector<COutput> vecOutputs;
85 assert(pwalletMain != NULL);
117 for(
const COutput& out : vecOutputs) {
119 const CScript& scriptPubKey = out.tx->tx->vout[out.i].scriptPubKey;
124 QString strAddress = QString::fromStdString(
CFabcoinAddress(address).ToString());
135 setCurrentIndex(index);
146 Q_EMIT editTextChanged(QComboBox::currentText());
boost::variant< CNoDestination, CKeyID, CScriptID > CTxDestination
A txout script template with a specific destination.
std::vector< CWalletRef > vpwallets
void setAddressColumn(int addressColumn)
void AvailableCoins(std::vector< COutput > &vCoins, bool fOnlySafe=true, const CCoinControl *coinControl=nullptr, const CAmount &nMinimumAmount=1, const CAmount &nMaximumAmount=MAX_MONEY, const CAmount &nMinimumSumAmount=MAX_MONEY, const uint64_t &nMaximumCount=0, const int &nMinDepth=0, const int &nMaxDepth=9999999) const
populate vCoins with vector of available COutputs.
void setTypeRole(int typeRole)
void setAddressTableModel(QAbstractItemModel *addressTableModel)
CCriticalSection cs_wallet
void appendAddress(const QString &strAddress)
Drop down list of addresses.
base58-encoded Fabcoin addresses.
AddressType m_addressType
QStringListModel m_stringModel
isminetype IsMine(const CKeyStore &keystore, const CScript &scriptPubKey, SigVersion sigversion)
std::hash for asio::adress
assert(len-trim+(2 *lenIndices)<=WIDTH)
Line edit that can be marked as "invalid" to show input validation feedback.
void on_refresh()
on_refresh Refresh the list of addresses
QAbstractItemModel * m_addressTableModel
bool ExtractDestination(const CScript &scriptPubKey, CTxDestination &addressRet, txnouttype *typeRet)
void on_editingFinished()
on_editingFinished Completer finish text update
AddressField(QWidget *parent=0)
AddressField Constructor.
void addressTypeChanged(AddressType)
addressTypeChanged Signal that the address type is changed
void setReceive(const QString &receive)
PlatformStyle::TableColorType type
Serialized script, used inside transaction inputs and outputs.
void on_addressTypeChanged()
on_addressTypeChanged Change the address type
virtual QString currentText() const
currentText Get the current text
void setComboBoxEditable(bool editable)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
void setCheckValidator(const QValidator *v)
struct evm_uint160be address(struct evm_env *env)
AddressType
The AddressType enum Type of addresses that will be displayed.
Fabcoin address widget validator, checks for a valid fabcoin address.