|
Isis 3 Programmer Reference
|
1 #ifndef GuiCameraList_H
2 #define GuiCameraList_H
12 #include "WorkOrder.h"
13 #include "XmlStackedHandler.h"
16 class QXmlStreamWriter;
20 class XmlStackedHandlerReader;
56 iterator
erase(iterator pos);
57 iterator
erase(iterator begin, iterator end);
121 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
122 const QString &qName,
const QXmlAttributes &atts);
123 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
124 const QString &qName);
bool removeOne(GuiCameraQsp const &value)
Removes the first occurance of a GuiCamera from the list.
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
XmlHandler(GuiCameraList *GuiCameraList, Project *project)
Change the visibility of the display name.
This is free and unencumbered software released into the public domain.
int removeAll(GuiCameraQsp const &value)
Removes all occurances of a GuiCamera from the list.
void swap(QList< GuiCameraQsp > &other)
Swaps the list with another GuiCameraList.
iterator erase(iterator pos)
Removes the GuiCamera associated with an iterator.
File name manipulation and expansion.
void setPath(QString newPath)
Set the relative path (from the project root) to this gui camera list's folder.
void clear()
Clears the list.
GuiCameraQsp takeAt(int i)
Removes and returns the GuiCamera at a specific index.
Property
This is a list of properties and actions that are possible.
Manage a stack of content handlers for reading XML files.
void prepend(GuiCameraQsp const &value)
Inserts a GuiCamera at the beginning of the list.
The main project for ipce.
void push_front(GuiCameraQsp const &value)
Inserts a GuiCamera at the front of the list.
GuiCameraQsp takeFirst()
Removes and returns the first GuiCamera in the list.
GuiCameraList & operator<<(const QList< GuiCameraQsp > &other)
Appends another GuiVameraList to the list and returns a reference to this.
QString m_name
This functor is used for copying the GuiCamera objects between two projects quickly.
GuiCameraList & operator=(const QList< GuiCameraQsp > &rhs)
Assigns a list of GuiCameras to the list.
GuiCameraList(QString name, QString path, QObject *parent=NULL)
Create an gui camera list from a gui camera list name and path (does not read GuiCamera objects).
GuiCameraQsp takeLast()
Removes and returns the last GuiCamera in the list.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
QString path() const
Get the path to these gui camera objects in the list (relative to project root).
GuiCameraList & operator+=(const QList< GuiCameraQsp > &other)
Appends another GuiCameraList to the list and returns a reference to this.
~GuiCameraList()
Create a gui camera list from a list of gui camera file names.
void setName(QString newName)
Gets a list of pre-connected actions that have to do with display, such as color, alpha,...
void removeFirst()
Removes the first GuiCamera in the list.
void removeLast()
Removes the last GuiCamera in the list.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Delete all of the contained GuiCamera objects from disk (see GuiCamera::deleteFromDisk())
void removeAt(int i)
Removes the GuiCamera at a specific index.
XML Handler that parses XMLs in a stack-oriented way.
void countChanged(int newCount)
Emitted when the number of GuiCameras in the list changes.
QString name() const
Get the human-readable name of this gui cameray list.
void push_back(GuiCameraQsp const &value)
Inserts a GuiCamera at the end of the list.
XmlHandler used to save to xml files.
void append(GuiCameraQsp const &value)
Appends a single GuiCamera to the list.
List of GuiCameras saved as QSharedPointers.
void insert(int i, GuiCameraQsp const &value)
Inserts a GuiCamera into the list at a given index.
QString m_path
This stores the directory name that contains the GuiCamera objects in this list.
This is free and unencumbered software released into the public domain.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.