Mod: add string header to dxf.h
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user