15 class QXmlStreamWriter;
19 class XmlStackedHandlerReader;
54 iterator
erase(iterator pos);
55 iterator
erase(iterator begin, iterator end);
75 ControlList &operator<<(const QList<Control *> &other);
116 class CopyControlDataFunctor :
public std::unary_function<Control * const &, void *> {
118 CopyControlDataFunctor(
const Project *project,
FileName newProjectRoot);
119 CopyControlDataFunctor(
const CopyControlDataFunctor &other);
120 ~CopyControlDataFunctor();
122 void *operator()(
Control *
const &controlToCopy);
124 CopyControlDataFunctor &
operator=(
const CopyControlDataFunctor &rhs);
146 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
147 const QString &qName,
const QXmlAttributes &atts);
148 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
149 const QString &qName);
152 Q_DISABLE_COPY(XmlHandler);
This represents an ISIS control net in a project-based GUI interface.
Definition: Control.h:57
Property
This is a list of properties and actions that are possible.
Definition: ControlDisplayProperties.h:79
ControlList(QString name, QString path, QObject *parent=NULL)
Create an control list from a control list name and path (does not read Controls).
Definition: ControlList.cpp:51
The main project for cnetsuite.
Definition: Project.h:105
~ControlList()
Destructor.
Definition: ControlList.cpp:123
iterator erase(iterator pos)
Erases a control pointer from the control list at the specified position.
Definition: ControlList.cpp:177
void insert(int i, Control *const &value)
Inserts a control pointer at the specified position in the control list.
Definition: ControlList.cpp:209
File name manipulation and expansion.
Definition: FileName.h:111
void deletingList(ControlList *list)
Definition: moc_ControlList.cpp:158
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:34
void setName(QString newName)
Set the human-readable name of this control list.
Definition: ControlList.cpp:532
void push_front(Control *const &value)
Equivalent to prepend(value)
Definition: ControlList.cpp:268
ControlList & operator<<(const QList< Control * > &other)
Appends a list of other control pointers to this control list.
Definition: ControlList.cpp:454
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
void swap(QList< Control * > &other)
Swaps this control list's control pointers with the other list of control pointers.
Definition: ControlList.cpp:356
bool removeOne(Control *const &value)
Removes the first occurence of the control pointer from the control list.
Definition: ControlList.cpp:338
void removeLast()
Removes the last control pointer from the control list.
Definition: ControlList.cpp:323
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this control list into XML format for saving/restoring capabilities.
Definition: ControlList.cpp:613
void countChanged(int newCount)
Definition: moc_ControlList.cpp:151
QString name() const
Get the human-readable name of this control list.
Definition: ControlList.cpp:553
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:47
bool allSupport(ControlDisplayProperties::Property prop)
Control * takeFirst()
Removes the first control pointer from the control list and returns it.
Definition: ControlList.cpp:388
void clear()
Clears the control list.
Definition: ControlList.cpp:159
QList< QAction * > supportedActions(Project *project=NULL)
ControlList & operator+=(const QList< Control * > &other)
Appends control pointers from the other list to this control list.
Definition: ControlList.cpp:418
void append(Control *const &value)
Appends a control pointer to the control list.
Definition: ControlList.cpp:135
void prepend(Control *const &value)
Prepends a control pointer to the control list.
Definition: ControlList.cpp:240
void push_back(Control *const &value)
Equivalent to append(value)
Definition: ControlList.cpp:254
Definition: BoxcarCachingAlgorithm.h:29
Control * takeLast()
Removes the last control pointer from the control list and returns it.
Definition: ControlList.cpp:402
void setPath(QString newPath)
Set the relative path (from the project root) to this control list's folder.
Definition: ControlList.cpp:543
Control * takeAt(int i)
Remove the control pointer at the specified index and returns it.
Definition: ControlList.cpp:374
void removeAt(int i)
Removes the control pointer at the specified index.
Definition: ControlList.cpp:301
ControlList & operator=(const QList< Control * > &rhs)
Assigns another list of control pointers to this control list.
Definition: ControlList.cpp:490
void deleteFromDisk(Project *project)
Delete all of the contained Controls from disk.
Definition: ControlList.cpp:576
his enables stack-based XML parsing of XML files.
Definition: XmlStackedHandlerReader.h:26
void removeFirst()
Removes the first control pointer from the control list.
Definition: ControlList.cpp:312
int removeAll(Control *const &value)
Removes all occurences of the control pointer in the control list.
Definition: ControlList.cpp:283
QString path() const
Get the path to these controls in the control list (relative to project root).
Definition: ControlList.cpp:564