diff options
Diffstat (limited to 'src/kile/kiledocmanager.cpp')
-rw-r--r-- | src/kile/kiledocmanager.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kile/kiledocmanager.cpp b/src/kile/kiledocmanager.cpp index b57bb7c..36fee28 100644 --- a/src/kile/kiledocmanager.cpp +++ b/src/kile/kiledocmanager.cpp @@ -274,7 +274,7 @@ KileProjectItem* Manager::itemFor(const KURL &url, KileProject *project /*=0L*/) while ( it.current() ) { KILE_DEBUG() << "looking in project " << (*it)->name() << endl; - if ((*it)->tqcontains(url)) + if ((*it)->contains(url)) { KILE_DEBUG() << "\t\tfound!" << endl; return (*it)->item(url); @@ -285,7 +285,7 @@ KileProjectItem* Manager::itemFor(const KURL &url, KileProject *project /*=0L*/) } else { - if ( project->tqcontains(url) ) + if ( project->contains(url) ) return project->item(url); } @@ -312,9 +312,9 @@ KileProjectItemList* Manager::itemsFor(Info *docinfo) const while ( it.current() ) { KILE_DEBUG() << "\tproject: " << (*it)->name() << endl; - if ((*it)->tqcontains(docinfo)) + if ((*it)->contains(docinfo)) { - KILE_DEBUG() << "\t\ttqcontains" << endl; + KILE_DEBUG() << "\t\tcontains" << endl; list->append((*it)->item(docinfo)); } ++it; @@ -337,7 +337,7 @@ KileProject* Manager::activeProject() { for (uint i=0; i < m_projects.count(); ++i) { - if (m_projects.at(i)->tqcontains(doc->url()) ) + if (m_projects.at(i)->contains(doc->url()) ) { curpr = m_projects.at(i); break; @@ -616,10 +616,10 @@ Kate::View* Manager::createNewLaTeXDocument() void Manager::replaceTemplateVariables(TQString &line) { - line=line.tqreplace("$$AUTHOR$$", KileConfig::author()); - line=line.tqreplace("$$DOCUMENTCLASSOPTIONS$$", KileConfig::documentClassOptions()); - if (!KileConfig::templateEncoding().isEmpty()) { line=line.tqreplace("$$INPUTENCODING$$", "\\usepackage["+ KileConfig::templateEncoding() +"]{inputenc}");} - else { line = line.tqreplace("$$INPUTENCODING$$","");} + line=line.replace("$$AUTHOR$$", KileConfig::author()); + line=line.replace("$$DOCUMENTCLASSOPTIONS$$", KileConfig::documentClassOptions()); + if (!KileConfig::templateEncoding().isEmpty()) { line=line.replace("$$INPUTENCODING$$", "\\usepackage["+ KileConfig::templateEncoding() +"]{inputenc}");} + else { line = line.replace("$$INPUTENCODING$$","");} } void Manager::createTemplate() @@ -775,7 +775,7 @@ void Manager::fileSaveAll(bool amAutoSaving, bool disUntitled ) { if( !fi.isWritable() ) { - if ( autosaveWarnings.tqcontains(url.path()) ) + if ( autosaveWarnings.contains(url.path()) ) { KILE_DEBUG() << "File " << url.prettyURL() << " is not writeable (again), trying next file" << endl; continue; @@ -1222,7 +1222,7 @@ void Manager::addToProject(KileProject* project, const KURL & url) const KURL realurl = symlinkFreeURL(url); TQFileInfo fi(realurl.path()); - if (project->tqcontains(realurl)) + if (project->contains(realurl)) { emit printMsg(KileTool::Info,i18n("The file %1 is already member of the project %2").tqarg(realurl.filename()).tqarg(project->name()),i18n("Add to Project")); return; @@ -1775,7 +1775,7 @@ void Manager::projectShow() TQStringList extlist = TQStringList::split(" ",m_ki->extensions()->latexDocuments() + ' ' + m_ki->extensions()->latexPackages()); for ( TQStringList::Iterator it=extlist.begin(); it!=extlist.end(); ++it ) { - if ( itempath.tqfind( (*it), -(*it).length() ) >= 0 ) + if ( itempath.find( (*it), -(*it).length() ) >= 0 ) { if ( m_ki->isOpen(item->url()) ) { @@ -1920,7 +1920,7 @@ KileProjectItem* Manager::selectProjectFileItem(const TQString &label) if ( dlg->exec() ) { if ( dlg->currentItem() >= 0 ) { TQString name = filelist[dlg->currentItem()]; - if ( map.tqcontains(name) ) + if ( map.contains(name) ) item = map[name]; else KMessageBox::error(m_ki->parentWidget(), i18n("Could not determine the selected file."),i18n( "Project Error")); @@ -1954,7 +1954,7 @@ KileProjectItemList* Manager::selectProjectFileItems(const TQString &label) if ( dlg->currentItem() >= 0 ) { selectedfiles = dlg->selected(); for ( TQStringList::Iterator it = selectedfiles.begin(); it != selectedfiles.end(); ++it ){ - if ( map.tqcontains(*it) ) + if ( map.contains(*it) ) items->append( map[(*it)] ); else KMessageBox::error(m_ki->parentWidget(), i18n("Could not determine the selected file."),i18n( "Project Error")); |