summaryrefslogtreecommitdiffstats
path: root/lib/util/filetemplate.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <[email protected]>2014-03-02 20:05:33 +0100
committerSlávek Banko <[email protected]>2014-03-02 20:05:33 +0100
commit722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch)
treedb1b6b28566e5fe9accb4a688f7257673cecb080 /lib/util/filetemplate.cpp
parentafb74575caf7dd8ccb6c235b1c8d788e320c19da (diff)
downloadtdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz
tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip
Finish renaming tdevelop components
Diffstat (limited to 'lib/util/filetemplate.cpp')
-rw-r--r--lib/util/filetemplate.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/util/filetemplate.cpp b/lib/util/filetemplate.cpp
index c2454580..4d0facdf 100644
--- a/lib/util/filetemplate.cpp
+++ b/lib/util/filetemplate.cpp
@@ -27,12 +27,12 @@
#include <kstandarddirs.h>
-#include "kdevplugin.h"
-#include "kdevproject.h"
+#include "tdevplugin.h"
+#include "tdevproject.h"
#include "domutil.h"
-bool FileTemplate::exists(KDevPlugin *part, const TQString &name, Policy p)
+bool FileTemplate::exists(TDevPlugin *part, const TQString &name, Policy p)
{
//TQString fileName = (p == Default) ?
// (part->project()->projectDirectory() + "/templates/" + name) : name;
@@ -40,17 +40,17 @@ bool FileTemplate::exists(KDevPlugin *part, const TQString &name, Policy p)
return TQFile::exists( fullPathForName(part,name,p) );
}
-TQString FileTemplate::read(KDevPlugin *part, const TQString &name, Policy p)
+TQString FileTemplate::read(TDevPlugin *part, const TQString &name, Policy p)
{
- //KDevProject *project = part->project();
+ //TDevProject *project = part->project();
//TQString fileName = (p == Default) ? (project->projectDirectory() +
// "/templates/" + name) : name;
return readFile(part, fullPathForName(part, name, p) );
}
-TQString FileTemplate::readFile(KDevPlugin *part, const TQString &fileName)
+TQString FileTemplate::readFile(TDevPlugin *part, const TQString &fileName)
{
TQDomDocument &dom = *part->projectDom();
@@ -87,7 +87,7 @@ TQString FileTemplate::makeSubstitutions( TQDomDocument & dom, const TQString &
}
-bool FileTemplate::copy(KDevPlugin *part, const TQString &name,
+bool FileTemplate::copy(TDevPlugin *part, const TQString &name,
const TQString &dest, Policy p)
{
TQString text = read(part, name, p);
@@ -109,7 +109,7 @@ bool FileTemplate::copy(KDevPlugin *part, const TQString &name,
return true;
}
-TQString FileTemplate::fullPathForName(KDevPlugin *part, const TQString &name,
+TQString FileTemplate::fullPathForName(TDevPlugin *part, const TQString &name,
Policy p) {
// if Policy is not default, full path is just the name
if (p!=Default) return name;
@@ -123,6 +123,6 @@ TQString FileTemplate::fullPathForName(KDevPlugin *part, const TQString &name,
}
// next try global
- TQString globalName = ::locate("data", "kdevfilecreate/file-templates/" + name);
+ TQString globalName = ::locate("data", "tdevfilecreate/file-templates/" + name);
return globalName.isNull() ? fileName : globalName;
}