From ea318d1431c89e647598c510c4245c6571aa5f46 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 26 Jan 2012 23:32:43 -0600 Subject: Update to latest tqt3 automated conversion --- doc/html/tagreader-with-features-example.html | 72 +++++++++++++-------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'doc/html/tagreader-with-features-example.html') diff --git a/doc/html/tagreader-with-features-example.html b/doc/html/tagreader-with-features-example.html index d98289539..9cf36b379 100644 --- a/doc/html/tagreader-with-features-example.html +++ b/doc/html/tagreader-with-features-example.html @@ -52,8 +52,8 @@ $Id: qt/structureparser.h 3.3.8 edited May 27 2003 $ #ifndef STRUCTUREPARSER_H #define STRUCTUREPARSER_H -#include <qxml.h> -#include <qptrstack.h> +#include <ntqxml.h> +#include <ntqptrstack.h> class TQListView; class TQListViewItem; @@ -62,16 +62,16 @@ class TQString; class StructureParser: public TQXmlDefaultHandler { public: - StructureParser( TQListView * ); - bool startElement( const TQString&, const TQString&, const TQString& , + StructureParser( TQListView * ); + bool startElement( const TQString&, const TQString&, const TQString& , const TQXmlAttributes& ); - bool endElement( const TQString&, const TQString&, const TQString& ); + bool endElement( const TQString&, const TQString&, const TQString& ); - void setListView( TQListView * ); + void setListView( TQListView * ); private: - TQPtrStack<TQListViewItem> stack; - TQListView * table; + TQPtrStack<TQListViewItem> stack; + TQListView * table; }; #endif @@ -85,16 +85,16 @@ $Id: qt/structureparser.cpp 3.3.8 edited May 27 2003 $ #include "structureparser.h" -#include <qstring.h> -#include <qlistview.h> +#include <ntqstring.h> +#include <ntqlistview.h> -StructureParser::StructureParser( TQListView * t ) +StructureParser::StructureParser( TQListView * t ) : TQXmlDefaultHandler() { setListView( t ); } -void StructureParser::setListView( TQListView * t ) +void StructureParser::setListView( TQListView * t ) { table = t; table->setSorting( -1 ); @@ -102,9 +102,9 @@ void StructureParser::setListView( T table->addColumn( "Namespace" ); } -bool StructureParser::startElement( const TQString& namespaceURI, - const TQString& , - const TQString& qName, +bool StructureParser::startElement( const TQString& namespaceURI, + const TQString& , + const TQString& qName, const TQXmlAttributes& attributes) { TQListViewItem * element; @@ -130,8 +130,8 @@ void StructureParser::setListView( T return TRUE; } -bool StructureParser::endElement( const TQString&, const TQString&, - const TQString& ) +bool StructureParser::endElement( const TQString&, const TQString&, + const TQString& ) { stack.pop(); return TRUE; @@ -151,31 +151,31 @@ void StructureParser::setListView( T *****************************************************************************/ #include "structureparser.h" -#include <qapplication.h> -#include <qfile.h> -#include <qxml.h> -#include <qlistview.h> -#include <qgrid.h> -#include <qmainwindow.h> -#include <qlabel.h> +#include <ntqapplication.h> +#include <ntqfile.h> +#include <ntqxml.h> +#include <ntqlistview.h> +#include <ntqgrid.h> +#include <ntqmainwindow.h> +#include <ntqlabel.h> int main( int argc, char **argv ) { - TQApplication app( argc, argv ); + TQApplication app( argc, argv ); - TQFile xmlFile( argc == 2 ? argv[1] : "fnord.xml" ); + TQFile xmlFile( argc == 2 ? argv[1] : "fnord.xml" ); TQXmlInputSource source( &xmlFile ); TQXmlSimpleReader reader; - TQGrid * container = new TQGrid( 3 ); + TQGrid * container = new TQGrid( 3 ); - TQListView * nameSpace = new TQListView( container, "table_namespace" ); + TQListView * nameSpace = new TQListView( container, "table_namespace" ); StructureParser * handler = new StructureParser( nameSpace ); reader.setContentHandler( handler ); reader.parse( source ); - TQListView * namespacePrefix = new TQListView( container, + TQListView * namespacePrefix = new TQListView( container, "table_namespace_prefix" ); handler->setListView( namespacePrefix ); reader.setFeature( "http://xml.org/sax/features/namespace-prefixes", @@ -183,37 +183,37 @@ int main( int argc, char **argv ) source.reset(); reader.parse( source ); - TQListView * prefix = new TQListView( container, "table_prefix"); + TQListView * prefix = new TQListView( container, "table_prefix"); handler->setListView( prefix ); reader.setFeature( "http://xml.org/sax/features/namespaces", FALSE ); source.reset(); reader.parse( source ); // namespace label - (void) new TQLabel( + (void) new TQLabel( "Default:\n" "http://xml.org/sax/features/namespaces: TRUE\n" "http://xml.org/sax/features/namespace-prefixes: FALSE\n", container ); // namespace prefix label - (void) new TQLabel( + (void) new TQLabel( "\n" "http://xml.org/sax/features/namespaces: TRUE\n" "http://xml.org/sax/features/namespace-prefixes: TRUE\n", container ); // prefix label - (void) new TQLabel( + (void) new TQLabel( "\n" "http://xml.org/sax/features/namespaces: FALSE\n" "http://xml.org/sax/features/namespace-prefixes: TRUE\n", container ); - app.setMainWidget( container ); - container->show(); - return app.exec(); + app.setMainWidget( container ); + container->show(); + return app.exec(); } -- cgit v1.2.3