11 #include <QDataWidgetMapper>
12 #include <QMessageBox>
28 setWindowTitle(tr(
"New receiving address"));
32 setWindowTitle(tr(
"New sending address"));
35 setWindowTitle(tr(
"Edit receiving address"));
39 setWindowTitle(tr(
"Edit sending address"));
44 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
65 mapper->setCurrentIndex(row);
109 QMessageBox::warning(
this, windowTitle(),
110 tr(
"The entered address \"%1\" is not a valid Bitcoin address.").arg(
ui->
addressEdit->text()),
111 QMessageBox::Ok, QMessageBox::Ok);
114 QMessageBox::warning(
this, windowTitle(),
115 tr(
"The entered address \"%1\" is already in the address book.").arg(
ui->
addressEdit->text()),
116 QMessageBox::Ok, QMessageBox::Ok);
119 QMessageBox::critical(
this, windowTitle(),
120 tr(
"Could not unlock wallet."),
121 QMessageBox::Ok, QMessageBox::Ok);
124 QMessageBox::critical(
this, windowTitle(),
125 tr(
"New key generation failed."),
126 QMessageBox::Ok, QMessageBox::Ok);
Generating a new public key for a receiving address failed.
QString getAddress() const
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