33 #ifndef CXSTRINGLISTPROPERTY_H
34 #define CXSTRINGLISTPROPERTY_H
36 #include "cxResourceExport.h"
38 #include <QDomElement>
39 #include <QStringList>
60 static StringListPropertyPtr initialize(
const QString& uid, QString name, QString help, QStringList value, QStringList range, QDomNode root = QDomNode());
64 virtual QString getDisplayName()
const;
65 virtual QString getUid()
const;
66 virtual QVariant getValueAsVariant()
const;
67 virtual void setValueFromVariant(QVariant val);
69 virtual bool setValue(
const QStringList& value);
70 virtual QStringList getValue()
const;
71 virtual QString getHelp()
const;
72 virtual void setHelp(QString val);
73 virtual QStringList getValueRange()
const;
74 virtual void setValueRange(QStringList range);
75 virtual QString convertInternal2Display(QString
internal);
76 virtual void setDisplayNames(std::map<QString, QString> names);
77 virtual std::map<QString, QString>
getDisplayNames()
const {
return mDisplayNames; }
79 virtual void setDisplayName(QString val);
89 std::map<QString, QString> mDisplayNames;
94 #endif // CXSTRINGLISTPROPERTY_H
Superclass for all data adapters.
Represents one collection of strings.
Helper class for storing one string value in an xml document.
virtual std::map< QString, QString > getDisplayNames() const
boost::shared_ptr< class StringListProperty > StringListPropertyPtr