Wt examples  3.3.0
/home/koen/project/wt/public-git/wt/examples/wt-homepage/WtHome.h
Go to the documentation of this file.
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 WT_HOME_H_
00008 #define WT_HOME_H_
00009 
00010 #include <Wt/WApplication>
00011 
00012 #include "Home.h"
00013 
00014 using namespace Wt;
00015 
00016 class WtHome : public Home 
00017 {
00018 public:
00019   WtHome(const WEnvironment& env);
00020 
00021 protected:
00022   virtual WWidget *examples();
00023   virtual WWidget *createQuoteForm();
00024   virtual WWidget *sourceViewer(const std::string &internalPath);
00025   virtual std::string filePrefix() const { return "wt-"; }
00026 
00027 private:
00028   std::string wtExamplePath_;
00029 
00030   WWidget *example(const char *textKey, const std::string& sourceDir);
00031 
00032   WWidget *helloWorldExample();
00033   WWidget *chartExample();
00034   WWidget *homepageExample();
00035   WWidget *treeviewExample();
00036   WWidget *gitExample();
00037   WWidget *chatExample();
00038   WWidget *composerExample();
00039   WWidget *widgetGalleryExample();
00040   WWidget *hangmanExample();
00041 
00042   WWidget *wrapView(WWidget *(WtHome::*createFunction)());
00043 };
00044 
00045 WApplication *createWtHomeApplication(const WEnvironment& env);
00046 
00047 #endif // WT_HOME_H_

Generated on Mon Apr 8 2013 for the C++ Web Toolkit (Wt) by doxygen 1.7.5.1