Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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:
Inheritance graph
[legend]
Collaboration diagram for AddressBookPage:
Collaboration graph
[legend]

Public Types

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

Public Slots

void done (int retval)
 
void onSnapClosed (QString s)
 Scan of QR code finished. More...
 

Signals

void signMessage (QString addr)
 
void verifyMessage (QString addr)
 
void sendCoins (QString addr)
 
void importWallet (QString addr)
 

Public Member Functions

 AddressBookPage (Mode mode, Tabs tab, QWidget *parent=0)
 
 ~AddressBookPage ()
 
void setModel (AddressTableModel *model)
 
void setOptionsModel (OptionsModel *optionsModel)
 
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 on_signMessage_clicked ()
 Open the sign message tab in the Sign/Verify Message dialog with currently selected address. More...
 
void on_verifyMessage_clicked ()
 Open the verify message tab in the Sign/Verify Message dialog with currently selected address. More...
 
void onSendCoinsAction ()
 Open send coins dialog for currently selected address (no button) More...
 
void on_showQRCode_clicked ()
 Generate a QR Code from the currently selected address. More...
 
void on_importQRCodeButton_clicked ()
 Import from a QR Code into your wallet. 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
 
OptionsModeloptionsModel
 
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 22 of file addressbookpage.h.

Member Enumeration Documentation

Enumerator
ForSending 

Open address book to pick address for sending.

ForEditing 

Open address book for editing.

Definition at line 32 of file addressbookpage.h.

Enumerator
SendingTab 
ReceivingTab 

Definition at line 27 of file addressbookpage.h.

Constructor & Destructor Documentation

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

Definition at line 23 of file addressbookpage.cpp.

AddressBookPage::~AddressBookPage ( )

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

void AddressBookPage::done ( int  retval)
slot

Definition at line 322 of file addressbookpage.cpp.

const QString& AddressBookPage::getReturnValue ( ) const
inline

Definition at line 42 of file addressbookpage.h.

void AddressBookPage::importWallet ( QString  addr)
signal
void AddressBookPage::on_copyAddress_clicked ( )
privateslot

Copy address of currently selected address entry to clipboard.

Definition at line 183 of file addressbookpage.cpp.

void AddressBookPage::on_deleteAddress_clicked ( )
privateslot

Delete currently selected address entry.

Definition at line 263 of file addressbookpage.cpp.

void AddressBookPage::on_exportButton_clicked ( )
privateslot

Export button clicked.

Definition at line 349 of file addressbookpage.cpp.

void AddressBookPage::on_importQRCodeButton_clicked ( )
privateslot

Import from a QR Code into your wallet.

Definition at line 373 of file addressbookpage.cpp.

void AddressBookPage::on_newAddress_clicked ( )
privateslot

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

Definition at line 247 of file addressbookpage.cpp.

void AddressBookPage::on_showQRCode_clicked ( )
privateslot

Generate a QR Code from the currently selected address.

Definition at line 390 of file addressbookpage.cpp.

void AddressBookPage::on_signMessage_clicked ( )
privateslot

Open the sign message tab in the Sign/Verify Message dialog with currently selected address.

Definition at line 211 of file addressbookpage.cpp.

void AddressBookPage::on_verifyMessage_clicked ( )
privateslot

Open the verify message tab in the Sign/Verify Message dialog with currently selected address.

Definition at line 223 of file addressbookpage.cpp.

void AddressBookPage::onCopyLabelAction ( )
privateslot

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

Definition at line 188 of file addressbookpage.cpp.

void AddressBookPage::onEditAction ( )
privateslot

Edit currently selected address entry (no button)

Definition at line 193 of file addressbookpage.cpp.

void AddressBookPage::onSendCoinsAction ( )
privateslot

Open send coins dialog for currently selected address (no button)

Definition at line 235 of file addressbookpage.cpp.

void AddressBookPage::onSnapClosed ( QString  s)
slot

Scan of QR code finished.

Definition at line 381 of file addressbookpage.cpp.

void AddressBookPage::selectionChanged ( )
privateslot

Set button states based on selected tab and selection.

Definition at line 276 of file addressbookpage.cpp.

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

New entry/entries were added to address table.

Definition at line 418 of file addressbookpage.cpp.

void AddressBookPage::sendCoins ( QString  addr)
signal
void AddressBookPage::setModel ( AddressTableModel model)

Definition at line 133 of file addressbookpage.cpp.

void AddressBookPage::setOptionsModel ( OptionsModel optionsModel)

Definition at line 178 of file addressbookpage.cpp.

void AddressBookPage::signMessage ( QString  addr)
signal
void AddressBookPage::verifyMessage ( QString  addr)
signal

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 51 of file addressbookpage.h.

QString AddressBookPage::newAddressToSelect
private

Definition at line 59 of file addressbookpage.h.

OptionsModel* AddressBookPage::optionsModel
private

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


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