MagicSmoke
$VERSION$
|
dialog for editing exactly one address More...
#include <customerdlg.h>
Public Member Functions | |
MAddressDialog (QWidget *parent=0, MOAddress addr=MOAddress()) | |
creates the dialog, if no valid address is given it displays as "create address" otherwise as "edit address" More... | |
MOAddress | address () |
returns the address More... | |
Static Public Member Functions | |
static MOCountry | createNewCountry (QWidget *parent=0) |
helper function to create a new country, used by MAddressDialog and MNewCustomerWizard returns a valid country on success More... | |
dialog for editing exactly one address
creates the dialog, if no valid address is given it displays as "create address" otherwise as "edit address"
References MOAddressAbstract::addr1(), MOAddressAbstract::addr2(), MOAddressAbstract::addressid(), MOAddressAbstract::city(), MOAddressAbstract::country(), MOAddress::isValid(), MOAddressAbstract::lastused(), MOAddressAbstract::name(), MOAddressAbstract::state(), and MOAddressAbstract::zipcode().
MOAddress MAddressDialog::address | ( | ) |
returns the address
References MOAddressAbstract::addressid(), MOAddressAbstract::setaddr1(), MOAddressAbstract::setaddr2(), MOAddressAbstract::setaddressid(), MOAddressAbstract::setcity(), MOAddressAbstract::setname(), MOAddressAbstract::setstate(), and MOAddressAbstract::setzipcode().
Referenced by MAddressListWidget::createAddress().
|
static |
helper function to create a new country, used by MAddressDialog and MNewCustomerWizard returns a valid country on success
References MTCreateCountry::getcountry(), and MTCreateCountry::query().