Bitcoin Core  27.99.0
P2P Digital Currency
Public Types | Public Slots | Signals | Public Member Functions | Private Slots | Private Member Functions | 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 Member Functions

void updateWindowsTitleWithWalletName ()
 

Private Attributes

Ui::AddressBookPage * ui
 
AddressTableModelmodel {nullptr}
 
Mode mode
 
Tabs tab
 
QString returnValue
 
AddressBookSortFilterProxyModelproxyModel
 
QMenu * contextMenu
 
QString newAddressToSelect
 

Detailed Description

Widget that shows a list of sending or receiving addresses.

Definition at line 26 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 36 of file addressbookpage.h.

◆ Tabs

Enumerator
SendingTab 
ReceivingTab 

Definition at line 31 of file addressbookpage.h.

Constructor & Destructor Documentation

◆ AddressBookPage()

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

Definition at line 60 of file addressbookpage.cpp.

Here is the call graph for this function:

◆ ~AddressBookPage()

AddressBookPage::~AddressBookPage ( )

Definition at line 122 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 298 of file addressbookpage.cpp.

Here is the caller graph for this function:

◆ done

void AddressBookPage::done ( int  retval)
overrideslot

Definition at line 248 of file addressbookpage.cpp.

◆ getReturnValue()

const QString& AddressBookPage::getReturnValue ( ) const
inline

Definition at line 45 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 156 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 204 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 271 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 187 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 161 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 166 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 217 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 307 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 127 of file addressbookpage.cpp.

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

◆ updateWindowsTitleWithWalletName()

void AddressBookPage::updateWindowsTitleWithWalletName ( )
private

Definition at line 319 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 57 of file addressbookpage.h.

◆ mode

Mode AddressBookPage::mode
private

Definition at line 53 of file addressbookpage.h.

◆ model

AddressTableModel* AddressBookPage::model {nullptr}
private

Definition at line 52 of file addressbookpage.h.

◆ newAddressToSelect

QString AddressBookPage::newAddressToSelect
private

Definition at line 58 of file addressbookpage.h.

◆ proxyModel

AddressBookSortFilterProxyModel* AddressBookPage::proxyModel
private

Definition at line 56 of file addressbookpage.h.

◆ returnValue

QString AddressBookPage::returnValue
private

Definition at line 55 of file addressbookpage.h.

◆ tab

Tabs AddressBookPage::tab
private

Definition at line 54 of file addressbookpage.h.

◆ ui

Ui::AddressBookPage* AddressBookPage::ui
private

Definition at line 51 of file addressbookpage.h.


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