OpenLexocad  27.1
OpenLxApp::PropertyEnum Class Reference

#include <Property.h>

Inheritance diagram for OpenLxApp::PropertyEnum:
OpenLxApp::PropertyInteger OpenLxApp::Property

Public Member Functions

 PropertyEnum ()
 
virtual ~PropertyEnum ()
 
size_t addEntry (const Base::String &aValue, int aTranslationId=-1)
 
bool getEntry (size_t aIndex, std::pair< Base::String, int > &aEntry)
 
bool getEntry (size_t aIndex, PropertyEnumEntry &aEntry)
 
bool removeEntry (size_t aIndex)
 
void setEmpty ()
 
std::vector< PropertyEnumEntrygetPredefinedValues () const
 
- Public Member Functions inherited from OpenLxApp::PropertyInteger
 PropertyInteger ()
 
virtual ~PropertyInteger ()
 
int getValue () const
 
void setValue (int aValue)
 
void setMinValue (int aValue)
 
void setMaxValue (int aValue)
 
void setSteps (int aValue)
 
int getMinValue () const
 
int getMaxValue () const
 
int getSteps () const
 
- Public Member Functions inherited from OpenLxApp::Property
Core::Variant getVariant () const
 
std::string getName () const
 
bool isVisible () const
 
void setVisible (bool on)
 
bool isEditable () const
 
void setEditable (bool on)
 
Base::String getDisplayName () const
 
void setTranslationId (int aId)
 
int getTranslationId () const
 
virtual ~Property ()
 
void __setPropertyUser__ (Core::PropertyUser *aProperty)
 Internal. More...
 

Additional Inherited Members

- Public Types inherited from OpenLxApp::Property
enum  Visible { NOT_VISIBLE = 0, VISIBLE = 1 }
 
enum  Editable { NOT_EDITABLE = 0, EDITABLE = 1 }
 
- Protected Member Functions inherited from OpenLxApp::Property
 Property ()
 
template<typename T >
void _setValue (const T &aValue)
 
std::shared_ptr< Document_getDocument (Core::Property *aProp)
 
Core::PropertyDescriptor_getPropertyDescriptor () const
 
- Protected Attributes inherited from OpenLxApp::Property
Core::PropertyUser_prop = nullptr
 

Constructor & Destructor Documentation

◆ PropertyEnum()

OpenLxApp::PropertyEnum::PropertyEnum ( )

◆ ~PropertyEnum()

virtual OpenLxApp::PropertyEnum::~PropertyEnum ( )
inlinevirtual

Member Function Documentation

◆ addEntry()

size_t OpenLxApp::PropertyEnum::addEntry ( const Base::String aValue,
int  aTranslationId = -1 
)

◆ getEntry() [1/2]

bool OpenLxApp::PropertyEnum::getEntry ( size_t  aIndex,
std::pair< Base::String, int > &  aEntry 
)

◆ getEntry() [2/2]

bool OpenLxApp::PropertyEnum::getEntry ( size_t  aIndex,
PropertyEnumEntry aEntry 
)

◆ getPredefinedValues()

std::vector<PropertyEnumEntry> OpenLxApp::PropertyEnum::getPredefinedValues ( ) const

◆ removeEntry()

bool OpenLxApp::PropertyEnum::removeEntry ( size_t  aIndex)

◆ setEmpty()

void OpenLxApp::PropertyEnum::setEmpty ( )

The documentation for this class was generated from the following file: