33 #ifndef CXSTRINGPROPERTY_H_
34 #define CXSTRINGPROPERTY_H_
36 #include "cxResourceExport.h"
38 #include <QDomElement>
39 #include <QStringList>
66 static StringPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value, QStringList range, QDomNode root = QDomNode());
67 static StringPropertyPtr initialize(
const QString& uid, QString name, QString help, QString value, QDomNode root = QDomNode());
71 virtual QString getDisplayName()
const;
72 virtual QString getUid()
const;
73 virtual bool setValue(
const QString& value);
74 virtual QString getValue()
const;
75 virtual QString getHelp()
const;
76 virtual void setHelp(QString val);
77 virtual QStringList getValueRange()
const;
78 virtual void setValueRange(QStringList range);
79 virtual QString convertInternal2Display(QString
internal);
80 virtual void setDisplayNames(std::map<QString, QString> names);
81 virtual std::map<QString, QString>
getDisplayNames()
const {
return mDisplayNames; }
85 void setReadOnly(
bool val);
86 virtual void setDisplayName(QString val);
100 std::map<QString, QString> mDisplayNames;
102 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.
virtual std::map< QString, QString > getDisplayNames() const