#include <WtHome.h>
|
| WtHome (const WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb) |
|
| Home (const WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb, const std::string &title, const std::string &resourceBundle, const std::string &cssPath) |
|
virtual | ~Home () |
|
void | googleAnalyticsLogger () |
|
Definition at line 16 of file WtHome.h.
§ WtHome()
WtHome::WtHome |
( |
const WEnvironment & |
env, |
|
|
Wt::Dbo::SqlConnectionPool & |
blogDb |
|
) |
| |
Definition at line 27 of file WtHome.C.
28 :
Home(env, blogDb,
"Wt, C++ Web Toolkit",
"wt-home",
"css/wt")
34 char* wtExamplePath = getenv(
"WT_EXAMPLE_PATH");
Home(const WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb, const std::string &title, const std::string &resourceBundle, const std::string &cssPath)
std::string wtExamplePath_
void addLanguage(const Lang &l)
§ chartExample()
WWidget * WtHome::chartExample |
( |
| ) |
|
|
private |
Definition at line 57 of file WtHome.C.
59 return example(
"home.examples.chart",
"charts");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ chatExample()
WWidget * WtHome::chatExample |
( |
| ) |
|
|
private |
Definition at line 77 of file WtHome.C.
79 return example(
"home.examples.chat",
"simplechat");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ composerExample()
WWidget * WtHome::composerExample |
( |
| ) |
|
|
private |
Definition at line 82 of file WtHome.C.
84 return example(
"home.examples.composer",
"composer");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ createQuoteForm()
WWidget * WtHome::createQuoteForm |
( |
| ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 151 of file WtHome.C.
153 #ifdef WT_EMWEB_BUILD 154 return new QuoteForm(QuoteForm::Wt);
§ example()
WWidget * WtHome::example |
( |
const char * |
textKey, |
|
|
const std::string & |
sourceDir |
|
) |
| |
|
private |
Definition at line 43 of file WtHome.C.
45 WContainerWidget *result =
new WContainerWidget();
46 WText *w =
new WText(
tr(textKey), result);
47 w->setInternalPathEncoding(
true);
WWidget * linkSourceBrowser(const std::string &examplePath)
WString tr(const char *key)
§ examples()
WWidget * WtHome::examples |
( |
| ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 97 of file WtHome.C.
99 WContainerWidget *result =
new WContainerWidget();
101 WText *intro =
new WText(
tr(
"home.examples"));
102 intro->setInternalPathEncoding(
true);
103 result->addWidget(intro);
107 WAnimation animation(WAnimation::SlideInFromRight, WAnimation::EaseIn);
108 examplesMenu_->contentsStack()->setTransitionAnimation(animation,
true);
126 tr(
"hello-world"))->setPathComponent(
"");
128 tr(
"widget-gallery"));
140 tr(
"mail-composer"));
WWidget * helloWorldExample()
WWidget * homepageExample()
WWidget * widgetGalleryExample()
WWidget * composerExample()
WString tr(const char *key)
WWidget * treeviewExample()
WTabWidget * examplesMenu_
WWidget * hangmanExample()
WWidget * wrapView(WWidget *(WtHome::*createFunction)())
void googleAnalyticsLogger()
§ filePrefix()
virtual std::string WtHome::filePrefix |
( |
| ) |
const |
|
inlineprotectedvirtual |
§ gitExample()
WWidget * WtHome::gitExample |
( |
| ) |
|
|
private |
Definition at line 72 of file WtHome.C.
74 return example(
"home.examples.git",
"gitmodel");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ hangmanExample()
WWidget * WtHome::hangmanExample |
( |
| ) |
|
|
private |
Definition at line 92 of file WtHome.C.
94 return example(
"home.examples.hangman",
"hangman");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ helloWorldExample()
WWidget * WtHome::helloWorldExample |
( |
| ) |
|
|
private |
Definition at line 52 of file WtHome.C.
54 return example(
"home.examples.hello",
"hello");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ homepageExample()
WWidget * WtHome::homepageExample |
( |
| ) |
|
|
private |
Definition at line 62 of file WtHome.C.
64 return example(
"home.examples.wt",
"wt-homepage");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ sourceViewer()
WWidget * WtHome::sourceViewer |
( |
const std::string & |
internalPath | ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 160 of file WtHome.C.
A simple widget to visualise a set of example source files.
std::string wtExamplePath_
§ treeviewExample()
WWidget * WtHome::treeviewExample |
( |
| ) |
|
|
private |
Definition at line 67 of file WtHome.C.
69 return example(
"home.examples.treeview",
"treeview-dragdrop");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ widgetGalleryExample()
WWidget * WtHome::widgetGalleryExample |
( |
| ) |
|
|
private |
Definition at line 87 of file WtHome.C.
89 return example(
"home.examples.widgetgallery",
"widgetgallery");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ wrapView()
WWidget * WtHome::wrapView |
( |
WWidget *(WtHome::*)() |
createFunction | ) |
|
|
private |
Definition at line 165 of file WtHome.C.
167 return makeStaticModel(boost::bind(
createWidget,
this));
WApplication * createWidget(const WEnvironment &env, SimpleChatServer &server)
§ wtExamplePath_
std::string WtHome::wtExamplePath_ |
|
private |
The documentation for this class was generated from the following files:
- /build/witty-8LS0oe/witty-3.3.6+dfsg/examples/wt-homepage/WtHome.h
- /build/witty-8LS0oe/witty-3.3.6+dfsg/examples/wt-homepage/WtHome.C