40 #ifndef CXDOUBLEPROPERTYBASE_H_
41 #define CXDOUBLEPROPERTYBASE_H_
43 #include "cxResourceExport.h"
45 #include <boost/shared_ptr.hpp>
107 virtual QString getDisplayName()
const = 0;
111 return QVariant(this->getValue());
115 this->setValue(val.toDouble());
119 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
120 virtual bool setValue(
double value) = 0;
121 virtual double getValue()
const = 0;
virtual void connectValueSignals(bool on)
virtual void setGuiRepresentation(GuiRepresentation type)
virtual ~DoublePropertyBase()
virtual void setValueFromVariant(QVariant val)
virtual DoubleRange getValueRange() const
virtual GuiRepresentation getGuiRepresentation()
virtual QVariant getValueAsVariant() const
virtual QString getDisplayName() const
name of data entity. Used for display to user.
Utility class for describing a bounded numeric range.
Superclass for all data adapters.
virtual ~DoublePropertyNull()
virtual double getValue() const
get the data value.
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
virtual double convertInternal2Display(double internal)
range of value
virtual int getValueDecimals() const
number of relevant decimals in value
boost::shared_ptr< class DoublePropertyBase > DoublePropertyBasePtr
GuiRepresentation mGuiRepresentation
virtual bool setValue(double value)
set the data value.
virtual double convertDisplay2Internal(double display)
conversion from internal value to display value
virtual QString getUid() const