WtHome Class Reference
#include <WtHome.h>
Inherits Home.
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.
00023 : Home(env, "Wt, C++ Web Toolkit", "wt-home", "css/wt")
00024 {
00025 addLanguage(Lang("en", "/", "en", "English"));
00026 addLanguage(Lang("cn", "/cn/", "汉语", "中文 (Chinese)"));
00027
00028 char* wtExamplePath = getenv("WT_EXAMPLE_PATH");
00029 if (wtExamplePath)
00030 wtExamplePath_ = wtExamplePath;
00031 else
00032 wtExamplePath_ = "../";
00033
00034 init();
00035 }
Member Function Documentation
WWidget * WtHome::chartExample |
( |
|
) |
[private] |
Definition at line 50 of file WtHome.C.
00051 {
00052 return example("home.examples.chart", "charts");
00053 }
WWidget * WtHome::chatExample |
( |
|
) |
[private] |
Definition at line 70 of file WtHome.C.
00071 {
00072 return example("home.examples.chat", "simplechat");
00073 }
WWidget * WtHome::composerExample |
( |
|
) |
[private] |
Definition at line 75 of file WtHome.C.
00076 {
00077 return example("home.examples.composer", "composer");
00078 }
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.
00086 {
00087 WContainerWidget *result = new WContainerWidget();
00088
00089 result->addWidget(new WText(tr("home.examples")));
00090
00091 examplesMenu_ = new WTabWidget(AlignTop | AlignJustify, result);
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108 examplesMenu_->addTab(wrapView(&WtHome::helloWorldExample),
00109 tr("hello-world"))->setPathComponent("");
00110 examplesMenu_->addTab(wrapView(&WtHome::chartExample),
00111 tr("charts"));
00112 examplesMenu_->addTab(wrapView(&WtHome::homepageExample),
00113 tr("wt-homepage"));
00114 examplesMenu_->addTab(wrapView(&WtHome::treeviewExample),
00115 tr("treeview"));
00116 examplesMenu_->addTab(wrapView(&WtHome::gitExample),
00117 tr("git"));
00118 examplesMenu_->addTab(wrapView(&WtHome::chatExample),
00119 tr("chat"));
00120 examplesMenu_->addTab(wrapView(&WtHome::composerExample),
00121 tr("mail-composer"));
00122 examplesMenu_->addTab(wrapView(&WtHome::widgetGalleryExample),
00123 tr("widget-gallery"));
00124
00125
00126 examplesMenu_->setInternalPathEnabled("/examples");
00127 examplesMenu_->currentChanged().connect(SLOT(this, Home::googleAnalyticsLogger));
00128
00129 return result;
00130 }
virtual std::string WtHome::filePrefix |
( |
|
) |
const [inline, protected, virtual] |
WWidget * WtHome::gitExample |
( |
|
) |
[private] |
Definition at line 65 of file WtHome.C.
00066 {
00067 return example("home.examples.git", "gitmodel");
00068 }
WWidget * WtHome::helloWorldExample |
( |
|
) |
[private] |
Definition at line 45 of file WtHome.C.
00046 {
00047 return example("home.examples.hello", "hello");
00048 }
WWidget * WtHome::homepageExample |
( |
|
) |
[private] |
Definition at line 55 of file WtHome.C.
00056 {
00057 return example("home.examples.wt", "wt-homepage");
00058 }
WWidget * WtHome::sourceViewer |
( |
const std::string & |
internalPath |
) |
[protected, virtual] |
WWidget * WtHome::treeviewExample |
( |
|
) |
[private] |
Definition at line 60 of file WtHome.C.
00061 {
00062 return example("home.examples.treeview", "treeview-dragdrop");
00063 }
WWidget * WtHome::widgetGalleryExample |
( |
|
) |
[private] |
Definition at line 80 of file WtHome.C.
00081 {
00082 return example("home.examples.widgetgallery", "widgetgallery");
00083 }
WWidget * WtHome::wrapView |
( |
WWidget *(WtHome::*)() |
createFunction |
) |
[private] |
Definition at line 160 of file WtHome.C.
00161 {
00162 return makeStaticModel(boost::bind(createWidget, this));
00163 }
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