#include <TemplateList.h>
- Author
- 2017-11-01 Christopher Combs
◆ TemplateList() [1/4]
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().
◆ TemplateList() [2/4]
Isis::TemplateList::TemplateList |
( |
QObject * |
parent = NULL | ) |
|
|
explicit |
Creates a blank template list.
- Parameters
-
parent | The Qt-relationship parent. |
◆ TemplateList() [3/4]
◆ TemplateList() [4/4]
Isis::TemplateList::TemplateList |
( |
const TemplateList & |
other | ) |
|
Copy constructor.
- Parameters
-
◆ ~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
-
References _FILEINFO_, Isis::FileName::dir(), Isis::Template::fileName(), Isis::IException::Io, name(), Isis::FileName::original(), Isis::FileName::path(), Isis::ReadWrite, Isis::Template::save(), Isis::Project::templateRoot(), and Isis::FileName::toString().
◆ 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:
- /usgs/pkgs/isis3.9.0_docs/ISIS3/isis/src/qisis/objs/TemplateList/TemplateList.h
- /usgs/pkgs/isis3.9.0_docs/ISIS3/isis/src/qisis/objs/TemplateList/TemplateList.cpp