Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > b3a1f4d91c26f535919e39e25606614a > files > 401

wt-doc-3.2.3-1.fc18.noarch.rpm

<!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: JWtHome 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
   &#160;<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&#160;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&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">JWtHome Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="JWtHome" --><!-- doxytag: inherits="Home" -->
<p><code>#include &lt;<a class="el" href="JWtHome_8h_source.html">JWtHome.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for JWtHome:</div>
<div class="dyncontent">
<div class="center"><img src="classJWtHome__inherit__graph.png" border="0" usemap="#JWtHome_inherit__map" alt="Inheritance graph"/></div>
<map name="JWtHome_inherit__map" id="JWtHome_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="classJWtHome-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">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#ac59b9d27833b280f5f308157f34359c1">JWtHome</a> (const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> &amp;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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a042af716e35e7f212acdf33bb91661a3">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a3b7c824528c97d93d9fe2f06bea2ab10">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a595396b982cb4ee9bf7871285d907767">sourceViewer</a> (const std::string &amp;deployPath)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#ae2298cc3d51a2d1c33fb99610f44282b">filePrefix</a> () const </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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a> (<a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> *(JWtHome::*createFunction)())</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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a> (const char *textKey, const std::string &amp;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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a8e24c42136de12d131cf580da956f6a5">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a2097dbe6ba63b217e3407284f9e65181">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a07bab7a78c177f8f04c7293735c7e618">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a4c4c5838d5168e5abade75821786f23a">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a81c01ebd07bee37195e762ea292e5216">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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a158c10cd1a7866ae985112a9f805509e">figtreeExample</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> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#ac82245a8839dc99f781568cefd7971cd">widgetGalleryExample</a> ()</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&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classJWtHome.html#a59bcdcf45b406686a4783307047223eb">jwtExamplePath_</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="JWtHome_8h_source.html#l00016">16</a> of file <a class="el" href="JWtHome_8h_source.html">JWtHome.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac59b9d27833b280f5f308157f34359c1"></a><!-- doxytag: member="JWtHome::JWtHome" ref="ac59b9d27833b280f5f308157f34359c1" args="(const WEnvironment &amp;env)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">JWtHome::JWtHome </td>
          <td>(</td>
          <td class="paramtype">const <a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WEnvironment.html">WEnvironment</a> &amp;&#160;</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="JWtHome_8C_source.html#l00027">27</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">  : <a class="code" href="classHome.html#ae5021fb481a207618c292c81cfbe7457">Home</a>(env, 
      <span class="stringliteral">&quot;JWt, Java Web Toolkit&quot;</span>,
      <span class="stringliteral">&quot;jwt-home&quot;</span>, <span class="stringliteral">&quot;css/jwt&quot;</span>)
{
  <a class="code" href="classHome.html#a36ac9d0c0798abaa419790c4888686b0">addLanguage</a>(<a class="code" href="structLang.html">Lang</a>(<span class="stringliteral">&quot;en&quot;</span>, <span class="stringliteral">&quot;/&quot;</span>, <span class="stringliteral">&quot;en&quot;</span>, <span class="stringliteral">&quot;English&quot;</span>));

  <span class="keywordtype">char</span>* jwtExamplePath  = getenv(<span class="stringliteral">&quot;JWT_EXAMPLE_PATH&quot;</span>);
  <span class="keywordflow">if</span> (jwtExamplePath)
    <a class="code" href="classJWtHome.html#a59bcdcf45b406686a4783307047223eb">jwtExamplePath_</a> = jwtExamplePath;
  <span class="keywordflow">else</span>
    <a class="code" href="classJWtHome.html#a59bcdcf45b406686a4783307047223eb">jwtExamplePath_</a> = <span class="stringliteral">&quot;/home/pieter/projects/jwt/wt-port/java/examples/&quot;</span>;

  <a class="code" href="classHome.html#a63520babce460a8f3e1c8d02eb9bc137">init</a>();
}
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2097dbe6ba63b217e3407284f9e65181"></a><!-- doxytag: member="JWtHome::chartExample" ref="a2097dbe6ba63b217e3407284f9e65181" 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> * JWtHome::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="JWtHome_8C_source.html#l00119">119</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.chart&quot;</span>, <span class="stringliteral">&quot;charts&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a81c01ebd07bee37195e762ea292e5216"></a><!-- doxytag: member="JWtHome::chatExample" ref="a81c01ebd07bee37195e762ea292e5216" 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> * JWtHome::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="JWtHome_8C_source.html#l00134">134</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.chat&quot;</span>, <span class="stringliteral">&quot;simplechat&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a07bab7a78c177f8f04c7293735c7e618"></a><!-- doxytag: member="JWtHome::composerExample" ref="a07bab7a78c177f8f04c7293735c7e618" 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> * JWtHome::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="JWtHome_8C_source.html#l00129">129</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.composer&quot;</span>, <span class="stringliteral">&quot;composer&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a3b7c824528c97d93d9fe2f06bea2ab10"></a><!-- doxytag: member="JWtHome::createQuoteForm" ref="a3b7c824528c97d93d9fe2f06bea2ab10" 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> * JWtHome::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="JWtHome_8C_source.html#l00092">92</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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::JWt);
<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="ac7311c833f6088d9ca57be147b72d041"></a><!-- doxytag: member="JWtHome::example" ref="ac7311c833f6088d9ca57be147b72d041" args="(const char *textKey, const std::string &amp;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> * JWtHome::example </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>textKey</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>sourceDir</em>&#160;</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="JWtHome_8C_source.html#l00106">106</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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>();
  <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);
  result-&gt;<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="a042af716e35e7f212acdf33bb91661a3"></a><!-- doxytag: member="JWtHome::examples" ref="a042af716e35e7f212acdf33bb91661a3" 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> * JWtHome::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="JWtHome_8C_source.html#l00043">43</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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">&quot;home.examples&quot;</span>));
  intro-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a3491e55f74027b49aaf8cd25369bc0e4">setInternalPathEncoding</a>(<span class="keyword">true</span>);
  result-&gt;<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>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a168ee0826c0bc38e6d2a5c1b5f5c0630">contentsStack</a>()-&gt;<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_-&gt;addTab(helloWorldExample(), &quot;Hello world&quot;);</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 -&gt;setPathComponent() is to use &quot;/examples/&quot; instead of</span>
  <span class="comment">// &quot;/examples/hello_world&quot; as internal path</span>
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a8e24c42136de12d131cf580da956f6a5">JWtHome::helloWorldExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;hello-world&quot;</span>))-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WMenuItem.html#a4291756303dbf128b718679cdb907a5a">setPathComponent</a>(<span class="stringliteral">&quot;&quot;</span>);
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a2097dbe6ba63b217e3407284f9e65181">JWtHome::chartExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;charts&quot;</span>));
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a4c4c5838d5168e5abade75821786f23a">JWtHome::treeviewExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;treeview&quot;</span>));
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a07bab7a78c177f8f04c7293735c7e618">JWtHome::composerExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;mail-composer&quot;</span>));
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a81c01ebd07bee37195e762ea292e5216">JWtHome::chatExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;chat&quot;</span>));
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#a158c10cd1a7866ae985112a9f805509e">JWtHome::figtreeExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;figtree&quot;</span>));
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a8f5bea792ccb3487fb2f3a9258463b3f">addTab</a>(<a class="code" href="classJWtHome.html#a672e099a484d04e215e749436e92c409">wrapView</a>(&amp;<a class="code" href="classJWtHome.html#ac82245a8839dc99f781568cefd7971cd">JWtHome::widgetGalleryExample</a>),
                        <a class="code" href="classHome.html#a7c8a4abe8f7ade4407333aaaee98c57e">tr</a>(<span class="stringliteral">&quot;widget-gallery&quot;</span>));
  
  <span class="comment">// Enable internal paths for the example menu</span>
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WTabWidget.html#a855b45897b00f82137cd0eb9e0d40dfd">setInternalPathEnabled</a>(<span class="stringliteral">&quot;/examples&quot;</span>);
  <a class="code" href="classHome.html#a3abd28c83870cb52131d423ec9e73b6b">examplesMenu_</a>-&gt;<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>, &amp;<a class="code" href="classHome.html#a3c26dd54dbc1a2020776f2d6cb2aa6bf">Home::googleAnalyticsLogger</a>);

  <span class="keywordflow">return</span> result;
}
</pre></div>
</div>
</div>
<a class="anchor" id="a158c10cd1a7866ae985112a9f805509e"></a><!-- doxytag: member="JWtHome::figtreeExample" ref="a158c10cd1a7866ae985112a9f805509e" 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> * JWtHome::figtreeExample </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="JWtHome_8C_source.html#l00139">139</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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> *text = <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">&quot;home.examples.figtree&quot;</span>), result);
  text-&gt;<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WText.html#a3491e55f74027b49aaf8cd25369bc0e4">setInternalPathEncoding</a>(<span class="keyword">true</span>);
  <span class="keywordflow">return</span> result;
}
</pre></div>
</div>
</div>
<a class="anchor" id="ae2298cc3d51a2d1c33fb99610f44282b"></a><!-- doxytag: member="JWtHome::filePrefix" ref="ae2298cc3d51a2d1c33fb99610f44282b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual std::string JWtHome::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="JWtHome_8h_source.html#l00025">25</a> of file <a class="el" href="JWtHome_8h_source.html">JWtHome.h</a>.</p>
<div class="fragment"><pre class="fragment">{ <span class="keywordflow">return</span> <span class="stringliteral">&quot;jwt-&quot;</span>; }
</pre></div>
</div>
</div>
<a class="anchor" id="a8e24c42136de12d131cf580da956f6a5"></a><!-- doxytag: member="JWtHome::helloWorldExample" ref="a8e24c42136de12d131cf580da956f6a5" 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> * JWtHome::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="JWtHome_8C_source.html#l00114">114</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.hello&quot;</span>, <span class="stringliteral">&quot;hello&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a595396b982cb4ee9bf7871285d907767"></a><!-- doxytag: member="JWtHome::sourceViewer" ref="a595396b982cb4ee9bf7871285d907767" args="(const std::string &amp;deployPath)" -->
<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> * JWtHome::sourceViewer </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>deployPath</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="JWtHome_8C_source.html#l00101">101</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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="classJWtHome.html#a59bcdcf45b406686a4783307047223eb">jwtExamplePath_</a> + <span class="stringliteral">&quot;/&quot;</span>, <span class="stringliteral">&quot;JAVA&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a4c4c5838d5168e5abade75821786f23a"></a><!-- doxytag: member="JWtHome::treeviewExample" ref="a4c4c5838d5168e5abade75821786f23a" 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> * JWtHome::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="JWtHome_8C_source.html#l00124">124</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.treeview&quot;</span>, <span class="stringliteral">&quot;treeviewdragdrop&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="ac82245a8839dc99f781568cefd7971cd"></a><!-- doxytag: member="JWtHome::widgetGalleryExample" ref="ac82245a8839dc99f781568cefd7971cd" 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> * JWtHome::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="JWtHome_8C_source.html#l00147">147</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.C</a>.</p>
<div class="fragment"><pre class="fragment">{
  <span class="keywordflow">return</span> <a class="code" href="classJWtHome.html#ac7311c833f6088d9ca57be147b72d041">example</a>(<span class="stringliteral">&quot;home.examples.widgetgallery&quot;</span>, <span class="stringliteral">&quot;widgetgallery&quot;</span>);
}
</pre></div>
</div>
</div>
<a class="anchor" id="a672e099a484d04e215e749436e92c409"></a><!-- doxytag: member="JWtHome::wrapView" ref="a672e099a484d04e215e749436e92c409" args="(WWidget *(JWtHome::*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> * JWtHome::wrapView </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html">WWidget</a> *(JWtHome::*)()&#160;</td>
          <td class="paramname"><em>createFunction</em></td><td>)</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="JWtHome_8C_source.html#l00152">152</a> of file <a class="el" href="JWtHome_8C_source.html">JWtHome.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="a59bcdcf45b406686a4783307047223eb"></a><!-- doxytag: member="JWtHome::jwtExamplePath_" ref="a59bcdcf45b406686a4783307047223eb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classJWtHome.html#a59bcdcf45b406686a4783307047223eb">JWtHome::jwtExamplePath_</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="JWtHome_8h_source.html#l00040">40</a> of file <a class="el" href="JWtHome_8h_source.html">JWtHome.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="JWtHome_8h_source.html">JWtHome.h</a></li>
<li>/home/koen/project/wt/public-git/wt/examples/wt-homepage/<a class="el" href="JWtHome_8C_source.html">JWtHome.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&nbsp;<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>