Fabcoin Core  0.16.2
P2P Digital Currency
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 FABCOIN_QT_EDITADDRESSDIALOG_H
6 #define FABCOIN_QT_EDITADDRESSDIALOG_H
7 
8 #include <QDialog>
9 
10 class AddressTableModel;
11 
12 namespace Ui {
13  class EditAddressDialog;
14 }
15 
16 QT_BEGIN_NAMESPACE
17 class QDataWidgetMapper;
18 QT_END_NAMESPACE
19 
22 class EditAddressDialog : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  enum Mode {
31  EditSendingAddress
32  };
33 
34  explicit EditAddressDialog(Mode mode, QWidget *parent);
36 
37  void setModel(AddressTableModel *model);
38  void loadRow(int row);
39 
40  QString getAddress() const;
41  void setAddress(const QString &address);
42 
43 public Q_SLOTS:
44  void accept();
45 
46 private:
47  bool saveCurrentRow();
48 
50  QDataWidgetMapper *mapper;
53 
54  QString address;
55 };
56 
57 #endif // FABCOIN_QT_EDITADDRESSDIALOG_H
evm_mode mode
Definition: SmartVM.cpp:47
QDataWidgetMapper * mapper
Qt model of the address book in the core.
AddressTableModel * model
Dialog for editing an address and associated information.
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
Ui::EditAddressDialog * ui