mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Applied review comments
Contributes to CURA-8418
This commit is contained in:
parent
2e6a488c98
commit
b6665f1142
11 changed files with 12 additions and 15 deletions
|
@ -150,5 +150,5 @@ class ArrangeObjectsAllBuildPlatesJob(Job):
|
||||||
no_full_solution_message = Message(i18n_catalog.i18nc("@info:status",
|
no_full_solution_message = Message(i18n_catalog.i18nc("@info:status",
|
||||||
"Unable to find a location within the build volume for all objects"),
|
"Unable to find a location within the build volume for all objects"),
|
||||||
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"),
|
title = i18n_catalog.i18nc("@info:title", "Can't Find Location"),
|
||||||
message_type = Message.MessageType.ERROR)
|
message_type = Message.MessageType.WARNING)
|
||||||
no_full_solution_message.show()
|
no_full_solution_message.show()
|
||||||
|
|
|
@ -75,5 +75,5 @@ class MultiplyObjectsJob(Job):
|
||||||
no_full_solution_message = Message(
|
no_full_solution_message = Message(
|
||||||
i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"),
|
i18n_catalog.i18nc("@info:status", "Unable to find a location within the build volume for all objects"),
|
||||||
title = i18n_catalog.i18nc("@info:title", "Placing Object"),
|
title = i18n_catalog.i18nc("@info:title", "Placing Object"),
|
||||||
message_type = Message.MessageType.ERROR)
|
message_type = Message.MessageType.WARNING)
|
||||||
no_full_solution_message.show()
|
no_full_solution_message.show()
|
||||||
|
|
|
@ -17,8 +17,7 @@ class RestartApplicationPresenter:
|
||||||
|
|
||||||
message = Message(self._i18n_catalog.i18nc("@info:generic",
|
message = Message(self._i18n_catalog.i18nc("@info:generic",
|
||||||
"You need to quit and restart {} before changes have effect.",
|
"You need to quit and restart {} before changes have effect.",
|
||||||
app_name),
|
app_name))
|
||||||
message_type = Message.MessageType.WARNING)
|
|
||||||
|
|
||||||
message.addAction("quit",
|
message.addAction("quit",
|
||||||
name="Quit " + app_name,
|
name="Quit " + app_name,
|
||||||
|
|
|
@ -14,7 +14,7 @@ class LegacyDeviceNoLongerSupportedMessage(Message):
|
||||||
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super(LegacyDeviceNoLongerSupportedMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not "
|
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to a printer that is not "
|
||||||
"running Ultimaker Connect. Please update the printer to the "
|
"running Ultimaker Connect. Please update the printer to the "
|
||||||
"latest firmware."),
|
"latest firmware."),
|
||||||
|
|
|
@ -20,14 +20,12 @@ class MaterialSyncMessage(Message):
|
||||||
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
||||||
|
|
||||||
def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None:
|
def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None:
|
||||||
super(MaterialSyncMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "Cura has detected material profiles that were not yet installed "
|
text = I18N_CATALOG.i18nc("@info:status", "Cura has detected material profiles that were not yet installed "
|
||||||
"on the host printer of group {0}.", device.name),
|
"on the host printer of group {0}.", device.name),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Sending materials to printer"),
|
title = I18N_CATALOG.i18nc("@info:title", "Sending materials to printer"),
|
||||||
lifetime = 10,
|
lifetime = 10,
|
||||||
dismissable = True,
|
dismissable = True)
|
||||||
message_type = Message.MessageType.POSITIVE
|
|
||||||
)
|
|
||||||
|
|
||||||
def show(self) -> None:
|
def show(self) -> None:
|
||||||
if MaterialSyncMessage.__is_visible:
|
if MaterialSyncMessage.__is_visible:
|
||||||
|
|
|
@ -23,7 +23,7 @@ class NotClusterHostMessage(Message):
|
||||||
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
"""Singleton used to prevent duplicate messages of this type at the same time."""
|
||||||
|
|
||||||
def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None:
|
def __init__(self, device: "UltimakerNetworkedPrinterOutputDevice") -> None:
|
||||||
super(NotClusterHostMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to {0} but it is not "
|
text = I18N_CATALOG.i18nc("@info:status", "You are attempting to connect to {0} but it is not "
|
||||||
"the host of a group. You can visit the web page to configure "
|
"the host of a group. You can visit the web page to configure "
|
||||||
"it as a group host.", device.name),
|
"it as a group host.", device.name),
|
||||||
|
|
|
@ -11,7 +11,7 @@ class PrintJobUploadBlockedMessage(Message):
|
||||||
"""Message shown when uploading a print job to a cluster is blocked because another upload is already in progress."""
|
"""Message shown when uploading a print job to a cluster is blocked because another upload is already in progress."""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super(PrintJobUploadBlockedMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "Please wait until the current job has been sent."),
|
text = I18N_CATALOG.i18nc("@info:status", "Please wait until the current job has been sent."),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Print error"),
|
title = I18N_CATALOG.i18nc("@info:title", "Print error"),
|
||||||
lifetime = 10,
|
lifetime = 10,
|
||||||
|
|
|
@ -11,7 +11,7 @@ class PrintJobUploadErrorMessage(Message):
|
||||||
"""Message shown when uploading a print job to a cluster failed."""
|
"""Message shown when uploading a print job to a cluster failed."""
|
||||||
|
|
||||||
def __init__(self, message: str = None) -> None:
|
def __init__(self, message: str = None) -> None:
|
||||||
super(PrintJobUploadErrorMessage, self).__init__(
|
super().__init__(
|
||||||
text = message or I18N_CATALOG.i18nc("@info:text", "Could not upload the data to the printer."),
|
text = message or I18N_CATALOG.i18nc("@info:text", "Could not upload the data to the printer."),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Network error"),
|
title = I18N_CATALOG.i18nc("@info:title", "Network error"),
|
||||||
message_type=Message.MessageType.ERROR
|
message_type=Message.MessageType.ERROR
|
||||||
|
|
|
@ -11,7 +11,7 @@ class PrintJobUploadProgressMessage(Message):
|
||||||
"""Class responsible for showing a progress message while a mesh is being uploaded to the cloud."""
|
"""Class responsible for showing a progress message while a mesh is being uploaded to the cloud."""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(PrintJobUploadProgressMessage, self).__init__(
|
super().__init__(
|
||||||
title = I18N_CATALOG.i18nc("@info:status", "Sending Print Job"),
|
title = I18N_CATALOG.i18nc("@info:status", "Sending Print Job"),
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "Uploading print job to printer."),
|
text = I18N_CATALOG.i18nc("@info:status", "Uploading print job to printer."),
|
||||||
progress = -1,
|
progress = -1,
|
||||||
|
|
|
@ -12,7 +12,7 @@ class PrintJobUploadQueueFullMessage(Message):
|
||||||
"""Message shown when uploading a print job to a cluster and the print queue is full."""
|
"""Message shown when uploading a print job to a cluster and the print queue is full."""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super(PrintJobUploadQueueFullMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "Print job queue is full. The printer can't accept a new job."),
|
text = I18N_CATALOG.i18nc("@info:status", "Print job queue is full. The printer can't accept a new job."),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Queue Full"),
|
title = I18N_CATALOG.i18nc("@info:title", "Queue Full"),
|
||||||
lifetime = 10,
|
lifetime = 10,
|
||||||
|
|
|
@ -11,7 +11,7 @@ class PrintJobUploadSuccessMessage(Message):
|
||||||
"""Message shown when uploading a print job to a cluster succeeded."""
|
"""Message shown when uploading a print job to a cluster succeeded."""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super(PrintJobUploadSuccessMessage, self).__init__(
|
super().__init__(
|
||||||
text = I18N_CATALOG.i18nc("@info:status", "Print job was successfully sent to the printer."),
|
text = I18N_CATALOG.i18nc("@info:status", "Print job was successfully sent to the printer."),
|
||||||
title = I18N_CATALOG.i18nc("@info:title", "Data Sent"),
|
title = I18N_CATALOG.i18nc("@info:title", "Data Sent"),
|
||||||
message_type = Message.MessageType.POSITIVE
|
message_type = Message.MessageType.POSITIVE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue