Mod: add string header to dxf.h

This commit is contained in:
wmayer
2022-03-01 15:13:34 +01:00
parent b08cb1f7b7
commit 739804b511
11 changed files with 153 additions and 34 deletions

View File

@@ -81,6 +81,8 @@ public:
/// Set sub-element visibility
int setElementVisible(const char *, bool);
bool editProperty(const char *propName);
private:
App::DocumentObject* object;
bool has__object__;
@@ -102,7 +104,8 @@ private:
FC_PY_ELEMENT(canLoadPartial)\
FC_PY_ELEMENT(hasChildElement)\
FC_PY_ELEMENT(isElementVisible)\
FC_PY_ELEMENT(setElementVisible)
FC_PY_ELEMENT(setElementVisible)\
FC_PY_ELEMENT(editProperty)\
#define FC_PY_ELEMENT_DEFINE(_name) \
Py::Object py_##_name;
@@ -300,6 +303,11 @@ public:
return FeatureT::canLoadPartial();
}
virtual void editProperty(const char *propName) override {
if (!imp->editProperty(propName))
FeatureT::editProperty(propName);
}
PyObject *getPyObject(void) override {
if (FeatureT::PythonObject.is(Py::_None())) {
// ref counter is set to 1