summaryrefslogtreecommitdiffstats
path: root/doc/html/tutorial2-03.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/tutorial2-03.html')
-rw-r--r--doc/html/tutorial2-03.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html
index 4a737dcb..4cdcb496 100644
--- a/doc/html/tutorial2-03.html
+++ b/doc/html/tutorial2-03.html
@@ -42,7 +42,7 @@ access for data elements.
</pre><pre> double m_value;
<a href="ntqcolor.html">TQColor</a> m_valueColor;
int m_valuePattern;
- <a href="ntqstring.html">TQString</a> m_label;
+ <a href="tqstring.html">TQString</a> m_label;
<a href="ntqcolor.html">TQColor</a> m_labelColor;
double m_propoints[2 * MAX_PROPOINTS];
</pre>
@@ -54,7 +54,7 @@ of chart has a (relative) position stored in the <tt>m_propoints</tt> array.
<pre> #include &lt;<a href="qcolor-h.html">ntqcolor.h</a>&gt;
#include &lt;<a href="qnamespace-h.html">ntqnamespace.h</a>&gt;
- #include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+ #include &lt;<a href="tqstring-h.html">tqstring.h</a>&gt;
#include &lt;<a href="tqvaluevector-h.html">tqvaluevector.h</a>&gt;
</pre>
<p> Although the <tt>Element</tt> class is a purely internal data class, it
@@ -65,7 +65,7 @@ paint color and text color in the <tt>Element</tt> class. The use of <a href="qn
<a href="ntqt.html">TQt</a> superclass which contains various
enumerations. The <tt>Element</tt> class does not derive from <a href="ntqt.html">TQt</a>, so we need to include <a href="qnamespace-h.html">ntqnamespace.h</a> to have access to
the TQt enum names. An alternative approach would have been to have
-made <tt>Element</tt> a <a href="ntqt.html">TQt</a> subclass. We include <a href="qstring-h.html">ntqstring.h</a> to make use of TQt's Unicode strings. As a convenience we
+made <tt>Element</tt> a <a href="ntqt.html">TQt</a> subclass. We include <a href="tqstring-h.html">tqstring.h</a> to make use of TQt's Unicode strings. As a convenience we
will <tt>typedef</tt> a vector container for <tt>Element</tt>s, which is why we
pull in the <a href="tqvaluevector-h.html">tqvaluevector.h</a> header.
<p> <pre> typedef TQValueVector&lt;Element&gt; ElementVector;
@@ -114,7 +114,7 @@ and dynamically resized it depending on how many chart types are
available.
<p> <pre> Element( double value = INVALID, TQColor valueColor = TQt::gray,
int valuePattern = TQt::SolidPattern,
- const <a href="ntqstring.html">TQString</a>&amp; label = <a href="ntqstring.html#TQString-null">TQString::null</a>,
+ const <a href="tqstring.html">TQString</a>&amp; label = <a href="tqstring.html#TQString-null">TQString::null</a>,
<a href="ntqcolor.html">TQColor</a> labelColor = TQt::black ) {
init( value, valueColor, valuePattern, label, labelColor );
for ( int i = 0; i &lt; MAX_PROPOINTS * 2; ++i )
@@ -167,10 +167,10 @@ filter the data using a scripting language.
<pre> #include "element.h"
- #include &lt;<a href="qstringlist-h.html">ntqstringlist.h</a>&gt;
+ #include &lt;<a href="tqstringlist-h.html">tqstringlist.h</a>&gt;
#include &lt;<a href="qtextstream-h.html">ntqtextstream.h</a>&gt;
</pre>
-<p> Our implementation of the operators requires the inclusion of <a href="qtextstream-h.html">ntqtextstream.h</a> and <a href="qstringlist-h.html">ntqstringlist.h</a>.
+<p> Our implementation of the operators requires the inclusion of <a href="qtextstream-h.html">ntqtextstream.h</a> and <a href="tqstringlist-h.html">tqstringlist.h</a>.
<p> <pre> const char FIELD_SEP = ':';
const char PROPOINT_SEP = ';';
const char XY_SEP = ',';
@@ -212,13 +212,13 @@ by a field separator. The points are written as comma separated (<tt>XY_SEP</tt>
separator. The final field is the label followed by a newline.
<p> <pre> TQTextStream &amp;operator&gt;&gt;( <a href="ntqtextstream.html">TQTextStream</a> &amp;s, Element &amp;element )
{
- <a name="x2553"></a> <a href="ntqstring.html">TQString</a> data = s.<a href="ntqtextstream.html#readLine">readLine</a>();
+ <a name="x2553"></a> <a href="tqstring.html">TQString</a> data = s.<a href="ntqtextstream.html#readLine">readLine</a>();
element.setValue( Element::INVALID );
int errors = 0;
bool ok;
- <a name="x2552"></a> <a href="ntqstringlist.html">TQStringList</a> fields = TQStringList::<a href="ntqstringlist.html#split">split</a>( FIELD_SEP, data );
+ <a name="x2552"></a> <a href="tqstringlist.html">TQStringList</a> fields = TQStringList::<a href="tqstringlist.html#split">split</a>( FIELD_SEP, data );
<a name="x2555"></a> if ( fields.<a href="tqvaluelist.html#count">count</a>() &gt;= 4 ) {
double value = fields[0].toDouble( &amp;ok );
if ( !ok )
@@ -232,8 +232,8 @@ separator. The final field is the label followed by a newline.
<a href="ntqcolor.html">TQColor</a> labelColor = TQColor( fields[3] );
if ( !labelColor.<a href="ntqcolor.html#isValid">isValid</a>() )
errors++;
- <a href="ntqstringlist.html">TQStringList</a> propoints = TQStringList::<a href="ntqstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] );
- <a name="x2551"></a> <a href="ntqstring.html">TQString</a> label = data.<a href="ntqstring.html#section">section</a>( FIELD_SEP, 5 );
+ <a href="tqstringlist.html">TQStringList</a> propoints = TQStringList::<a href="tqstringlist.html#split">split</a>( PROPOINT_SEP, fields[4] );
+ <a name="x2551"></a> <a href="tqstring.html">TQString</a> label = data.<a href="tqstring.html#section">section</a>( FIELD_SEP, 5 );
if ( !errors ) {
element.set( value, valueColor, valuePattern, label, labelColor );
@@ -242,7 +242,7 @@ separator. The final field is the label followed by a newline.
<a name="x2556"></a> i &lt; Element::MAX_PROPOINTS &amp;&amp; point != propoints.<a href="tqvaluelist.html#end">end</a>();
++i, ++point ) {
errors = 0;
- <a href="ntqstringlist.html">TQStringList</a> xy = TQStringList::<a href="ntqstringlist.html#split">split</a>( XY_SEP, *point );
+ <a href="tqstringlist.html">TQStringList</a> xy = TQStringList::<a href="tqstringlist.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++;
@@ -261,9 +261,9 @@ separator. The final field is the label followed by a newline.
}
</pre>
<p> To read an element we read one record (i.e. one line). We break the
-data into fields using <a href="ntqstringlist.html#split">TQStringList::split</a>(). Because it is possible
+data into fields using <a href="tqstringlist.html#split">TQStringList::split</a>(). Because it is possible
that a label will contain <tt>FIELD_SEP</tt> characters we use
-<a href="ntqstring.html#section">TQString::section</a>() to extract all the text from the last field to the
+<a href="tqstring.html#section">TQString::section</a>() to extract all the text from the last field to the
end of the line. If there are enough fields and the value, colors and
pattern data is valid we use <tt>Element::set()</tt> to write this data into
the element; otherwise we leave the element <tt>INVALID</tt>. We then