Wt examples
3.2.1
|
00001 // This may look like C code, but it's really -*- C++ -*- 00002 /* 00003 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium. 00004 * 00005 * See the LICENSE file for terms of use. 00006 */ 00007 #ifndef ADDRESSEE_EDIT_H_ 00008 #define ADDRESSEE_EDIT_H_ 00009 00010 #include <Wt/WTextArea> 00011 00012 #include "Contact.h" 00013 00014 using namespace Wt; 00015 00016 namespace Wt { 00017 class WTableCell; 00018 } 00019 00020 class Label; 00021 00026 00031 class AddresseeEdit : public WTextArea 00032 { 00033 public: 00039 AddresseeEdit(const WString& label, WContainerWidget *parent, 00040 WContainerWidget *labelParent); 00041 00044 void setAddressees(const std::vector<Contact>& contacts); 00045 00048 std::vector<Contact> addressees() const; 00049 00051 virtual void setHidden(bool hidden, const WAnimation& animation); 00052 00053 private: 00055 Label *label_; 00056 00058 bool parse(std::vector<Contact>& contacts) const; 00059 }; 00060 00064 #endif // ADDRESSEE_EDIT_H_