Go to the documentation of this file.
14 friend class PropertyEnumDescriptor_Factory;
38 bool getEntry(
size_t aIndex, std::pair<Base::String, int>& aEntry)
const;
40 bool getEntry(
size_t aIndex, std::tuple<Base::String, int, CustomTranslation, Base::String>& aEntry)
const;
43 std::vector<std::pair<Base::String, int>>
getEntries()
const;
44 std::vector<std::tuple<Base::String, int, CustomTranslation>>
getEntriesWithCT()
const;
72 PropertyTextListOpt enumsEn;
73 PropertyTextListOpt enumsFr;
74 PropertyTextListOpt enumsIt;
75 PropertyTextListOpt codes;
void restoreProperty(Core::Property *property, const Base::String &name, Base::AbstractXMLReader &reader, Base::PersistenceVersion &version) override
Restores property from from reader in specified version.
Definition: PropertyEnumDescriptor.h:10
bool getEntry(size_t aIndex, std::tuple< Base::String, int, CustomTranslation, Base::String > &aEntry) const
Definition: CoreDocument.h:269
size_t computeHash(bool strictComparison) override
long getEnumsTransactionNumber() const
Definition: PropertyEnumDescriptor.h:60
std::map< Core::DocObject *, Core::DocObject * > DocObjectMap
Definition: DocObject.h:50
Definition: PropertyBoolean.h:14
Type
Definition: PropertyDescriptor.h:18
virtual size_t addEntry(const Base::String &aValue, int aTranslationId, const Base::String &code=Base::String())
Core::DocObject * copy(Core::CoreDocument *toDoc, DocObjectMap ©Map) override
PropertyBoolean fix
Definition: PropertyEnumDescriptor.h:27
bool getEntry(size_t aIndex, std::pair< Base::String, int > &aEntry, CustomTranslation &ct) const
virtual size_t addEntry(const Base::String &aValue, const CustomTranslation &ct, const Base::String &code=Base::String())
Base::String fr
Definition: PropertyEnumDescriptor.h:20
Base::String getCode(size_t aIndex) const
Type getType() const override
Definition: DocObject.h:54
PropertyRealList automaticValueLimits
Definition: PropertyEnumDescriptor.h:34
virtual bool removeEntry(size_t aIndex)
bool allEmpty() const
Definition: PropertyEnumDescriptor.h:24
Definition: Persistence.h:13
std::vector< std::tuple< Base::String, int, CustomTranslation > > getEntriesWithCT() const
Definition: PropertyInteger.h:140
bool operator==(const CustomTranslation &other) const
Definition: PropertyEnumDescriptor.h:23
Base::String en
Definition: PropertyEnumDescriptor.h:19
PropertyText automaticValueUnit
Definition: PropertyEnumDescriptor.h:31
#define LX_NODE_HEADER()
Definition: PropertyMacros.h:7
Definition: PropertyDescriptor.h:11
DECLARE_OBJECT_FACTORY_NOIFC(PropertyBoolDescriptor_Factory, PropertyBoolDescriptor)
std::vector< Base::String > getTranslatedEntries() const
Definition: AbstractXMLReader.h:7
bool getIndex(const Base::String &aValue, size_t &aIndex) const
Returns true/index of the value in enums, false if it is not found.
Definition: PropertyText.h:8
Base::String it
Definition: PropertyEnumDescriptor.h:21
Definition: PropertyEnumDescriptor.h:18
Definition: PropertyTextList.h:8
bool getEntry(size_t aIndex, std::pair< Base::String, int > &aEntry) const
PropertyReal automaticValueFactor
Definition: PropertyEnumDescriptor.h:33
LX_CORE_EXPORT Version & version
Definition: PropertyReal.h:43
Definition: Property.h:72
PropertyText automaticValueDetail
Definition: PropertyEnumDescriptor.h:32
DECLARE_PROPERTY_TEMPLATES(Core::ColorSetForPED, LX_CORE_EXPORT)
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
std::vector< std::tuple< Base::String, int, CustomTranslation, Base::String > > getEntriesWithCTAndCode() const
PropertyInteger defaultValueIndex
Definition: PropertyEnumDescriptor.h:28
bool getTranslatedEntry(size_t aIndex, Base::String &aValueTr) const
Definition: PropertyReal.h:8
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
bool isNPKOpenPosition(size_t aIndex) const
Returns true for the properties from Lcc data with 'o' code.
std::vector< std::pair< Base::String, int > > getEntries() const
Definition: PropertyInteger.h:8