Python functionality for ViewPart and ViewClip

This commit is contained in:
WandererFan
2016-01-23 16:05:34 -05:00
committed by wmayer
parent 5bf42856fd
commit 6d07fec219
8 changed files with 50 additions and 11 deletions

View File

@@ -40,6 +40,8 @@
#include "DrawView.h"
#include "DrawPage.h"
#include "DrawViewClipPy.h" // generated from DrawViewClipPy.xml
using namespace TechDraw;
using namespace std;
@@ -158,6 +160,16 @@ std::vector<std::string> DrawViewClip::getChildViewNames()
return childNames;
}
PyObject *DrawViewClip::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
PythonObject = Py::Object(new DrawViewClipPy(this),true);
}
return Py::new_reference_to(PythonObject);
}
// Python Drawing feature ---------------------------------------------------------
namespace App {