PIVX Core  5.6.99
P2P Digital Currency
editaddressdialog.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Copyright (c) 2017-2019 The PIVX Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef PIVX_QT_EDITADDRESSDIALOG_H
7 #define PIVX_QT_EDITADDRESSDIALOG_H
8 
9 #include <QDialog>
10 
11 class AddressTableModel;
12 
13 namespace Ui
14 {
15 class EditAddressDialog;
16 }
17 
18 QT_BEGIN_NAMESPACE
19 class QDataWidgetMapper;
20 QT_END_NAMESPACE
21 
24 class EditAddressDialog : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  enum Mode {
34  };
35 
36  explicit EditAddressDialog(Mode mode, QWidget* parent);
38 
40  void loadRow(int row);
41 
42  QString getAddress() const;
43  void setAddress(const QString& address);
44 
45 public Q_SLOTS:
46  void accept();
47 
48 private:
49  bool saveCurrentRow();
50 
51  Ui::EditAddressDialog* ui;
52  QDataWidgetMapper* mapper;
55 
56  QString address;
57 };
58 
59 #endif // PIVX_QT_EDITADDRESSDIALOG_H
Qt model of the address book in the core.
Dialog for editing an address and associated information.
Ui::EditAddressDialog * ui
void setModel(AddressTableModel *model)
EditAddressDialog(Mode mode, QWidget *parent)
QDataWidgetMapper * mapper
AddressTableModel * model
void setAddress(const QString &address)
QString getAddress() const