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>

+ Inheritance diagram for AddressBookPage:
+ Collaboration diagram for AddressBookPage:

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
 
AddressTableModelmodel
 
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()

◆ ~AddressBookPage()

AddressBookPage::~AddressBookPage ( )

Definition at line 104 of file addressbookpage.cpp.

References ui.

Member Function Documentation

◆ contextualMenu

void AddressBookPage::contextualMenu ( const QPoint &  point)
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

void AddressBookPage::done ( int  retval)
slot

Definition at line 266 of file addressbookpage.cpp.

References AddressTableModel::Address, done, returnValue, and ui.

◆ getReturnValue()

const QString& AddressBookPage::getReturnValue ( ) const
inline

◆ on_copyAddress_clicked

void AddressBookPage::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

void 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

void AddressBookPage::on_exportButton_clicked ( )
privateslot

◆ on_newAddress_clicked

void AddressBookPage::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

void AddressBookPage::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

void 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

void AddressBookPage::onEditAction ( )
privateslot

◆ selectionChanged

void 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

void AddressBookPage::selectNewAddress ( const QModelIndex &  parent,
int  begin,
int   
)
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

void AddressBookPage::sendCoins ( QString  addr)
signal

◆ setModel()

Member Data Documentation

◆ contextMenu

QMenu* AddressBookPage::contextMenu
private

Definition at line 56 of file addressbookpage.h.

Referenced by AddressBookPage(), and contextualMenu().

◆ deleteAction

QAction* AddressBookPage::deleteAction
private

Definition at line 57 of file addressbookpage.h.

Referenced by AddressBookPage(), and selectionChanged().

◆ mode

Mode AddressBookPage::mode
private

Definition at line 52 of file addressbookpage.h.

Referenced by AddressBookPage().

◆ model

AddressTableModel* AddressBookPage::model
private

◆ newAddressToSelect

QString AddressBookPage::newAddressToSelect
private

Definition at line 58 of file addressbookpage.h.

Referenced by on_newAddress_clicked(), and selectNewAddress().

◆ proxyModel

QSortFilterProxyModel* AddressBookPage::proxyModel
private

◆ returnValue

QString AddressBookPage::returnValue
private

Definition at line 54 of file addressbookpage.h.

Referenced by done(), and getReturnValue().

◆ tab

Tabs AddressBookPage::tab
private

◆ ui


The documentation for this class was generated from the following files:
Released under the MIT license