mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Added pointcloud alignment tool for scanner
This commit is contained in:
parent
0defece4bd
commit
f40855a203
2 changed files with 12 additions and 3 deletions
|
@ -15,6 +15,10 @@ from UM.Extension import Extension
|
||||||
from PyQt5.QtQuick import QQuickView
|
from PyQt5.QtQuick import QQuickView
|
||||||
from PyQt5.QtCore import QUrl, QObject,pyqtSlot , pyqtProperty,pyqtSignal
|
from PyQt5.QtCore import QUrl, QObject,pyqtSlot , pyqtProperty,pyqtSignal
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
|
i18n_catalog = i18nCatalog('plugins')
|
||||||
|
|
||||||
class USBPrinterManager(QObject, SignalEmitter, Extension):
|
class USBPrinterManager(QObject, SignalEmitter, Extension):
|
||||||
def __init__(self, parent = None):
|
def __init__(self, parent = None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
|
@ -32,7 +36,7 @@ class USBPrinterManager(QObject, SignalEmitter, Extension):
|
||||||
self._bed_temp = 0
|
self._bed_temp = 0
|
||||||
self._error_message = ""
|
self._error_message = ""
|
||||||
|
|
||||||
self.addMenuItem("Update firmware", self.updateAllFirmware)
|
self.addMenuItem(i18n_catalog.i18n("Update firmware"), self.updateAllFirmware)
|
||||||
|
|
||||||
#time.sleep(1)
|
#time.sleep(1)
|
||||||
#self.connectAllConnections()
|
#self.connectAllConnections()
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
from . import USBPrinterManager
|
from . import USBPrinterManager
|
||||||
|
|
||||||
|
from UM.i18n import i18nCatalog
|
||||||
|
|
||||||
|
i18n_catalog = i18nCatalog('plugins')
|
||||||
|
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
'type': 'extension',
|
'type': 'extension',
|
||||||
|
@ -6,9 +11,9 @@ def getMetaData():
|
||||||
'name': 'USB printing',
|
'name': 'USB printing',
|
||||||
'author': 'Jaime van Kessel',
|
'author': 'Jaime van Kessel',
|
||||||
'version': '1.0',
|
'version': '1.0',
|
||||||
'description': 'Accepts G-Code and sends them to a printer. Plugin can also update firmware '
|
'description': i18n_catalog.i18nc('usb printing description','Accepts G-Code and sends them to a printer. Plugin can also update firmware')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def register(app):
|
def register(app):
|
||||||
return USBPrinterManager.USBPrinterManager()
|
return USBPrinterManager.USBPrinterManager()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue