diff options
Diffstat (limited to 'lib/util/filetemplate.cpp')
-rw-r--r-- | lib/util/filetemplate.cpp | 18 |
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; } |