From 0cf411b09cf5d8970b873a338a69eae98d5ce5d8 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 8 Jun 2024 12:56:43 +0900 Subject: Rename text nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/tutorial2-03.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/html/tutorial2-03.html') 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 Debugging).

(Extracts from element.h.)

-

    TQTextStream &operator<<( TQTextStream&, const Element& );
-    TQTextStream &operator>>( TQTextStream&, Element& );
+
    TQTextStream &operator<<( TQTextStream&, const Element& );
+    TQTextStream &operator>>( TQTextStream&, Element& );
 

To make our Element class more self-contained we provide overloads for the << and >> operators so that Elements may be written to @@ -168,9 +168,9 @@ filter the data using a scripting language.

    #include "element.h"
 
     #include <tqstringlist.h>
-    #include <ntqtextstream.h>
+    #include <tqtextstream.h>
 
-

Our implementation of the operators requires the inclusion of ntqtextstream.h and tqstringlist.h. +

Our implementation of the operators requires the inclusion of tqtextstream.h and tqstringlist.h.

    const char FIELD_SEP = ':';
     const char PROPOINT_SEP = ';';
     const char XY_SEP = ',';
@@ -190,7 +190,7 @@ label text. For example:
  
 

There's no problem having whitespace and field separators in label text due to the way we read Element data. -

    TQTextStream &operator<<( TQTextStream &s, const Element &element )
+

    TQTextStream &operator<<( TQTextStream &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 Element data.
 

Writing elements is straight-forward. Each member is written followed by a field separator. The points are written as comma separated (XY_SEP) x, y pairs, each pair separated by the PROPOINT_SEP separator. The final field is the label followed by a newline. -

    TQTextStream &operator>>( TQTextStream &s, Element &element )
+

    TQTextStream &operator>>( TQTextStream &s, Element &element )
     {
-        TQString data = s.readLine();
+        TQString data = s.readLine();
         element.setValue( Element::INVALID );
 
         int errors = 0;
-- 
cgit v1.2.3