Bitcoin ABC
0.22.12
P2P Digital Currency
src
qt
addressbookpage.h
Go to the documentation of this file.
1
// Copyright (c) 2011-2015 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#ifndef BITCOIN_QT_ADDRESSBOOKPAGE_H
6
#define BITCOIN_QT_ADDRESSBOOKPAGE_H
7
8
#include <QDialog>
9
10
class
AddressBookSortFilterProxyModel
;
11
class
AddressTableModel
;
12
class
PlatformStyle
;
13
14
namespace
Ui
{
15
class
AddressBookPage
;
16
}
17
18
QT_BEGIN_NAMESPACE
19
class
QItemSelection;
20
class
QMenu;
21
class
QModelIndex;
22
QT_END_NAMESPACE
23
25
class
AddressBookPage
:
public
QDialog {
26
Q_OBJECT
27
28
public
:
29
enum
Tabs
{ SendingTab = 0, ReceivingTab = 1 };
30
31
enum
Mode
{
32
ForSelection
,
33
ForEditing
34
};
35
36
explicit
AddressBookPage
(
const
PlatformStyle
*platformStyle,
Mode
mode,
37
Tabs
tab, QWidget *parent =
nullptr
);
38
~
AddressBookPage
();
39
40
void
setModel(
AddressTableModel
*model);
41
const
QString &
getReturnValue
()
const
{
return
returnValue; }
42
43
public
Q_SLOTS:
44
void
done
(
int
retval)
override
;
45
46
private
:
47
Ui::AddressBookPage *
ui
;
48
AddressTableModel
*
model
;
49
Mode
mode
;
50
Tabs
tab
;
51
QString
returnValue
;
52
AddressBookSortFilterProxyModel
*
proxyModel
;
53
QMenu *
contextMenu
;
54
// to be able to explicitly disable it
55
QAction *
deleteAction
;
56
QString
newAddressToSelect
;
57
58
private
Q_SLOTS:
60
void
on_deleteAddress_clicked();
65
void
on_newAddress_clicked();
67
void
on_copyAddress_clicked();
71
void
onCopyLabelAction();
73
void
onEditAction();
75
void
on_exportButton_clicked();
76
78
void
selectionChanged();
80
void
contextualMenu(
const
QPoint &point);
82
void
selectNewAddress(
const
QModelIndex &parent,
int
begin,
int
/*end*/
);
83
84
Q_SIGNALS:
85
void
sendCoins(QString addr);
86
};
87
88
#endif // BITCOIN_QT_ADDRESSBOOKPAGE_H
Ui
Definition:
addressbookpage.h:14
AddressBookPage::model
AddressTableModel * model
Definition:
addressbookpage.h:48
AddressBookPage::Mode
Mode
Definition:
addressbookpage.h:31
AddressBookPage::ForSelection
Open address book to pick address.
Definition:
addressbookpage.h:32
AddressBookPage::newAddressToSelect
QString newAddressToSelect
Definition:
addressbookpage.h:56
AddressBookPage::ui
Ui::AddressBookPage * ui
Definition:
addressbookpage.h:47
AddressBookPage::deleteAction
QAction * deleteAction
Definition:
addressbookpage.h:55
done
bool done
Definition:
net_processing.cpp:2270
AddressBookPage::proxyModel
AddressBookSortFilterProxyModel * proxyModel
Definition:
addressbookpage.h:52
AddressBookPage::contextMenu
QMenu * contextMenu
Definition:
addressbookpage.h:53
AddressBookPage::tab
Tabs tab
Definition:
addressbookpage.h:50
AddressBookPage
Widget that shows a list of sending or receiving addresses.
Definition:
addressbookpage.h:25
AddressTableModel
Qt model of the address book in the core.
Definition:
addresstablemodel.h:24
AddressBookPage::returnValue
QString returnValue
Definition:
addressbookpage.h:51
AddressBookPage::mode
Mode mode
Definition:
addressbookpage.h:49
AddressBookPage::Tabs
Tabs
Definition:
addressbookpage.h:29
AddressBookSortFilterProxyModel
Definition:
addressbookpage.cpp:23
PlatformStyle
Definition:
platformstyle.h:13
AddressBookPage::getReturnValue
const QString & getReturnValue() const
Definition:
addressbookpage.h:41
Generated on Mon Jan 18 2021 21:54:08 for Bitcoin ABC by
1.8.13