[TD]add progress reporting framework

This commit is contained in:
Wanderer Fan
2022-07-19 21:38:13 -04:00
committed by WandererFan
parent 5a92b30f17
commit ae3a955877
9 changed files with 122 additions and 67 deletions

View File

@@ -581,7 +581,12 @@ void DrawView::requestPaint()
signalGuiPaint(this);
}
PyObject *DrawView::getPyObject()
void DrawView::showProgressMessage(std::string featureName, std::string text)
{
signalProgressMessage(this, featureName, text);
}
PyObject *DrawView::getPyObject(void)
{
if (PythonObject.is(Py::_None())) {
// ref counter is set to 1
@@ -590,6 +595,8 @@ PyObject *DrawView::getPyObject()
return Py::new_reference_to(PythonObject);
}
#include <Mod/TechDraw/App/moc_DrawView.cpp>
// Python Drawing feature ---------------------------------------------------------
namespace App {