12 #include <QDataWidgetMapper> 13 #include <QMessageBox> 14 #include <QPushButton> 33 setWindowTitle(tr(
"New receiving address"));
37 setWindowTitle(tr(
"New sending address"));
40 setWindowTitle(tr(
"Edit receiving address"));
44 setWindowTitle(tr(
"Edit sending address"));
48 mapper =
new QDataWidgetMapper(
this);
49 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
70 mapper->setCurrentIndex(row);
114 QMessageBox::warning(
this, windowTitle(),
115 tr(
"The entered address \"%1\" is not a valid Fabcoin address.").arg(
ui->
addressEdit->text()),
116 QMessageBox::Ok, QMessageBox::Ok);
119 QMessageBox::warning(
this, windowTitle(),
120 tr(
"The entered address \"%1\" is already in the address book.").arg(
ui->
addressEdit->text()),
121 QMessageBox::Ok, QMessageBox::Ok);
124 QMessageBox::critical(
this, windowTitle(),
125 tr(
"Could not unlock wallet."),
126 QMessageBox::Ok, QMessageBox::Ok);
129 QMessageBox::critical(
this, windowTitle(),
130 tr(
"New key generation failed."),
131 QMessageBox::Ok, QMessageBox::Ok);
Generating a new public key for a receiving address failed.
QString getAddress() const
#define SetObjectStyleSheet(object, name)
QDialogButtonBox * buttonBox
Address already in address book.
EditAddressDialog(Mode mode, QWidget *parent)
static const QString Send
Specifies send address.
void setModel(AddressTableModel *model)
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
Wallet could not be unlocked to create new receiving address.
QDataWidgetMapper * mapper
QValidatedLineEdit * addressEdit
Qt model of the address book in the core.
AddressTableModel * model
EditStatus getEditStatus() const
QString addRow(const QString &type, const QString &label, const QString &address)
void setAddress(const QString &address)
static const QString Receive
Specifies receive address.
Dialog for editing an address and associated information.
void setEnabled(bool enabled)
void setupUi(QDialog *EditAddressDialog)
No changes were made during edit operation.
Ui::EditAddressDialog * ui