Bitcoin ABC 0.30.3
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Attributes | List of all members
AddressBookPage Class Reference

Widget that shows a list of sending or receiving addresses. More...

#include <addressbookpage.h>

Inheritance diagram for AddressBookPage:
[legend]
Collaboration diagram for AddressBookPage:
[legend]

Public Types

enum  Tabs { SendingTab = 0 , ReceivingTab = 1 }
 
enum  Mode { ForSelection , ForEditing }
 

Public Slots

void done (int retval) override
 

Signals

void sendCoins (QString addr)
 

Public Member Functions

 AddressBookPage (const PlatformStyle *platformStyle, Mode mode, Tabs tab, QWidget *parent=nullptr)
 
 ~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_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
 
AddressBookSortFilterProxyModelproxyModel
 
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 31 of file addressbookpage.h.

◆ Tabs

Enumerator
SendingTab 
ReceivingTab 

Definition at line 29 of file addressbookpage.h.

Constructor & Destructor Documentation

◆ AddressBookPage()

AddressBookPage::AddressBookPage ( const PlatformStyle platformStyle,
Mode  mode,
Tabs  tab,
QWidget *  parent = nullptr 
)
explicit

Definition at line 55 of file addressbookpage.cpp.

Here is the call graph for this function:

◆ ~AddressBookPage()

AddressBookPage::~AddressBookPage ( )

Definition at line 158 of file addressbookpage.cpp.

Member Function Documentation

◆ contextualMenu

void AddressBookPage::contextualMenu ( const QPoint &  point)
privateslot

Spawn contextual menu (right mouse menu) for address book entry.

Definition at line 332 of file addressbookpage.cpp.

Here is the caller graph for this function:

◆ done

void AddressBookPage::done ( int  retval)
overrideslot

Definition at line 284 of file addressbookpage.cpp.

◆ getReturnValue()

const QString & AddressBookPage::getReturnValue ( ) const
inline

Definition at line 41 of file addressbookpage.h.

Here is the caller graph for this function:

◆ on_copyAddress_clicked

void AddressBookPage::on_copyAddress_clicked ( )
privateslot

Copy address of currently selected address entry to clipboard.

Definition at line 196 of file addressbookpage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ on_deleteAddress_clicked

void AddressBookPage::on_deleteAddress_clicked ( )
privateslot

Delete currently selected address entry.

Definition at line 243 of file addressbookpage.cpp.

Here is the caller graph for this function:

◆ on_exportButton_clicked

void AddressBookPage::on_exportButton_clicked ( )
privateslot

Export button clicked.

Definition at line 307 of file addressbookpage.cpp.

Here is the call graph for this function:

◆ 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 227 of file addressbookpage.cpp.

Here is the call graph for this function:

◆ onCopyLabelAction

void AddressBookPage::onCopyLabelAction ( )
privateslot

Copy label of currently selected address entry to clipboard (no button)

Definition at line 200 of file addressbookpage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ onEditAction

void AddressBookPage::onEditAction ( )
privateslot

Edit currently selected address entry (no button)

Definition at line 204 of file addressbookpage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ selectionChanged

void AddressBookPage::selectionChanged ( )
privateslot

Set button states based on selected tab and selection.

Definition at line 255 of file addressbookpage.cpp.

Here is the caller graph for this function:

◆ selectNewAddress

void AddressBookPage::selectNewAddress ( const QModelIndex &  parent,
int  begin,
int   
)
privateslot

New entry/entries were added to address table.

Definition at line 339 of file addressbookpage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendCoins

void AddressBookPage::sendCoins ( QString  addr)
signal

◆ setModel()

void AddressBookPage::setModel ( AddressTableModel model)

Definition at line 162 of file addressbookpage.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ contextMenu

QMenu* AddressBookPage::contextMenu
private

Definition at line 53 of file addressbookpage.h.

◆ deleteAction

QAction* AddressBookPage::deleteAction
private

Definition at line 55 of file addressbookpage.h.

◆ mode

Mode AddressBookPage::mode
private

Definition at line 49 of file addressbookpage.h.

◆ model

AddressTableModel* AddressBookPage::model
private

Definition at line 48 of file addressbookpage.h.

◆ newAddressToSelect

QString AddressBookPage::newAddressToSelect
private

Definition at line 56 of file addressbookpage.h.

◆ proxyModel

AddressBookSortFilterProxyModel* AddressBookPage::proxyModel
private

Definition at line 52 of file addressbookpage.h.

◆ returnValue

QString AddressBookPage::returnValue
private

Definition at line 51 of file addressbookpage.h.

◆ tab

Tabs AddressBookPage::tab
private

Definition at line 50 of file addressbookpage.h.

◆ ui

Ui::AddressBookPage* AddressBookPage::ui
private

Definition at line 47 of file addressbookpage.h.


The documentation for this class was generated from the following files: