#include <JWtHome.h>
List of all members.
Detailed Description
Definition at line 16 of file JWtHome.h.
Constructor & Destructor Documentation
Definition at line 27 of file JWtHome.C.
: Home(env,
"JWt, Java Web Toolkit",
"jwt-home", "css/jwt")
{
addLanguage(Lang("en", "/", "en", "English"));
char* jwtExamplePath = getenv("JWT_EXAMPLE_PATH");
if (jwtExamplePath)
jwtExamplePath_ = jwtExamplePath;
else
jwtExamplePath_ = "/home/pieter/projects/jwt/wt-port/java/examples/";
init();
}
Member Function Documentation
WWidget * JWtHome::chartExample |
( |
) |
[private] |
WWidget * JWtHome::chatExample |
( |
) |
[private] |
Definition at line 134 of file JWtHome.C.
{
return example("home.examples.chat", "simplechat");
}
WWidget * JWtHome::composerExample |
( |
) |
[private] |
Definition at line 129 of file JWtHome.C.
{
return example("home.examples.composer", "composer");
}
WWidget * JWtHome::createQuoteForm |
( |
) |
[protected, virtual] |
Implements Home.
Definition at line 92 of file JWtHome.C.
{
#ifdef WT_EMWEB_BUILD
return new QuoteForm(QuoteForm::JWt);
#else
return 0;
#endif
}
WWidget * JWtHome::example |
( |
const char * |
textKey, |
|
|
const std::string & |
sourceDir |
|
) |
| [private] |
WWidget * JWtHome::examples |
( |
) |
[protected, virtual] |
Implements Home.
Definition at line 43 of file JWtHome.C.
{
WContainerWidget *result = new WContainerWidget();
WText *intro = new WText(tr("home.examples"));
intro->setInternalPathEncoding(true);
result->addWidget(intro);
examplesMenu_ = new WTabWidget(AlignTop | AlignJustify, result);
WAnimation animation(WAnimation::SlideInFromRight, WAnimation::EaseIn);
examplesMenu_->contentsStack()->setTransitionAnimation(animation, true);
examplesMenu_->addTab(wrapView(&JWtHome::helloWorldExample),
tr("hello-world"))->setPathComponent("");
examplesMenu_->addTab(wrapView(&JWtHome::chartExample),
tr("charts"));
examplesMenu_->addTab(wrapView(&JWtHome::treeviewExample),
tr("treeview"));
examplesMenu_->addTab(wrapView(&JWtHome::composerExample),
tr("mail-composer"));
examplesMenu_->addTab(wrapView(&JWtHome::chatExample),
tr("chat"));
examplesMenu_->addTab(wrapView(&JWtHome::figtreeExample),
tr("figtree"));
examplesMenu_->addTab(wrapView(&JWtHome::widgetGalleryExample),
tr("widget-gallery"));
examplesMenu_->setInternalPathEnabled("/examples");
examplesMenu_->currentChanged().connect(this, &Home::googleAnalyticsLogger);
return result;
}
WWidget * JWtHome::figtreeExample |
( |
) |
[private] |
virtual std::string JWtHome::filePrefix |
( |
) |
const [inline, protected, virtual] |
WWidget * JWtHome::helloWorldExample |
( |
) |
[private] |
WWidget * JWtHome::sourceViewer |
( |
const std::string & |
deployPath ) |
[protected, virtual] |
WWidget * JWtHome::treeviewExample |
( |
) |
[private] |
Definition at line 124 of file JWtHome.C.
{
return example("home.examples.treeview", "treeviewdragdrop");
}
WWidget * JWtHome::widgetGalleryExample |
( |
) |
[private] |
Definition at line 147 of file JWtHome.C.
{
return example("home.examples.widgetgallery", "widgetgallery");
}
WWidget * JWtHome::wrapView |
( |
WWidget *(JWtHome::*)() |
createFunction ) |
[protected] |
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/koen/project/wt/public-git/wt/examples/wt-homepage/JWtHome.h
- /home/koen/project/wt/public-git/wt/examples/wt-homepage/JWtHome.C