diff options
Diffstat (limited to 'languages/cpp/doxydoc.cpp')
-rw-r--r-- | languages/cpp/doxydoc.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/languages/cpp/doxydoc.cpp b/languages/cpp/doxydoc.cpp index bcd36faa..54343b70 100644 --- a/languages/cpp/doxydoc.cpp +++ b/languages/cpp/doxydoc.cpp @@ -11,37 +11,37 @@ #include <list> -#include <qstring.h> -#include <qstringlist.h> -#include <qdom.h> -#include <qdir.h> -#include <qfile.h> -#include <qregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqdom.h> +#include <tqdir.h> +#include <tqfile.h> +#include <tqregexp.h> -void DoxyDoc::formatType( QString& str ) +void DoxyDoc::formatType( TQString& str ) { - str.replace( QRegExp( " " ), "" ); + str.replace( TQRegExp( " " ), "" ); } -DoxyDoc::DoxyDoc( const QStringList& dir ) +DoxyDoc::DoxyDoc( const TQStringList& dir ) { for ( uint i = 0; i < dir.count(); ++i ) - m_dirs.push_back( QDir( *( dir.at( i ) ) ) ); + m_dirs.push_back( TQDir( *( dir.at( i ) ) ) ); } //crappy implementation, change later -QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& name, - const QString& tmptype, const QString& tmparguments ) +TQString DoxyDoc::functionDescription( const TQString& tmpscope, const TQString& name, + const TQString& tmptype, const TQString& tmparguments ) { - QString scope = tmpscope; + TQString scope = tmpscope; bool foundfile = false; //produce doxygen conform filenames - QString filename = "/class" + scope.replace( QRegExp( "_" ), "__" ).replace( QRegExp( "::" ), "_1_1" ) + ".xml"; + TQString filename = "/class" + scope.replace( TQRegExp( "_" ), "__" ).replace( TQRegExp( "::" ), "_1_1" ) + ".xml"; //search for file in all directories - for ( std::list<QDir>::const_iterator ci = m_dirs.begin(); !foundfile && ci != m_dirs.end(); ++ci ) + for ( std::list<TQDir>::const_iterator ci = m_dirs.begin(); !foundfile && ci != m_dirs.end(); ++ci ) { - if ( QFile::exists( ci->path() + filename ) ) + if ( TQFile::exists( ci->path() + filename ) ) { if ( m_file.name() != ci->path() + filename ) { @@ -52,7 +52,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na m_file.setName( "" ); return ""; } - QDomDocument m_doc; + TQDomDocument m_doc; m_doc.setContent( m_file.readAll() ); m_file.close(); m_list = m_doc.elementsByTagName( "memberdef" ); @@ -64,19 +64,19 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na } } if ( !foundfile ) - return QString::null; + return TQString::null; - QString type = tmptype; + TQString type = tmptype; formatType( type ); for ( uint i = 0; i < m_list.count(); ++i ) { - QDomElement elem = m_list.item( i ).toElement(); + TQDomElement elem = m_list.item( i ).toElement(); if ( elem.elementsByTagName( "name" ).item( 0 ).toElement().text() == name && elem.elementsByTagName( "type" ).item( 0 ).toElement().text() == tmptype ) { - QDomNodeList paramnodes = elem.elementsByTagName( "param" ); - QString nodearguments = "", arguments = tmparguments; + TQDomNodeList paramnodes = elem.elementsByTagName( "param" ); + TQString nodearguments = "", arguments = tmparguments; for ( unsigned int j = 0; j < paramnodes.count(); ++j ) nodearguments += paramnodes.item( j ).childNodes().item( 0 ).toElement().text() + ","; if ( nodearguments != "" ) @@ -87,17 +87,17 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na formatType( arguments ); if ( arguments == nodearguments ) { - QString brief = ""; - QDomNode briefnode = elem.elementsByTagName( "briefdescription" ).item( 0 ); + TQString brief = ""; + TQDomNode briefnode = elem.elementsByTagName( "briefdescription" ).item( 0 ); if ( briefnode.hasChildNodes() ) brief = briefnode.firstChild().toElement().text(); - QString detailstr = "", paramstr = ""; - QDomNode detail = elem.elementsByTagName( "detaileddescription" ).item( 0 ); + TQString detailstr = "", paramstr = ""; + TQDomNode detail = elem.elementsByTagName( "detaileddescription" ).item( 0 ); if ( detail.hasChildNodes() ) detail = detail.firstChild(); - QDomNode descnode = detail.firstChild(); + TQDomNode descnode = detail.firstChild(); while ( !descnode.isNull() ) { if ( descnode.nodeName() == "parameterlist" ) @@ -125,7 +125,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na } - QString description = ""; + TQString description = ""; if ( brief != "" ) description += brief + "<p>"; if ( detailstr != "" ) @@ -134,7 +134,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na description += "<b>Parameterlist:</b><p>" + paramstr; if ( description == "" ) - return QString::null; + return TQString::null; else return description; } @@ -142,7 +142,7 @@ QString DoxyDoc::functionDescription( const QString& tmpscope, const QString& na } - return QString::null; + return TQString::null; } //kate: indent-mode csands; tab-width 4; space-indent off; |