diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/java/driver.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/java/driver.h')
-rw-r--r-- | languages/java/driver.h | 50 |
1 files changed, 25 insertions, 25 deletions
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 <qpair.h> -#include <qvaluestack.h> -#include <qstringlist.h> -#include <qmap.h> +#include <tqpair.h> +#include <tqvaluestack.h> +#include <tqstringlist.h> +#include <tqmap.h> 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<Problem> problems( const QString& fileName ) const; + TQString currentFileName() const { return m_currentFileName; } + RefJavaAST takeTranslationUnit( const TQString& fileName ); + RefJavaAST translationUnit( const TQString& fileName ) const; + TQValueList<Problem> 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<QString, RefJavaAST> &parsedUnits() const { return m_parsedUnits; } + const TQMap<TQString, RefJavaAST> &parsedUnits() const { return m_parsedUnits; } protected: virtual void setupLexer( JavaLexer* lexer ); virtual void setupParser( JavaRecognizer* parser ); private: - QValueList<Problem>& findOrInsertProblemList( const QString& fileName ); + TQValueList<Problem>& findOrInsertProblemList( const TQString& fileName ); private: - QString m_currentFileName; - QMap< QString, QValueList<Problem> > m_problems; - QMap< QString, RefJavaAST > m_parsedUnits; - QStringList m_includePaths; + TQString m_currentFileName; + TQMap< TQString, TQValueList<Problem> > m_problems; + TQMap< TQString, RefJavaAST > m_parsedUnits; + TQStringList m_includePaths; JavaLexer *lexer; SourceProvider* m_sourceProvider; |