summaryrefslogtreecommitdiffstats
path: root/languages/java/driver.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /languages/java/driver.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-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.cpp')
-rw-r--r--languages/java/driver.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/languages/java/driver.cpp b/languages/java/driver.cpp
index ee49625d..f856fc74 100644
--- a/languages/java/driver.cpp
+++ b/languages/java/driver.cpp
@@ -23,9 +23,9 @@
#include <kdebug.h>
#include <stdlib.h>
-#include <qfile.h>
-#include <qfileinfo.h>
-#include <qdir.h>
+#include <tqfile.h>
+#include <tqfileinfo.h>
+#include <tqdir.h>
#include <string>
#include <sstream>
@@ -35,20 +35,20 @@ class DefaultSourceProvider: public SourceProvider
public:
DefaultSourceProvider() {}
- virtual QString contents( const QString& fileName )
+ virtual TQString contents( const TQString& fileName )
{
- QString source;
+ TQString source;
- QFile f( fileName );
+ TQFile f( fileName );
if( f.open(IO_ReadOnly) ){
- QTextStream s( &f );
+ TQTextStream s( &f );
source = s.read();
f.close();
}
return source;
}
- virtual bool isModified( const QString& fileName )
+ virtual bool isModified( const TQString& fileName )
{
Q_UNUSED( fileName );
return true;
@@ -96,11 +96,11 @@ void Driver::reset( )
}
}
-void Driver::remove( const QString & fileName )
+void Driver::remove( const TQString & fileName )
{
m_problems.remove( fileName );
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
if( it != m_parsedUnits.end() ){
RefJavaAST unit = *it;
m_parsedUnits.remove( it );
@@ -108,51 +108,51 @@ void Driver::remove( const QString & fileName )
}
}
-RefJavaAST Driver::takeTranslationUnit( const QString& fileName )
+RefJavaAST Driver::takeTranslationUnit( const TQString& fileName )
{
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName );
RefJavaAST unit( *it );
//m_parsedUnits.remove( it );
m_parsedUnits[ fileName] = 0;
return unit;
}
-RefJavaAST Driver::translationUnit( const QString& fileName ) const
+RefJavaAST Driver::translationUnit( const TQString& fileName ) const
{
- QMap<QString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName );
+ TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName );
return it != m_parsedUnits.end() ? *it : RefJavaAST();
}
-void Driver::addProblem( const QString & fileName, const Problem & problem )
+void Driver::addProblem( const TQString & fileName, const Problem & problem )
{
findOrInsertProblemList( fileName ).append( problem );
}
-QValueList < Problem >& Driver::findOrInsertProblemList( const QString & fileName )
+TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileName )
{
- QMap<QString, QValueList<Problem> >::Iterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.find( fileName );
if( it != m_problems.end() )
return it.data();
- QValueList<Problem> l;
+ TQValueList<Problem> l;
m_problems.insert( fileName, l );
return m_problems[ fileName ];
}
-QValueList < Problem > Driver::problems( const QString & fileName ) const
+TQValueList < Problem > Driver::problems( const TQString & fileName ) const
{
- QMap<QString, QValueList<Problem> >::ConstIterator it = m_problems.find( fileName );
+ TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.find( fileName );
if( it != m_problems.end() )
return it.data();
- return QValueList<Problem>();
+ return TQValueList<Problem>();
}
-void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force )
+void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool force )
{
- QFileInfo fileInfo( fileName );
- QString absFilePath = fileInfo.absFilePath();
+ TQFileInfo fileInfo( fileName );
+ TQString absFilePath = fileInfo.absFilePath();
- QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath );
+ TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath );
if( force && it != m_parsedUnits.end() ){
takeTranslationUnit( absFilePath );
@@ -199,7 +199,7 @@ void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force
}
- m_currentFileName = QString::null;
+ m_currentFileName = TQString::null;
lexer = 0;
fileParsed( fileName );
@@ -215,13 +215,13 @@ void Driver::setupParser( JavaRecognizer * parser )
Q_UNUSED( parser );
}
-void Driver::addIncludePath( const QString &path )
+void Driver::addIncludePath( const TQString &path )
{
if( !path.stripWhiteSpace().isEmpty() )
m_includePaths << path;
}
-void Driver::fileParsed( const QString & fileName )
+void Driver::fileParsed( const TQString & fileName )
{
Q_UNUSED( fileName );
}