Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

addressbookpage.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_ADDRESSBOOKPAGE_H
6 #define BITCOIN_QT_ADDRESSBOOKPAGE_H
7 
8 #include <QDialog>
9 
10 class AddressTableModel;
11 
12 namespace Ui {
13  class AddressBookPage;
14 }
15 
16 QT_BEGIN_NAMESPACE
17 class QItemSelection;
18 class QMenu;
19 class QModelIndex;
20 class QSortFilterProxyModel;
21 QT_END_NAMESPACE
22 
25 class AddressBookPage : public QDialog
26 {
27  Q_OBJECT
28 
29 public:
30  enum Tabs {
33  };
34 
35  enum Mode {
38  };
39 
40  explicit AddressBookPage(Mode mode, Tabs tab, QWidget* parent);
42 
44  const QString &getReturnValue() const { return returnValue; }
45 
46 public Q_SLOTS:
47  void done(int retval);
48 
49 private:
50  Ui::AddressBookPage *ui;
54  QString returnValue;
55  QSortFilterProxyModel *proxyModel;
56  QMenu *contextMenu;
57  QAction *deleteAction; // to be able to explicitly disable it
59 
60 private Q_SLOTS:
64  void on_newAddress_clicked();
68  void onCopyLabelAction();
70  void onEditAction();
75 
77  void selectionChanged();
79  void contextualMenu(const QPoint &point);
81  void selectNewAddress(const QModelIndex &parent, int begin, int /*end*/);
82 
83 Q_SIGNALS:
84  void sendCoins(QString addr);
85 };
86 
87 #endif // BITCOIN_QT_ADDRESSBOOKPAGE_H
void on_newAddress_clicked()
Create a new address for receiving coins and / or add a new address book entry.
void onCopyLabelAction()
Copy label of currently selected address entry to clipboard (no button)
void on_showAddressQRCode_clicked()
Show QR code for the currently selected address.
void setModel(AddressTableModel *model)
void onEditAction()
Edit currently selected address entry (no button)
AddressTableModel * model
QSortFilterProxyModel * proxyModel
void on_exportButton_clicked()
Export button clicked.
Open address book for editing.
Open address book to pick address.
QString newAddressToSelect
AddressBookPage(Mode mode, Tabs tab, QWidget *parent)
Ui::AddressBookPage * ui
void selectNewAddress(const QModelIndex &parent, int begin, int)
New entry/entries were added to address table.
QAction * deleteAction
void done(int retval)
void on_copyAddress_clicked()
Copy address of currently selected address entry to clipboard.
Widget that shows a list of sending or receiving addresses.
Qt model of the address book in the core.
void selectionChanged()
Set button states based on selected tab and selection.
void sendCoins(QString addr)
void contextualMenu(const QPoint &point)
Spawn contextual menu (right mouse menu) for address book entry.
void on_deleteAddress_clicked()
Delete currently selected address entry.
const QString & getReturnValue() const
Released under the MIT license