 |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
Go to the documentation of this file.
9 #include "ui_editaddressdialog.h"
14 #include <QDataWidgetMapper>
15 #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);
79 ui->labelEdit->text(),
80 ui->addressEdit->text());
106 QMessageBox::warning(
this, windowTitle(),
107 tr(
"The entered address \"%1\" is not a valid PRCY address.").arg(
ui->addressEdit->text()),
108 QMessageBox::Ok, QMessageBox::Ok);
111 QMessageBox::warning(
this, windowTitle(),
112 tr(
"The entered address \"%1\" is already in the address book.").arg(
ui->addressEdit->text()),
113 QMessageBox::Ok, QMessageBox::Ok);
116 QMessageBox::critical(
this, windowTitle(),
117 tr(
"Could not unlock wallet."),
118 QMessageBox::Ok, QMessageBox::Ok);
121 QMessageBox::critical(
this, windowTitle(),
122 tr(
"New key generation failed."),
123 QMessageBox::Ok, QMessageBox::Ok);
QString addRow(const QString &type, const QString &label, const QString &address)
Qt model of the address book in the core.
@ KEY_GENERATION_FAILURE
Generating a new public key for a receiving address failed.
static const QString Receive
Specifies receive address.
void setModel(AddressTableModel *model)
Dialog for editing an address and associated information.
EditAddressDialog(Mode mode, QWidget *parent)
AddressTableModel * model
QDataWidgetMapper * mapper
@ Label
User specified label.
void setAddress(const QString &address)
EditStatus getEditStatus() const
@ WALLET_UNLOCK_FAILURE
Wallet could not be unlocked to create new receiving address.
Ui::EditAddressDialog * ui
@ INVALID_ADDRESS
Unparseable address.
QString getAddress() const
@ NO_CHANGES
No changes were made during edit operation.
static const QString Send
Specifies send address.
void setupAddressWidget(QValidatedLineEdit *widget, QWidget *parent)
@ DUPLICATE_ADDRESS
Address already in address book.
@ Address
Bitcoin address.