Add tool tip + icon + description for solid intent

CURA-11394
This commit is contained in:
c.lamboo 2023-11-27 17:28:24 +01:00
parent bc0942a338
commit 02655cde2e
3 changed files with 13 additions and 2 deletions

View file

@ -61,6 +61,11 @@ class IntentCategoryModel(ListModel):
"The annealing profile requires post-processing in an oven after the print is finished. This profile retains the dimensional accuracy of the printed part after annealing and improves strength, stiffness, and thermal resistance.") "The annealing profile requires post-processing in an oven after the print is finished. This profile retains the dimensional accuracy of the printed part after annealing and improves strength, stiffness, and thermal resistance.")
} }
cls._translations["solid"] = {
"name": catalog.i18nc("@label", "Solid"),
"description": catalog.i18nc("@text",
"A highly dense and strong part but at a slower print time. Great for functional parts.")
}
return cls._translations return cls._translations
def __init__(self, intent_category: str) -> None: def __init__(self, intent_category: str) -> None:

View file

@ -57,8 +57,9 @@ class IntentSelectionModel(ListModel):
self._onChange() self._onChange()
_default_intent_categories = ["default", "visual", "engineering", "quick", "annealing"] _default_intent_categories = ["default", "visual", "engineering", "quick", "annealing", "solid"]
_icons = {"default": "GearCheck", "visual": "Visual", "engineering": "Nut", "quick": "SpeedOMeter", "annealing": "Anneal"} _icons = {"default": "GearCheck", "visual": "Visual", "engineering": "Nut", "quick": "SpeedOMeter",
"annealing": "Anneal", "solid": "Hammer"}
def _onContainerChange(self, container: ContainerInterface) -> None: def _onContainerChange(self, container: ContainerInterface) -> None:
"""Updates the list of intents if an intent profile was added or removed.""" """Updates the list of intents if an intent profile was added or removed."""

View file

@ -24,3 +24,8 @@ intent_translations["quick"] = {
"name": catalog.i18nc("@label", "Draft"), "name": catalog.i18nc("@label", "Draft"),
"description": catalog.i18nc("@text", "The draft profile is designed to print initial prototypes and concept validation with the intent of significant print time reduction.") "description": catalog.i18nc("@text", "The draft profile is designed to print initial prototypes and concept validation with the intent of significant print time reduction.")
} }
intent_translations["quick"] = {
"name": catalog.i18nc("@label", "Solid"),
"description": catalog.i18nc("@text",
"A highly dense and strong part but at a slower print time. Great for functional parts.")
}