Fabcoin Core
0.16.2
P2P Digital Currency
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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 FABCOIN_QT_ADDRESSBOOKPAGE_H
6
#define FABCOIN_QT_ADDRESSBOOKPAGE_H
7
8
#include <QDialog>
9
10
class
AddressTableModel
;
11
class
PlatformStyle
;
12
13
namespace
Ui
{
14
class
AddressBookPage
;
15
}
16
17
QT_BEGIN_NAMESPACE
18
class
QItemSelection;
19
class
QMenu;
20
class
QModelIndex;
21
class
QSortFilterProxyModel;
22
QT_END_NAMESPACE
23
26
class
AddressBookPage
:
public
QDialog
27
{
28
Q_OBJECT
29
30
public
:
31
enum
Tabs
{
32
SendingTab = 0,
33
ReceivingTab = 1
34
};
35
36
enum
Mode
{
37
ForSelection
,
38
ForEditing
39
};
40
41
explicit
AddressBookPage
(
const
PlatformStyle
*platformStyle,
Mode
mode
,
Tabs
tab, QWidget *parent);
42
~
AddressBookPage
();
43
44
void
setModel(
AddressTableModel
*model);
45
const
QString &
getReturnValue
()
const
{
return
returnValue; }
46
47
public
Q_SLOTS:
48
void
done(
int
retval);
49
50
private
:
51
Ui::AddressBookPage
*
ui
;
52
AddressTableModel
*
model
;
53
Mode
mode
;
54
Tabs
tab
;
55
QString
returnValue
;
56
QSortFilterProxyModel *
proxyModel
;
57
QMenu *
contextMenu
;
58
QAction *
deleteAction
;
// to be able to explicitly disable it
59
QString
newAddressToSelect
;
60
61
private
Q_SLOTS:
63
void
on_deleteAddress_clicked();
65
void
on_newAddress_clicked();
67
void
on_copyAddress_clicked();
69
void
onCopyLabelAction();
71
void
onEditAction();
73
void
on_exportButton_clicked();
74
76
void
selectionChanged();
78
void
contextualMenu(
const
QPoint &point);
80
void
selectNewAddress(
const
QModelIndex &parent,
int
begin,
int
/*end*/
);
81
82
Q_SIGNALS:
83
void
sendCoins(QString addr);
84
};
85
86
#endif // FABCOIN_QT_ADDRESSBOOKPAGE_H
Ui::AddressBookPage
Definition:
ui_addressbookpage.h:166
Ui
Definition:
addressbookpage.h:13
AddressBookPage::getReturnValue
const QString & getReturnValue() const
Definition:
addressbookpage.h:45
AddressBookPage::model
AddressTableModel * model
Definition:
addressbookpage.h:52
mode
evm_mode mode
Definition:
SmartVM.cpp:47
AddressBookPage::Mode
Mode
Definition:
addressbookpage.h:36
AddressBookPage::proxyModel
QSortFilterProxyModel * proxyModel
Definition:
addressbookpage.h:56
AddressBookPage::ForSelection
Open address book to pick address.
Definition:
addressbookpage.h:37
AddressBookPage::newAddressToSelect
QString newAddressToSelect
Definition:
addressbookpage.h:59
AddressBookPage::ui
Ui::AddressBookPage * ui
Definition:
addressbookpage.h:51
AddressBookPage::deleteAction
QAction * deleteAction
Definition:
addressbookpage.h:58
AddressBookPage::contextMenu
QMenu * contextMenu
Definition:
addressbookpage.h:57
AddressBookPage::tab
Tabs tab
Definition:
addressbookpage.h:54
AddressBookPage
Widget that shows a list of sending or receiving addresses.
Definition:
addressbookpage.h:26
AddressTableModel
Qt model of the address book in the core.
Definition:
addresstablemodel.h:19
AddressBookPage::returnValue
QString returnValue
Definition:
addressbookpage.h:55
AddressBookPage::mode
Mode mode
Definition:
addressbookpage.h:53
AddressBookPage::Tabs
Tabs
Definition:
addressbookpage.h:31
PlatformStyle
Definition:
platformstyle.h:13
Generated on Mon Oct 22 2018 15:15:35 for Fabcoin Core by
1.8.11