|
Isis Developer Reference
|
Go to the documentation of this file.
16 class QXmlStreamWriter;
20 class XmlStackedHandlerReader;
54 iterator
erase(iterator pos);
55 iterator
erase(iterator begin, iterator end);
58 iterator
insert(iterator before,
Shape *
const & value);
109 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
110 const QString &qName,
const QXmlAttributes &atts);
111 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
112 const QString &qName);
115 Q_DISABLE_COPY(XmlHandler);
137 class CopyShapeDataFunctor :
public std::unary_function<Shape * const &, void *> {
140 CopyShapeDataFunctor(
const CopyShapeDataFunctor &other);
141 ~CopyShapeDataFunctor();
143 void *operator()(
Shape *
const &shapeToCopy);
145 CopyShapeDataFunctor &
operator=(
const CopyShapeDataFunctor &rhs);
void countChanged(int newCount)
QDebug operator<<(QDebug dbg, const Isis::Angle &angleToPrint)
Display an Angle for a debugging statement.
Definition: Angle.cpp:368
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
void insert(int i, Shape *const &value)
Inserts an shape into the shape list at an index.
Definition: ShapeList.cpp:209
void deleteFromDisk()
Delete the shape data from disk.
Definition: Shape.cpp:591
Shape * takeLast()
Removes and returns the last shape.
Definition: ShapeList.cpp:402
ShapeList & operator<<(const QList< Shape * > &other)
Appends a list of shapes to the end of the shape list.
Definition: ShapeList.cpp:457
File name manipulation and expansion.
Definition: FileName.h:100
virtual void pushContentHandler(XmlStackedHandler *newHandler)
Push a contentHandler and maybe continue parsing...
Definition: XmlStackedHandlerReader.cpp:55
Shape * takeFirst()
Removes and returns the first shape.
Definition: ShapeList.cpp:388
void setName(QString newName)
Set the human-readable name of this shape list.
Definition: ShapeList.cpp:534
~ShapeList()
Destructor.
Definition: ShapeList.cpp:106
void clear()
Clears the shape list.
Definition: ShapeList.cpp:157
static QString shapeDataRoot(QString projectRoot)
Appends the root directory name 'shapes' to the project .
Definition: Project.cpp:2087
Q_DECLARE_METATYPE(Isis::ShapeList *)
virtual bool startElement(const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &atts)
Definition: XmlStackedHandler.cpp:44
void push_front(Shape *const &value)
Prepends an shape to the beginning of the shape list.
Definition: ShapeList.cpp:268
ShapeList & operator+=(const QList< Shape * > &other)
Appends a list of shapes to the end of the shape list.
Definition: ShapeList.cpp:419
iterator erase(iterator pos)
Erases a single shape from the shape list.
Definition: ShapeList.cpp:175
Serial Number list generator.
Definition: SerialNumberList.h:64
Manage a stack of content handlers for reading XML files.
Definition: XmlStackedHandlerReader.h:30
ShapeList & operator=(const QList< Shape * > &rhs)
Assigns another list of shapes to the shape list.
Definition: ShapeList.cpp:494
void setPath(QString newPath)
Set the relative path (from the project root) to this shape list's folder.
Definition: ShapeList.cpp:545
Shape * takeAt(int i)
Removes the shape at an index and returns it.
Definition: ShapeList.cpp:374
void deleteFromDisk(Project *project)
Delete all of the contained Shapes from disk.
Definition: ShapeList.cpp:578
The main project for ipce.
Definition: Project.h:289
const int ReadWrite
Definition: Process.h:24
bool removeOne(Shape *const &value)
Removes the first occurance of an shape.
Definition: ShapeList.cpp:338
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
SerialNumberList serialNumberList()
Creates a SerialNumberList from the shape list.
Definition: ShapeList.cpp:115
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
void removeFirst()
Removes the shape at the front of the shape list.
Definition: ShapeList.cpp:312
QString shapeDataRoot() const
Accessor for the root directory of the shape model data.
Definition: Project.cpp:2097
void add(const QString &filename, bool def2filename=false)
Adds a new filename / serial number pair to the SerialNumberList.
Definition: SerialNumberList.cpp:121
This represents a shape in a project-based GUI interface.
Definition: Shape.h:68
void swap(QList< Shape * > &other)
Swaps the shape list with another list of shapes.
Definition: ShapeList.cpp:356
void push_back(Shape *const &value)
Appends an shape to the end of the shape list.
Definition: ShapeList.cpp:254
Internalizes a list of shapes and allows for operations on the entire list.
Definition: ShapeList.h:33
virtual bool endElement(const QString &namespaceURI, const QString &localName, const QString &qName)
Definition: XmlStackedHandler.cpp:55
Isis exception class.
Definition: IException.h:91
void removeAt(int i)
Removes the shape at an index.
Definition: ShapeList.cpp:301
void prepend(Shape *const &value)
Inserts an shape at the beginning of the shape list.
Definition: ShapeList.cpp:240
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Convert this shape list into XML format for saving/restoring capabilities.
Definition: ShapeList.cpp:615
QString name() const
Get the human-readable name of this shape list.
Definition: ShapeList.cpp:555
ShapeList(QString name, QString path, QObject *parent=NULL)
Creates an shape list from an shape list name and path (does not read Shapes).
Definition: ShapeList.cpp:35
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:118
void append(Shape *const &value)
Appends an shape to the shape list.
Definition: ShapeList.cpp:133
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Output format:
Definition: Shape.cpp:844
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
int removeAll(Shape *const &value)
Removes all occurances of an shape.
Definition: ShapeList.cpp:283
void removeLast()
Removes the shape at the end of the shape list.
Definition: ShapeList.cpp:323
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
QString path() const
Get the path to the shapes in the shape list (relative to project root).
Definition: ShapeList.cpp:566