diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-15 17:20:20 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2014-01-15 17:20:20 -0600 |
commit | 80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65 (patch) | |
tree | d200f3206607ae1a50c7873a80ab5ffd325d6c2a /tdefilereplace/tdefilereplacelib.cpp | |
parent | b23d738404d2fdf3445371a97fa267646b294394 (diff) | |
download | tdewebdev-80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65.tar.gz tdewebdev-80f849ebbb4bac48afd2bf50f0e8af2ffd9e4a65.zip |
Finish renaming KFileReplace->TDEFileReplace and fix related Quanta Plus internal references.
Diffstat (limited to 'tdefilereplace/tdefilereplacelib.cpp')
-rw-r--r-- | tdefilereplace/tdefilereplacelib.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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("<qt>Cannot open the file <b>%1</b> and load the string list. This file seems not to be a valid old kfr file or it is broken.</qt>").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(), |