|
Isis 3 Programmer Reference
|
1 #ifndef DisplayProperties_H
2 #define DisplayProperties_H
17 #include "XmlStackedHandler.h"
21 class QXmlStreamWriter;
48 QVariant
getValue(
int property)
const;
53 static QColor randomColor();
57 void supportAdded(
int);
60 void setValue(
int prop, QVariant value);
74 virtual bool startElement(
const QString &namespaceURI,
const QString &localName,
75 const QString &qName,
const QXmlAttributes &atts);
77 virtual bool characters(
const QString &ch);
79 virtual bool endElement(
const QString &namespaceURI,
const QString &localName,
80 const QString &qName);
Contains Pvl Groups and Pvl Objects.
File name manipulation and expansion.
void addSupport(int property)
Call this with every property you support, otherwise they will not communicate properly between widge...
void setValue(int prop, QVariant value)
This is the generic mutator for properties.
int m_propertiesUsed
This indicated whether any widgets with this DisplayProperties is using a particulay property.
DisplayProperties(QString displayName, QObject *parent=NULL)
DisplayProperties constructor.
Manage a stack of content handlers for reading XML files.
The main project for ipce.
bool supports(int property)
Support may come later, please make sure you are connected to the supportAdded signal.
QString displayName() const
Returns the display name.
QString m_displayName
This is the display name.
PvlObject toPvl() const
Convert to Pvl for project files.
XML Handler that parses XMLs in a stack-oriented way.
void save(QXmlStreamWriter &stream, const Project *project, FileName newProjectRoot) const
Output format:
QVariant getValue(int property) const
Get a property's associated data.
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 Q...
void setDisplayName(QString displayName)
Sets display name.
virtual ~DisplayProperties()
destructor
This is free and unencumbered software released into the public domain.