1 #ifndef ControlDisplayProperties_H 2 #define ControlDisplayProperties_H 30 #include "DisplayProperties.h" 31 #include "XmlStackedHandler.h" 34 class QXmlStreamWriter;
41 class XmlStackedHandlerReader;
105 void save(QXmlStreamWriter &stream,
const Project *project,
FileName newProjectRoot)
const;
129 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
130 const QString &qName,
const QXmlAttributes &atts);
132 virtual bool characters(
const QString &ch);
134 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
135 const QString &qName);
void setSelected(bool)
Change the selected state associated with this cube.
ControlDisplayProperties(QString displayName, QObject *parent=NULL)
ControlDisplayProperties constructor.
Property
This is a list of properties and actions that are possible.
This class is designed to serialize QColor in a human-readable form.
The main project for ipce.
File name manipulation and expansion.
QMap< int, QVariant > * m_propertyValues
This is a map from Property to value – the reason I use an int is so Qt knows how to serialize this ...
void addSupport(Property prop)
Call this with every property you support, otherwise they will not communicate properly between widge...
QString displayName() const
Returns the display name.
Q_DECLARE_METATYPE(Isis::Cube *)
This allows Cube *'s to be stored in a QVariant.
static QColor randomColor()
Creates and returns a random color for the intial color of the footprint polygon. ...
True if the control net should show its display name (bool)
bool supports(Property prop)
Support may come later, please make sure you are connected to the supportAdded signal.
This is the GUI communication mechanism for cubes.
void toggleShowLabel()
Change the visibility of the display name.
void setShowLabel(bool)
Change the visibility of the display name associated with this cube.
XML Handler that parses XMLs in a stack-oriented way.
static QList< ControlDisplayProperties * > senderToData(QObject *sender)
This is for the slots that have a list of display properties as associated data.
Null display property for bit-flag purposes.
Property m_propertiesUsed
This indicated whether any widgets with this DisplayProperties is using a particular property...
QVariant getValue(Property prop) const
Get a property's associated data.
Namespace for ISIS/Bullet specific routines.
The selection state of this control net (bool)
virtual ~ControlDisplayProperties()
destructor
void setColor(QColor newColor)
Change the color associated with this cube.
Manage a stack of content handlers for reading XML files.
void setValue(Property prop, QVariant value)
This is the generic mutator for properties.