summaryrefslogtreecommitdiffstats
path: root/lib/util/filetemplate.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-05-25 15:37:31 +0900
commit6392f5a9dfce2bf83617d49bb7f332181ec6004e (patch)
treeab69e390f7962b7e7dda1a3a64f035c61c751cf4 /lib/util/filetemplate.cpp
parentaba2788b428dc53243407902e9ccbb20b97a69fd (diff)
downloadtdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.tar.gz
tdevelop-6392f5a9dfce2bf83617d49bb7f332181ec6004e.zip
Revert "Finish renaming tdevelop components"
This reverts commit 722ce1efbac31c61b1d4b13f7e075c9f311e3e73.
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 4d0facdf..c2454580 100644
--- a/lib/util/filetemplate.cpp
+++ b/lib/util/filetemplate.cpp
@@ -27,12 +27,12 @@
#include <kstandarddirs.h>
-#include "tdevplugin.h"
-#include "tdevproject.h"
+#include "kdevplugin.h"
+#include "kdevproject.h"
#include "domutil.h"
-bool FileTemplate::exists(TDevPlugin *part, const TQString &name, Policy p)
+bool FileTemplate::exists(KDevPlugin *part, const TQString &name, Policy p)
{
//TQString fileName = (p == Default) ?
// (part->project()->projectDirectory() + "/templates/" + name) : name;
@@ -40,17 +40,17 @@ bool FileTemplate::exists(TDevPlugin *part, const TQString &name, Policy p)
return TQFile::exists( fullPathForName(part,name,p) );
}
-TQString FileTemplate::read(TDevPlugin *part, const TQString &name, Policy p)
+TQString FileTemplate::read(KDevPlugin *part, const TQString &name, Policy p)
{
- //TDevProject *project = part->project();
+ //KDevProject *project = part->project();
//TQString fileName = (p == Default) ? (project->projectDirectory() +
// "/templates/" + name) : name;
return readFile(part, fullPathForName(part, name, p) );
}
-TQString FileTemplate::readFile(TDevPlugin *part, const TQString &fileName)
+TQString FileTemplate::readFile(KDevPlugin *part, const TQString &fileName)
{
TQDomDocument &dom = *part->projectDom();
@@ -87,7 +87,7 @@ TQString FileTemplate::makeSubstitutions( TQDomDocument & dom, const TQString &
}
-bool FileTemplate::copy(TDevPlugin *part, const TQString &name,
+bool FileTemplate::copy(KDevPlugin *part, const TQString &name,
const TQString &dest, Policy p)
{
TQString text = read(part, name, p);
@@ -109,7 +109,7 @@ bool FileTemplate::copy(TDevPlugin *part, const TQString &name,
return true;
}
-TQString FileTemplate::fullPathForName(TDevPlugin *part, const TQString &name,
+TQString FileTemplate::fullPathForName(KDevPlugin *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(TDevPlugin *part, const TQString &name,
}
// next try global
- TQString globalName = ::locate("data", "tdevfilecreate/file-templates/" + name);
+ TQString globalName = ::locate("data", "kdevfilecreate/file-templates/" + name);
return globalName.isNull() ? fileName : globalName;
}