mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4557 model checker is now a tool, click to activate
This commit is contained in:
parent
e958516913
commit
1aba1cfe6a
3 changed files with 68 additions and 66 deletions
|
@ -3,21 +3,19 @@
|
|||
|
||||
from . import ModelChecker
|
||||
|
||||
## Defines additional metadata for the plug-in.
|
||||
#
|
||||
# Some types of plug-ins require additional metadata, such as which file types
|
||||
# they are able to read or the name of the tool they define. In the case of
|
||||
# the "Extension" type plug-in, there is no additional metadata though.
|
||||
def getMetaData():
|
||||
return {}
|
||||
from UM.i18n import i18nCatalog
|
||||
i18n_catalog = i18nCatalog("uranium")
|
||||
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"tool": {
|
||||
"name": i18n_catalog.i18nc("@label", "Model Checker"),
|
||||
"description": i18n_catalog.i18nc("@info:tooltip", "Checks models and print configuration for possible printing issues and give suggestions."),
|
||||
"icon": "model_checker.svg",
|
||||
"weight": 10
|
||||
}
|
||||
}
|
||||
|
||||
## Lets Uranium know that this plug-in exists.
|
||||
#
|
||||
# This is called when starting the application to find out which plug-ins
|
||||
# exist and what their types are. We need to return a dictionary mapping from
|
||||
# strings representing plug-in types (in this case "extension") to objects
|
||||
# that inherit from PluginObject.
|
||||
#
|
||||
# \param app The application that the plug-in needs to register with.
|
||||
def register(app):
|
||||
return {"extension": ModelChecker.ModelChecker()}
|
||||
return { "tool": ModelChecker.ModelChecker() }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue