mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Added plugin for UM machine actions
CURA-1385
This commit is contained in:
parent
8237047907
commit
8af2b076a7
2 changed files with 30 additions and 0 deletions
9
plugins/UltimakerMachineActions/BedLevelMachineAction.py
Normal file
9
plugins/UltimakerMachineActions/BedLevelMachineAction.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
from cura.MachineAction import MachineAction
|
||||
|
||||
class BedLevelMachineAction(MachineAction):
|
||||
def __init__(self):
|
||||
super().__init__("BedLevel", "Level bed")
|
||||
|
||||
def _execute(self):
|
||||
pass
|
||||
|
21
plugins/UltimakerMachineActions/__init__.py
Normal file
21
plugins/UltimakerMachineActions/__init__.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Copyright (c) 2016 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
from . import BedLevelMachineAction
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
catalog = i18nCatalog("cura")
|
||||
|
||||
def getMetaData():
|
||||
return {
|
||||
"plugin": {
|
||||
"name": catalog.i18nc("@label", "Ultimaker machine actions"),
|
||||
"author": "Ultimaker",
|
||||
"version": "1.0",
|
||||
"description": catalog.i18nc("@info:whatsthis", "Provides machine actions for Ultimaker machines (such as bed leveling wizard, selecting upgrades, etc)"),
|
||||
"api": 3
|
||||
}
|
||||
}
|
||||
|
||||
def register(app):
|
||||
return { "machine_action": BedLevelMachineAction.BedLevelMachineAction() }
|
Loading…
Add table
Add a link
Reference in a new issue