Isis 3.0 Developer's Reference (API) |
Home |
Adapted from ImageList. More...
#include <ControlList.h>
Inherits QObject, and QList< Control * >.
Classes | |
class | CopyControlDataFunctor |
This functor is used for copying the control nets between two projects quickly. | |
class | XmlHandler |
Signals | |
void | countChanged (int newCount) |
void | deletingList (ControlList *list) |
Public Member Functions | |
ControlList (QString name, QString path, QObject *parent=NULL) | |
Create an control list from a control list name and path (does not read Controls). | |
ControlList (QObject *parent=NULL) | |
Create a blank control list. | |
ControlList (QList< Control * >, QObject *parent=NULL) | |
Create an control list from a list of controls. | |
ControlList (Project *project, XmlStackedHandlerReader *xmlReader, QObject *parent=NULL) | |
Create an control list from XML. | |
ControlList (QStringList &) | |
Create an control list from a list of control net file names. | |
ControlList (const ControlList &) | |
Copy constructor. | |
~ControlList () | |
Destructor. | |
void | append (Control *const &value) |
void | append (const QList< Control * > &value) |
void | clear () |
iterator | erase (iterator pos) |
iterator | erase (iterator begin, iterator end) |
void | insert (int i, Control *const &value) |
iterator | insert (iterator before, Control *const &value) |
void | prepend (Control *const &value) |
void | push_back (Control *const &value) |
void | push_front (Control *const &value) |
int | removeAll (Control *const &value) |
void | removeAt (int i) |
void | removeFirst () |
void | removeLast () |
bool | removeOne (Control *const &value) |
void | swap (QList< Control * > &other) |
Control * | takeAt (int i) |
Control * | takeFirst () |
Control * | takeLast () |
ControlList & | operator+= (const QList< Control * > &other) |
ControlList & | operator+= (Control *const &other) |
ControlList & | operator<< (const QList< Control * > &other) |
ControlList & | operator<< (Control *const &other) |
ControlList & | operator= (const QList< Control * > &rhs) |
ControlList & | operator= (const ControlList &rhs) |
Assignment operator. | |
QList< QAction * > | supportedActions (Project *project=NULL) |
bool | allSupport (ControlDisplayProperties::Property prop) |
void | setName (QString newName) |
Set the human-readable name of this control list. | |
void | setPath (QString newPath) |
Set the relative path (from the project root) to this control list's folder. | |
QString | name () const |
Get the human-readable name of this control list. | |
QString | path () const |
Get the path to these controls in the control list (relative to project root). | |
void | deleteFromDisk (Project *project) |
Delete all of the contained Controls from disk (see Control::deleteFromDisk()) | |
void | save (QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const |
Convert this control list into XML format for saving/restoring capabilities. |
Adapted from ImageList.
Isis::ControlList::ControlList | ( | QString | name, |
QString | path, | ||
QObject * | parent = NULL |
||
) |
Create an control list from a control list name and path (does not read Controls).
name | The ControlList's name (i.e. import1, import2, ...) |
path | The ControlList's folder name (i.e. import1, import2, ...) |
parent | The Qt-relationship parent |
|
explicit |
Create a blank control list.
parent | The Qt-relationship parent |
Create an control list from a list of controls.
controls | The list of controls |
parent | The Qt-relationship parent |
References append().
|
explicit |
Create an control list from XML.
project | The project with the control list |
xmlReader | The XML reader currently at an <controlList> tag. |
parent | The Qt-relationship parent |
References Isis::XmlStackedHandlerReader::pushContentHandler().
|
explicit |
Create an control list from a list of control net file names.
This is slow (serial) and not recommended.
References append().
Isis::ControlList::ControlList | ( | const ControlList & | other | ) |
Copy constructor.
other | The ControlList to copy |
Isis::ControlList::~ControlList | ( | ) |
bool Isis::ControlList::allSupport | ( | ControlDisplayProperties::Property | prop | ) |
void Isis::ControlList::append | ( | Control *const & | value | ) |
References countChanged().
Referenced by append(), and ControlList().
References append(), and countChanged().
void Isis::ControlList::clear | ( | ) |
References countChanged().
|
signal |
Referenced by append(), clear(), erase(), insert(), operator+=(), operator<<(), operator=(), prepend(), push_back(), push_front(), removeAll(), removeAt(), removeFirst(), removeLast(), removeOne(), swap(), takeAt(), takeFirst(), and takeLast().
void Isis::ControlList::deleteFromDisk | ( | Project * | project | ) |
Delete all of the contained Controls from disk (see Control::deleteFromDisk())
References Isis::Project::cnetRoot(), and Isis::Control::deleteFromDisk().
Referenced by Isis::ImportControlNetWorkOrder::syncUndo().
|
signal |
Referenced by ~ControlList().
References countChanged(), and erase().
void Isis::ControlList::insert | ( | int | i, |
Control *const & | value | ||
) |
References countChanged(), and insert().
QString Isis::ControlList::name | ( | ) | const |
Get the human-readable name of this control list.
Referenced by Isis::ControlGroupTreeWidgetItem::ControlGroupTreeWidgetItem(), ControlList(), Isis::Project::controlList(), and Isis::ExportControlNetWorkOrder::execute().
ControlList & Isis::ControlList::operator+= | ( | const QList< Control * > & | other | ) |
ControlList & Isis::ControlList::operator+= | ( | Control *const & | other | ) |
References countChanged(), and operator+=().
ControlList & Isis::ControlList::operator<< | ( | const QList< Control * > & | other | ) |
ControlList & Isis::ControlList::operator<< | ( | Control *const & | other | ) |
References countChanged(), and operator<<().
ControlList & Isis::ControlList::operator= | ( | const QList< Control * > & | rhs | ) |
ControlList & Isis::ControlList::operator= | ( | const ControlList & | rhs | ) |
Assignment operator.
rhs | The right hand side of the '=' operator |
References countChanged(), and operator=().
QString Isis::ControlList::path | ( | ) | const |
Get the path to these controls in the control list (relative to project root).
This only applies to a control list from the project.
Referenced by ControlList().
void Isis::ControlList::prepend | ( | Control *const & | value | ) |
References countChanged().
void Isis::ControlList::push_back | ( | Control *const & | value | ) |
References countChanged().
void Isis::ControlList::push_front | ( | Control *const & | value | ) |
References countChanged().
int Isis::ControlList::removeAll | ( | Control *const & | value | ) |
References countChanged().
void Isis::ControlList::removeAt | ( | int | i | ) |
References countChanged().
void Isis::ControlList::removeFirst | ( | ) |
References countChanged().
void Isis::ControlList::removeLast | ( | ) |
References countChanged().
bool Isis::ControlList::removeOne | ( | Control *const & | value | ) |
References countChanged().
void Isis::ControlList::save | ( | QXmlStreamWriter & | stream, |
const Project * | project, | ||
FileName | newProjectRoot | ||
) | const |
Convert this control list into XML format for saving/restoring capabilities.
This writes:
<controlList name="..." path="...">
to the given xml stream, and creates an 'controls.xml' inside the folder with the controls. Inside the controlNetworks.xml, this writes:
<controls> ... </controls>
References _FILEINFO_, Isis::Project::cnetRoot(), Isis::FileName::dir(), Isis::IException::Io, Isis::FileName::original(), Isis::FileName::path(), Isis::ReadWrite, Isis::Control::save(), and Isis::FileName::toString().
void Isis::ControlList::setName | ( | QString | newName | ) |
Set the human-readable name of this control list.
This is really only useful for project control lists (not anonymous temporary ones).
newName | The name to give this control list |
void Isis::ControlList::setPath | ( | QString | newPath | ) |
Set the relative path (from the project root) to this control list's folder.
This is really only useful for project control lists (not anonymous temporary ones).
newPath | The path to the controls in this control list |
References countChanged().
Control * Isis::ControlList::takeAt | ( | int | i | ) |
References countChanged().
Control * Isis::ControlList::takeFirst | ( | ) |
References countChanged().
Control * Isis::ControlList::takeLast | ( | ) |
References countChanged().