mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Renaming USBPrinterConnection
CURA-1339
This commit is contained in:
parent
967c062357
commit
63eb1793ad
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
# Cura is released under the terms of the AGPLv3 or higher.
|
# Cura is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
from UM.Signal import Signal, SignalEmitter
|
from UM.Signal import Signal, SignalEmitter
|
||||||
from . import PrinterConnection
|
from . import USBPrinterOutputDevice
|
||||||
from UM.Application import Application
|
from UM.Application import Application
|
||||||
from UM.Resources import Resources
|
from UM.Resources import Resources
|
||||||
from UM.Logger import Logger
|
from UM.Logger import Logger
|
||||||
|
@ -190,7 +190,7 @@ class USBPrinterManager(QObject, SignalEmitter, OutputDevicePlugin, Extension):
|
||||||
|
|
||||||
## Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
|
## Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
|
||||||
def addConnection(self, serial_port):
|
def addConnection(self, serial_port):
|
||||||
connection = PrinterConnection.PrinterConnection(serial_port)
|
connection = USBPrinterOutputDevice.USBPrinterOutputDevice(serial_port)
|
||||||
connection.connect()
|
connection.connect()
|
||||||
connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
|
connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
|
||||||
connection.progressChanged.connect(self.progressChanged)
|
connection.progressChanged.connect(self.progressChanged)
|
||||||
|
|
|
@ -24,7 +24,7 @@ from UM.i18n import i18nCatalog
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
|
||||||
class PrinterConnection(OutputDevice, QObject, SignalEmitter):
|
class USBPrinterOutputDevice(OutputDevice, QObject, SignalEmitter):
|
||||||
def __init__(self, serial_port, parent = None):
|
def __init__(self, serial_port, parent = None):
|
||||||
QObject.__init__(self, parent)
|
QObject.__init__(self, parent)
|
||||||
OutputDevice.__init__(self, serial_port)
|
OutputDevice.__init__(self, serial_port)
|
Loading…
Add table
Add a link
Reference in a new issue