From 0813b39aed2cf4c84157a22c4c9594336d93d412 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kbabel/catalogmanager/catalogmanager.cpp | 14 +++++----- kbabel/catalogmanager/catalogmanager.h | 4 +-- kbabel/catalogmanager/catalogmanagerview.cpp | 42 ++++++++++++++-------------- kbabel/catalogmanager/catalogmanagerview.h | 2 +- kbabel/catalogmanager/catmanlistitem.cpp | 2 +- kbabel/catalogmanager/findinfilesdialog.cpp | 2 +- kbabel/catalogmanager/libcvs/cvsdialog.cpp | 2 +- kbabel/catalogmanager/libcvs/cvshandler.cpp | 12 ++++---- kbabel/catalogmanager/libsvn/svndialog.cpp | 4 +-- kbabel/catalogmanager/libsvn/svnhandler.cpp | 10 +++---- kbabel/catalogmanager/validateprogress.cpp | 6 ++-- 11 files changed, 50 insertions(+), 50 deletions(-) (limited to 'kbabel/catalogmanager') diff --git a/kbabel/catalogmanager/catalogmanager.cpp b/kbabel/catalogmanager/catalogmanager.cpp index d8b5168c..906437c6 100644 --- a/kbabel/catalogmanager/catalogmanager.cpp +++ b/kbabel/catalogmanager/catalogmanager.cpp @@ -235,10 +235,10 @@ void CatalogManager::setupActions() // the edit menu action = new KAction( i18n("Fi&nd in Files..."), CTRL+Key_F, TQT_TQOBJECT(this), - TQT_SLOT(tqfind()), actionCollection(), "find_in_files"); + TQT_SLOT(find()), actionCollection(), "find_in_files"); action->setEnabled(false); action = new KAction( i18n("Re&place in Files..."), CTRL+Key_R, TQT_TQOBJECT(this), - TQT_SLOT(tqreplace()), actionCollection(), "replace_in_files"); + TQT_SLOT(replace()), actionCollection(), "replace_in_files"); action->setEnabled(false); action = new KAction( i18n("&Stop Searching"), "stop", Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(stopSearching()), actionCollection(), "stop_search"); @@ -928,7 +928,7 @@ void CatalogManager::slotHelp() kapp->invokeHelp("CATALOGMANAGER","kbabel"); } -void CatalogManager::tqfind() +void CatalogManager::find() { if( !_findDialog ) _findDialog = new FindInFilesDialog(false,this); @@ -950,8 +950,8 @@ void CatalogManager::tqfind() _findOptions.accelMarker = _project->miscSettings().accelMarker; _foundFilesList.clear(); - kdDebug(KBABEL_CATMAN) << "Calling catalogmanagerview::tqfind" << endl; - TQString url = _catalogManager->tqfind(_findOptions, _toBeSearched ); + kdDebug(KBABEL_CATMAN) << "Calling catalogmanagerview::find" << endl; + TQString url = _catalogManager->find(_findOptions, _toBeSearched ); if( _catalogManager->isStopped() ) return; if( !url.isEmpty() ) @@ -1011,7 +1011,7 @@ void CatalogManager::tqfind() } } -void CatalogManager::tqreplace() +void CatalogManager::replace() { if( !_replaceDialog ) _replaceDialog = new FindInFilesDialog(true,this); @@ -1036,7 +1036,7 @@ void CatalogManager::tqreplace() options.accelMarker = _project->miscSettings().accelMarker; _foundFilesList.clear(); - TQString url = _catalogManager->tqfind(options, _toBeSearched ); + TQString url = _catalogManager->find(options, _toBeSearched ); if( _catalogManager->isStopped() ) return; if( !url.isEmpty() ) diff --git a/kbabel/catalogmanager/catalogmanager.h b/kbabel/catalogmanager/catalogmanager.h index 89fdef13..bb4e2e58 100644 --- a/kbabel/catalogmanager/catalogmanager.h +++ b/kbabel/catalogmanager/catalogmanager.h @@ -100,8 +100,8 @@ public slots: void selectedChanged(uint actionValue); virtual void slotHelp(); - virtual void tqfind(); - virtual void tqreplace(); + virtual void find(); + virtual void replace(); virtual void stopSearching(); virtual void optionsPreferences(); virtual void optionsShowStatusbar(bool on); diff --git a/kbabel/catalogmanager/catalogmanagerview.cpp b/kbabel/catalogmanager/catalogmanagerview.cpp index 54d177b4..63f2a077 100644 --- a/kbabel/catalogmanager/catalogmanagerview.cpp +++ b/kbabel/catalogmanager/catalogmanagerview.cpp @@ -1270,7 +1270,7 @@ void CatalogManagerView::showLog() _logWindow->show(); } -TQString CatalogManagerView::tqfind( FindOptions &options, TQStringList &rest ) +TQString CatalogManagerView::find( FindOptions &options, TQStringList &rest ) { CatManListItem* i=(CatManListItem*) currentItem(); @@ -1391,8 +1391,8 @@ bool CatalogManagerView::hasMatchingWords( TQStringList &itemWords, TQStringList for( TQStringList::const_iterator it1 = searchWords.constBegin() ; it1 != searchWords.constEnd() ; ++it1 ) for( TQStringList::const_iterator it2 = itemWords.constBegin() ; it2 != itemWords.constEnd() ; ++it2 ) if( *it1 == *it2 - || (*it1).tqcontains(*it2) - || (*it2).tqcontains(*it1) ) return true; + || (*it1).contains(*it2) + || (*it2).contains(*it1) ) return true; return false; } @@ -1609,11 +1609,11 @@ void CatalogManagerView::slotDirCommand(int index) if(index>=0 && item && item->isDir()) { TQString cmd=*(_settings.dirCommands).at(index); - cmd.tqreplace("@PACKAGE@",item->name()); - cmd.tqreplace("@PODIR@",item->poFile()); - cmd.tqreplace("@POTDIR@",item->potFile()); - cmd.tqreplace("@POFILES@",current().join(" ")); - cmd.tqreplace("@MARKEDPOFILES@",marked().join(" ")); + cmd.replace("@PACKAGE@",item->name()); + cmd.replace("@PODIR@",item->poFile()); + cmd.replace("@POTDIR@",item->potFile()); + cmd.replace("@POFILES@",current().join(" ")); + cmd.replace("@MARKEDPOFILES@",marked().join(" ")); kdDebug(KBABEL_CATMAN) << cmd << endl; @@ -1641,12 +1641,12 @@ void CatalogManagerView::slotFileCommand(int index) CatManListItem* tqparent = (CatManListItem*)item->tqparent(); TQString cmd=*(_settings.fileCommands).at(index); - cmd.tqreplace("@PACKAGE@",item->name()); - cmd.tqreplace("@POFILE@",item->poFile()); - cmd.tqreplace("@POTFILE@",item->potFile()); - cmd.tqreplace("@PODIR@",tqparent->poFile()); - cmd.tqreplace("@POTDIR@",tqparent->potFile()); - cmd.tqreplace("@POEMAIL@",item->text(COL_TRANSLATOR)); + cmd.replace("@PACKAGE@",item->name()); + cmd.replace("@POFILE@",item->poFile()); + cmd.replace("@POTFILE@",item->potFile()); + cmd.replace("@PODIR@",tqparent->poFile()); + cmd.replace("@POTDIR@",tqparent->potFile()); + cmd.replace("@POEMAIL@",item->text(COL_TRANSLATOR)); kdDebug(KBABEL_CATMAN) << cmd << endl; @@ -1929,7 +1929,7 @@ bool CatalogManagerView::buildDir(const TQString& baseDir,const TQString& relDir _fileList.insert(file,item); _readInfoFileList.prepend(file); - if(_markerList.tqcontains(file)) + if(_markerList.contains(file)) { item->setMarked(true); } @@ -2027,7 +2027,7 @@ void CatalogManagerView::updateDir(TQString relDir) item = new CatManListItem(this, thisItem,poBaseDir+file+".po",potBaseDir+file+".pot",file); _fileList.insert(file,item); - if(_markerList.tqcontains(file)) + if(_markerList.contains(file)) { item->setMarked(true); } @@ -2109,7 +2109,7 @@ void CatalogManagerView::updateDir(TQString relDir) item = new CatManListItem(this, thisItem,poBaseDir+file+".po",potBaseDir+file+".pot",file); _fileList.insert(file,item); - if(_markerList.tqcontains(file)) + if(_markerList.contains(file)) { item->setMarked(true); } @@ -2207,7 +2207,7 @@ void CatalogManagerView::updateDir(TQString relDir) // if this directory has to be removed, check, if // the tqparent directory has to be removed too - const int index=relDir.tqfindRev("/",relDir.length()-2); + const int index=relDir.findRev("/",relDir.length()-2); if(index<0) { relDir="/"; @@ -2271,7 +2271,7 @@ void CatalogManagerView::directoryChanged(const TQString& dir) do { prevRelDir=relDir; - const int index=relDir.tqfindRev("/",relDir.length()-2); + const int index=relDir.findRev("/",relDir.length()-2); if(index<0) { relDir="/"; @@ -2417,7 +2417,7 @@ void CatalogManagerView::directoryDeleted(const TQString& dir) void CatalogManagerView::fileInfoRead( TQString filename ) { - if( _readInfoFileList.tqfind( filename ) != _readInfoFileList.end() ) { + if( _readInfoFileList.find( filename ) != _readInfoFileList.end() ) { emit progress( ++_readInfoCount); _readInfoFileList.remove( filename ); } @@ -3129,4 +3129,4 @@ void CatalogManagerView::toggleColumn( uint column, bool show ) } #include "catalogmanagerview.moc" -// kate: space-indent on; indent-width 4; tqreplace-tabs on; +// kate: space-indent on; indent-width 4; replace-tabs on; diff --git a/kbabel/catalogmanager/catalogmanagerview.h b/kbabel/catalogmanager/catalogmanagerview.h index 26a05d9f..8a405430 100644 --- a/kbabel/catalogmanager/catalogmanagerview.h +++ b/kbabel/catalogmanager/catalogmanagerview.h @@ -185,7 +185,7 @@ public slots: void svnInfo(); void svnInfoMarked(); - TQString tqfind(KBabel::FindOptions &options, TQStringList &rest); + TQString find(KBabel::FindOptions &options, TQStringList &rest); void showLog(); diff --git a/kbabel/catalogmanager/catmanlistitem.cpp b/kbabel/catalogmanager/catmanlistitem.cpp index 8d1496d4..aa52237f 100644 --- a/kbabel/catalogmanager/catmanlistitem.cpp +++ b/kbabel/catalogmanager/catmanlistitem.cpp @@ -804,7 +804,7 @@ TQString CatManListItem::packageDir( ) const TQString CatManListItem::name() const { - int index = _package.tqfindRev("/"); + int index = _package.findRev("/"); return _package.right(_package.length()-index-1); } diff --git a/kbabel/catalogmanager/findinfilesdialog.cpp b/kbabel/catalogmanager/findinfilesdialog.cpp index 587d7f75..5f10678b 100644 --- a/kbabel/catalogmanager/findinfilesdialog.cpp +++ b/kbabel/catalogmanager/findinfilesdialog.cpp @@ -57,7 +57,7 @@ FindInFilesDialog::FindInFilesDialog(bool forReplace, TQWidget* tqparent) _askForSave = new TQCheckBox(i18n("Save &without asking"),box); TQWhatsThis::add(box,i18n("

File Options

" - "

Here you can finetune where to tqfind:" + "

Here you can finetune where to find:" "