Dash Core  0.12.2.1
P2P Digital Currency
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 class OptionsModel;
12 class PlatformStyle;
13 
14 namespace Ui {
15  class AddressBookPage;
16 }
17 
18 QT_BEGIN_NAMESPACE
19 class QItemSelection;
20 class QMenu;
21 class QModelIndex;
22 class QSortFilterProxyModel;
23 class QTableView;
24 QT_END_NAMESPACE
25 
28 class AddressBookPage : public QDialog
29 {
30  Q_OBJECT
31 
32 public:
33  enum Tabs {
36  };
37 
38  enum Mode {
41  };
42 
43  explicit AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent);
45 
47  const QString &getReturnValue() const { return returnValue; }
48 
49 public Q_SLOTS:
50  void done(int retval);
51 
52 private:
57  QString returnValue;
58  QSortFilterProxyModel *proxyModel;
59  QMenu *contextMenu;
60  QAction *deleteAction; // to be able to explicitly disable it
62 
63 private Q_SLOTS:
67  void on_newAddress_clicked();
71  void onCopyLabelAction();
73  void onEditAction();
76 
78  void selectionChanged();
80  void contextualMenu(const QPoint &point);
82  void selectNewAddress(const QModelIndex &parent, int begin, int /*end*/);
83 
84 Q_SIGNALS:
85  void sendCoins(QString addr);
86 };
87 
88 #endif // BITCOIN_QT_ADDRESSBOOKPAGE_H
void selectNewAddress(const QModelIndex &parent, int begin, int)
void sendCoins(QString addr)
void on_deleteAddress_clicked()
void done(int retval)
AddressTableModel * model
QString newAddressToSelect
QAction * deleteAction
Ui::AddressBookPage * ui
const QString & getReturnValue() const
void contextualMenu(const QPoint &point)
QSortFilterProxyModel * proxyModel
void on_exportButton_clicked()
AddressBookPage(const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent)
void setModel(AddressTableModel *model)