#include <WtHome.h>
List of all members.
Detailed Description
Definition at line 16 of file WtHome.h.
Constructor & Destructor Documentation
Definition at line 22 of file WtHome.C.
: Home(env, "Wt, C++ Web Toolkit", "wt-home", "css/wt")
{
addLanguage(Lang("en", "/", "en", "English"));
addLanguage(Lang("cn", "/cn/", "汉语", "中文 (Chinese)"));
char* wtExamplePath = getenv("WT_EXAMPLE_PATH");
if (wtExamplePath)
wtExamplePath_ = wtExamplePath;
else
wtExamplePath_ = "../";
init();
}
Member Function Documentation
WWidget * WtHome::chartExample |
( |
) |
[private] |
Definition at line 50 of file WtHome.C.
{
return example("home.examples.chart", "charts");
}
WWidget * WtHome::chatExample |
( |
) |
[private] |
Definition at line 70 of file WtHome.C.
{
return example("home.examples.chat", "simplechat");
}
WWidget * WtHome::composerExample |
( |
) |
[private] |
Definition at line 75 of file WtHome.C.
{
return example("home.examples.composer", "composer");
}
WWidget * WtHome::download |
( |
) |
[protected, virtual] |
WWidget * WtHome::example |
( |
const char * |
textKey, |
|
|
const std::string & |
sourceDir |
|
) |
| [private] |
WWidget * WtHome::examples |
( |
) |
[protected, virtual] |
Implements Home.
Definition at line 85 of file WtHome.C.
{
WContainerWidget *result = new WContainerWidget();
result->addWidget(new WText(tr("home.examples")));
examplesMenu_ = new WTabWidget(AlignTop | AlignJustify, result);
examplesMenu_->addTab(wrapView(&WtHome::helloWorldExample),
tr("hello-world"))->setPathComponent("");
examplesMenu_->addTab(wrapView(&WtHome::chartExample),
tr("charts"));
examplesMenu_->addTab(wrapView(&WtHome::homepageExample),
tr("wt-homepage"));
examplesMenu_->addTab(wrapView(&WtHome::treeviewExample),
tr("treeview"));
examplesMenu_->addTab(wrapView(&WtHome::gitExample),
tr("git"));
examplesMenu_->addTab(wrapView(&WtHome::chatExample),
tr("chat"));
examplesMenu_->addTab(wrapView(&WtHome::composerExample),
tr("mail-composer"));
examplesMenu_->addTab(wrapView(&WtHome::widgetGalleryExample),
tr("widget-gallery"));
examplesMenu_->setInternalPathEnabled("/examples");
examplesMenu_->currentChanged().connect(SLOT(this, Home::googleAnalyticsLogger));
return result;
}
virtual std::string WtHome::filePrefix |
( |
) |
const [inline, protected, virtual] |
WWidget * WtHome::gitExample |
( |
) |
[private] |
Definition at line 65 of file WtHome.C.
{
return example("home.examples.git", "gitmodel");
}
WWidget * WtHome::helloWorldExample |
( |
) |
[private] |
Definition at line 45 of file WtHome.C.
{
return example("home.examples.hello", "hello");
}
WWidget * WtHome::homepageExample |
( |
) |
[private] |
Definition at line 55 of file WtHome.C.
{
return example("home.examples.wt", "wt-homepage");
}
WWidget * WtHome::sourceViewer |
( |
const std::string & |
internalPath ) |
[protected, virtual] |
WWidget * WtHome::treeviewExample |
( |
) |
[private] |
Definition at line 60 of file WtHome.C.
{
return example("home.examples.treeview", "treeview-dragdrop");
}
WWidget * WtHome::widgetGalleryExample |
( |
) |
[private] |
Definition at line 80 of file WtHome.C.
{
return example("home.examples.widgetgallery", "widgetgallery");
}
WWidget * WtHome::wrapView |
( |
WWidget *(WtHome::*)() |
createFunction ) |
[private] |
Definition at line 160 of file WtHome.C.
{
return makeStaticModel(boost::bind(createWidget, this));
}
Member Data Documentation
The documentation for this class was generated from the following files:
- /build/buildd/witty-3.1.2/examples/wt-homepage/WtHome.h
- /build/buildd/witty-3.1.2/examples/wt-homepage/WtHome.C