Changeset View
Changeset View
Standalone View
Standalone View
src/qt/addressbookpage.h
// Copyright (c) 2011-2015 The Bitcoin Core developers | // Copyright (c) 2011-2015 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H | #ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H | ||||
#define BITCOIN_QT_ADDRESSBOOKPAGE_H | #define BITCOIN_QT_ADDRESSBOOKPAGE_H | ||||
#include <QDialog> | #include <QDialog> | ||||
class AddressBookSortFilterProxyModel; | |||||
class AddressTableModel; | class AddressTableModel; | ||||
class PlatformStyle; | class PlatformStyle; | ||||
namespace Ui { | namespace Ui { | ||||
class AddressBookPage; | class AddressBookPage; | ||||
} | } | ||||
QT_BEGIN_NAMESPACE | QT_BEGIN_NAMESPACE | ||||
class QItemSelection; | class QItemSelection; | ||||
class QMenu; | class QMenu; | ||||
class QModelIndex; | class QModelIndex; | ||||
class QSortFilterProxyModel; | |||||
QT_END_NAMESPACE | QT_END_NAMESPACE | ||||
/** Widget that shows a list of sending or receiving addresses. */ | /** Widget that shows a list of sending or receiving addresses. */ | ||||
class AddressBookPage : public QDialog { | class AddressBookPage : public QDialog { | ||||
Q_OBJECT | Q_OBJECT | ||||
public: | public: | ||||
enum Tabs { SendingTab = 0, ReceivingTab = 1 }; | enum Tabs { SendingTab = 0, ReceivingTab = 1 }; | ||||
Show All 14 Lines | public Q_SLOTS: | ||||
void done(int retval) override; | void done(int retval) override; | ||||
private: | private: | ||||
Ui::AddressBookPage *ui; | Ui::AddressBookPage *ui; | ||||
AddressTableModel *model; | AddressTableModel *model; | ||||
Mode mode; | Mode mode; | ||||
Tabs tab; | Tabs tab; | ||||
QString returnValue; | QString returnValue; | ||||
QSortFilterProxyModel *proxyModel; | AddressBookSortFilterProxyModel *proxyModel; | ||||
QMenu *contextMenu; | QMenu *contextMenu; | ||||
// to be able to explicitly disable it | // to be able to explicitly disable it | ||||
QAction *deleteAction; | QAction *deleteAction; | ||||
QString newAddressToSelect; | QString newAddressToSelect; | ||||
private Q_SLOTS: | private Q_SLOTS: | ||||
/** Delete currently selected address entry */ | /** Delete currently selected address entry */ | ||||
void on_deleteAddress_clicked(); | void on_deleteAddress_clicked(); | ||||
Show All 28 Lines |