7 #include "ui_editaddressdialog.h" 12 #include <QDataWidgetMapper> 13 #include <QMessageBox> 29 setWindowTitle(tr(
"New receiving address"));
30 ui->addressEdit->setEnabled(
false);
33 setWindowTitle(tr(
"New sending address"));
36 setWindowTitle(tr(
"Edit receiving address"));
37 ui->addressEdit->setEnabled(
false);
40 setWindowTitle(tr(
"Edit sending address"));
44 mapper =
new QDataWidgetMapper(
this);
45 mapper->setSubmitPolicy(QDataWidgetMapper::ManualSubmit);
66 mapper->setCurrentIndex(row);
80 ui->labelEdit->text(),
81 ui->addressEdit->text());
110 QMessageBox::warning(
this, windowTitle(),
111 tr(
"The entered address \"%1\" is not a valid Raven address.").arg(
ui->addressEdit->text()),
112 QMessageBox::Ok, QMessageBox::Ok);
115 QMessageBox::warning(
this, windowTitle(),
116 tr(
"The entered address \"%1\" is already in the address book.").arg(
ui->addressEdit->text()),
117 QMessageBox::Ok, QMessageBox::Ok);
120 QMessageBox::critical(
this, windowTitle(),
121 tr(
"Could not unlock wallet."),
122 QMessageBox::Ok, QMessageBox::Ok);
125 QMessageBox::critical(
this, windowTitle(),
126 tr(
"New key generation failed."),
127 QMessageBox::Ok, QMessageBox::Ok);
144 ui->addressEdit->setText(_address);
Generating a new public key for a receiving address failed.
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
Qt model of the address book in the core.
AddressTableModel * model
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.
QString getAddress() const
No changes were made during edit operation.
Ui::EditAddressDialog * ui
EditStatus getEditStatus() const