<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Wt examples: WtHome Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Wt examples  <span id="projectnumber">3.2.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#pri-methods">Private Member Functions</a> | <a href="#pri-attribs">Private Attributes</a> </div> <div class="headertitle"> <div class="title">WtHome Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="WtHome" --><!-- doxytag: inherits="Home" --> <p><code>#include <<a class="el" href="WtHome_8h_source.html">WtHome.h</a>></code></p> <div class="dynheader"> Inheritance diagram for WtHome:</div> <div class="dyncontent"> <div class="center"><img src="classWtHome__inherit__graph.png" border="0" usemap="#WtHome_inherit__map" alt="Inheritance graph"/></div> <map name="WtHome_inherit__map" id="WtHome_inherit__map"> <area shape="rect" href="classHome.html" title="Home" alt="" coords="39,155,95,181"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html" title="Wt::WApplication" alt="" coords="5,80,128,107"/><area shape="rect" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WObject.html" title="Wt::WObject" alt="" coords="19,5,115,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classWtHome-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a916f894b0b3ff5a08ebe77caad74be3e">WtHome</a> (const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> &env)</td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a1891319ba04a1219be58e80c54330803">examples</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a00b440196930a5229ac2f6f81df1b5e7">createQuoteForm</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a81bfb1f1a961403d2e578de60571693a">sourceViewer</a> (const std::string &<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WApplication.html#aab6320ecdd0e8e4026e9ef1aca710ca5">internalPath</a>)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#aa141a487042dec4fd0e41b064c270caf">filePrefix</a> () const </td></tr> <tr><td colspan="2"><h2><a name="pri-methods"></a> Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a> (const char *textKey, const std::string &sourceDir)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a607084e649fc3897c71971b3b07c76b2">helloWorldExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a9b1d47a2e9ab440ce3b474894f7a1b3b">chartExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a17271af74b46d7b0845dc90510ad9b22">homepageExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a99ef832c24161e5e271b8e2d3a6ca20e">treeviewExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a9b98e2ab6f0cbebf4b19de9c27af08e1">gitExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a17880b6f1a2c40774cb730e68d4d3089">chatExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#af3a430044572741e18801a2e3a4ace27">composerExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#ad7f6cf25a06b5d595f04074e348711d0">widgetGalleryExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#ac47d7c2014f292c434f8c7929e2e15b4">hangmanExample</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a> (<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> *(WtHome::*createFunction)())</td></tr> <tr><td colspan="2"><h2><a name="pri-attribs"></a> Private Attributes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWtHome.html#ab6c76e3ef4c4b568f6111dae7a28619c">wtExamplePath_</a></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"> <p>Definition at line <a class="el" href="WtHome_8h_source.html#l00016">16</a> of file <a class="el" href="WtHome_8h_source.html">WtHome.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a916f894b0b3ff5a08ebe77caad74be3e"></a><!-- doxytag: member="WtHome::WtHome" ref="a916f894b0b3ff5a08ebe77caad74be3e" args="(const WEnvironment &env)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">WtHome::WtHome </td> <td>(</td> <td class="paramtype">const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> & </td> <td class="paramname"><em>env</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00027">27</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment"> : <a class="code" href="classHome.html#ae5021fb481a207618c292c81cfbe7457">Home</a>(env, <span class="stringliteral">"Wt, C++ Web Toolkit"</span>, <span class="stringliteral">"wt-home"</span>, <span class="stringliteral">"css/wt"</span>) { <a class="code" href="classHome.html#a36ac9d0c0798abaa419790c4888686b0">addLanguage</a>(<a class="code" href="structLang.html">Lang</a>(<span class="stringliteral">"en"</span>, <span class="stringliteral">"/"</span>, <span class="stringliteral">"en"</span>, <span class="stringliteral">"English"</span>)); <a class="code" href="classHome.html#a36ac9d0c0798abaa419790c4888686b0">addLanguage</a>(<a class="code" href="structLang.html">Lang</a>(<span class="stringliteral">"cn"</span>, <span class="stringliteral">"/cn/"</span>, <span class="stringliteral">"汉语"</span>, <span class="stringliteral">"中文 (Chinese)"</span>)); <a class="code" href="classHome.html#a36ac9d0c0798abaa419790c4888686b0">addLanguage</a>(<a class="code" href="structLang.html">Lang</a>(<span class="stringliteral">"ru"</span>, <span class="stringliteral">"/ru/"</span>, <span class="stringliteral">"ру"</span>, <span class="stringliteral">"Русский (Russian)"</span>)); <span class="keywordtype">char</span>* wtExamplePath = getenv(<span class="stringliteral">"WT_EXAMPLE_PATH"</span>); <span class="keywordflow">if</span> (wtExamplePath) <a class="code" href="classWtHome.html#ab6c76e3ef4c4b568f6111dae7a28619c">wtExamplePath_</a> = wtExamplePath; <span class="keywordflow">else</span> <a class="code" href="classWtHome.html#ab6c76e3ef4c4b568f6111dae7a28619c">wtExamplePath_</a> = <span class="stringliteral">"../"</span>; <a class="code" href="classHome.html#a63520babce460a8f3e1c8d02eb9bc137">init</a>(); } </pre></div> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a9b1d47a2e9ab440ce3b474894f7a1b3b"></a><!-- doxytag: member="WtHome::chartExample" ref="a9b1d47a2e9ab440ce3b474894f7a1b3b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::chartExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00057">57</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.chart"</span>, <span class="stringliteral">"charts"</span>); } </pre></div> </div> </div> <a class="anchor" id="a17880b6f1a2c40774cb730e68d4d3089"></a><!-- doxytag: member="WtHome::chatExample" ref="a17880b6f1a2c40774cb730e68d4d3089" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::chatExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00077">77</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.chat"</span>, <span class="stringliteral">"simplechat"</span>); } </pre></div> </div> </div> <a class="anchor" id="af3a430044572741e18801a2e3a4ace27"></a><!-- doxytag: member="WtHome::composerExample" ref="af3a430044572741e18801a2e3a4ace27" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::composerExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00082">82</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.composer"</span>, <span class="stringliteral">"composer"</span>); } </pre></div> </div> </div> <a class="anchor" id="a00b440196930a5229ac2f6f81df1b5e7"></a><!-- doxytag: member="WtHome::createQuoteForm" ref="a00b440196930a5229ac2f6f81df1b5e7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::createQuoteForm </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classHome.html#a6c03aafecae7c54dae30981a3fb29a65">Home</a>.</p> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00151">151</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="preprocessor">#ifdef WT_EMWEB_BUILD</span> <span class="preprocessor"></span> <span class="keywordflow">return</span> <span class="keyword">new</span> QuoteForm(QuoteForm::Wt); <span class="preprocessor">#else</span> <span class="preprocessor"></span> <span class="keywordflow">return</span> 0; <span class="preprocessor">#endif</span> <span class="preprocessor"></span>} </pre></div> </div> </div> <a class="anchor" id="a13fc1bc689a28fcdbd08088928940e3c"></a><!-- doxytag: member="WtHome::example" ref="a13fc1bc689a28fcdbd08088928940e3c" args="(const char *textKey, const std::string &sourceDir)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::example </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"><em>textKey</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>sourceDir</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00043">43</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a> *result = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a>(); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a> *w = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>(<a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(textKey), result); w-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a3491e55f74027b49aaf8cd25369bc0e4">setInternalPathEncoding</a>(<span class="keyword">true</span>); result-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html#a2cfe66d9b62940f889e99538a9f478d2">addWidget</a>(<a class="code" href="classHome.html#a6360a674c4d5dcc614411c283af8035b">linkSourceBrowser</a>(sourceDir)); <span class="keywordflow">return</span> result; } </pre></div> </div> </div> <a class="anchor" id="a1891319ba04a1219be58e80c54330803"></a><!-- doxytag: member="WtHome::examples" ref="a1891319ba04a1219be58e80c54330803" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::examples </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classHome.html#a359a8de9caa986c141dcce1b3968b0a3">Home</a>.</p> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00097">97</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a> *result = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">WContainerWidget</a>(); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a> *intro = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html">WText</a>(<a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"home.examples"</span>)); intro-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a3491e55f74027b49aaf8cd25369bc0e4">setInternalPathEncoding</a>(<span class="keyword">true</span>); result-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html#a2cfe66d9b62940f889e99538a9f478d2">addWidget</a>(intro); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a> = <span class="keyword">new</span> <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html">WTabWidget</a>(result); <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WAnimation.html">WAnimation</a> animation(WAnimation::SlideInFromRight, WAnimation::EaseIn); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a168ee0826c0bc38e6d2a5c1b5f5c0630">contentsStack</a>()-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WStackedWidget.html#a46949b8def26baae654f54e3774da80e">setTransitionAnimation</a>(animation, <span class="keyword">true</span>); <span class="comment">/*</span> <span class="comment"> * The following code is functionally equivalent to:</span> <span class="comment"> *</span> <span class="comment"> * examplesMenu_->addTab(helloWorldExample(), "Hello world");</span> <span class="comment"> *</span> <span class="comment"> * However, we optimize here for memory consumption (it is a homepage</span> <span class="comment"> * after all, and we hope to be slashdotted some day)</span> <span class="comment"> *</span> <span class="comment"> * Therefore, we wrap all the static content (including the tree</span> <span class="comment"> * widgets), into WViewWidgets with static models. In this way the</span> <span class="comment"> * widgets are not actually stored in memory on the server.</span> <span class="comment"> */</span> <span class="comment">// The call ->setPathComponent() is to use "/examples/" instead of</span> <span class="comment">// "/examples/hello_world" as internal path</span> <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a607084e649fc3897c71971b3b07c76b2">WtHome::helloWorldExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"hello-world"</span>))-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WMenuItem.html#a4291756303dbf128b718679cdb907a5a">setPathComponent</a>(<span class="stringliteral">""</span>); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a9b1d47a2e9ab440ce3b474894f7a1b3b">WtHome::chartExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"charts"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a17271af74b46d7b0845dc90510ad9b22">WtHome::homepageExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"wt-homepage"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a99ef832c24161e5e271b8e2d3a6ca20e">WtHome::treeviewExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"treeview"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a9b98e2ab6f0cbebf4b19de9c27af08e1">WtHome::gitExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"git"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#a17880b6f1a2c40774cb730e68d4d3089">WtHome::chatExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"chat"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#af3a430044572741e18801a2e3a4ace27">WtHome::composerExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"mail-composer"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#ac47d7c2014f292c434f8c7929e2e15b4">WtHome::hangmanExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"hangman"</span>)); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classWtHome.html#a52135719f856d544fad387c76af06182">wrapView</a>(&<a class="code" href="classWtHome.html#ad7f6cf25a06b5d595f04074e348711d0">WtHome::widgetGalleryExample</a>), <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">"widget-gallery"</span>)); <span class="comment">// Enable internal paths for the example menu</span> <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a855b45897b00f82137cd0eb9e0d40dfd">setInternalPathEnabled</a>(<span class="stringliteral">"/examples"</span>); <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-><a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a5447e1149d6c854f25d6fb6792eef513">currentChanged</a>().<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1Signal.html#a15d1150af031537b492674ee651bf4a3">connect</a>(<span class="keyword">this</span>, &<a class="code" href="classHome.html#a3c26dd54dbc1a2020776f2d6cb2aa6bf">Home::googleAnalyticsLogger</a>); <span class="keywordflow">return</span> result; } </pre></div> </div> </div> <a class="anchor" id="aa141a487042dec4fd0e41b064c270caf"></a><!-- doxytag: member="WtHome::filePrefix" ref="aa141a487042dec4fd0e41b064c270caf" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual std::string WtHome::filePrefix </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline, protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classHome.html#a7e96a995cdb7d825dad505eaf976022c">Home</a>.</p> <p>Definition at line <a class="el" href="WtHome_8h_source.html#l00025">25</a> of file <a class="el" href="WtHome_8h_source.html">WtHome.h</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <span class="stringliteral">"wt-"</span>; } </pre></div> </div> </div> <a class="anchor" id="a9b98e2ab6f0cbebf4b19de9c27af08e1"></a><!-- doxytag: member="WtHome::gitExample" ref="a9b98e2ab6f0cbebf4b19de9c27af08e1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::gitExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00072">72</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.git"</span>, <span class="stringliteral">"gitmodel"</span>); } </pre></div> </div> </div> <a class="anchor" id="ac47d7c2014f292c434f8c7929e2e15b4"></a><!-- doxytag: member="WtHome::hangmanExample" ref="ac47d7c2014f292c434f8c7929e2e15b4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::hangmanExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00092">92</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.hangman"</span>, <span class="stringliteral">"hangman"</span>); } </pre></div> </div> </div> <a class="anchor" id="a607084e649fc3897c71971b3b07c76b2"></a><!-- doxytag: member="WtHome::helloWorldExample" ref="a607084e649fc3897c71971b3b07c76b2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::helloWorldExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00052">52</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.hello"</span>, <span class="stringliteral">"hello"</span>); } </pre></div> </div> </div> <a class="anchor" id="a17271af74b46d7b0845dc90510ad9b22"></a><!-- doxytag: member="WtHome::homepageExample" ref="a17271af74b46d7b0845dc90510ad9b22" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::homepageExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00062">62</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.wt"</span>, <span class="stringliteral">"wt-homepage"</span>); } </pre></div> </div> </div> <a class="anchor" id="a81bfb1f1a961403d2e578de60571693a"></a><!-- doxytag: member="WtHome::sourceViewer" ref="a81bfb1f1a961403d2e578de60571693a" args="(const std::string &internalPath)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::sourceViewer </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>internalPath</em></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Implements <a class="el" href="classHome.html#abd90cc8e49527b1c18e01f92663e4862">Home</a>.</p> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00160">160</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="classExampleSourceViewer.html" title="A simple widget to visualise a set of example source files.">ExampleSourceViewer</a>(deployPath, <a class="code" href="classWtHome.html#ab6c76e3ef4c4b568f6111dae7a28619c">wtExamplePath_</a> + <span class="stringliteral">"/"</span>, <span class="stringliteral">"CPP"</span>); } </pre></div> </div> </div> <a class="anchor" id="a99ef832c24161e5e271b8e2d3a6ca20e"></a><!-- doxytag: member="WtHome::treeviewExample" ref="a99ef832c24161e5e271b8e2d3a6ca20e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::treeviewExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00067">67</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.treeview"</span>, <span class="stringliteral">"treeview-dragdrop"</span>); } </pre></div> </div> </div> <a class="anchor" id="ad7f6cf25a06b5d595f04074e348711d0"></a><!-- doxytag: member="WtHome::widgetGalleryExample" ref="ad7f6cf25a06b5d595f04074e348711d0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::widgetGalleryExample </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00087">87</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <a class="code" href="classWtHome.html#a13fc1bc689a28fcdbd08088928940e3c">example</a>(<span class="stringliteral">"home.examples.widgetgallery"</span>, <span class="stringliteral">"widgetgallery"</span>); } </pre></div> </div> </div> <a class="anchor" id="a52135719f856d544fad387c76af06182"></a><!-- doxytag: member="WtHome::wrapView" ref="a52135719f856d544fad387c76af06182" args="(WWidget *(WtHome::*createFunction)())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> * WtHome::wrapView </td> <td>(</td> <td class="paramtype"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> *(WtHome::*)() </td> <td class="paramname"><em>createFunction</em></td><td>)</td> <td><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8C_source.html#l00165">165</a> of file <a class="el" href="WtHome_8C_source.html">WtHome.C</a>.</p> <div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> makeStaticModel(boost::bind(<a class="code" href="group__chatexample.html#gabf00719b4e042ae3ee5676d30791ace0">createWidget</a>, <span class="keyword">this</span>)); } </pre></div> </div> </div> <hr/><h2>Member Data Documentation</h2> <a class="anchor" id="ab6c76e3ef4c4b568f6111dae7a28619c"></a><!-- doxytag: member="WtHome::wtExamplePath_" ref="ab6c76e3ef4c4b568f6111dae7a28619c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">std::string <a class="el" href="classWtHome.html#ab6c76e3ef4c4b568f6111dae7a28619c">WtHome::wtExamplePath_</a><code> [private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Definition at line <a class="el" href="WtHome_8h_source.html#l00028">28</a> of file <a class="el" href="WtHome_8h_source.html">WtHome.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>/home/koen/project/wt/public-git/wt/examples/wt-homepage/<a class="el" href="WtHome_8h_source.html">WtHome.h</a></li> <li>/home/koen/project/wt/public-git/wt/examples/wt-homepage/<a class="el" href="WtHome_8C_source.html">WtHome.C</a></li> </ul> </div> <hr size="1"><address style="text-align: right; margin: 3px"><small> Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the C++ Web Toolkit (Wt)</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" border="0" style="vertical-align: middle; display: inline-block; height: 2em"></a> 1.7.5.1</small></address> </body> </html>