34 #ifndef CXSTRINGPROPERTY_H_
35 #define CXSTRINGPROPERTY_H_
37 #include "cxResourceExport.h"
39 #include <QDomElement>
40 #include <QStringList>
66 static StringPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value,
67 QStringList range, QDomNode root = QDomNode());
68 static StringPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value, QDomNode root = QDomNode());
72 virtual QString getDisplayName()
const;
73 virtual QString getUid()
const;
74 virtual bool setValue(
const QString& value);
75 virtual QString getValue()
const;
76 virtual QString getHelp()
const;
77 virtual void setHelp(QString val);
78 virtual QStringList getValueRange()
const;
79 virtual void setValueRange(QStringList range);
80 virtual QString convertInternal2Display(QString
internal);
81 virtual void setDisplayNames(std::map<QString, QString> names);
85 void setReadOnly(
bool val);
99 std::map<QString, QString> mDisplayNames;
101 bool mAllowOnlyValuesInRange;
virtual bool getAllowOnlyValuesInRange() const
Abstract interface for interaction with internal string-valued data.
Helper class for storing one string value in an xml document.
boost::shared_ptr< class StringProperty > StringPropertyPtr
virtual bool isReadOnly() const
Represents one option of the string type. The data are stored within a xml document.