|
Isis Developer Reference
|
Go to the documentation of this file.
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);
81 Q_DISABLE_COPY(XmlHandler);
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this TemplateList into XML format for saving/restoring capabilities.
Definition: TemplateList.cpp:180
static QString templateRoot(QString projectRoot)
Appends the root directory name 'templates' to the project .
Definition: Project.cpp:2125
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
File name manipulation and expansion.
Definition: FileName.h:100
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
Definition: TemplateList.h:35
QString path() const
Get the path to these Templates in the TemplateList (relative to project root).
Definition: TemplateList.cpp:101
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
void deleteFromDisk()
Delete the template from disk.
Definition: Template.cpp:88
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
The main project for ipce.
Definition: Project.h:289
const int ReadWrite
Definition: Process.h:24
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Method to write this Template object's member data to an XML stream.
Definition: Template.cpp:105
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
QString fileName() const
Get the file name that this Template represents.
Definition: Template.cpp:50
void deleteFromDisk(Project *project)
Delete all of the contained Templates from disk.
Definition: TemplateList.cpp:143
~TemplateList()
Destructor.
Definition: TemplateList.cpp:71
Definition: Template.h:30
TemplateList(QString name, QString type, QString path, QObject *parent=NULL)
Create a template from a file name, type, and path.
Definition: TemplateList.cpp:26
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis exception class.
Definition: IException.h:91
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
QString name() const
Get the human-readable name of this TemplateList.
Definition: TemplateList.cpp:81
QString templateRoot() const
Accessor for the root directory of the template data.
Definition: Project.cpp:2135
QString type() const
Get the type of template in this TemplateList.
Definition: TemplateList.cpp:91
void setName(QString newName)
Change the project's name (GUI only, doesn't affect location on disk).
Definition: Project.cpp:1684
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
void setType(QString newType)
Set the type of template for of this TemplateList.
Definition: TemplateList.cpp:121
void setPath(QString newPath)
Set the relative path (from the project root) to this TemplateList's folder.
Definition: TemplateList.cpp:131
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
void setName(QString newName)
Set the human-readable name of this TemplateList.
Definition: TemplateList.cpp:111
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16