|
@@ -14,12 +14,14 @@ from PyQt5.QtGui import QDesktopServices
|
|
from cura.CuraApplication import CuraApplication
|
|
from cura.CuraApplication import CuraApplication
|
|
from cura.PrinterOutputDevice import ConnectionType
|
|
from cura.PrinterOutputDevice import ConnectionType
|
|
from cura.Settings.GlobalStack import GlobalStack # typing
|
|
from cura.Settings.GlobalStack import GlobalStack # typing
|
|
-from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
|
|
|
|
|
+
|
|
|
|
+from UM.i18n import i18nCatalog
|
|
from UM.Logger import Logger
|
|
from UM.Logger import Logger
|
|
|
|
+from UM.Message import Message
|
|
|
|
+from UM.OutputDevice.OutputDevicePlugin import OutputDevicePlugin
|
|
|
|
+from UM.PluginRegistry import PluginRegistry
|
|
from UM.Signal import Signal, signalemitter
|
|
from UM.Signal import Signal, signalemitter
|
|
from UM.Version import Version
|
|
from UM.Version import Version
|
|
-from UM.Message import Message
|
|
|
|
-from UM.i18n import i18nCatalog
|
|
|
|
|
|
|
|
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
|
from . import ClusterUM3OutputDevice, LegacyUM3OutputDevice
|
|
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
|
from .Cloud.CloudOutputDeviceManager import CloudOutputDeviceManager
|
|
@@ -455,8 +457,10 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|
self._start_cloud_flow_message = Message(
|
|
self._start_cloud_flow_message = Message(
|
|
text = i18n_catalog.i18nc("@info:status", "Send and monitor print jobs from anywhere using your Ultimaker account."),
|
|
text = i18n_catalog.i18nc("@info:status", "Send and monitor print jobs from anywhere using your Ultimaker account."),
|
|
lifetime = 0,
|
|
lifetime = 0,
|
|
- image_source = QUrl.fromLocalFile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..",
|
|
|
|
- "resources", "svg", "cloud-flow-start.svg")),
|
|
|
|
|
|
+ image_source = QUrl.fromLocalFile(os.path.join(
|
|
|
|
+ PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"),
|
|
|
|
+ "resources", "svg", "cloud-flow-start.svg"
|
|
|
|
+ )),
|
|
image_caption = i18n_catalog.i18nc("@info:status", "Connect to Ultimaker Cloud"),
|
|
image_caption = i18n_catalog.i18nc("@info:status", "Connect to Ultimaker Cloud"),
|
|
option_text = i18n_catalog.i18nc("@action", "Don't ask me again for this printer."),
|
|
option_text = i18n_catalog.i18nc("@action", "Don't ask me again for this printer."),
|
|
option_state = False
|
|
option_state = False
|
|
@@ -477,8 +481,10 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|
self._cloud_flow_complete_message = Message(
|
|
self._cloud_flow_complete_message = Message(
|
|
text = i18n_catalog.i18nc("@info:status", "You can now send and monitor print jobs from anywhere using your Ultimaker account."),
|
|
text = i18n_catalog.i18nc("@info:status", "You can now send and monitor print jobs from anywhere using your Ultimaker account."),
|
|
lifetime = 30,
|
|
lifetime = 30,
|
|
- image_source = QUrl.fromLocalFile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..",
|
|
|
|
- "resources", "svg", "cloud-flow-completed.svg")),
|
|
|
|
|
|
+ image_source = QUrl.fromLocalFile(os.path.join(
|
|
|
|
+ PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"),
|
|
|
|
+ "resources", "svg", "cloud-flow-completed.svg"
|
|
|
|
+ )),
|
|
image_caption = i18n_catalog.i18nc("@info:status", "Connected!")
|
|
image_caption = i18n_catalog.i18nc("@info:status", "Connected!")
|
|
)
|
|
)
|
|
# Don't show the review connection link if we're not on the local network
|
|
# Don't show the review connection link if we're not on the local network
|