diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-08 12:56:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-08 12:56:43 +0900 |
commit | 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 (patch) | |
tree | 107cf55759cc3138bb1e0035b479bcd92127403a /doc/html/tutorial2-03.html | |
parent | e6077c30d14e9d662e8843c554db86c0d366d0b6 (diff) | |
download | tqt-0cf411b0.tar.gz tqt-0cf411b0.zip |
Rename text nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/tutorial2-03.html')
-rw-r--r-- | doc/html/tutorial2-03.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/tutorial2-03.html b/doc/html/tutorial2-03.html index 4cdcb4960..04cc3f1c9 100644 --- a/doc/html/tutorial2-03.html +++ b/doc/html/tutorial2-03.html @@ -153,8 +153,8 @@ index; (see <a href="debug.html">Debugging</a>). <a name="1"></a><p> (Extracts from <tt>element.h</tt>.) <p> -<pre> TQTextStream &operator<<( <a href="ntqtextstream.html">TQTextStream</a>&, const Element& ); - TQTextStream &operator>>( <a href="ntqtextstream.html">TQTextStream</a>&, Element& ); +<pre> TQTextStream &operator<<( <a href="tqtextstream.html">TQTextStream</a>&, const Element& ); + TQTextStream &operator>>( <a href="tqtextstream.html">TQTextStream</a>&, Element& ); </pre> <p> To make our <tt>Element</tt> class more self-contained we provide overloads for the << and >> operators so that <tt>Element</tt>s may be written to @@ -168,9 +168,9 @@ filter the data using a scripting language. <pre> #include "element.h" #include <<a href="tqstringlist-h.html">tqstringlist.h</a>> - #include <<a href="qtextstream-h.html">ntqtextstream.h</a>> + #include <<a href="tqtextstream-h.html">tqtextstream.h</a>> </pre> -<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> Our implementation of the operators requires the inclusion of <a href="tqtextstream-h.html">tqtextstream.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 = ','; @@ -190,7 +190,7 @@ label text. For example: <p> There's no problem having whitespace and field separators in label text due to the way we read <tt>Element</tt> data. -<p> <pre> TQTextStream &operator<<( <a href="ntqtextstream.html">TQTextStream</a> &s, const Element &element ) +<p> <pre> TQTextStream &operator<<( <a href="tqtextstream.html">TQTextStream</a> &s, const Element &element ) { s << element.value() << FIELD_SEP << element.valueColor().name() << FIELD_SEP @@ -210,9 +210,9 @@ text due to the way we read <tt>Element</tt> data. <p> Writing elements is straight-forward. Each member is written followed by a field separator. The points are written as comma separated (<tt>XY_SEP</tt>) x, y pairs, each pair separated by the <tt>PROPOINT_SEP</tt> separator. The final field is the label followed by a newline. -<p> <pre> TQTextStream &operator>>( <a href="ntqtextstream.html">TQTextStream</a> &s, Element &element ) +<p> <pre> TQTextStream &operator>>( <a href="tqtextstream.html">TQTextStream</a> &s, Element &element ) { - <a name="x2553"></a> <a href="tqstring.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="tqtextstream.html#readLine">readLine</a>(); element.setValue( Element::INVALID ); int errors = 0; |