89 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
90 const QString &qName,
const QXmlAttributes &atts);
91 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
92 const QString &qName);
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this TemplateList into XML format for saving/restoring capabilities.
The main project for ipce.
File name manipulation and expansion.
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
void deleteFromDisk(Project *project)
Delete all of the contained Templates from disk.
XML Handler that parses XMLs in a stack-oriented way.
XmlHandler(TemplateList *templateList, Project *project)
Create an XML Handler (reader/writer) that can populate the TemplateList class data.
~TemplateList()
Destructor.
TemplateList(QString name, QString type, QString path, QObject *parent=NULL)
Create a template from a file name, type, and path.
QString name() const
Get the human-readable name of this TemplateList.
Project * m_project
Project that contains the template list.
TemplateList * m_templateList
TemplateList to be read or written.
QString type() const
Get the type of template in this TemplateList.
Namespace for ISIS/Bullet specific routines.
void setType(QString newType)
Set the type of template for of this TemplateList.
void setPath(QString newPath)
Set the relative path (from the project root) to this TemplateList's folder.
void setName(QString newName)
Set the human-readable name of this TemplateList.
Manage a stack of content handlers for reading XML files.