Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Widget that shows a list of sending or receiving addresses. More...
#include <addressbookpage.h>
Public Types | |
enum | Tabs { SendingTab = 0, ReceivingTab = 1 } |
enum | Mode { ForSelection, ForEditing } |
Public Slots | |
void | done (int retval) |
Signals | |
void | sendCoins (QString addr) |
Public Member Functions | |
AddressBookPage (Mode mode, Tabs tab, QWidget *parent) | |
~AddressBookPage () | |
void | setModel (AddressTableModel *model) |
const QString & | getReturnValue () const |
Private Slots | |
void | on_deleteAddress_clicked () |
Delete currently selected address entry. More... | |
void | on_newAddress_clicked () |
Create a new address for receiving coins and / or add a new address book entry. More... | |
void | on_copyAddress_clicked () |
Copy address of currently selected address entry to clipboard. More... | |
void | onCopyLabelAction () |
Copy label of currently selected address entry to clipboard (no button) More... | |
void | onEditAction () |
Edit currently selected address entry (no button) More... | |
void | on_showAddressQRCode_clicked () |
Show QR code for the currently selected address. More... | |
void | on_exportButton_clicked () |
Export button clicked. More... | |
void | selectionChanged () |
Set button states based on selected tab and selection. More... | |
void | contextualMenu (const QPoint &point) |
Spawn contextual menu (right mouse menu) for address book entry. More... | |
void | selectNewAddress (const QModelIndex &parent, int begin, int) |
New entry/entries were added to address table. More... | |
Private Attributes | |
Ui::AddressBookPage * | ui |
AddressTableModel * | model |
Mode | mode |
Tabs | tab |
QString | returnValue |
QSortFilterProxyModel * | proxyModel |
QMenu * | contextMenu |
QAction * | deleteAction |
QString | newAddressToSelect |
Detailed Description
Widget that shows a list of sending or receiving addresses.
Definition at line 25 of file addressbookpage.h.
Member Enumeration Documentation
◆ Mode
Enumerator | |
---|---|
ForSelection | Open address book to pick address. |
ForEditing | Open address book for editing. |
Definition at line 35 of file addressbookpage.h.
◆ Tabs
Enumerator | |
---|---|
SendingTab | |
ReceivingTab |
Definition at line 30 of file addressbookpage.h.
Constructor & Destructor Documentation
◆ AddressBookPage()
Definition at line 26 of file addressbookpage.cpp.
References contextMenu, contextualMenu(), deleteAction, GUIUtil::disableMacFocusRect(), ForEditing, ForSelection, mode, on_copyAddress_clicked(), on_deleteAddress_clicked(), on_showAddressQRCode_clicked(), onCopyLabelAction(), onEditAction(), ReceivingTab, SendingTab, tab, ui, and GUIUtil::updateFonts().
◆ ~AddressBookPage()
AddressBookPage::~AddressBookPage | ( | ) |
Definition at line 104 of file addressbookpage.cpp.
References ui.
Member Function Documentation
◆ contextualMenu
|
privateslot |
Spawn contextual menu (right mouse menu) for address book entry.
Definition at line 312 of file addressbookpage.cpp.
References contextMenu, and ui.
Referenced by AddressBookPage().
◆ done
|
slot |
Definition at line 266 of file addressbookpage.cpp.
References AddressTableModel::Address, done, returnValue, and ui.
◆ getReturnValue()
|
inline |
Definition at line 44 of file addressbookpage.h.
References returnValue.
Referenced by SendCoinsEntry::on_addressBookButton_clicked(), SignVerifyMessageDialog::on_addressBookButton_SM_clicked(), and SignVerifyMessageDialog::on_addressBookButton_VM_clicked().
◆ on_copyAddress_clicked
|
privateslot |
Copy address of currently selected address entry to clipboard.
Definition at line 154 of file addressbookpage.cpp.
References AddressTableModel::Address, GUIUtil::copyEntryData(), and ui.
Referenced by AddressBookPage().
◆ on_deleteAddress_clicked
|
privateslot |
Delete currently selected address entry.
Definition at line 201 of file addressbookpage.cpp.
References ui.
Referenced by AddressBookPage().
◆ on_exportButton_clicked
|
privateslot |
Export button clicked.
Definition at line 289 of file addressbookpage.cpp.
References CSVModelWriter::addColumn(), AddressTableModel::Address, GUIUtil::getSaveFileName(), AddressTableModel::Label, proxyModel, CSVModelWriter::setModel(), and CSVModelWriter::write().
◆ on_newAddress_clicked
|
privateslot |
Create a new address for receiving coins and / or add a new address book entry.
Definition at line 185 of file addressbookpage.cpp.
References EditAddressDialog::getAddress(), model, newAddressToSelect, EditAddressDialog::NewReceivingAddress, EditAddressDialog::NewSendingAddress, SendingTab, EditAddressDialog::setModel(), and tab.
◆ on_showAddressQRCode_clicked
|
privateslot |
Show QR code for the currently selected address.
Definition at line 214 of file addressbookpage.cpp.
References AddressTableModel::Address, GUIUtil::getEntryData(), model, QRDialog::setInfo(), QRDialog::setModel(), and ui.
Referenced by AddressBookPage().
◆ onCopyLabelAction
|
privateslot |
Copy label of currently selected address entry to clipboard (no button)
Definition at line 159 of file addressbookpage.cpp.
References GUIUtil::copyEntryData(), AddressTableModel::Label, and ui.
Referenced by AddressBookPage().
◆ onEditAction
|
privateslot |
Edit currently selected address entry (no button)
Definition at line 164 of file addressbookpage.cpp.
References EditAddressDialog::EditReceivingAddress, EditAddressDialog::EditSendingAddress, EditAddressDialog::loadRow(), model, proxyModel, SendingTab, EditAddressDialog::setModel(), tab, and ui.
Referenced by AddressBookPage().
◆ selectionChanged
|
privateslot |
Set button states based on selected tab and selection.
Definition at line 231 of file addressbookpage.cpp.
References deleteAction, ReceivingTab, SendingTab, tab, and ui.
Referenced by setModel().
◆ selectNewAddress
|
privateslot |
New entry/entries were added to address table.
Definition at line 321 of file addressbookpage.cpp.
References AddressTableModel::Address, AddressTableModel::index(), model, newAddressToSelect, proxyModel, and ui.
Referenced by setModel().
◆ sendCoins
|
signal |
◆ setModel()
void AddressBookPage::setModel | ( | AddressTableModel * | model | ) |
Definition at line 109 of file addressbookpage.cpp.
References AddressTableModel::Address, AddressTableModel::Label, model, proxyModel, AddressTableModel::Receive, ReceivingTab, selectionChanged(), selectNewAddress(), AddressTableModel::Send, SendingTab, tab, AddressTableModel::TypeRole, and ui.
Referenced by SendCoinsEntry::on_addressBookButton_clicked(), SignVerifyMessageDialog::on_addressBookButton_SM_clicked(), SignVerifyMessageDialog::on_addressBookButton_VM_clicked(), and WalletView::setWalletModel().
Member Data Documentation
◆ contextMenu
|
private |
Definition at line 56 of file addressbookpage.h.
Referenced by AddressBookPage(), and contextualMenu().
◆ deleteAction
|
private |
Definition at line 57 of file addressbookpage.h.
Referenced by AddressBookPage(), and selectionChanged().
◆ mode
|
private |
Definition at line 52 of file addressbookpage.h.
Referenced by AddressBookPage().
◆ model
|
private |
Definition at line 51 of file addressbookpage.h.
Referenced by on_newAddress_clicked(), on_showAddressQRCode_clicked(), onEditAction(), selectNewAddress(), and setModel().
◆ newAddressToSelect
|
private |
Definition at line 58 of file addressbookpage.h.
Referenced by on_newAddress_clicked(), and selectNewAddress().
◆ proxyModel
|
private |
Definition at line 55 of file addressbookpage.h.
Referenced by on_exportButton_clicked(), onEditAction(), selectNewAddress(), and setModel().
◆ returnValue
|
private |
Definition at line 54 of file addressbookpage.h.
Referenced by done(), and getReturnValue().
◆ tab
|
private |
Definition at line 53 of file addressbookpage.h.
Referenced by AddressBookPage(), on_newAddress_clicked(), onEditAction(), selectionChanged(), and setModel().
◆ ui
|
private |
Definition at line 50 of file addressbookpage.h.
Referenced by AddressBookPage(), contextualMenu(), done(), on_copyAddress_clicked(), on_deleteAddress_clicked(), on_showAddressQRCode_clicked(), onCopyLabelAction(), onEditAction(), selectionChanged(), selectNewAddress(), setModel(), and ~AddressBookPage().
The documentation for this class was generated from the following files:
- src/qt/addressbookpage.h
- src/qt/addressbookpage.cpp