Fabcoin Core  0.16.2
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)
 

Signals

void sendCoins (QString addr)
 

Public Member Functions

 AddressBookPage (const PlatformStyle *platformStyle, 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_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::AddressBookPageui
 
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 26 of file addressbookpage.h.

Member Enumeration Documentation

Enumerator
ForSelection 

Open address book to pick address.

ForEditing 

Open address book for editing.

Definition at line 36 of file addressbookpage.h.

Enumerator
SendingTab 
ReceivingTab 

Definition at line 31 of file addressbookpage.h.

Constructor & Destructor Documentation

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

Definition at line 25 of file addressbookpage.cpp.

Here is the call graph for this function:

AddressBookPage::~AddressBookPage ( )

Definition at line 115 of file addressbookpage.cpp.

Member Function Documentation

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

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

Definition at line 304 of file addressbookpage.cpp.

Here is the caller graph for this function:

void AddressBookPage::done ( int  retval)
slot

Definition at line 258 of file addressbookpage.cpp.

Here is the call graph for this function:

const QString& AddressBookPage::getReturnValue ( ) const
inline

Definition at line 45 of file addressbookpage.h.

Here is the caller graph for this function:

void AddressBookPage::on_copyAddress_clicked ( )
privateslot

Copy address of currently selected address entry to clipboard.

Definition at line 165 of file addressbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AddressBookPage::on_deleteAddress_clicked ( )
privateslot

Delete currently selected address entry.

Definition at line 212 of file addressbookpage.cpp.

Here is the caller graph for this function:

void AddressBookPage::on_exportButton_clicked ( )
privateslot

Export button clicked.

Definition at line 281 of file addressbookpage.cpp.

Here is the call graph for this function:

void AddressBookPage::on_newAddress_clicked ( )
privateslot

Create a new address for receiving coins and / or add a new address book entry.

Definition at line 196 of file addressbookpage.cpp.

Here is the call graph for this function:

void AddressBookPage::onCopyLabelAction ( )
privateslot

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

Definition at line 170 of file addressbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AddressBookPage::onEditAction ( )
privateslot

Edit currently selected address entry (no button)

Definition at line 175 of file addressbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AddressBookPage::selectionChanged ( )
privateslot

Set button states based on selected tab and selection.

Definition at line 225 of file addressbookpage.cpp.

Here is the caller graph for this function:

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

New entry/entries were added to address table.

Definition at line 313 of file addressbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void AddressBookPage::sendCoins ( QString  addr)
signal

Definition at line 175 of file moc_addressbookpage.cpp.

void AddressBookPage::setModel ( AddressTableModel model)

Definition at line 120 of file addressbookpage.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

QMenu* AddressBookPage::contextMenu
private

Definition at line 57 of file addressbookpage.h.

QAction* AddressBookPage::deleteAction
private

Definition at line 58 of file addressbookpage.h.

Mode AddressBookPage::mode
private

Definition at line 53 of file addressbookpage.h.

AddressTableModel* AddressBookPage::model
private

Definition at line 52 of file addressbookpage.h.

QString AddressBookPage::newAddressToSelect
private

Definition at line 59 of file addressbookpage.h.

QSortFilterProxyModel* AddressBookPage::proxyModel
private

Definition at line 56 of file addressbookpage.h.

QString AddressBookPage::returnValue
private

Definition at line 55 of file addressbookpage.h.

Tabs AddressBookPage::tab
private

Definition at line 54 of file addressbookpage.h.

Ui::AddressBookPage* AddressBookPage::ui
private

Definition at line 51 of file addressbookpage.h.


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