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 00008 #ifndef FORMEXAMPLE_H_ 00009 #define FORMEXAMPLE_H_ 00010 00011 #include <Wt/WContainerWidget> 00012 00013 namespace Wt { 00014 class WText; 00015 } 00016 00017 using namespace Wt; 00018 00023 00029 class FormExample : public WContainerWidget 00030 { 00031 public: 00034 FormExample(WContainerWidget *parent = 0); 00035 00036 private: 00037 std::vector<WText *> languageSelects_; 00038 00041 void changeLanguage(); 00042 00043 void setLanguage(const std::string lang); 00044 }; 00045 00048 #endif // FORMEXAMPLE_H_