34 #ifndef CXSTRINGPROPERTYBASE_H_
35 #define CXSTRINGPROPERTYBASE_H_
37 #include "cxResourceExport.h"
39 #include <boost/shared_ptr.hpp>
42 #include <QStringList>
101 virtual QString getDisplayName()
const = 0;
105 return QVariant(this->getValue());
109 this->setValue(val.toString());
112 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
113 virtual bool setValue(
const QString& value) = 0;
114 virtual QString getValue()
const = 0;
132 return QStringList();
143 GuiRepresentation mGuiRepresentation;
virtual void setGuiRepresentation(GuiRepresentation type)
virtual ~StringPropertyBase()
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
Superclass for all data adapters.
virtual void setValueFromVariant(QVariant val)
Abstract interface for interaction with internal string-valued data.
boost::shared_ptr< class StringPropertyBase > StringPropertyBasePtr
virtual bool isReadOnly() const
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
virtual bool getAllowOnlyValuesInRange() const
virtual QString getUid() const
virtual QVariant getValueAsVariant() const
virtual QStringList getValueRange() const