Browse Source

Renaming USBPrinterConnection

CURA-1339
Jaime van Kessel 9 years ago
parent
commit
63eb1793ad

+ 2 - 2
plugins/USBPrinting/USBPrinterManager.py

@@ -2,7 +2,7 @@
 # Cura is released under the terms of the AGPLv3 or higher.
 
 from UM.Signal import Signal, SignalEmitter
-from . import PrinterConnection
+from . import USBPrinterOutputDevice
 from UM.Application import Application
 from UM.Resources import Resources
 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.
     def addConnection(self, serial_port):
-        connection = PrinterConnection.PrinterConnection(serial_port)
+        connection = USBPrinterOutputDevice.USBPrinterOutputDevice(serial_port)
         connection.connect()
         connection.connectionStateChanged.connect(self._onPrinterConnectionStateChanged)
         connection.progressChanged.connect(self.progressChanged)

+ 1 - 1
plugins/USBPrinting/PrinterConnection.py → plugins/USBPrinting/USBPrinterOutputDevice.py

@@ -24,7 +24,7 @@ from UM.i18n import i18nCatalog
 catalog = i18nCatalog("cura")
 
 
-class PrinterConnection(OutputDevice, QObject, SignalEmitter):
+class USBPrinterOutputDevice(OutputDevice, QObject, SignalEmitter):
     def __init__(self, serial_port, parent = None):
         QObject.__init__(self, parent)
         OutputDevice.__init__(self, serial_port)