Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
addressbookpage.h
Go to the documentation of this file.
1 #ifndef ADDRESSBOOKPAGE_H
2 #define ADDRESSBOOKPAGE_H
3 
4 #include <QDialog>
5 
6 namespace Ui {
7  class AddressBookPage;
8 }
10 class OptionsModel;
11 
12 QT_BEGIN_NAMESPACE
13 class QTableView;
14 class QItemSelection;
15 class QSortFilterProxyModel;
16 class QMenu;
17 class QModelIndex;
18 QT_END_NAMESPACE
19 
22 class AddressBookPage : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  enum Tabs {
30  };
31 
32  enum Mode {
35  };
36 
37  explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent = 0);
39 
42  const QString &getReturnValue() const { return returnValue; }
43 
44 public slots:
45  void done(int retval);
47  void onSnapClosed(QString s);
48 
49 private:
50  Ui::AddressBookPage *ui;
55  QString returnValue;
56  QSortFilterProxyModel *proxyModel;
57  QMenu *contextMenu;
58  QAction *deleteAction; // to be able to explicitly disable it
60 
61 private slots:
65  void on_newAddress_clicked();
73  void onSendCoinsAction();
75  void on_showQRCode_clicked();
79  void onCopyLabelAction();
81  void onEditAction();
85  void selectionChanged();
87  void contextualMenu(const QPoint &point);
89  void selectNewAddress(const QModelIndex &parent, int begin, int /*end*/);
90 
91 signals:
92  void signMessage(QString addr);
93  void verifyMessage(QString addr);
94  void sendCoins(QString addr);
95  void importWallet(QString addr);
96 };
97 
98 #endif // 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 importWallet(QString addr)
void setModel(AddressTableModel *model)
Definition: aboutdialog.h:6
const QString & getReturnValue() const
void onEditAction()
Edit currently selected address entry (no button)
AddressTableModel * model
void on_showQRCode_clicked()
Generate a QR Code from the currently selected address.
QSortFilterProxyModel * proxyModel
void on_exportButton_clicked()
Export button clicked.
Open address book for editing.
void onSnapClosed(QString s)
Scan of QR code finished.
QString newAddressToSelect
void verifyMessage(QString addr)
void on_importQRCodeButton_clicked()
Import from a QR Code into your wallet.
Ui::AddressBookPage * ui
void selectNewAddress(const QModelIndex &parent, int begin, int)
New entry/entries were added to address table.
Open address book to pick address for sending.
QAction * deleteAction
void onSendCoinsAction()
Open send coins dialog for currently selected address (no button)
void done(int retval)
void on_copyAddress_clicked()
Copy address of currently selected address entry to clipboard.
void setOptionsModel(OptionsModel *optionsModel)
Widget that shows a list of sending or receiving addresses.
Qt model of the address book in the core.
OptionsModel * optionsModel
void selectionChanged()
Set button states based on selected tab and selection.
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:12
void sendCoins(QString addr)
void signMessage(QString addr)
void on_signMessage_clicked()
Open the sign message tab in the Sign/Verify Message dialog with currently selected address...
void contextualMenu(const QPoint &point)
Spawn contextual menu (right mouse menu) for address book entry.
void on_deleteAddress_clicked()
Delete currently selected address entry.
AddressBookPage(Mode mode, Tabs tab, QWidget *parent=0)
void on_verifyMessage_clicked()
Open the verify message tab in the Sign/Verify Message dialog with currently selected address...