Master Core  v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
addressbookpage.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2013 The Bitcoin developers
2 // Distributed under the MIT/X11 software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef ADDRESSBOOKPAGE_H
6 #define ADDRESSBOOKPAGE_H
7 
8 #include <QDialog>
9 
10 class AddressTableModel;
11 class OptionsModel;
12 
13 namespace Ui {
14  class AddressBookPage;
15 }
16 
17 QT_BEGIN_NAMESPACE
18 class QItemSelection;
19 class QMenu;
20 class QModelIndex;
22 class QTableView;
23 QT_END_NAMESPACE
24 
27 class AddressBookPage : public QDialog
28 {
29  Q_OBJECT
30 
31 public:
32  enum Tabs {
35  };
36 
37  enum Mode {
40  };
41 
42  explicit AddressBookPage(Mode mode, Tabs tab, QWidget *parent);
44 
46  const QString &getReturnValue() const { return returnValue; }
47 
48 public slots:
49  void done(int retval);
50 
51 private:
56  QString returnValue;
58  QMenu *contextMenu;
59  QAction *deleteAction; // to be able to explicitly disable it
61 
62 private slots:
66  void on_newAddress_clicked();
70  void onCopyLabelAction();
72  void onEditAction();
75 
77  void selectionChanged();
79  void contextualMenu(const QPoint &point);
81  void selectNewAddress(const QModelIndex &parent, int begin, int /*end*/);
82 
83 signals:
84  void sendCoins(QString addr);
85 };
86 
87 #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 setModel(AddressTableModel *model)
const QString & getReturnValue() const
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.
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:20
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.