aboutsummaryrefslogtreecommitdiff
path: root/src/qt/addressbookdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt/addressbookdialog.h')
-rw-r--r--src/qt/addressbookdialog.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/qt/addressbookdialog.h b/src/qt/addressbookdialog.h
new file mode 100644
index 0000000000..bf7c2a65a6
--- /dev/null
+++ b/src/qt/addressbookdialog.h
@@ -0,0 +1,47 @@
+#ifndef ADDRESSBOOKDIALOG_H
+#define ADDRESSBOOKDIALOG_H
+
+#include <QDialog>
+
+namespace Ui {
+ class AddressBookDialog;
+}
+class AddressTableModel;
+
+QT_BEGIN_NAMESPACE
+class QTableView;
+QT_END_NAMESPACE
+
+class AddressBookDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ explicit AddressBookDialog(QWidget *parent = 0);
+ ~AddressBookDialog();
+
+ enum {
+ SendingTab = 0,
+ ReceivingTab = 1
+ } Tabs;
+
+ void setModel(AddressTableModel *model);
+ void setTab(int tab);
+ const QString &getReturnValue() const { return returnValue; }
+private:
+ Ui::AddressBookDialog *ui;
+ AddressTableModel *model;
+ QString returnValue;
+
+ QTableView *getCurrentTable();
+
+private slots:
+ void on_buttonBox_accepted();
+ void on_deleteButton_clicked();
+ void on_tabWidget_currentChanged(int index);
+ void on_newAddressButton_clicked();
+ void on_editButton_clicked();
+ void on_copyToClipboard_clicked();
+};
+
+#endif // ADDRESSBOOKDIALOG_H