14#include <Wt/WAnchor.h>
15#include <Wt/WStackedWidget.h>
16#include <Wt/WTreeNode.h>
17#include <Wt/WWidget.h>
18#include <Wt/WViewWidget.h>
19#include <Wt/WTabWidget.h>
20#include <Wt/WMenuItem.h>
22#include <Wt/WEnvironment.h>
23#include <Wt/WLogger.h>
29 "JWt, Java Web Toolkit",
30 "jwt-home",
"css/jwt")
45 std::unique_ptr<WContainerWidget>
result(std::make_unique<WContainerWidget>());
47 std::unique_ptr<WText>
intro(std::make_unique<WText>(
tr(
"home.examples")));
48 intro->setInternalPathEncoding(
true);
71 tr(
"hello-world"))->setPathComponent(
"");
73 tr(
"widget-gallery"));
95 return std::make_unique<QuoteForm>(QuoteForm::JWt);
108 std::unique_ptr<WContainerWidget>
result = std::make_unique<WContainerWidget>();
116 return std::move(
example(
"home.examples.hello",
"hello"));
121 return std::move(
example(
"home.examples.chart",
"charts"));
126 return std::move(
example(
"home.examples.treeview",
"treeviewdragdrop"));
131 return std::move(
example(
"home.examples.composer",
"composer"));
136 return std::move(
example(
"home.examples.chat",
"simplechat"));
141 std::unique_ptr<WContainerWidget>
result(std::make_unique<WContainerWidget>());
142 WText *
text =
result->addWidget(std::make_unique<WText>(
tr(
"home.examples.figtree")));
143 text->setInternalPathEncoding(
true);
149 return std::move(
example(
"home.examples.widgetgallery",
"widgetgallery"));
158 Dbo::SqlConnectionPool *
blogDb)
160 return std::make_unique<JWtHome>(
env, *
blogDb);
std::unique_ptr< WApplication > createJWtHomeApplication(const WEnvironment &env, Dbo::SqlConnectionPool *blogDb)
Wt::Auth::Dbo::UserDatabase< AuthInfo > UserDatabase
std::unique_ptr< WWidget > linkSourceBrowser(const std::string &examplePath)
void addLanguage(const Lang &l)
WTabWidget * examplesMenu_
void googleAnalyticsLogger()
WString tr(const char *key)
std::unique_ptr< WWidget > helloWorldExample()
std::unique_ptr< WWidget > figtreeExample()
virtual std::unique_ptr< WWidget > sourceViewer(const std::string &deployPath)
std::unique_ptr< WWidget > chartExample()
std::unique_ptr< WWidget > example(const char *textKey, const std::string &sourceDir)
JWtHome(const WEnvironment &env, Dbo::SqlConnectionPool &blogDb)
std::string jwtExamplePath_
std::unique_ptr< WWidget > chatExample()
virtual std::unique_ptr< WWidget > examples()
std::unique_ptr< WWidget > treeviewExample()
std::unique_ptr< WWidget > widgetGalleryExample()
std::unique_ptr< WWidget > wrapView(std::unique_ptr< WWidget >(JWtHome::*createFunction)())
virtual std::unique_ptr< WWidget > createQuoteForm()
std::unique_ptr< WWidget > composerExample()
std::unique_ptr< Wt::WApplication > createWidget(const Wt::WEnvironment &env, SimpleChatServer &server)