1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt examples: /home/koen/project/wt/public-git/wt/examples/charts/ChartConfig.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<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><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>/home/koen/project/wt/public-git/wt/examples/charts/ChartConfig.h</h1><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'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 <Wt/WContainerWidget></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include <Wt/Chart/WDataSeries></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#520ba6e52a36a7f2efbef1a31a69e898">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#1aabb3222c56e2f0613c5a7c753a388a" 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#3461e31818c4d2f516641bdaf508312a">parent</a>);
<a name="l00043"></a>00043
<a name="l00044"></a>00044 <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#5f4ddb33c53dc6907dcf73c2598ad0fa">setValueFill</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__charts.html#g7236e5b04bdb6f393162842982b4d1a0">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#a7b397089b68e92769c0691b4dbec837">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#a7b397089b68e92769c0691b4dbec837">chart_</a>;
<a name="l00048"></a><a class="code" href="classChartConfig.html#c23e4d1372ec6dc698b06237a67758cc">00048</a> <a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/group__charts.html#g7236e5b04bdb6f393162842982b4d1a0">Wt::Chart::FillRangeType</a> <a class="code" href="classChartConfig.html#c23e4d1372ec6dc698b06237a67758cc">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#2bf7bac4b169adc15de64440976d8b0a">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#2bf7bac4b169adc15de64440976d8b0a">enabledEdit</a>;
<a name="l00053"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#c3746dbce3669188600b91e9f6a9c9c3">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#c3746dbce3669188600b91e9f6a9c9c3">typeEdit</a>;
<a name="l00054"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#09eb252b25f4920f36b20f983f05fe28">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#09eb252b25f4920f36b20f983f05fe28">markerEdit</a>;
<a name="l00055"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#27ce09f157e343b67c06d70e89196b78">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#27ce09f157e343b67c06d70e89196b78">axisEdit</a>;
<a name="l00056"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#9f98a07e14c99b2e9c40488489a28791">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#9f98a07e14c99b2e9c40488489a28791">legendEdit</a>;
<a name="l00057"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#b863f911b1f5339591068eb90d789207">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#b863f911b1f5339591068eb90d789207">shadowEdit</a>;
<a name="l00058"></a><a class="code" href="structChartConfig_1_1SeriesControl.html#182ea56002fe49de07b7763e05946768">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#182ea56002fe49de07b7763e05946768">labelsEdit</a>;
<a name="l00059"></a>00059 };
<a name="l00060"></a>00060
<a name="l00062"></a><a class="code" href="classChartConfig.html#02788429746b71a708091c45fb152cfa">00062</a> std::vector<SeriesControl> <a class="code" href="classChartConfig.html#02788429746b71a708091c45fb152cfa" 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#d76d60c10f5374d60852d841779b89da">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#d76d60c10f5374d60852d841779b89da">visibleEdit</a>;
<a name="l00067"></a><a class="code" href="structChartConfig_1_1AxisControl.html#a76b58737d57111247f3e68d163daac7">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#a76b58737d57111247f3e68d163daac7">scaleEdit</a>;
<a name="l00068"></a><a class="code" href="structChartConfig_1_1AxisControl.html#eecf94d168677bd600e7f6e18835b31a">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#eecf94d168677bd600e7f6e18835b31a">autoEdit</a>;
<a name="l00069"></a><a class="code" href="structChartConfig_1_1AxisControl.html#7ca0c5bf7e69a1f9b167a0871222c413">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#7ca0c5bf7e69a1f9b167a0871222c413">minimumEdit</a>;
<a name="l00070"></a><a class="code" href="structChartConfig_1_1AxisControl.html#020616717ffc5ad8cf9f36ae7b9d291b">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#020616717ffc5ad8cf9f36ae7b9d291b">maximumEdit</a>;
<a name="l00071"></a><a class="code" href="structChartConfig_1_1AxisControl.html#6d1e0c31dae60c334cfb9d2d80a31b98">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#6d1e0c31dae60c334cfb9d2d80a31b98">gridLinesEdit</a>;
<a name="l00072"></a><a class="code" href="structChartConfig_1_1AxisControl.html#4496133d760449b807c37a026a8c114f">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#4496133d760449b807c37a026a8c114f">labelAngleEdit</a>;
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074
<a name="l00076"></a><a class="code" href="classChartConfig.html#a98fc3c934068a3d1d51d55a88bb7904">00076</a> std::vector<AxisControl> <a class="code" href="classChartConfig.html#a98fc3c934068a3d1d51d55a88bb7904" title="Controls for axes.">axisControls_</a>;
<a name="l00077"></a>00077
<a name="l00078"></a><a class="code" href="classChartConfig.html#626cb2b2309f8370ea7ef74d42a59c60">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#626cb2b2309f8370ea7ef74d42a59c60">titleEdit_</a>;
<a name="l00079"></a><a class="code" href="classChartConfig.html#60ae71d164f81e5d3529c89ba08481e2">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#60ae71d164f81e5d3529c89ba08481e2">chartWidthEdit_</a>;
<a name="l00080"></a><a class="code" href="classChartConfig.html#e0a6697544bcfd1ba5ed6ff74532f32b">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#e0a6697544bcfd1ba5ed6ff74532f32b">chartHeightEdit_</a>;
<a name="l00081"></a><a class="code" href="classChartConfig.html#ef3f6d2c780997da2e29b44a6f2335cf">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#ef3f6d2c780997da2e29b44a6f2335cf">chartOrientationEdit_</a>;
<a name="l00082"></a>00082
<a name="l00083"></a>00083 <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#a01b3e68185061073550efec9bea4a07">connectSignals</a>(<a class="codeRef" doxygen="wt.tags:../../reference/html/" href="../../reference/html/classWt_1_1WFormWidget.html">Wt::WFormWidget</a> *w);
<a name="l00084"></a>00084 <span class="keywordtype">void</span> <a class="code" href="classChartConfig.html#ddc4722196a45d60e3017d3c0bd4ae10">update</a>();
<a name="l00085"></a>00085
<a name="l00086"></a>00086 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classChartConfig.html#6dfef235d3f37f8bf8dcf59c958c7bd5">validate</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 };
<a name="l00088"></a>00088
<a name="l00091"></a>00091 <span class="preprocessor">#endif // CHARTS_EXAMPLE_H_</span>
</pre></div></div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:12 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|