10 #include <validation.h> 15 #include <QRegularExpressionValidator> 16 #include <QMessageBox> 30 ui->
labelDescription->setText(tr(
"(This is your wallet address which will be tied to the token for send/receive operations)"));
31 QFont font = QApplication::font();
32 font.setPointSizeF(font.pointSizeF() * 0.8);
105 QString symbol = QString::fromStdString(tokenInfo.
strTokenSymbol);
107 QString message = tr(
"The %1 address \"%2\" is not yours, please change it to new one.\n").arg(symbol, address);
108 QMessageBox::warning(
this, tr(
"Invalid token address"), message);
112 QMessageBox::information(
this, tr(
"Token exist"), tr(
"The token already exist with the specified contract and sender addresses."));
122 QMessageBox::information(
this, tr(
"Log events"), tr(
"Enable log events from the option menu in order to receive token transactions."));
135 std::string
name, symbol, decimals;
169 QAbstractItemModel *addressTableModel = 0;
std::string strTokenSymbol
#define SetObjectStyleSheet(object, name)
QLineEdit * lineEditDecimals
void setAddressColumn(int addressColumn)
void setTypeRole(int typeRole)
QPushButton * clearButton
void setAddressTableModel(QAbstractItemModel *addressTableModel)
std::string strSenderAddress
bool decimals(std::string &result, bool sendTo=false)
QLineEdit * lineEditContractAddress
void setupUi(QWidget *AddTokenPage)
bool isMineAddress(const std::string &strAddress)
bool existTokenEntry(const CTokenInfo &token)
Line edit that can be marked as "invalid" to show input validation feedback.
AddressTableModel * getAddressTableModel()
void on_refresh()
on_refresh Refresh the list of addresses
void on_clearButton_clicked()
QPushButton * confirmButton
void setModel(WalletModel *_model)
void on_numBlocksChanged()
bool name(std::string &result, bool sendTo=false)
void on_zeroBalanceAddressToken(bool enable)
std::string strContractAddress
void on_updateConfirmButton()
void setAddress(const std::string &address)
void on_confirmButton_clicked()
AddressTableModel * parent
Model for Fabcoin network client.
bool symbol(std::string &result, bool sendTo=false)
void setReceive(const QString &receive)
ClientModel * m_clientModel
QLabel * labelDescription
Interface to Fabcoin wallet from Qt view code.
static const QString Receive
Specifies receive address.
virtual QString currentText() const
currentText Get the current text
QLineEdit * lineEditTokenName
struct evm_uint160be address(struct evm_env *env)
void setClientModel(ClientModel *clientModel)
QLineEdit * lineEditTokenSymbol
bool addTokenEntry(const CTokenInfo &token)
bool bZeroBalanceAddressToken
Type of address (Send or Receive)
AddressField * lineEditSenderAddress
AddTokenPage(QWidget *parent=0)
OptionsModel * getOptionsModel()