Wt examples 3.3.12
WtHome.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 WT_HOME_H_
8#define WT_HOME_H_
9
10#include <Wt/WApplication>
11
12#include "Home.h"
13
14using namespace Wt;
15
16class WtHome : public Home
17{
18public:
20
21protected:
22 virtual WWidget *examples();
23 virtual WWidget *createQuoteForm();
24 virtual WWidget *sourceViewer(const std::string &internalPath);
25 virtual std::string filePrefix() const { return "wt-"; }
26
27private:
28 std::string wtExamplePath_;
29
30 WWidget *example(const char *textKey, const std::string& sourceDir);
31
41
42 WWidget *wrapView(WWidget *(WtHome::*createFunction)());
43};
44
47
48#endif // WT_HOME_H_
WApplication * createWtHomeApplication(const WEnvironment &env, Wt::Dbo::SqlConnectionPool *blogDb)
Definition WtHome.C:170
Definition Home.h:68
virtual WWidget * createQuoteForm()
Definition WtHome.C:151
WWidget * example(const char *textKey, const std::string &sourceDir)
Definition WtHome.C:43
WWidget * homepageExample()
Definition WtHome.C:62
WWidget * chatExample()
Definition WtHome.C:77
virtual WWidget * examples()
Definition WtHome.C:97
WWidget * wrapView(WWidget *(WtHome::*createFunction)())
Definition WtHome.C:165
WWidget * helloWorldExample()
Definition WtHome.C:52
virtual WWidget * sourceViewer(const std::string &internalPath)
Definition WtHome.C:160
WWidget * treeviewExample()
Definition WtHome.C:67
WWidget * chartExample()
Definition WtHome.C:57
WWidget * gitExample()
Definition WtHome.C:72
std::string wtExamplePath_
Definition WtHome.h:28
WWidget * hangmanExample()
Definition WtHome.C:92
WWidget * widgetGalleryExample()
Definition WtHome.C:87
virtual std::string filePrefix() const
Definition WtHome.h:25
WWidget * composerExample()
Definition WtHome.C:82
WEnvironment & env()
std::string internalPath() const

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