From 80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 15 Jan 2014 17:20:20 -0600 Subject: Finish renaming KFileReplace->TDEFileReplace and fix related Quanta Plus internal references. --- tdefilereplace/tdefilereplacelib.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tdefilereplace/tdefilereplacelib.cpp') diff --git a/tdefilereplace/tdefilereplacelib.cpp b/tdefilereplace/tdefilereplacelib.cpp index 558b9dfb..3b73cd40 100644 --- a/tdefilereplace/tdefilereplacelib.cpp +++ b/tdefilereplace/tdefilereplacelib.cpp @@ -48,7 +48,7 @@ const double tera = 1099511627776.0;//1024^4 .................* fileName: second path (can be "/doc/html/", or "doc/html/" or "doc/html/index.html" for example) Return values:...* Full valid path (without double "/") */ -TQString KFileReplaceLib::formatFullPath(const TQString& basePath, const TQString &fileName) +TQString TDEFileReplaceLib::formatFullPath(const TQString& basePath, const TQString &fileName) { TQString fullPath = basePath; TQString fname = fileName; @@ -70,7 +70,7 @@ TQString KFileReplaceLib::formatFullPath(const TQString& basePath, const TQStrin .................* extension: extension to add without "." (ex: "html", "kfr") Return values:...* Filename / Filepath with the extension */ -TQString KFileReplaceLib::addExtension(const TQString& fileName, const TQString& extension) +TQString TDEFileReplaceLib::addExtension(const TQString& fileName, const TQString& extension) { TQString fullExtension = "."; TQString fname = fileName; @@ -89,7 +89,7 @@ TQString KFileReplaceLib::addExtension(const TQString& fileName, const TQString& return fname; } -TQString KFileReplaceLib::formatFileSize(double size) +TQString TDEFileReplaceLib::formatFileSize(double size) { TQString stringSize; @@ -119,12 +119,12 @@ TQString KFileReplaceLib::formatFileSize(double size) return stringSize; } -void KFileReplaceLib::convertOldToNewKFRFormat(const TQString& fileName, TDEListView* stringView) +void TDEFileReplaceLib::convertOldToNewKFRFormat(const TQString& fileName, TDEListView* stringView) { //this method convert old format in new XML-based format typedef struct { - char pgm[13]; // Must be "KFileReplace" : like MZ for EXE files + char pgm[13]; // Must be "TDEFileReplace" : like MZ for EXE files int stringNumber; // Number of strings in file char reserved[64]; // Reserved for future use } KFRHeader; @@ -135,7 +135,7 @@ void KFileReplaceLib::convertOldToNewKFRFormat(const TQString& fileName, TDEList int err = fread(&head, sizeof(KFRHeader), 1, f); TQString pgm(head.pgm); - if(!f || (err != 1) || (pgm != "KFileReplace")) + if(!f || (err != 1) || (pgm != "TDEFileReplace")) { KMessageBox::error(0, i18n("Cannot open the file %1 and load the string list. This file seems not to be a valid old kfr file or it is broken.").arg(fileName)); return ; @@ -195,7 +195,7 @@ void KFileReplaceLib::convertOldToNewKFRFormat(const TQString& fileName, TDEList return ; } -bool KFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQString& fileName, RCOptions* info) +bool TDEFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQString& fileName, RCOptions* info) { TQString bkExt = info->m_backupExtension; if(fileName == ".." || fileName == "." || (!bkExt.isEmpty() && fileName.right(bkExt.length()) == bkExt)) @@ -296,7 +296,7 @@ bool KFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQStrin return true; } -void KFileReplaceLib::setIconForFileEntry(TQListViewItem* item, TQString path) +void TDEFileReplaceLib::setIconForFileEntry(TQListViewItem* item, TQString path) { TQFileInfo fi(path); TQString extension = fi.extension(), -- cgit v1.2.1