MagicSmoke  $VERSION$
MAddressListWidget Class Reference

widget that displays a list of addresses, it uses MAddressWidget to display every single address More...

#include <customerdlg.h>

Inheritance diagram for MAddressListWidget:

Public Slots

void createAddress ()
 asks the user for a new address More...
 
void preselect (int)
 pre-selects an address by its position in the current address list, this method should only be called once! More...
 
void preselect (const MOAddress &)
 alias: pre-selects an address if it is present in the list of displayed addresses More...
 

Signals

void addressChanged (const MOAddress &)
 emitted if the address has changed, the parameter contains the current content; this also emits if the address has changed programmatically, use addressEdited if you want only manual changes More...
 
void addressCreated (const MOAddress &)
 emitted if the user creates a new address via createAddress() More...
 
void addressDeleted (const MOAddress &)
 emitted if the address was deleted by the user, addressEdited is also emitted More...
 
void addressEdited (const MOAddress &)
 emitted if the address was changed by the user, contains the current address content More...
 
void addressSelected (const MOAddress &)
 emitted if the user presses the "select" button, contains the address More...
 
void addressSelected (qint64)
 emitted if the user presses the "select" button, contains the address ID More...
 

Public Member Functions

 MAddressListWidget (QWidget *parent, const QList< MOAddress > &, bool isselect=false)
 creates the widget More...
 
QList< MOAddressaddressList () const
 returns the current list More...
 
MOAddress selection () const
 returns the selected address More...
 

Detailed Description

widget that displays a list of addresses, it uses MAddressWidget to display every single address

Constructor & Destructor Documentation

MAddressListWidget::MAddressListWidget ( QWidget *  parent,
const QList< MOAddress > &  addr,
bool  isselect = false 
)

creates the widget

Member Function Documentation

void MAddressListWidget::addressChanged ( const MOAddress )
signal

emitted if the address has changed, the parameter contains the current content; this also emits if the address has changed programmatically, use addressEdited if you want only manual changes

void MAddressListWidget::addressCreated ( const MOAddress )
signal

emitted if the user creates a new address via createAddress()

Referenced by createAddress().

void MAddressListWidget::addressDeleted ( const MOAddress )
signal

emitted if the address was deleted by the user, addressEdited is also emitted

void MAddressListWidget::addressEdited ( const MOAddress )
signal

emitted if the address was changed by the user, contains the current address content

QList<MOAddress> MAddressListWidget::addressList ( ) const
inline

returns the current list

Referenced by MCustomerDialog::getCustomer().

void MAddressListWidget::addressSelected ( const MOAddress )
signal

emitted if the user presses the "select" button, contains the address

void MAddressListWidget::addressSelected ( qint64  )
signal

emitted if the user presses the "select" button, contains the address ID

void MAddressListWidget::createAddress ( )
slot

asks the user for a new address

References MAddressDialog::address(), and addressCreated().

void MAddressListWidget::preselect ( int  i)
slot

pre-selects an address by its position in the current address list, this method should only be called once!

Referenced by preselect(), and MAddressChoiceDialog::preselect().

void MAddressListWidget::preselect ( const MOAddress addr)
slot

alias: pre-selects an address if it is present in the list of displayed addresses

References MOAddressAbstract::addressid(), and preselect().

MOAddress MAddressListWidget::selection ( ) const
inline

returns the selected address

Referenced by MAddressChoiceDialog::address().


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