32 #ifndef CXSPACEPROPERTYBASE_H_
33 #define CXSPACEPROPERTYBASE_H_
35 #include "cxResourceExport.h"
37 #include <boost/shared_ptr.hpp>
40 #include <QStringList>
60 virtual QString getDisplayName()
const = 0;
64 return QVariant(this->getValue().toString());
71 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
72 virtual bool setValue(
const Space& value) = 0;
73 virtual Space getValue()
const = 0;
91 return std::vector<Space>();
95 return internal.toString();
108 #endif // CXSPACEPROPERTYBASE_H_
virtual bool isReadOnly() const
virtual bool getAllowOnlyValuesInRange() const
virtual QVariant getValueAsVariant() const
Superclass for all data adapters.
boost::shared_ptr< SpacePropertyBase > SpacePropertyBasePtr
virtual QString convertInternal2Display(Space internal)
range of value. Use if data is constrained to a set.
virtual void setValueFromVariant(QVariant val)
virtual QString convertRefObjectInternal2Display(QString internal)
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
Identification of a Coordinate system.
virtual ~SpacePropertyBase()
virtual QString getUid() const
virtual std::vector< Space > getValueRange() const
static CoordinateSystem fromString(QString text)