MagicSmoke  $VERSION$
MAddressWidget Class Reference

displays exactly one address; even though it offers to edit or delete addresses, it does not actually do any change on the database More...

#include <customerdlg.h>

Inheritance diagram for MAddressWidget:

Public Slots

void clearAddress ()
 clears the display, disables the buttons More...
 
void setAddress (const MOAddress &)
 sets the address to be shown, enables the buttons if it is valid More...
 
void setAddress (qint64)
 convenience method: sets the address to be shown, retrieves it from the database 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 or cleared programmatically, use addressEdited if you want only manual changes 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...
 
void addrValid (bool)
 internal: used to activate or de-activate buttons More...
 

Public Member Functions

 MAddressWidget (QWidget *parent=0, bool isselect=false)
 creates the widget, if isselect==true a "select" button is shown More...
 
MOAddress address () const
 returns the currently shown address More...
 

Detailed Description

displays exactly one address; even though it offers to edit or delete addresses, it does not actually do any change on the database

Constructor & Destructor Documentation

MAddressWidget::MAddressWidget ( QWidget *  parent = 0,
bool  isselect = false 
)

creates the widget, if isselect==true a "select" button is shown

References addrValid().

Member Function Documentation

MOAddress MAddressWidget::address ( ) const

returns the currently shown address

void MAddressWidget::addressChanged ( const MOAddress )
signal

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

Referenced by clearAddress(), and setAddress().

void MAddressWidget::addressDeleted ( const MOAddress )
signal

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

void MAddressWidget::addressEdited ( const MOAddress )
signal

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

void MAddressWidget::addressSelected ( const MOAddress )
signal

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

void MAddressWidget::addressSelected ( qint64  )
signal

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

void MAddressWidget::addrValid ( bool  )
signal

internal: used to activate or de-activate buttons

Referenced by clearAddress(), MAddressWidget(), and setAddress().

void MAddressWidget::clearAddress ( )
slot

clears the display, disables the buttons

References addressChanged(), and addrValid().

void MAddressWidget::setAddress ( const MOAddress a)
slot

sets the address to be shown, enables the buttons if it is valid

References addressChanged(), MOAddressAbstract::addressid(), addrValid(), and MOAddressAbstract::isdeleted().

Referenced by setAddress().

void MAddressWidget::setAddress ( qint64  id)
slot

convenience method: sets the address to be shown, retrieves it from the database

References MTGetAddress::query(), and setAddress().


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