|
Isis 3 Programmer Reference
|
18 #include "ControlDisplayProperties.h"
19 #include "XmlStackedHandler.h"
22 class QXmlStreamWriter;
26 class XmlStackedHandlerReader;
64 iterator
erase(iterator pos);
65 iterator
erase(iterator begin, iterator end);
101 QString
name()
const;
102 QString
path()
const;
105 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
109 void countChanged(
int newCount);
156 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
157 const QString &qName,
const QXmlAttributes &atts);
158 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
159 const QString &qName);
void setPath(QString newPath)
Set the relative path (from the project root) to this control list's folder.
ControlList & operator<<(const QList< Control * > &other)
Appends a list of other control pointers to this control list.
ControlList & operator=(const QList< Control * > &rhs)
Assigns another list of control pointers to this control list.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this control list into XML format for saving/restoring capabilities.
void setName(QString newName)
Set the human-readable name of this control list.
This is free and unencumbered software released into the public domain.
const Project * m_project
Project to copy the control list to.
File name manipulation and expansion.
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
ControlList(QString name, QString path, QObject *parent=NULL)
Create an control list from a control list name and path (does not read Controls).
~ControlList()
Destructor.
iterator erase(iterator pos)
Erases a control pointer from the control list at the specified position.
This represents an ISIS control net in a project-based GUI interface.
void removeLast()
Removes the last control pointer from the control list.
QString m_name
Name of the ControlList.
void swap(QList< Control * > &other)
Swaps this control list's control pointers with the other list of control pointers.
Manage a stack of content handlers for reading XML files.
void push_front(Control *const &value)
Equivalent to prepend(value)
QString path() const
Get the path to these controls in the control list (relative to project root).
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Handle an XML end element.
The main project for ipce.
CopyControlDataFunctor & operator=(const CopyControlDataFunctor &rhs)
CopyControlDataFunctor assignment operator.
XmlHandler(ControlList *controlList, Project *project)
Create an XML Handler (reader/writer) that can populate the ControlList class data.
~CopyControlDataFunctor()
CopyControlDataFunctor destructor.
ControlList * m_controlList
Control list to be read or written.
bool removeOne(Control *const &value)
Removes the first occurence of the control pointer from the control list.
This functor is used for copying the control nets between two projects quickly.
Project * m_project
Project that contains the control list.
ControlList & operator+=(const QList< Control * > &other)
Appends control pointers from the other list to this control list.
void removeAt(int i)
Removes the control pointer at the specified index.
Nested class used to write the ControlList object information to an XML file for the purposes of savi...
void clear()
Clears the control list.
Control * takeFirst()
Removes the first control pointer from the control list and returns it.
void prepend(Control *const &value)
Prepends a control pointer to the control list.
Control * takeAt(int i)
Remove the control pointer at the specified index and returns it.
int removeAll(Control *const &value)
Removes all occurences of the control pointer in the control list.
QString name() const
Get the human-readable name of this control list.
XML Handler that parses XMLs in a stack-oriented way.
void append(Control *const &value)
Appends a control pointer to the control list.
void deleteFromDisk(Project *project)
Delete all of the contained Controls from disk.
void removeFirst()
Removes the first control pointer from the control list.
Property
This is a list of properties and actions that are possible.
CopyControlDataFunctor(const Project *project, FileName newProjectRoot)
CopyControlDataFunctor constructor.
void * operator()(Control *const &controlToCopy)
Copies the Control from one project to another.
FileName m_newProjectRoot
The filename of the destination project's root.
Control * takeLast()
Removes the last control pointer from the control list and returns it.
QString m_path
This stores the directory name that contains the controls in this control list.
void insert(int i, Control *const &value)
Inserts a control pointer at the specified position in the control list.
void push_back(Control *const &value)
Equivalent to append(value)
This is free and unencumbered software released into the public domain.
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Handle an XML start element.
Q_DECLARE_METATYPE(Isis::PlotWindow *)
We have plot windows as QVariant data types, so here it's enabled.