Wt examples
3.3.6
|
An edit field for an email addressee. More...
#include <AddresseeEdit.h>
Public Member Functions | |
AddresseeEdit (const WString &label, WContainerWidget *parent, WContainerWidget *labelParent) | |
Create a new addressee edit with the given label. More... | |
void | setAddressees (const std::vector< Contact > &contacts) |
Set a list of addressees. More... | |
std::vector< Contact > | addressees () const |
Get a list of addressees. More... | |
virtual void | setHidden (bool hidden, const WAnimation &animation) |
Reimplement hide() and show() to also hide() and show() the label. More... | |
Private Member Functions | |
bool | parse (std::vector< Contact > &contacts) const |
Parse the addressees into a list of contacts. More... | |
Private Attributes | |
Label * | label_ |
The label associated with this edit. More... | |
An edit field for an email addressee.
This widget is part of the Wt composer example.
Definition at line 31 of file AddresseeEdit.h.
AddresseeEdit::AddresseeEdit | ( | const WString & | label, |
WContainerWidget * | parent, | ||
WContainerWidget * | labelParent | ||
) |
Create a new addressee edit with the given label.
Constructs also a widget to hold the label in the labelParent. The label will be hidden and shown together with this field.
Definition at line 15 of file AddresseeEdit.C.
std::vector< Contact > AddresseeEdit::addressees | ( | ) | const |
Get a list of addressees.
Definition at line 74 of file AddresseeEdit.C.
|
private |
void AddresseeEdit::setAddressees | ( | const std::vector< Contact > & | contacts | ) |
Set a list of addressees.
Definition at line 27 of file AddresseeEdit.C.
|
virtual |
Reimplement hide() and show() to also hide() and show() the label.
Definition at line 82 of file AddresseeEdit.C.
|
private |
The label associated with this edit.
Definition at line 55 of file AddresseeEdit.h.