filetemplate.h
Go to the documentation of this file.
Utilities to work with file templates in the current project.
Definition filetemplate.h:37
static TQString read(KDevPlugin *part, const TQString &name, Policy p=Default)
Reads a template with the given name (e.g.
Definition filetemplate.cpp:43
static bool copy(KDevPlugin *part, const TQString &name, const TQString &dest, Policy p=Default)
Copies a file template with the given name to the file with the name dest and - while copying - perfo...
Definition filetemplate.cpp:94
@ Default
Checks for templates in project and also for global filecreate templates.
Definition filetemplate.h:42
static TQString readFile(KDevPlugin *part, const TQString &fileName)
Reads a template with the given URL and makes variable substitutions (like $AUTHOR$ etc....
Definition filetemplate.cpp:53
static bool exists(KDevPlugin *part, const TQString &name, Policy p=Default)
Definition filetemplate.cpp:35
static TQString makeSubstitutions(TQDomDocument &dom, const TQString &text)
Makes variable substitutions on a text, based on a specified TQDomDocument describing a KDevelop proj...
Definition filetemplate.cpp:70
static TQString fullPathForName(KDevPlugin *part, const TQString &name, Policy p=Default)
Translates a template name into a full path, or suggests a full path for the template in the project ...
Definition filetemplate.cpp:116
Trinity API Reference