Wt examples 4.7.1
AddresseeEdit.h
Go to the documentation of this file.
1// This may look like C code, but it's really -*- C++ -*-
2/*
3 * Copyright (C) 2008 Emweb bv, Herent, Belgium.
4 *
5 * See the LICENSE file for terms of use.
6 */
7#ifndef ADDRESSEE_EDIT_H_
8#define ADDRESSEE_EDIT_H_
9
10#include <Wt/WTextArea.h>
11
12#include "Contact.h"
13
14using namespace Wt;
15
16namespace Wt {
17 class WTableCell;
18}
19
20class Label;
21
26
31class AddresseeEdit : public WTextArea
32{
33public:
39 AddresseeEdit(const WString& label, WContainerWidget *labelParent);
40
43 void setAddressees(const std::vector<Contact>& contacts);
44
47 std::vector<Contact> addressees() const;
48
50 virtual void setHidden(bool hidden, const WAnimation& animation);
51
52private:
55
57 bool parse(std::vector<Contact>& contacts) const;
58};
59
61
62
63#endif // ADDRESSEE_EDIT_H_
An edit field for an email addressee.
Definition: AddresseeEdit.h:32
AddresseeEdit(const WString &label, WContainerWidget *labelParent)
Create a new addressee edit with the given label.
Definition: AddresseeEdit.C:16
virtual void setHidden(bool hidden, const WAnimation &animation)
Reimplement hide() and show() to also hide() and show() the label.
Definition: AddresseeEdit.C:82
std::vector< Contact > addressees() const
Get a list of addressees.
Definition: AddresseeEdit.C:74
Label * label_
The label associated with this edit.
Definition: AddresseeEdit.h:54
bool parse(std::vector< Contact > &contacts) const
Parse the addressees into a list of contacts.
Definition: AddresseeEdit.C:40
void setAddressees(const std::vector< Contact > &contacts)
Set a list of addressees.
Definition: AddresseeEdit.C:27
A label.
Definition: Label.h:25

Generated on Fri May 6 2022 for the C++ Web Toolkit (Wt) by doxygen 1.9.3