OpenLexocad  27.1
PropertyScriptParam.h
Go to the documentation of this file.
1 #pragma once
3 #include <Core/Variant.h>
4 #include <Core/CoreDocument.h>
5 #include <stdint.h>
6 
7 #include "Core/PropertyUser.h"
8 
9 namespace Core
10 {
16 class LX_CORE_EXPORT PropertyScriptParam : public Core::PropertyUser
17 {
19 
20 public:
21  friend class PropertyScriptParam_Factory;
22  PropertyScriptParam(void);
23  virtual ~PropertyScriptParam(void);
24 
25  void onValueChanged();
26 
27 private:
28  int startScriptFunction(const std::string& aFunctionName, const Core::Variant& aValue);
29  // int startPythonModule(Core::ExternalTypeObject* pyETO, std::string& aModuleName);
30  int callFunction(const char* aModuleName, const char* aFunctionName, const char* aCaller, const Core::Variant& aValue);
31 };
32 
33 DECLARE_PROPERTY_FACTORY(PropertyScriptParam_Factory, Core::PropertyScriptParam);
34 
35 } // namespace Core
Core::PropertyScriptParam is a class that can hold properties defined by the user....
Definition: PropertyScriptParam.h:16
Definition: Variant.h:87
Definition: Base.h:12
Core::PropertyUser is a class that can hold properties defined by the user. Its value member is a Cor...
Definition: PropertyUser.h:15
TYPESYSTEM_HEADER()
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)