1 #ifndef DisplayProperties_H 2 #define DisplayProperties_H 9 #include "XmlStackedHandler.h" 13 class QXmlStreamWriter;
40 QVariant
getValue(
int property)
const;
45 static QColor randomColor();
49 void supportAdded(
int);
52 void setValue(
int prop, QVariant value);
66 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
67 const QString &qName,
const QXmlAttributes &atts);
69 virtual bool characters(
const QString &ch);
71 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
72 const QString &qName);
bool supports(int property)
Support may come later, please make sure you are connected to the supportAdded signal.
The main project for ipce.
File name manipulation and expansion.
QString m_displayName
This is the display name.
PvlObject toPvl() const
Convert to Pvl for project files.
QVariant getValue(int property) const
Get a property's associated data.
QString displayName() const
Returns the display name.
void setDisplayName(QString displayName)
Sets display name.
virtual ~DisplayProperties()
destructor
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Output format:
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 ...
XML Handler that parses XMLs in a stack-oriented way.
void setValue(int prop, QVariant value)
This is the generic mutator for properties.
DisplayProperties(QString displayName, QObject *parent=NULL)
DisplayProperties constructor.
void addSupport(int property)
Call this with every property you support, otherwise they will not communicate properly between widge...
int m_propertiesUsed
This indicated whether any widgets with this DisplayProperties is using a particulay property...
Namespace for ISIS/Bullet specific routines.
Contains Pvl Groups and Pvl Objects.
Manage a stack of content handlers for reading XML files.