diff options
Diffstat (limited to 'languages/java/javasupportpart.cpp')
| -rw-r--r-- | languages/java/javasupportpart.cpp | 284 | 
1 files changed, 142 insertions, 142 deletions
| diff --git a/languages/java/javasupportpart.cpp b/languages/java/javasupportpart.cpp index c8122a47..62d4811f 100644 --- a/languages/java/javasupportpart.cpp +++ b/languages/java/javasupportpart.cpp @@ -26,20 +26,20 @@  #include "JavaStoreWalker.hpp"  #include "JavaAST.hpp" -#include <qheader.h> -#include <qdir.h> -#include <qdom.h> -#include <qfileinfo.h> -#include <qguardedptr.h> -#include <qpopupmenu.h> -#include <qprogressdialog.h> -#include <qstringlist.h> -#include <qtimer.h> -#include <qstatusbar.h> -#include <qprogressbar.h> -#include <qregexp.h> -#include <qlabel.h> -#include <qvbox.h> +#include <tqheader.h> +#include <tqdir.h> +#include <tqdom.h> +#include <tqfileinfo.h> +#include <tqguardedptr.h> +#include <tqpopupmenu.h> +#include <tqprogressdialog.h> +#include <tqstringlist.h> +#include <tqtimer.h> +#include <tqstatusbar.h> +#include <tqprogressbar.h> +#include <tqregexp.h> +#include <tqlabel.h> +#include <tqvbox.h>  #include <kmessagebox.h>  #include <kaction.h>  #include <kapplication.h> @@ -85,7 +85,7 @@ public:      {      } -    void fileParsed( const QString& fileName ) +    void fileParsed( const TQString& fileName )      {  	//kdDebug(9013) << "-----> file " << fileName << " parsed!" << endl;  	RefJavaAST ast = takeTranslationUnit( fileName ); @@ -93,8 +93,8 @@ public:          if( javaSupport()->problemReporter() ){  	    javaSupport()->problemReporter()->removeAllProblems( fileName ); -	    QValueList<Problem> pl = problems( fileName ); -	    QValueList<Problem>::ConstIterator it = pl.begin(); +	    TQValueList<Problem> pl = problems( fileName ); +	    TQValueList<Problem>::ConstIterator it = pl.begin();  	    while( it != pl.end() ){  	        const Problem& p = *it++;  	        javaSupport()->problemReporter()->reportProblem( fileName, p ); @@ -118,7 +118,7 @@ public:      }  }; -JavaSupportPart::JavaSupportPart(QObject *parent, const char *name, const QStringList &/*args*/) +JavaSupportPart::JavaSupportPart(TQObject *parent, const char *name, const TQStringList &/*args*/)      : KDevLanguageSupport(JavaSupportFactory::info(), parent, name ? name : "KDevJavaSupport"),        m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ),        m_activeViewCursor( 0 ), m_projectClosed( true ), m_valid( false ) @@ -135,37 +135,37 @@ JavaSupportPart::JavaSupportPart(QObject *parent, const char *name, const QStrin      m_backgroundParser = new BackgroundParser( this, &m_eventConsumed );      m_backgroundParser->start(); -    connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) ); -    connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) ); -    connect( partController(), SIGNAL(savedFile(const KURL&)), -             this, SLOT(savedFile(const KURL&)) ); -    connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), -             this, SLOT(contextMenu(QPopupMenu *, const Context *)) ); -    connect( partController(), SIGNAL(activePartChanged(KParts::Part*)), -             this, SLOT(activePartChanged(KParts::Part*))); -    connect( partController(), SIGNAL(partRemoved(KParts::Part*)), -             this, SLOT(partRemoved(KParts::Part*))); +    connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) ); +    connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) ); +    connect( partController(), TQT_SIGNAL(savedFile(const KURL&)), +             this, TQT_SLOT(savedFile(const KURL&)) ); +    connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), +             this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) ); +    connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)), +             this, TQT_SLOT(activePartChanged(KParts::Part*))); +    connect( partController(), TQT_SIGNAL(partRemoved(KParts::Part*)), +             this, TQT_SLOT(partRemoved(KParts::Part*)));      m_problemReporter = new ProblemReporter( this, 0, "problemReporterWidget" );      m_problemReporter->setIcon( SmallIcon("info") );      mainWindow( )->embedOutputView( m_problemReporter, i18n("Problems"), i18n("Problem reporter")); -    connect( core(), SIGNAL(configWidget(KDialogBase*)), -             m_problemReporter, SLOT(configWidget(KDialogBase*)) ); -    connect( core(), SIGNAL(configWidget(KDialogBase*)), -             this, SLOT(configWidget(KDialogBase*)) ); +    connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)), +             m_problemReporter, TQT_SLOT(configWidget(KDialogBase*)) ); +    connect( core(), TQT_SIGNAL(configWidget(KDialogBase*)), +             this, TQT_SLOT(configWidget(KDialogBase*)) );      KAction *action;      action = new KAction(i18n("New Class..."), "classnew", 0, -                         this, SLOT(slotNewClass()), +                         this, TQT_SLOT(slotNewClass()),                           actionCollection(), "project_newclass");      action->setToolTip( i18n("Generate a new class") );      action->setWhatsThis( i18n("<b>New Class</b>Generates a new class.<p>") );      // daniel -    connect( core( ), SIGNAL( projectConfigWidget( KDialogBase* ) ), this, -             SLOT( projectConfigWidget( KDialogBase* ) ) ); +    connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this, +             TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );      new KDevJavaSupportIface( this );      //(void) dcopClient(); @@ -186,7 +186,7 @@ JavaSupportPart::~JavaSupportPart()      codeRepository()->setMainCatalog( 0 ); -    QPtrListIterator<Catalog> it( m_catalogList ); +    TQPtrListIterator<Catalog> it( m_catalogList );      while( Catalog* catalog = it.current() ){          ++it;          codeRepository()->unregisterCatalog( catalog ); @@ -198,20 +198,20 @@ JavaSupportPart::~JavaSupportPart()      m_problemReporter = 0;  } -void JavaSupportPart::customEvent( QCustomEvent* ev ) +void JavaSupportPart::customEvent( TQCustomEvent* ev )  {      //kdDebug(9013) << "JavaSupportPart::customEvent()" << endl;      if( ev->type() == int(Event_FileParsed) ){  	FileParsedEvent* event = (FileParsedEvent*) ev; -	QString fileName = event->fileName(); +	TQString fileName = event->fileName();          if( m_problemReporter ){  	    m_problemReporter->removeAllProblems( fileName );  	    bool hasErrors = false; -	    QValueList<Problem> problems = event->problems(); -	    QValueList<Problem>::ConstIterator it = problems.begin(); +	    TQValueList<Problem> problems = event->problems(); +	    TQValueList<Problem>::ConstIterator it = problems.begin();  	    while( it != problems.end() ){  	        const Problem& p = *it++;  		if( p.level() == Problem::Level_Error ) @@ -267,12 +267,12 @@ void JavaSupportPart::activePartChanged(KParts::Part *part)      m_activeSelection = dynamic_cast<KTextEditor::SelectionInterface*>( part );      m_activeViewCursor = part ? dynamic_cast<KTextEditor::ViewCursorInterface*>( m_activeView ) : 0; -    m_activeFileName = QString::null; +    m_activeFileName = TQString::null;      if (m_activeDocument) {  	m_activeFileName = URLUtil::canonicalPath( m_activeDocument->url().path() ); -        QFileInfo fi( m_activeFileName ); -        QString ext = fi.extension(); +        TQFileInfo fi( m_activeFileName ); +        TQString ext = fi.extension();          if (fileExtensions().contains(ext))              enabled = true;      } @@ -288,8 +288,8 @@ void JavaSupportPart::activePartChanged(KParts::Part *part)      if( !textHintIface )  	return; -    connect( view, SIGNAL(needTextHint(int,int,QString&)), -	     this, SLOT(slotNeedTextHint(int,int,QString&)) ); +    connect( view, TQT_SIGNAL(needTextHint(int,int,TQString&)), +	     this, TQT_SLOT(slotNeedTextHint(int,int,TQString&)) );      textHintIface->enableTextHints( 1000 );  #endif @@ -302,20 +302,20 @@ void JavaSupportPart::projectOpened( )      m_projectDirectory = URLUtil::canonicalPath( project()->projectDirectory() ); -    connect( project( ), SIGNAL( addedFilesToProject( const QStringList & ) ), -             this, SLOT( addedFilesToProject( const QStringList & ) ) ); -    connect( project( ), SIGNAL( removedFilesFromProject( const QStringList &) ), -             this, SLOT( removedFilesFromProject( const QStringList & ) ) ); -    connect( project( ), SIGNAL( changedFilesInProject( const QStringList & ) ), -             this, SLOT( changedFilesInProject( const QStringList & ) ) ); -    connect( project(), SIGNAL(projectCompiled()), -	     this, SLOT(slotProjectCompiled()) ); +    connect( project( ), TQT_SIGNAL( addedFilesToProject( const TQStringList & ) ), +             this, TQT_SLOT( addedFilesToProject( const TQStringList & ) ) ); +    connect( project( ), TQT_SIGNAL( removedFilesFromProject( const TQStringList &) ), +             this, TQT_SLOT( removedFilesFromProject( const TQStringList & ) ) ); +    connect( project( ), TQT_SIGNAL( changedFilesInProject( const TQStringList & ) ), +             this, TQT_SLOT( changedFilesInProject( const TQStringList & ) ) ); +    connect( project(), TQT_SIGNAL(projectCompiled()), +	     this, TQT_SLOT(slotProjectCompiled()) );      m_timestamp.clear();      m_projectClosed = false; -    QTimer::singleShot( 500, this, SLOT( initialParse( ) ) ); +    TQTimer::singleShot( 500, this, TQT_SLOT( initialParse( ) ) );  } @@ -331,7 +331,7 @@ void JavaSupportPart::projectClosed( )      m_projectClosed = true;  } -void JavaSupportPart::contextMenu(QPopupMenu */*popup*/, const Context *context) +void JavaSupportPart::contextMenu(TQPopupMenu */*popup*/, const Context *context)  {      m_activeClass = 0;      m_activeFunction = 0; @@ -350,37 +350,37 @@ void JavaSupportPart::contextMenu(QPopupMenu */*popup*/, const Context *context)      }  } -void JavaSupportPart::addedFilesToProject(const QStringList &fileList) +void JavaSupportPart::addedFilesToProject(const TQStringList &fileList)  { -    QStringList files = fileList; +    TQStringList files = fileList; -    for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it ) +    for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )      { -	QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + (*it) ); +	TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + (*it) );  	maybeParse( path );  	emit addedSourceInfo( path );      }  } -void JavaSupportPart::removedFilesFromProject(const QStringList &fileList) +void JavaSupportPart::removedFilesFromProject(const TQStringList &fileList)  { -    for ( QStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it ) +    for ( TQStringList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )      { -	QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it ); +	TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );  	removeWithReferences( path );  	m_backgroundParser->removeFile( path );      }  } -void JavaSupportPart::changedFilesInProject( const QStringList & fileList ) +void JavaSupportPart::changedFilesInProject( const TQStringList & fileList )  { -    QStringList files = fileList; +    TQStringList files = fileList; -    for ( QStringList::ConstIterator it = files.begin(); it != files.end(); ++it ) +    for ( TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it )      { -	QString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it ); +	TQString path = URLUtil::canonicalPath( m_projectDirectory + "/" + *it );  	maybeParse( path );  	emit addedSourceInfo( path ); @@ -394,7 +394,7 @@ void JavaSupportPart::savedFile(const KURL &fileName)  #if 0  // not needed anymore      kdDebug(9013) << "savedFile(): " << fileName.mid ( m_projectDirectory.length() + 1 ) << endl; -    QStringList projectFileList = project()->allFiles(); +    TQStringList projectFileList = project()->allFiles();      if (projectFileList.contains(fileName.mid ( m_projectDirectory.length() + 1 ))) {  	maybeParse( fileName );  	emit addedSourceInfo( fileName ); @@ -402,13 +402,13 @@ void JavaSupportPart::savedFile(const KURL &fileName)  #endif  } -QString JavaSupportPart::findSourceFile() +TQString JavaSupportPart::findSourceFile()  { -    QFileInfo fi( m_activeFileName ); -    QString path = fi.filePath(); -    QString ext = fi.extension(); -    QString base = path.left( path.length() - ext.length() ); -    QStringList candidates; +    TQFileInfo fi( m_activeFileName ); +    TQString path = fi.filePath(); +    TQString ext = fi.extension(); +    TQString base = path.left( path.length() - ext.length() ); +    TQStringList candidates;      if (ext == "h" || ext == "H" || ext == "hh" || ext == "hxx" || ext == "hpp" || ext == "tlh") {          candidates << (base + "c"); @@ -423,10 +423,10 @@ QString JavaSupportPart::findSourceFile()  	candidates << (base + "inl");      } -    QStringList::ConstIterator it; +    TQStringList::ConstIterator it;      for (it = candidates.begin(); it != candidates.end(); ++it) {          kdDebug(9013) << "Trying " << (*it) << endl; -        if (QFileInfo(*it).exists()) { +        if (TQFileInfo(*it).exists()) {              return *it;          }      } @@ -439,19 +439,19 @@ KDevLanguageSupport::Features JavaSupportPart::features()      return Features( Classes | Functions | Variables );  } -QString JavaSupportPart::formatClassName(const QString &name) +TQString JavaSupportPart::formatClassName(const TQString &name)  {      return name;  } -QString JavaSupportPart::unformatClassName(const QString &name) +TQString JavaSupportPart::unformatClassName(const TQString &name)  {      return name;  } -QStringList JavaSupportPart::fileExtensions() const +TQStringList JavaSupportPart::fileExtensions() const  { -    return QStringList::split(",", "java"); +    return TQStringList::split(",", "java");  }  void JavaSupportPart::slotNewClass() @@ -482,8 +482,8 @@ void JavaSupportPart::initialParse( )  }  #if QT_VERSION < 0x030100 -// Taken from qt-3.2/tools/qdatetime.java/QDateTime::toTime_t() and modified for normal function -uint toTime_t(QDateTime t) +// Taken from qt-3.2/tools/qdatetime.java/TQDateTime::toTime_t() and modified for normal function +uint toTime_t(TQDateTime t)  {      tm brokenDown;      brokenDown.tm_sec = t.time().second(); @@ -503,7 +503,7 @@ uint toTime_t(QDateTime t)  bool  JavaSupportPart::parseProject( )  { -    //QLabel* label = new QLabel( "", mainWindow( )->statusBar( ) ); +    //TQLabel* label = new TQLabel( "", mainWindow( )->statusBar( ) );      //label->setMinimumWidth( 600 );      //mainWindow( )->statusBar( )->addWidget( label );      //label->show( ); @@ -513,30 +513,30 @@ JavaSupportPart::parseProject( )      kapp->processEvents( );      kapp->setOverrideCursor( waitCursor ); -    QStringList files = modifiedFileList(); +    TQStringList files = modifiedFileList(); -    QProgressBar* bar = new QProgressBar( files.count( ), mainWindow( )->statusBar( ) ); +    TQProgressBar* bar = new TQProgressBar( files.count( ), mainWindow( )->statusBar( ) );      bar->setMinimumWidth( 120 );      bar->setCenterIndicator( true );      mainWindow( )->statusBar( )->addWidget( bar );      bar->show( ); -    QDir d( m_projectDirectory ); +    TQDir d( m_projectDirectory ); -    QDataStream stream; -    QMap< QString, QPair<uint, uint> > pcs; +    TQDataStream stream; +    TQMap< TQString, QPair<uint, uint> > pcs; -    if( QFileInfo( project()->projectDirectory() + "/" + +    if( TQFileInfo( project()->projectDirectory() + "/" +  			    project()->projectName().lower() + ".kdevelop.pcs" ).exists() )      {          d.rename(project()->projectName().lower() + ".kdevelop.pcs",  			project()->projectName() + ".kdevelop.pcs");      } -    QFile f(project()->projectDirectory() + "/" + project()->projectName() + ".kdevelop.pcs"); +    TQFile f(project()->projectDirectory() + "/" + project()->projectName() + ".kdevelop.pcs");      if( f.open(IO_ReadOnly) ){  	stream.setDevice( &f ); -	QString sig; +	TQString sig;  	int pcs_version = 0;  	stream >> sig >> pcs_version;  	if( sig == "PCS" && pcs_version == KDEV_PCS_VERSION ){ @@ -545,7 +545,7 @@ JavaSupportPart::parseProject( )  	    stream >> numFiles;  	    for( int i=0; i<numFiles; ++i ){ -		QString fn; +		TQString fn;  		uint ts;  		uint offset; @@ -556,12 +556,12 @@ JavaSupportPart::parseProject( )      }      int n = 0; -    for( QStringList::Iterator it = files.begin( ); it != files.end( ); ++it ) { +    for( TQStringList::Iterator it = files.begin( ); it != files.end( ); ++it ) {          bar->setProgress( n++ ); -	QFileInfo fileInfo( d, *it ); +	TQFileInfo fileInfo( d, *it );          if( fileInfo.exists() && fileInfo.isFile() && fileInfo.isReadable() ){ -            QString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() ); +            TQString absFilePath = URLUtil::canonicalPath( fileInfo.absFilePath() );  	    kdDebug(9013) << "parse file: " << absFilePath << endl;  	    if( (n%5) == 0 ){ @@ -574,7 +574,7 @@ JavaSupportPart::parseProject( )  	    }  	    if( isValidSource(absFilePath) ){ -		QDateTime t = fileInfo.lastModified(); +		TQDateTime t = fileInfo.lastModified();  		if( m_timestamp.contains(absFilePath) && m_timestamp[absFilePath] == t )  		    continue; @@ -616,21 +616,21 @@ JavaSupportPart::parseProject( )      return true;  } -void JavaSupportPart::maybeParse( const QString& fileName ) +void JavaSupportPart::maybeParse( const TQString& fileName )  {      if( !isValidSource(fileName) )          return; -    QFileInfo fileInfo( fileName ); -    QString path = URLUtil::canonicalPath( fileName ); -    QDateTime t = fileInfo.lastModified(); +    TQFileInfo fileInfo( fileName ); +    TQString path = URLUtil::canonicalPath( fileName ); +    TQDateTime t = fileInfo.lastModified();      if( !fileInfo.exists() ){  	removeWithReferences( path );  	return;      } -    QMap<QString, QDateTime>::Iterator it = m_timestamp.find( path ); +    TQMap<TQString, TQDateTime>::Iterator it = m_timestamp.find( path );      if( it != m_timestamp.end() && *it == t ){  	return;      } @@ -639,19 +639,19 @@ void JavaSupportPart::maybeParse( const QString& fileName )      m_driver->parseFile( path );  } -void JavaSupportPart::slotNeedTextHint( int /*line*/, int /*column*/, QString& /*textHint*/ ) +void JavaSupportPart::slotNeedTextHint( int /*line*/, int /*column*/, TQString& /*textHint*/ )  {  } -QStringList JavaSupportPart::subclassWidget(const QString& /*formName*/) +TQStringList JavaSupportPart::subclassWidget(const TQString& /*formName*/)  { -    QStringList newFileNames; +    TQStringList newFileNames;      return newFileNames;  } -QStringList JavaSupportPart::updateWidget(const QString& /*formName*/, const QString& /*fileName*/) +TQStringList JavaSupportPart::updateWidget(const TQString& /*formName*/, const TQString& /*fileName*/)  { -    QStringList dummy; +    TQStringList dummy;      return dummy;  } @@ -661,11 +661,11 @@ void JavaSupportPart::partRemoved( KParts::Part* part )      if( KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part ) ){ -	QString fileName = doc->url().path(); +	TQString fileName = doc->url().path();  	if( fileName.isEmpty() )  	    return; -	QString canonicalFileName = URLUtil::canonicalPath( fileName ); +	TQString canonicalFileName = URLUtil::canonicalPath( fileName );  	m_backgroundParser->removeFile( canonicalFileName );  	m_backgroundParser->addFile( canonicalFileName, true );      } @@ -677,24 +677,24 @@ void JavaSupportPart::slotProjectCompiled()      parseProject();  } -QStringList JavaSupportPart::modifiedFileList() +TQStringList JavaSupportPart::modifiedFileList()  { -    QStringList lst; +    TQStringList lst; -    QStringList fileList = project()->allFiles(); -    QStringList::Iterator it = fileList.begin(); +    TQStringList fileList = project()->allFiles(); +    TQStringList::Iterator it = fileList.begin();      while( it != fileList.end() ){ -	QString fileName = *it; +	TQString fileName = *it;  	++it; -	QFileInfo fileInfo( m_projectDirectory, fileName ); +	TQFileInfo fileInfo( m_projectDirectory, fileName );  	if( !fileExtensions().contains(fileInfo.extension()) )  	    continue; -	QDateTime t = fileInfo.lastModified(); -	QString path = URLUtil::canonicalPath( fileInfo.absFilePath() ); -	QMap<QString, QDateTime>::Iterator dictIt = m_timestamp.find( path ); +	TQDateTime t = fileInfo.lastModified(); +	TQString path = URLUtil::canonicalPath( fileInfo.absFilePath() ); +	TQMap<TQString, TQDateTime>::Iterator dictIt = m_timestamp.find( path );  	if( fileInfo.exists() && dictIt != m_timestamp.end() && *dictIt == t )  	    continue; @@ -709,8 +709,8 @@ KTextEditor::Document * JavaSupportPart::findDocument( const KURL & url )      if( !partController()->parts() )          return 0; -    QPtrList<KParts::Part> parts( *partController()->parts() ); -    QPtrListIterator<KParts::Part> it( parts ); +    TQPtrList<KParts::Part> parts( *partController()->parts() ); +    TQPtrListIterator<KParts::Part> it( parts );      while( KParts::Part* part = it.current() ){          KTextEditor::Document* doc = dynamic_cast<KTextEditor::Document*>( part );  	if( doc && doc->url() == url ) @@ -725,19 +725,19 @@ void JavaSupportPart::setupCatalog( )  {      kdDebug(9013) << "JavaSupportPart::setupCatalog()" << endl; -    QStringList indexList = QStringList() << "kind" << "name" << "scope" << "fileName"; +    TQStringList indexList = TQStringList() << "kind" << "name" << "scope" << "fileName";      KStandardDirs *dirs = JavaSupportFactory::instance()->dirs(); -    QStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true ); -    QStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true ); +    TQStringList pcsList = dirs->findAllResources( "pcs", "*.db", false, true ); +    TQStringList pcsIdxList = dirs->findAllResources( "pcs", "*.idx", false, true );      if( pcsList.size() && pcsVersion() < KDEV_DB_VERSION ){ -        QStringList l = pcsList + pcsIdxList; +        TQStringList l = pcsList + pcsIdxList;          int rtn = KMessageBox::questionYesNoList( 0, i18n("Persistent class store will be disabled: you have a wrong version of pcs installed.\nRemove old pcs files?"), l, i18n("Java Support"), KStdGuiItem::remove(), i18n("Keep Them") );          if( rtn == KMessageBox::Yes ){ -            QStringList::Iterator it = l.begin(); +            TQStringList::Iterator it = l.begin();              while( it != l.end() ){ -                QFile::remove( *it ); +                TQFile::remove( *it );                  ++it;              }              // @todo regenerate the pcs list @@ -747,13 +747,13 @@ void JavaSupportPart::setupCatalog( )          }      } -    QStringList::Iterator it = pcsList.begin(); +    TQStringList::Iterator it = pcsList.begin();      while( it != pcsList.end() ){          Catalog* catalog = new Catalog();          catalog->open( *it );          ++it; -        for( QStringList::Iterator idxIt=indexList.begin(); idxIt!=indexList.end(); ++idxIt ) +        for( TQStringList::Iterator idxIt=indexList.begin(); idxIt!=indexList.end(); ++idxIt )              catalog->addIndex( (*idxIt).utf8() );          m_catalogList.append( catalog ); @@ -790,12 +790,12 @@ void JavaSupportPart::setPcsVersion( int version )      config->sync();  } -QString JavaSupportPart::formatTag( const Tag & /*inputTag*/ ) +TQString JavaSupportPart::formatTag( const Tag & /*inputTag*/ )  { -    return QString::null; +    return TQString::null;  } -void JavaSupportPart::removeWithReferences( const QString & fileName ) +void JavaSupportPart::removeWithReferences( const TQString & fileName )  {      kdDebug(9013) << "remove with references: " << fileName << endl;      m_timestamp.remove( fileName ); @@ -807,19 +807,19 @@ void JavaSupportPart::removeWithReferences( const QString & fileName )      codeModel()->removeFile( codeModel()->fileByName(fileName) );  } -bool JavaSupportPart::isValidSource( const QString& fileName ) const +bool JavaSupportPart::isValidSource( const TQString& fileName ) const  { -    QFileInfo fileInfo( fileName ); -    return fileExtensions().contains( fileInfo.extension() ) && !QFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore"); +    TQFileInfo fileInfo( fileName ); +    return fileExtensions().contains( fileInfo.extension() ) && !TQFile::exists(fileInfo.dirPath(true) + "/.kdev_ignore");  } -QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription ) +TQString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortDescription )  {      if (item->isFunction())      {          const FunctionModel *model = static_cast<const FunctionModel*>(item); -        QString function; -        QString args; +        TQString function; +        TQString args;          ArgumentList argumentList = model->argumentList();          for (ArgumentList::const_iterator it = argumentList.begin(); it != argumentList.end(); ++it)          { @@ -830,7 +830,7 @@ QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortD              function += model->resultType() + " ";  	function += model->name() + "(" + args + ")" + -            (model->isAbstract() ? QString(" = 0") : QString("") ); +            (model->isAbstract() ? TQString(" = 0") : TQString("") );          return function;      } @@ -844,12 +844,12 @@ QString JavaSupportPart::formatModelItem( const CodeModelItem *item, bool shortD      else if (item->isArgument())      {          const ArgumentModel *model = static_cast<const ArgumentModel*>(item); -	QString arg; +	TQString arg;  	if( !shortDescription )  	    arg += model->type() + " ";  	arg += model->name();  	if( !shortDescription ) -	    arg += model->defaultValue().isEmpty() ? QString("") : QString(" = ") + model->defaultValue(); +	    arg += model->defaultValue().isEmpty() ? TQString("") : TQString(" = ") + model->defaultValue();  	return arg.stripWhiteSpace();      }      else @@ -868,15 +868,15 @@ void JavaSupportPart::saveProjectSourceInfo( )      if( !project() || fileList.isEmpty() )  	return; -    QFile f( project()->projectDirectory() + "/" + +    TQFile f( project()->projectDirectory() + "/" +  		    project()->projectName() + ".kdevelop.pcs" );      if( !f.open( IO_WriteOnly ) )  	return; -    QDataStream stream( &f ); -    QMap<QString, uint> offsets; +    TQDataStream stream( &f ); +    TQMap<TQString, uint> offsets; -    QString pcs( "PCS" ); +    TQString pcs( "PCS" );      stream << pcs << KDEV_PCS_VERSION;      stream << int( fileList.size() ); | 
