12 #ifndef CXSTRINGLISTPROPERTY_H
13 #define CXSTRINGLISTPROPERTY_H
15 #include "cxResourceExport.h"
17 #include <QDomElement>
18 #include <QStringList>
39 static StringListPropertyPtr initialize(
const QString& uid, QString name, QString help, QStringList value, QStringList range, QDomNode root = QDomNode());
43 virtual QString getDisplayName()
const;
44 virtual QString getUid()
const;
45 virtual QVariant getValueAsVariant()
const;
46 virtual void setValueFromVariant(QVariant val);
48 virtual bool setValue(
const QStringList& value);
49 virtual QStringList getValue()
const;
50 virtual QString getHelp()
const;
51 virtual void setHelp(QString val);
52 virtual QStringList getValueRange()
const;
53 virtual void setValueRange(QStringList range);
54 virtual QString convertInternal2Display(QString
internal);
55 virtual void setDisplayNames(std::map<QString, QString> names);
56 virtual std::map<QString, QString>
getDisplayNames()
const {
return mDisplayNames; }
58 virtual void setDisplayName(QString val);
68 std::map<QString, QString> mDisplayNames;
73 #endif // CXSTRINGLISTPROPERTY_H