move handling of dynamic properties from FeaturePythonPyT to DocumentObjectPy

This commit is contained in:
wmayer
2016-11-09 16:09:21 +01:00
parent a012f6ba49
commit b5cbaae73a
6 changed files with 87 additions and 140 deletions

View File

@@ -31,8 +31,9 @@
#include <Base/Interpreter.h>
#include <Base/Reader.h>
#include <App/DocumentObjectPy.h>
#include "FeaturePython.h"
#include "FeaturePythonPyImp.h"
#include "FeaturePythonPyImp.h"
using namespace App;
@@ -192,7 +193,7 @@ PyObject *FeaturePythonImp::getPyObject(void)
// ---------------------------------------------------------
namespace App {
PROPERTY_SOURCE_TEMPLATE(App::FeaturePython, App::DocumentObject)
PROPERTY_SOURCE_TEMPLATE(App::FeaturePython, App::DocumentObject)
template<> const char* App::FeaturePython::getViewProviderName(void) const {
return "Gui::ViewProviderPythonFeature";
}
@@ -208,11 +209,11 @@ template class AppExport FeaturePythonT<DocumentObject>;
}
// ---------------------------------------------------------
namespace App {
PROPERTY_SOURCE_TEMPLATE(App::GeometryPython, App::GeoFeature)
PROPERTY_SOURCE_TEMPLATE(App::GeometryPython, App::GeoFeature)
template<> const char* App::GeometryPython::getViewProviderName(void) const {
return "Gui::ViewProviderPythonGeometry";
}
// explicit template instantiation
template class AppExport FeaturePythonT<GeoFeature>;
template class AppExport FeaturePythonT<GeoFeature>;}