Wt examples 3.3.12
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 bvba, Kessel-Lo, 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>
11
12#include "Contact.h"
13
14using namespace Wt;
15
16namespace Wt {
17 class WTableCell;
18}
19
20class Label;
21
26
32{
33public:
40 WContainerWidget *labelParent);
41
44 void setAddressees(const std::vector<Contact>& contacts);
45
48 std::vector<Contact> addressees() const;
49
51 virtual void setHidden(bool hidden, const WAnimation& animation);
52
53private:
56
58 bool parse(std::vector<Contact>& contacts) const;
59};
60
64#endif // ADDRESSEE_EDIT_H_
An edit field for an email addressee.
virtual void setHidden(bool hidden, const WAnimation &animation)
Reimplement hide() and show() to also hide() and show() the label.
std::vector< Contact > addressees() const
Get a list of addressees.
Label * label_
The label associated with this edit.
bool parse(std::vector< Contact > &contacts) const
Parse the addressees into a list of contacts.
void setAddressees(const std::vector< Contact > &contacts)
Set a list of addressees.
A label.
Definition Label.h:25
WLabel * label() const
WWidget * parent() const

Generated on Fri May 17 2024 for the C++ Web Toolkit (Wt) by doxygen 1.9.8