From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/java/driver.h | 50 ++++++++++++++++++++++++------------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'languages/java/driver.h') diff --git a/languages/java/driver.h b/languages/java/driver.h index 66813e38..5b8c522a 100644 --- a/languages/java/driver.h +++ b/languages/java/driver.h @@ -22,10 +22,10 @@ #include "JavaAST.hpp" -#include -#include -#include -#include +#include +#include +#include +#include class JavaLexer; class JavaRecognizer; @@ -46,7 +46,7 @@ public: Problem( const Problem& source ) : m_text( source.m_text ), m_line( source.m_line ), m_column( source.m_column ), m_level( source.m_level ) {} - Problem( const QString& text, int line, int column, int level=Level_Error ) + Problem( const TQString& text, int line, int column, int level=Level_Error ) : m_text( text ), m_line( line ), m_column( column ), m_level(level) {} Problem& operator = ( const Problem& source ) @@ -63,13 +63,13 @@ public: return m_text == p.m_text && m_line == p.m_line && m_column == p.m_column && m_level == p.m_level; } - QString text() const { return m_text; } + TQString text() const { return m_text; } int line() const { return m_line; } int column() const { return m_column; } int level() const { return m_level; } private: - QString m_text; + TQString m_text; int m_line; int m_column; int m_level; @@ -81,8 +81,8 @@ public: SourceProvider() {} virtual ~SourceProvider() {} - virtual QString contents( const QString& fileName ) = 0; - virtual bool isModified( const QString& fileName ) = 0; + virtual TQString contents( const TQString& fileName ) = 0; + virtual bool isModified( const TQString& fileName ) = 0; private: SourceProvider( const SourceProvider& source ); @@ -100,34 +100,34 @@ public: virtual void reset(); - virtual void parseFile( const QString& fileName, bool onlyPreProcesss=false, bool force=false ); - virtual void fileParsed( const QString& fileName ); - virtual void remove( const QString& fileName ); + virtual void parseFile( const TQString& fileName, bool onlyPreProcesss=false, bool force=false ); + virtual void fileParsed( const TQString& fileName ); + virtual void remove( const TQString& fileName ); - virtual void addProblem( const QString& fileName, const Problem& problem ); + virtual void addProblem( const TQString& fileName, const Problem& problem ); - QString currentFileName() const { return m_currentFileName; } - RefJavaAST takeTranslationUnit( const QString& fileName ); - RefJavaAST translationUnit( const QString& fileName ) const; - QValueList problems( const QString& fileName ) const; + TQString currentFileName() const { return m_currentFileName; } + RefJavaAST takeTranslationUnit( const TQString& fileName ); + RefJavaAST translationUnit( const TQString& fileName ) const; + TQValueList problems( const TQString& fileName ) const; - QStringList includePaths() const { return m_includePaths; } - virtual void addIncludePath( const QString &path ); + TQStringList includePaths() const { return m_includePaths; } + virtual void addIncludePath( const TQString &path ); - const QMap &parsedUnits() const { return m_parsedUnits; } + const TQMap &parsedUnits() const { return m_parsedUnits; } protected: virtual void setupLexer( JavaLexer* lexer ); virtual void setupParser( JavaRecognizer* parser ); private: - QValueList& findOrInsertProblemList( const QString& fileName ); + TQValueList& findOrInsertProblemList( const TQString& fileName ); private: - QString m_currentFileName; - QMap< QString, QValueList > m_problems; - QMap< QString, RefJavaAST > m_parsedUnits; - QStringList m_includePaths; + TQString m_currentFileName; + TQMap< TQString, TQValueList > m_problems; + TQMap< TQString, RefJavaAST > m_parsedUnits; + TQStringList m_includePaths; JavaLexer *lexer; SourceProvider* m_sourceProvider; -- cgit v1.2.1