1 #ifndef ADDRESSBOOKPAGE_H
2 #define ADDRESSBOOKPAGE_H
9 class AddressTableModel;
15 class QSortFilterProxyModel;
20 /** Widget that shows a list of sending or receiving addresses.
22 class AddressBookPage : public QDialog
33 ForSending, /**< Open address book to pick address for sending */
34 ForEditing /**< Open address book for editing */
37 explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent = 0);
40 void setModel(AddressTableModel *model);
41 void setOptionsModel(OptionsModel *optionsModel);
42 const QString &getReturnValue() const { return returnValue; }
45 void done(int retval);
49 Ui::AddressBookPage *ui;
50 AddressTableModel *model;
51 OptionsModel *optionsModel;
55 QSortFilterProxyModel *proxyModel;
57 QAction *deleteAction;
58 QString newAddressToSelect;
61 void on_deleteButton_clicked();
62 void on_newAddressButton_clicked();
63 /** Copy address of currently selected address entry to clipboard */
64 void on_copyToClipboard_clicked();
65 void on_signMessage_clicked();
66 void on_verifyMessage_clicked();
67 void selectionChanged();
68 void on_showQRCode_clicked();
69 /** Spawn contextual menu (right mouse menu) for address book entry */
70 void contextualMenu(const QPoint &point);
72 /** Copy label of currently selected address entry to clipboard */
73 void onCopyLabelAction();
74 /** Edit currently selected address entry */
77 /** New entry/entries were added to address table */
78 void selectNewAddress(const QModelIndex &parent, int begin, int end);
81 void signMessage(QString addr);
82 void verifyMessage(QString addr);
85 #endif // ADDRESSBOOKDIALOG_H