#include <TemplateList.h>
- Author
- 2017-11-01 Christopher Combs
◆ TemplateList() [1/3]
| Isis::TemplateList::TemplateList |
( |
QString | name, |
|
|
QString | type, |
|
|
QString | path, |
|
|
QObject * | parent = NULL ) |
Create a template from a file name, type, and path.
- Parameters
-
| name | The TemplateList's name (i.e. import1, import2, ...) |
| type | The TemplateList's folder name (i.e. maps, registrations, ...) |
| path | Path to the TemplateList's folder from the template root |
| parent | The Qt-relationship parent |
References name(), path(), and type().
Referenced by TemplateList().
◆ TemplateList() [2/3]
| Isis::TemplateList::TemplateList |
( |
QObject * | parent = NULL | ) |
|
|
explicit |
Creates a blank template list.
- Parameters
-
| parent | The Qt-relationship parent. |
◆ TemplateList() [3/3]
| Isis::TemplateList::TemplateList |
( |
const TemplateList & | other | ) |
|
◆ ~TemplateList()
| Isis::TemplateList::~TemplateList |
( |
| ) |
|
◆ deleteFromDisk()
| void Isis::TemplateList::deleteFromDisk |
( |
Project * | project | ) |
|
◆ name()
| QString Isis::TemplateList::name |
( |
| ) |
const |
◆ path()
| QString Isis::TemplateList::path |
( |
| ) |
const |
◆ save()
| void Isis::TemplateList::save |
( |
QXmlStreamWriter & | stream, |
|
|
const Project * | project, |
|
|
FileName | newProjectRoot ) const |
Convert this TemplateList into XML format for saving/restoring capabilities.
This writes:
<templateList name="..." type= "..." path="...">
to the given xml stream, and creates an 'templates.xml' inside the folder with the templates. Inside the templates.xml, this writes:
<templates>
...
</templates>
- Parameters
-
- Exceptions
-
| IException::Io | "Unable Failed to create directory" |
| IException::Io | "Unable to save template information, could not be opened for writing" |
References Isis::Template::fileName(), Isis::Template::save(), and Isis::Project::templateRoot().
◆ setName()
| void Isis::TemplateList::setName |
( |
QString | newName | ) |
|
Set the human-readable name of this TemplateList.
- Parameters
-
◆ setPath()
| void Isis::TemplateList::setPath |
( |
QString | newPath | ) |
|
Set the relative path (from the project root) to this TemplateList's folder.
- Parameters
-
◆ setType()
| void Isis::TemplateList::setType |
( |
QString | newType | ) |
|
Set the type of template for of this TemplateList.
- Parameters
-
◆ type()
| QString Isis::TemplateList::type |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- /home/runner/work/ISIS3/ISIS3/isis/src/qisis/objs/TemplateList/TemplateList.h
- /home/runner/work/ISIS3/ISIS3/isis/src/qisis/objs/TemplateList/TemplateList.cpp