mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-04 04:23:58 -06:00
It is now possible to generate the PCB file
CURA-11561
This commit is contained in:
parent
8ad4ab90a8
commit
fcf1e63160
8 changed files with 510 additions and 112 deletions
|
@ -2,9 +2,14 @@
|
|||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
import sys
|
||||
|
||||
from . import PCBWriter
|
||||
from PyQt6.QtQml import qmlRegisterType
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
|
||||
from . import PCBWriter
|
||||
from .SettingsExportModel import SettingsExportModel
|
||||
from .SettingsExportGroup import SettingsExportGroup
|
||||
|
||||
i18n_catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
|
@ -12,10 +17,13 @@ def getMetaData():
|
|||
"output": [{
|
||||
"extension": "pcb",
|
||||
"description": i18n_catalog.i18nc("@item:inlistbox", "Pre-Configured Batch file"),
|
||||
"mime_type": "application/vnd.um.preconfigured-batch+3mf",
|
||||
"mime_type": "application/x-pcb",
|
||||
"mode": PCBWriter.PCBWriter.OutputMode.BinaryMode
|
||||
}]
|
||||
}}
|
||||
|
||||
def register(app):
|
||||
qmlRegisterType(SettingsExportModel, "PCBWriter", 1, 0, "SettingsExportModel")
|
||||
qmlRegisterType(SettingsExportGroup, "PCBWriter", 1, 0, "SettingsExportGroup")
|
||||
|
||||
return {"mesh_writer": PCBWriter.PCBWriter() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue