#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");
◆ chartExample()
WWidget * WtHome::chartExample |
( |
| ) |
|
|
private |
Definition at line 57 of file WtHome.C.
59 return example(
"home.examples.chart",
"charts");
◆ chatExample()
WWidget * WtHome::chatExample |
( |
| ) |
|
|
private |
Definition at line 77 of file WtHome.C.
79 return example(
"home.examples.chat",
"simplechat");
◆ composerExample()
WWidget * WtHome::composerExample |
( |
| ) |
|
|
private |
Definition at line 82 of file WtHome.C.
84 return example(
"home.examples.composer",
"composer");
◆ 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);
◆ 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"));
◆ 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");
◆ hangmanExample()
WWidget * WtHome::hangmanExample |
( |
| ) |
|
|
private |
Definition at line 92 of file WtHome.C.
94 return example(
"home.examples.hangman",
"hangman");
◆ helloWorldExample()
WWidget * WtHome::helloWorldExample |
( |
| ) |
|
|
private |
Definition at line 52 of file WtHome.C.
54 return example(
"home.examples.hello",
"hello");
◆ homepageExample()
WWidget * WtHome::homepageExample |
( |
| ) |
|
|
private |
Definition at line 62 of file WtHome.C.
64 return example(
"home.examples.wt",
"wt-homepage");
◆ sourceViewer()
WWidget * WtHome::sourceViewer |
( |
const std::string & |
internalPath | ) |
|
|
protectedvirtual |
◆ treeviewExample()
WWidget * WtHome::treeviewExample |
( |
| ) |
|
|
private |
Definition at line 67 of file WtHome.C.
69 return example(
"home.examples.treeview",
"treeview-dragdrop");
◆ widgetGalleryExample()
WWidget * WtHome::widgetGalleryExample |
( |
| ) |
|
|
private |
Definition at line 87 of file WtHome.C.
89 return example(
"home.examples.widgetgallery",
"widgetgallery");
◆ wrapView()
WWidget * WtHome::wrapView |
( |
WWidget *(WtHome::*)() |
createFunction | ) |
|
|
private |
◆ wtExamplePath_
std::string WtHome::wtExamplePath_ |
|
private |
The documentation for this class was generated from the following files:
- /build/witty-DHLR6e/witty-3.3.12+dfsg/examples/wt-homepage/WtHome.h
- /build/witty-DHLR6e/witty-3.3.12+dfsg/examples/wt-homepage/WtHome.C
Home(const WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb, const std::string &title, const std::string &resourceBundle, const std::string &cssPath)