OpenLexocad  28.0
PropertyScriptParam.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Core/PropertyUser.h>
4 
5 namespace Core
6 {
12 class LX_CORE_EXPORT PropertyScriptParam : public Core::PropertyUser
13 {
15 
16 public:
17  friend class PropertyScriptParam_Factory;
18 
19  bool setValueFromVariant(const Core::Variant& value) override;
20 
22 
23 private:
24  int startScriptFunction(const std::string& aFunctionName, const Core::Variant& aValue);
25  int callFunction(const char* aModuleName, const char* aFunctionName, const char* aCaller, const Core::Variant& aValue);
26 };
27 
29 
30 } // namespace Core
Core::PropertyScriptParam::setValueFromVariant
bool setValueFromVariant(const Core::Variant &value) override
Core::PropertyUser
Core::PropertyUser is a class that can hold properties defined by the user. Its value member is a Cor...
Definition: PropertyUser.h:15
PropertyUser.h
Core::PropertyScriptParam::onValueChanged
void onValueChanged()
Core
Definition: Base.h:5
Core::Variant
Definition: Variant.h:78
Core::PropertyScriptParam
Core::PropertyScriptParam is a class that can hold properties defined by the user....
Definition: PropertyScriptParam.h:13
TYPESYSTEM_HEADER
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::DECLARE_PROPERTY_FACTORY
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)