Sophie

Sophie

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

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: /home/koen/project/wt/public-git/wt/examples/charts/ChartConfig.h Source File</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><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/koen/project/wt/public-git/wt/examples/charts/ChartConfig.h</div>  </div>
</div>
<div class="contents">
<a href="ChartConfig_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// This may look like C code, but it&#39;s really -*- C++ -*-</span>
<a name="l00002"></a>00002 <span class="comment">/*</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * See the LICENSE file for terms of use.</span>
<a name="l00006"></a>00006 <span class="comment"> */</span>
<a name="l00007"></a>00007 <span class="preprocessor">#ifndef CHART_CONFIG_H_</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span><span class="preprocessor">#define CHART_CONFIG_H_</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;Wt/WContainerWidget&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;Wt/Chart/WDataSeries&gt;</span>
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="keyword">namespace </span>Wt {
<a name="l00014"></a>00014   <span class="keyword">class </span>WCheckBox;
<a name="l00015"></a>00015   <span class="keyword">class </span>WComboBox;
<a name="l00016"></a>00016   <span class="keyword">class </span>WFormWidget;
<a name="l00017"></a>00017   <span class="keyword">class </span>WLineEdit;
<a name="l00018"></a>00018   <span class="keyword">class </span>WTable;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020   <span class="keyword">namespace </span>Chart {
<a name="l00021"></a>00021     <span class="keyword">class </span>WCartesianChart;
<a name="l00022"></a>00022   }
<a name="l00023"></a>00023 }
<a name="l00024"></a>00024 
<a name="l00029"></a>00029 
<a name="l00037"></a><a class="code" href="classChartConfig.html">00037</a> <span class="keyword">class </span><a class="code" href="classChartConfig.html" title="A class that allows configuration of a cartesian chart.">ChartConfig</a> : <span class="keyword">public</span> Wt::<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html#a520ba6e52a36a7f2efbef1a31a69e898">WContainerWidget</a>
<a name="l00038"></a>00038 {
<a name="l00039"></a>00039 <span class="keyword">public</span>:
<a name="l00042"></a>00042   <a class="code" href="classChartConfig.html#a1aabb3222c56e2f0613c5a7c753a388a" title="Constructor.">ChartConfig</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1Chart_1_1WCartesianChart.html">Wt::Chart::WCartesianChart</a> *chart, <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WContainerWidget.html">Wt::WContainerWidget</a> *<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WWidget.html#a3461e31818c4d2f516641bdaf508312a">parent</a>);
<a name="l00043"></a>00043 
<a name="l00044"></a>00044   <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#a5f4ddb33c53dc6907dcf73c2598ad0fa">setValueFill</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/group__charts.html#ga7236e5b04bdb6f393162842982b4d1a0">Wt::Chart::FillRangeType</a> fill);
<a name="l00045"></a>00045 
<a name="l00046"></a>00046 <span class="keyword">private</span>:
<a name="l00047"></a><a class="code" href="classChartConfig.html#aa7b397089b68e92769c0691b4dbec837">00047</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1Chart_1_1WCartesianChart.html">Wt::Chart::WCartesianChart</a>  *<a class="code" href="classChartConfig.html#aa7b397089b68e92769c0691b4dbec837">chart_</a>;
<a name="l00048"></a><a class="code" href="classChartConfig.html#ac23e4d1372ec6dc698b06237a67758cc">00048</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/group__charts.html#ga7236e5b04bdb6f393162842982b4d1a0">Wt::Chart::FillRangeType</a> <a class="code" href="classChartConfig.html#ac23e4d1372ec6dc698b06237a67758cc">fill_</a>;
<a name="l00049"></a>00049 
<a name="l00051"></a><a class="code" href="structChartConfig_1_1SeriesControl.html">00051</a>   <span class="keyword">struct </span><a class="code" href="structChartConfig_1_1SeriesControl.html" title="Struct that holds the controls for one series.">SeriesControl</a> {
<a name="l00052"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#a2bf7bac4b169adc15de64440976d8b0a">00052</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#a2bf7bac4b169adc15de64440976d8b0a">enabledEdit</a>;
<a name="l00053"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#ac3746dbce3669188600b91e9f6a9c9c3">00053</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#ac3746dbce3669188600b91e9f6a9c9c3">typeEdit</a>;
<a name="l00054"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#a09eb252b25f4920f36b20f983f05fe28">00054</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#a09eb252b25f4920f36b20f983f05fe28">markerEdit</a>;
<a name="l00055"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#a27ce09f157e343b67c06d70e89196b78">00055</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#a27ce09f157e343b67c06d70e89196b78">axisEdit</a>;
<a name="l00056"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#a9f98a07e14c99b2e9c40488489a28791">00056</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#a9f98a07e14c99b2e9c40488489a28791">legendEdit</a>;
<a name="l00057"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#ab863f911b1f5339591068eb90d789207">00057</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#ab863f911b1f5339591068eb90d789207">shadowEdit</a>;
<a name="l00058"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#a182ea56002fe49de07b7763e05946768">00058</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="structChartConfig_1_1SeriesControl.html#a182ea56002fe49de07b7763e05946768">labelsEdit</a>;
<a name="l00059"></a>00059   };
<a name="l00060"></a>00060 
<a name="l00062"></a><a class="code" href="classChartConfig.html#a02788429746b71a708091c45fb152cfa">00062</a>   std::vector&lt;SeriesControl&gt; <a class="code" href="classChartConfig.html#a02788429746b71a708091c45fb152cfa" title="Controls for series.">seriesControls_</a>;
<a name="l00063"></a>00063 
<a name="l00065"></a><a class="code" href="structChartConfig_1_1AxisControl.html">00065</a>   <span class="keyword">struct </span><a class="code" href="structChartConfig_1_1AxisControl.html" title="Struct that holds the controls for one axis.">AxisControl</a> {
<a name="l00066"></a><a class="code" href="structChartConfig_1_1AxisControl.html#ad76d60c10f5374d60852d841779b89da">00066</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#ad76d60c10f5374d60852d841779b89da">visibleEdit</a>;
<a name="l00067"></a><a class="code" href="structChartConfig_1_1AxisControl.html#aa76b58737d57111247f3e68d163daac7">00067</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#aa76b58737d57111247f3e68d163daac7">scaleEdit</a>;
<a name="l00068"></a><a class="code" href="structChartConfig_1_1AxisControl.html#aeecf94d168677bd600e7f6e18835b31a">00068</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#aeecf94d168677bd600e7f6e18835b31a">autoEdit</a>;
<a name="l00069"></a><a class="code" href="structChartConfig_1_1AxisControl.html#a7ca0c5bf7e69a1f9b167a0871222c413">00069</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#a7ca0c5bf7e69a1f9b167a0871222c413">minimumEdit</a>;
<a name="l00070"></a><a class="code" href="structChartConfig_1_1AxisControl.html#a020616717ffc5ad8cf9f36ae7b9d291b">00070</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#a020616717ffc5ad8cf9f36ae7b9d291b">maximumEdit</a>;
<a name="l00071"></a><a class="code" href="structChartConfig_1_1AxisControl.html#a6d1e0c31dae60c334cfb9d2d80a31b98">00071</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WCheckBox.html">Wt::WCheckBox</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#a6d1e0c31dae60c334cfb9d2d80a31b98">gridLinesEdit</a>;
<a name="l00072"></a><a class="code" href="structChartConfig_1_1AxisControl.html#a4496133d760449b807c37a026a8c114f">00072</a>     <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="structChartConfig_1_1AxisControl.html#a4496133d760449b807c37a026a8c114f">labelAngleEdit</a>;
<a name="l00073"></a>00073   };
<a name="l00074"></a>00074 
<a name="l00076"></a><a class="code" href="classChartConfig.html#aa98fc3c934068a3d1d51d55a88bb7904">00076</a>   std::vector&lt;AxisControl&gt; <a class="code" href="classChartConfig.html#aa98fc3c934068a3d1d51d55a88bb7904" title="Controls for axes.">axisControls_</a>;
<a name="l00077"></a>00077 
<a name="l00078"></a><a class="code" href="classChartConfig.html#a626cb2b2309f8370ea7ef74d42a59c60">00078</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="classChartConfig.html#a626cb2b2309f8370ea7ef74d42a59c60">titleEdit_</a>;
<a name="l00079"></a><a class="code" href="classChartConfig.html#a60ae71d164f81e5d3529c89ba08481e2">00079</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="classChartConfig.html#a60ae71d164f81e5d3529c89ba08481e2">chartWidthEdit_</a>;
<a name="l00080"></a><a class="code" href="classChartConfig.html#ae0a6697544bcfd1ba5ed6ff74532f32b">00080</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WLineEdit.html">Wt::WLineEdit</a> *<a class="code" href="classChartConfig.html#ae0a6697544bcfd1ba5ed6ff74532f32b">chartHeightEdit_</a>;
<a name="l00081"></a><a class="code" href="classChartConfig.html#aef3f6d2c780997da2e29b44a6f2335cf">00081</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="classChartConfig.html#aef3f6d2c780997da2e29b44a6f2335cf">chartOrientationEdit_</a>;
<a name="l00082"></a><a class="code" href="classChartConfig.html#a21aaa31a795b12ccd950ee857ab84f44">00082</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="classChartConfig.html#a21aaa31a795b12ccd950ee857ab84f44">legendLocationEdit_</a>;
<a name="l00083"></a><a class="code" href="classChartConfig.html#a2dee37b0a4307e1e4fd6241179d12aae">00083</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="classChartConfig.html#a2dee37b0a4307e1e4fd6241179d12aae">legendSideEdit_</a>;
<a name="l00084"></a><a class="code" href="classChartConfig.html#a103d44fafe7f06f76d5fc09a219f15b7">00084</a>   <a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WComboBox.html">Wt::WComboBox</a> *<a class="code" href="classChartConfig.html#a103d44fafe7f06f76d5fc09a219f15b7">legendAlignmentEdit_</a>;
<a name="l00085"></a>00085 
<a name="l00086"></a>00086   <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#aa01b3e68185061073550efec9bea4a07">connectSignals</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WFormWidget.html">Wt::WFormWidget</a> *w);
<a name="l00087"></a>00087   <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#addc4722196a45d60e3017d3c0bd4ae10">update</a>();
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classChartConfig.html#a6dfef235d3f37f8bf8dcf59c958c7bd5">validate</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html" href="../../reference/html/classWt_1_1WFormWidget.html">Wt::WFormWidget</a> *w);
<a name="l00090"></a>00090 };
<a name="l00091"></a>00091 
<a name="l00094"></a>00094 <span class="preprocessor">#endif // CHARTS_EXAMPLE_H_</span>
</pre></div></div>
</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>