|
Isis 3 Programmer Reference
|
75 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
76 const QString &qName,
const QXmlAttributes &atts);
77 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
78 const QString &qName);
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this TemplateList into XML format for saving/restoring capabilities.
This is free and unencumbered software released into the public domain.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
File name manipulation and expansion.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
Manage a stack of content handlers for reading XML files.
The main project for ipce.
void deleteFromDisk(Project *project)
Delete all of the contained Templates from disk.
~TemplateList()
Destructor.
TemplateList(QString name, QString type, QString path, QObject *parent=NULL)
Create a template from a file name, type, and path.
TemplateList * m_templateList
TemplateList to be read or written.
QString name() const
Get the human-readable name of this TemplateList.
QString type() const
Get the type of template in this TemplateList.
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.
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.
Project * m_project
Project that contains the template list.
void setName(QString newName)
Set the human-readable name of this TemplateList.
This is free and unencumbered software released into the public domain.