summaryrefslogtreecommitdiffstats
path: root/doc/html/chart-element-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/chart-element-cpp.html')
-rw-r--r--doc/html/chart-element-cpp.html42
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/html/chart-element-cpp.html b/doc/html/chart-element-cpp.html
index cc517fbc5..cb58e259c 100644
--- a/doc/html/chart-element-cpp.html
+++ b/doc/html/chart-element-cpp.html
@@ -34,8 +34,8 @@ body { background: #ffffff; color: black; }
<pre>#include "element.h"
-#include &lt;<a href="qstringlist-h.html">qstringlist.h</a>&gt;
-#include &lt;<a href="qtextstream-h.html">qtextstream.h</a>&gt;
+#include &lt;<a href="qstringlist-h.html">ntqstringlist.h</a>&gt;
+#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
const char FIELD_SEP = ':';
const char PROPOINT_SEP = ';';
@@ -43,7 +43,7 @@ const char XY_SEP = ',';
void Element::init( double value, TQColor valueColor, int valuePattern,
- const <a href="qstring.html">TQString</a>&amp; label, TQColor labelColor )
+ const <a href="ntqstring.html">TQString</a>&amp; label, TQColor labelColor )
{
m_value = value;
m_valueColor = valueColor;
@@ -65,33 +65,33 @@ void Element::setValuePattern( int valuePattern )
double Element::proX( int index ) const
{
- <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
+ <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
return m_propoints[2 * index];
}
double Element::proY( int index ) const
{
- <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
+ <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
return m_propoints[(2 * index) + 1];
}
void Element::setProX( int index, double value )
{
- <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
+ <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
m_propoints[2 * index] = value;
}
void Element::setProY( int index, double value )
{
- <a href="qapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
+ <a href="ntqapplication.html#Q_ASSERT">Q_ASSERT</a>(index &gt;= 0 &amp;&amp; index &lt; MAX_PROPOINTS);
m_propoints[(2 * index) + 1] = value;
}
-TQTextStream &amp;operator&lt;&lt;( <a href="qtextstream.html">TQTextStream</a> &amp;s, const Element &amp;element )
+TQTextStream &amp;operator&lt;&lt;( <a href="ntqtextstream.html">TQTextStream</a> &amp;s, const Element &amp;element )
{
s &lt;&lt; element.value() &lt;&lt; FIELD_SEP
&lt;&lt; element.valueColor().name() &lt;&lt; FIELD_SEP
@@ -109,39 +109,39 @@ TQTextStream &amp;operator&lt;&lt;( <a href="qtextstream.html">TQTextStream</a>
}
-TQTextStream &amp;operator&gt;&gt;( <a href="qtextstream.html">TQTextStream</a> &amp;s, Element &amp;element )
+TQTextStream &amp;operator&gt;&gt;( <a href="ntqtextstream.html">TQTextStream</a> &amp;s, Element &amp;element )
{
- <a href="qstring.html">TQString</a> data = s.<a href="qtextstream.html#readLine">readLine</a>();
+ <a href="ntqstring.html">TQString</a> data = s.<a href="ntqtextstream.html#readLine">readLine</a>();
element.setValue( Element::INVALID );
int errors = 0;
bool ok;
- <a href="qstringlist.html">TQStringList</a> fields = TQStringList::<a href="qstringlist.html#split">split</a>( FIELD_SEP, data );
- if ( fields.<a href="qvaluelist.html#count">count</a>() &gt;= 4 ) {
+ <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList::<a href="ntqstringlist.html#split">split</a>( FIELD_SEP, data );
+ if ( fields.<a href="ntqvaluelist.html#count">count</a>() &gt;= 4 ) {
double value = fields[0].toDouble( &amp;ok );
if ( !ok )
errors++;
- <a href="qcolor.html">TQColor</a> valueColor = TQColor( fields[1] );
- if ( !valueColor.<a href="qcolor.html#isValid">isValid</a>() )
+ <a href="ntqcolor.html">TQColor</a> valueColor = TQColor( fields[1] );
+ if ( !valueColor.<a href="ntqcolor.html#isValid">isValid</a>() )
errors++;
int valuePattern = fields[2].toInt( &amp;ok );
if ( !ok )
errors++;
- <a href="qcolor.html">TQColor</a> labelColor = TQColor( fields[3] );
- if ( !labelColor.<a href="qcolor.html#isValid">isValid</a>() )
+ <a href="ntqcolor.html">TQColor</a> labelColor = TQColor( fields[3] );
+ if ( !labelColor.<a href="ntqcolor.html#isValid">isValid</a>() )
errors++;
- <a href="qstringlist.html">TQStringList</a> propoints = TQStringList::<a href="qstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] );
- <a href="qstring.html">TQString</a> label = data.<a href="qstring.html#section">section</a>( FIELD_SEP, 5 );
+ <a href="ntqstringlist.html">TQStringList</a> propoints = TQStringList::<a href="ntqstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] );
+ <a href="ntqstring.html">TQString</a> label = data.<a href="ntqstring.html#section">section</a>( FIELD_SEP, 5 );
if ( !errors ) {
element.set( value, valueColor, valuePattern, label, labelColor );
int i = 0;
- for ( TQStringList::iterator point = propoints.<a href="qvaluelist.html#begin">begin</a>();
- i &lt; Element::MAX_PROPOINTS &amp;&amp; point != propoints.<a href="qvaluelist.html#end">end</a>();
+ for ( TQStringList::iterator point = propoints.<a href="ntqvaluelist.html#begin">begin</a>();
+ i &lt; Element::MAX_PROPOINTS &amp;&amp; point != propoints.<a href="ntqvaluelist.html#end">end</a>();
++i, ++point ) {
errors = 0;
- <a href="qstringlist.html">TQStringList</a> xy = TQStringList::<a href="qstringlist.html#split">split</a>( XY_SEP, *point );
+ <a href="ntqstringlist.html">TQStringList</a> xy = TQStringList::<a href="ntqstringlist.html#split">split</a>( XY_SEP, *point );
double x = xy[0].toDouble( &amp;ok );
if ( !ok || x &lt;= 0.0 || x &gt;= 1.0 )
errors++;