Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
editaddressdialog.h
Go to the documentation of this file.
1// Copyright (c) 2011-2015 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_QT_EDITADDRESSDIALOG_H
6#define BITCOIN_QT_EDITADDRESSDIALOG_H
7
8#include <QDialog>
9
11
12namespace Ui {
14}
15
19
23class EditAddressDialog : public QDialog {
25
26public:
28
29 explicit EditAddressDialog(Mode mode, QWidget *parent = nullptr);
31
33 void loadRow(int row);
34
35 QString getAddress() const;
36 void setAddress(const QString &address);
37
38public Q_SLOTS:
39 void accept() override;
40
41private:
42 bool saveCurrentRow();
43
49
50 Ui::EditAddressDialog *ui;
54
56};
57
58#endif // BITCOIN_QT_EDITADDRESSDIALOG_H
Qt model of the address book in the core.
Dialog for editing an address and associated information.
Ui::EditAddressDialog * ui
QString getDuplicateAddressWarning() const
Return a descriptive string when adding an already-existing address fails.
void setModel(AddressTableModel *model)
QDataWidgetMapper * mapper
AddressTableModel * model
void accept() override
void setAddress(const QString &address)
QString getAddress() const
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85