diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-13 12:07:32 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2011-06-13 12:07:32 +0200 |
commit | e83474f2ebbae84394f0b86cfea977d3024bd33f (patch) | |
tree | 79beb7a74419dcf099df5f4bb03d0c780c6a1c49 /src/qt/addressbookdialog.h | |
parent | 249300aebe682dc1a7398794b14f0d6ebde0aee7 (diff) |
Address book: select action (edit/select) based on context
Diffstat (limited to 'src/qt/addressbookdialog.h')
-rw-r--r-- | src/qt/addressbookdialog.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/qt/addressbookdialog.h b/src/qt/addressbookdialog.h index bf7c2a65a6..25b8839cd6 100644 --- a/src/qt/addressbookdialog.h +++ b/src/qt/addressbookdialog.h @@ -17,13 +17,18 @@ class AddressBookDialog : public QDialog Q_OBJECT public: - explicit AddressBookDialog(QWidget *parent = 0); - ~AddressBookDialog(); - - enum { + enum Tabs { SendingTab = 0, ReceivingTab = 1 - } Tabs; + }; + + enum Mode { + ForSending, // Pick address for sending + ForEditing // Open address book for editing + }; + + explicit AddressBookDialog(Mode mode, QWidget *parent = 0); + ~AddressBookDialog(); void setModel(AddressTableModel *model); void setTab(int tab); |