13 #ifndef CXSTRINGPROPERTYBASE_H_ 14 #define CXSTRINGPROPERTYBASE_H_ 16 #include "cxResourceExport.h" 18 #include <boost/shared_ptr.hpp> 21 #include <QStringList> 80 virtual QString getDisplayName()
const = 0;
84 return QVariant(this->getValue());
88 this->setValue(val.toString());
91 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
92 virtual bool setValue(
const QString& value) = 0;
93 virtual QString getValue()
const = 0;
111 return QStringList();
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.
GuiRepresentation mGuiRepresentation
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
Namespace for all CustusX production code.