Add Python functionality for DrawHatch

This commit is contained in:
WandererFan
2016-01-28 12:43:51 -05:00
committed by wmayer
parent 4f4e343d5f
commit c47bdf5d9a
7 changed files with 77 additions and 12 deletions

View File

@@ -72,6 +72,7 @@ DrawPage::DrawPage(void)
ProjectionType.setEnums(ProjectionTypeEnums);
ADD_PROPERTY(ProjectionType, ((long)0));
ADD_PROPERTY_TYPE(Scale ,(1.0), group, App::Prop_None, "Scale factor for this Page");
//TODO: Page should create itself with default Template instead of Cmd figuring it out?
}
DrawPage::~DrawPage()
@@ -156,7 +157,7 @@ PyObject *DrawPage::getPyObject(void)
PythonObject = Py::Object(new DrawPagePy(this),true);
}
return Py::new_reference_to(PythonObject);
return Py::new_reference_to(PythonObject);
}
bool DrawPage::hasValidTemplate() const
@@ -272,4 +273,3 @@ void DrawPage::onDocumentRestored()
recompute();
App::DocumentObject::onDocumentRestored();
}