Go to the documentation of this file.00001
00002
00003
00004
00005
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 *download();
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
00041 WWidget *wrapView(WWidget *(WtHome::*createFunction)());
00042 };
00043
00044 WApplication *createWtHomeApplication(const WEnvironment& env);
00045
00046 #endif // WT_HOME_H_