11 #ifndef CXSPACEPROPERTY_H_ 12 #define CXSPACEPROPERTY_H_ 15 #include "cxResourceExport.h" 17 #include <QDomElement> 18 #include <QStringList> 37 static SpacePropertyPtr initialize(
const QString& uid, QString name, QString help,
Space value=
Space(),
38 std::vector<Space> range=std::vector<Space>(), QDomNode root = QDomNode());
43 virtual QString getDisplayName()
const;
44 virtual QString getUid()
const;
45 virtual bool setValue(
const Space& value);
46 virtual Space getValue()
const;
47 virtual QString getHelp()
const;
48 virtual void setHelp(QString val);
49 virtual std::vector<Space> getValueRange()
const;
50 virtual void setValueRange(std::vector<Space> range);
51 virtual QString convertRefObjectInternal2Display(QString
internal);
52 virtual void setRefObjectDisplayNames(std::map<QString, QString> names);
56 void setReadOnly(
bool val);
63 void providerChangedSlot();
70 std::vector<Space> mRange;
72 std::map<QString, QString> mDisplayNames;
74 bool mAllowOnlyValuesInRange;
85 #endif // CXSPACEPROPERTY_H_ boost::shared_ptr< class SpaceProvider > SpaceProviderPtr
boost::shared_ptr< class SpaceProperty > SpacePropertyPtr
Helper class for storing one string value in an xml document.
Identification of a Coordinate system.
virtual bool isReadOnly() const
virtual bool getAllowOnlyValuesInRange() const
Namespace for all CustusX production code.