#include <JWtHome.h>
|
| JWtHome (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 JWtHome.h.
§ JWtHome()
JWtHome::JWtHome |
( |
const WEnvironment & |
env, |
|
|
Wt::Dbo::SqlConnectionPool & |
blogDb |
|
) |
| |
Definition at line 27 of file JWtHome.C.
29 "JWt, Java Web Toolkit",
30 "jwt-home",
"css/jwt")
34 char* jwtExamplePath = getenv(
"JWT_EXAMPLE_PATH");
std::string jwtExamplePath_
Home(const WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb, const std::string &title, const std::string &resourceBundle, const std::string &cssPath)
void addLanguage(const Lang &l)
§ chartExample()
WWidget * JWtHome::chartExample |
( |
| ) |
|
|
private |
Definition at line 119 of file JWtHome.C.
121 return example(
"home.examples.chart",
"charts");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ chatExample()
WWidget * JWtHome::chatExample |
( |
| ) |
|
|
private |
Definition at line 134 of file JWtHome.C.
136 return example(
"home.examples.chat",
"simplechat");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ composerExample()
WWidget * JWtHome::composerExample |
( |
| ) |
|
|
private |
Definition at line 129 of file JWtHome.C.
131 return example(
"home.examples.composer",
"composer");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ createQuoteForm()
WWidget * JWtHome::createQuoteForm |
( |
| ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 92 of file JWtHome.C.
95 return new QuoteForm(QuoteForm::JWt);
§ example()
WWidget * JWtHome::example |
( |
const char * |
textKey, |
|
|
const std::string & |
sourceDir |
|
) |
| |
|
private |
Definition at line 106 of file JWtHome.C.
108 WContainerWidget *result =
new WContainerWidget();
109 new WText(
tr(textKey), result);
WWidget * linkSourceBrowser(const std::string &examplePath)
WString tr(const char *key)
§ examples()
WWidget * JWtHome::examples |
( |
| ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 43 of file JWtHome.C.
45 WContainerWidget *result =
new WContainerWidget();
47 WText *intro =
new WText(
tr(
"home.examples"));
48 intro->setInternalPathEncoding(
true);
49 result->addWidget(intro);
52 WAnimation animation(WAnimation::SlideInFromRight, WAnimation::EaseIn);
53 examplesMenu_->contentsStack()->setTransitionAnimation(animation,
true);
71 tr(
"hello-world"))->setPathComponent(
"");
73 tr(
"widget-gallery"));
WWidget * composerExample()
WString tr(const char *key)
WWidget * widgetGalleryExample()
WWidget * figtreeExample()
WWidget * wrapView(WWidget *(JWtHome::*createFunction)())
WTabWidget * examplesMenu_
WWidget * helloWorldExample()
WWidget * treeviewExample()
void googleAnalyticsLogger()
§ figtreeExample()
WWidget * JWtHome::figtreeExample |
( |
| ) |
|
|
private |
Definition at line 139 of file JWtHome.C.
141 WContainerWidget *result =
new WContainerWidget();
142 WText *text =
new WText(
tr(
"home.examples.figtree"), result);
143 text->setInternalPathEncoding(
true);
WString tr(const char *key)
§ filePrefix()
virtual std::string JWtHome::filePrefix |
( |
| ) |
const |
|
inlineprotectedvirtual |
§ helloWorldExample()
WWidget * JWtHome::helloWorldExample |
( |
| ) |
|
|
private |
Definition at line 114 of file JWtHome.C.
116 return example(
"home.examples.hello",
"hello");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ sourceViewer()
WWidget * JWtHome::sourceViewer |
( |
const std::string & |
deployPath | ) |
|
|
protectedvirtual |
Implements Home.
Definition at line 101 of file JWtHome.C.
A simple widget to visualise a set of example source files.
std::string jwtExamplePath_
§ treeviewExample()
WWidget * JWtHome::treeviewExample |
( |
| ) |
|
|
private |
Definition at line 124 of file JWtHome.C.
126 return example(
"home.examples.treeview",
"treeviewdragdrop");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ widgetGalleryExample()
WWidget * JWtHome::widgetGalleryExample |
( |
| ) |
|
|
private |
Definition at line 147 of file JWtHome.C.
149 return example(
"home.examples.widgetgallery",
"widgetgallery");
WWidget * example(const char *textKey, const std::string &sourceDir)
§ wrapView()
WWidget * JWtHome::wrapView |
( |
WWidget *(JWtHome::*)() |
createFunction | ) |
|
|
protected |
Definition at line 152 of file JWtHome.C.
154 return makeStaticModel(boost::bind(
createWidget,
this));
WApplication * createWidget(const WEnvironment &env, SimpleChatServer &server)
§ jwtExamplePath_
std::string JWtHome::jwtExamplePath_ |
|
private |
The documentation for this class was generated from the following files:
- /build/witty-8LS0oe/witty-3.3.6+dfsg/examples/wt-homepage/JWtHome.h
- /build/witty-8LS0oe/witty-3.3.6+dfsg/examples/wt-homepage/JWtHome.C