1 #ifndef ShapeDisplayProperties_H
2 #define ShapeDisplayProperties_H
34 class QXmlStreamWriter;
41 class XmlStackedHandlerReader;
106 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
118 void toggleShowLabel();
133 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
134 const QString &qName,
const QXmlAttributes &atts);
136 virtual bool characters(
const QString &ch);
138 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
139 const QString &qName);
142 Q_DISABLE_COPY(XmlHandler);
152 void setValue(
Property prop, QVariant value);
QVariant getValue(Property prop) const
Get a property's associated data.
Definition: ShapeDisplayProperties.cpp:119
This class is designed to serialize QColor in a human-readable form.
Definition: Color.h:19
The main project for cnetsuite.
Definition: Project.h:105
File name manipulation and expansion.
Definition: FileName.h:111
void supportAdded(Property)
Definition: moc_ShapeDisplayProperties.cpp:177
bool supports(Property prop)
Support for this may come later.
Definition: ShapeDisplayProperties.cpp:108
virtual ~ShapeDisplayProperties()
The destructor.
Definition: ShapeDisplayProperties.cpp:55
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
This is the GUI communication mechanism for shape objects.
Definition: ShapeDisplayProperties.h:74
static QColor randomColor()
Creates and returns a random color for the initial color of the footprint polygon.
Definition: ShapeDisplayProperties.cpp:129
void setShowLabel(bool)
Change the visibility of the display name associated with this shape.
Definition: ShapeDisplayProperties.cpp:192
True if the control net should show its display name (bool)
Definition: ShapeDisplayProperties.h:88
void setSelected(bool)
Change the selected state associated with this shape.
Definition: ShapeDisplayProperties.cpp:183
QString displayName() const
Returns the display name.
Definition: DisplayProperties.cpp:80
Definition: DisplayProperties.h:26
XML Handler that parses XMLs in a stack-oriented way.
Definition: XmlStackedHandler.h:47
void setColor(QColor newColor)
Change the color associated with this shape.
Definition: ShapeDisplayProperties.cpp:174
void addSupport(Property prop)
Convert to Pvl for project files.
Definition: ShapeDisplayProperties.cpp:95
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Saves this object to an XML file.
Definition: ShapeDisplayProperties.cpp:151
void propertyChanged(ShapeDisplayProperties *)
Definition: moc_ShapeDisplayProperties.cpp:170
Null display property for bit-flag purposes.
Definition: ShapeDisplayProperties.h:82
Definition: BoxcarCachingAlgorithm.h:29
ShapeDisplayProperties(QString displayName, QObject *parent=NULL)
ShapeDisplayProperties constructor.
Definition: ShapeDisplayProperties.cpp:24
The selection state of this control net (bool)
Definition: ShapeDisplayProperties.h:86
Property
This is a list of properties and actions that are possible.
Definition: ShapeDisplayProperties.h:80
his enables stack-based XML parsing of XML files.
Definition: XmlStackedHandlerReader.h:26