PartGui: Convert XML bindings to Python bindings model.
This commit is contained in:
@@ -29,7 +29,7 @@ list(APPEND PartGui_LIBS
|
||||
${QtConcurrent_LIBRARIES}
|
||||
)
|
||||
|
||||
generate_from_xml(ViewProviderPartExtPy)
|
||||
generate_from_py(ViewProviderPartExt)
|
||||
|
||||
set (Part_TR_QRC ${CMAKE_CURRENT_BINARY_DIR}/Resources/Part_translation.qrc)
|
||||
qt_find_and_add_translation(QM_SRCS "Resources/translations/*_*.ts"
|
||||
@@ -70,7 +70,7 @@ set(PartGui_UIC_SRCS
|
||||
)
|
||||
|
||||
SET(Python_SRCS
|
||||
ViewProviderPartExtPy.xml
|
||||
ViewProviderPartExt.pyi
|
||||
ViewProviderPartExtPyImp.cpp
|
||||
)
|
||||
SOURCE_GROUP("Python" FILES ${Python_SRCS})
|
||||
|
||||
17
src/Mod/Part/Gui/ViewProviderPartExt.pyi
Normal file
17
src/Mod/Part/Gui/ViewProviderPartExt.pyi
Normal file
@@ -0,0 +1,17 @@
|
||||
from Base.Metadata import export
|
||||
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
|
||||
|
||||
|
||||
@export(
|
||||
Include="Mod/Part/Gui/ViewProviderExt.h",
|
||||
Namespace="PartGui",
|
||||
)
|
||||
class ViewProviderPartExt(ViewProviderGeometryObject):
|
||||
"""
|
||||
This is the ViewProvider geometry class
|
||||
|
||||
Author: David Carter (dcarter@davidcarter.ca)
|
||||
Licence: LGPL
|
||||
"""
|
||||
...
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<GenerateModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="generateMetaModel_Module.xsd">
|
||||
<PythonExport
|
||||
Father="ViewProviderGeometryObjectPy"
|
||||
Name="ViewProviderPartExtPy"
|
||||
Twin="ViewProviderPartExt"
|
||||
TwinPointer="ViewProviderPartExt"
|
||||
Include="Mod/Part/Gui/ViewProviderExt.h"
|
||||
Namespace="PartGui"
|
||||
FatherInclude="Gui/ViewProviderGeometryObjectPy.h"
|
||||
FatherNamespace="Gui">
|
||||
<Documentation>
|
||||
<Author Licence="LGPL" Name="David Carter" EMail="dcarter@davidcarter.ca" />
|
||||
<UserDocu>This is the ViewProvider geometry class</UserDocu>
|
||||
</Documentation>
|
||||
</PythonExport>
|
||||
</GenerateModel>
|
||||
Reference in New Issue
Block a user