Anoncoin  0.9.4
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 (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 28 of file addressbookpage.h.

Member Enumeration Documentation

Enumerator
ForSelection 

Open address book to pick address.

ForEditing 

Open address book for editing.

Definition at line 38 of file addressbookpage.h.

Enumerator
SendingTab 
ReceivingTab 

Definition at line 33 of file addressbookpage.h.

Constructor & Destructor Documentation

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

Definition at line 24 of file addressbookpage.cpp.

Here is the call graph for this function:

AddressBookPage::~AddressBookPage ( )

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

Here is the caller graph for this function:

void AddressBookPage::done ( int  retval)
slot

Definition at line 243 of file addressbookpage.cpp.

const QString& AddressBookPage::getReturnValue ( ) const
inline

Definition at line 47 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 150 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 197 of file addressbookpage.cpp.

Here is the caller graph for this function:

void AddressBookPage::on_exportButton_clicked ( )
privateslot

Export button clicked.

Definition at line 267 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 181 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 155 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 160 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 210 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 299 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 173 of file moc_addressbookpage.cpp.

void AddressBookPage::setModel ( AddressTableModel model)

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

QAction* AddressBookPage::deleteAction
private

Definition at line 60 of file addressbookpage.h.

Mode AddressBookPage::mode
private

Definition at line 55 of file addressbookpage.h.

AddressTableModel* AddressBookPage::model
private

Definition at line 54 of file addressbookpage.h.

QString AddressBookPage::newAddressToSelect
private

Definition at line 61 of file addressbookpage.h.

QSortFilterProxyModel* AddressBookPage::proxyModel
private

Definition at line 58 of file addressbookpage.h.

QString AddressBookPage::returnValue
private

Definition at line 57 of file addressbookpage.h.

Tabs AddressBookPage::tab
private

Definition at line 56 of file addressbookpage.h.

Ui::AddressBookPage* AddressBookPage::ui
private

Definition at line 53 of file addressbookpage.h.


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