From 8af2b076a7bba12ae1c01eb6db50d14b81893456 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 20 Jun 2016 13:51:27 +0200 Subject: [PATCH] Added plugin for UM machine actions CURA-1385 --- .../BedLevelMachineAction.py | 9 ++++++++ plugins/UltimakerMachineActions/__init__.py | 21 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/UltimakerMachineActions/BedLevelMachineAction.py create mode 100644 plugins/UltimakerMachineActions/__init__.py diff --git a/plugins/UltimakerMachineActions/BedLevelMachineAction.py b/plugins/UltimakerMachineActions/BedLevelMachineAction.py new file mode 100644 index 0000000000..b45e6e9300 --- /dev/null +++ b/plugins/UltimakerMachineActions/BedLevelMachineAction.py @@ -0,0 +1,9 @@ +from cura.MachineAction import MachineAction + +class BedLevelMachineAction(MachineAction): + def __init__(self): + super().__init__("BedLevel", "Level bed") + + def _execute(self): + pass + diff --git a/plugins/UltimakerMachineActions/__init__.py b/plugins/UltimakerMachineActions/__init__.py new file mode 100644 index 0000000000..1807fa1f1e --- /dev/null +++ b/plugins/UltimakerMachineActions/__init__.py @@ -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() }