1 #ifndef TargetBodyList_H 2 #define TargetBodyList_H 13 #include "XmlStackedHandler.h" 16 class QXmlStreamWriter;
20 class XmlStackedHandlerReader;
54 iterator
erase(iterator pos);
55 iterator
erase(iterator begin, iterator end);
99 void countChanged(
int newCount);
113 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
114 const QString &qName,
const QXmlAttributes &atts);
115 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
116 const QString &qName);
TargetBodyList * m_TargetBodyList
The TargetBodyList to read into/save from.
QString m_name
This functor is used for copying the TargetBody objects between two projects quickly.
The main project for ipce.
Project * m_project
The project that contains the TargetBodies.
bool removeOne(TargetBodyQsp const &value)
Removes the first occurrence of a TargetBody from the list.
File name manipulation and expansion.
TargetBodyQsp takeAt(int i)
Removes and returns the TargetBody at a specific index.
Property
This is a list of properties and actions that are possible.
TargetBodyList & operator<<(const QList< TargetBodyQsp > &other)
Appends another TargetBodyList to the list.
TargetBodyQsp takeFirst()
Removes and returns the first TargetBody in the list.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
List for holding TargetBodies.
void removeLast()
Removes the last TargetBody from the list.
QString path() const
Get the path to these target body objects in the list (relative to project root). ...
void removeFirst()
Removes the first TargetBody from the list.
~TargetBodyList()
Create an target body list from a list of target body file names.
XmlReader for working with TargetBody XML files.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
QString m_path
This stores the directory name that contains the TargetBody objects in this list. ...
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
int removeAll(TargetBodyQsp const &value)
Removes all occurrences of a TargetBody and returns the number removed.
void removeAt(int i)
Removes the TargetBody at a specific index.
void push_front(TargetBodyQsp const &value)
Insertes a TargetBody at the front of the list.
XmlHandler(TargetBodyList *TargetBodyList, Project *project)
Change the visibility of the display name.
void append(TargetBodyQsp const &value)
Appends a TargetBody to the list.
XML Handler that parses XMLs in a stack-oriented way.
void insert(int i, TargetBodyQsp const &value)
Inserts a TargetBody at a specific index.
void setPath(QString newPath)
Set the relative path (from the project root) to this target body list's folder.
iterator erase(iterator pos)
Erases the TargetBody associated with an iterator.
void swap(QList< TargetBodyQsp > &other)
Swaps the list with another TargetBodyList.
TargetBodyList & operator+=(const QList< TargetBodyQsp > &other)
Appends another TargetBodyList to the list.
void push_back(TargetBodyQsp const &value)
Appends a TargetBody to the end of the list.
QString name() const
Get the human-readable name of this target body list.
TargetBodyQsp takeLast()
Removes and returns the last TargetBody in the list.
TargetBodyList & operator=(const QList< TargetBodyQsp > &rhs)
Assignment operator for a QList of TargetBodyQsp.
void clear()
clears the list.
Namespace for ISIS/Bullet specific routines.
TargetBodyList(QString name, QString path, QObject *parent=NULL)
Create an target body list from an target body list name and path (does not read TargetBody objects)...
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
void setName(QString newName)
Gets a list of pre-connected actions that have to do with display, such as color, alpha...
Manage a stack of content handlers for reading XML files.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Delete all of the contained TargetBody objects from disk (see TargetBody::deleteFromDisk()) ...
void prepend(TargetBodyQsp const &value)
Inserts a TargetBody at the front of the list.