MagicSmoke  $VERSION$
MAddressChoiceDialog Class Reference

wrapper dialog to chose an address; updates the customer is there is a change More...

#include <customerdlg.h>

Inheritance diagram for MAddressChoiceDialog:

Public Slots

void addUnselectButton (const QString &)
 add an unselect button More...
 
void preselect (const MOAddress &)
 pre-select an address More...
 

Public Member Functions

 MAddressChoiceDialog (QWidget *, const MOCustomer &)
 creates the dialog More...
 
MOAddress address () const
 returns the chosen address or an invalid address if none was chosen More...
 
qint64 addressId () const
 returns the ID of the chosen address or -1 if the unselect button was used More...
 
MOCustomer customer () const
 returns the (modified) customer object More...
 

Detailed Description

wrapper dialog to chose an address; updates the customer is there is a change

Constructor & Destructor Documentation

MAddressChoiceDialog::MAddressChoiceDialog ( QWidget *  par,
const MOCustomer c 
)

creates the dialog

References MOCustomerAbstract::addresses().

Member Function Documentation

MOAddress MAddressChoiceDialog::address ( ) const

returns the chosen address or an invalid address if none was chosen

References MAddressListWidget::selection().

Referenced by addressId().

qint64 MAddressChoiceDialog::addressId ( ) const

returns the ID of the chosen address or -1 if the unselect button was used

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

void MAddressChoiceDialog::addUnselectButton ( const QString &  t)
slot

add an unselect button

MOCustomer MAddressChoiceDialog::customer ( ) const
inline

returns the (modified) customer object

void MAddressChoiceDialog::preselect ( const MOAddress addr)
slot

pre-select an address

References MAddressListWidget::preselect().


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