filetemplate.cpp
FileTemplate class with utility methods to work with file templates.
Checks for templates in project and also for global filecreate templates.
Definition: filetemplate.h:42
static TQString read(KDevPlugin *part, const TQString &name, Policy p=Default)
Reads a template with the given name (e.g.
Definition: filetemplate.cpp:43
Utility functions to operate on DOM.
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 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:112
static TQString readEntry(const TQDomDocument &doc, const TQString &path, const TQString &defaultEntry=TQString())
Reads a string entry.
Definition: domutil.cpp:43
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:66
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:90
static bool exists(KDevPlugin *part, const TQString &name, Policy p=Default)
Definition: filetemplate.cpp:35