28 #include <QXmlStreamWriter> 31 #include "XmlStackedHandler.h" 75 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
76 const QString &qName,
const QXmlAttributes &atts);
88 QString m_templateType;
void deleteFromDisk()
Delete the template from disk.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Method to read the given XML formatted attribute for a Template object into the XmlHandler.
Template * m_xmlHandlerTemplate
A pointer to the Template object to be read or written.
The main project for ipce.
void updateFileName(Project *project)
Change the file name for this template to be where it now is with the given project.
File name manipulation and expansion.
XmlHandler(Template *currentTemplate, FileName templateFolder)
Constructor for the Template object's XmlHandler.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Template object's member data to an XML stream.
QString fileName() const
Get the file name that this Template represents.
Template(QString fileName, QString templateType, QString importName, QObject *parent=0)
Create a Template from template file's name.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
QString importName() const
Get the name of the TemplateList this file was imported under.
FileName m_xmlHandlerTemplateFolderName
The name of the folder for the template xml.
XML Handler that parses XMLs in a stack-oriented way.
QString templateType() const
Get the type of template.
Namespace for ISIS/Bullet specific routines.
~Template()
Destroys Template object.
Manage a stack of content handlers for reading XML files.