Added DiscoverUM3 machine action stub

CURA-1385
This commit is contained in:
Jaime van Kessel 2016-06-17 15:46:18 +02:00
parent be779cb92a
commit f8cac56370
2 changed files with 11 additions and 3 deletions

5
DiscoverUM3Action.py Normal file
View file

@ -0,0 +1,5 @@
from cura.MachineAction import MachineAction
class DiscoverUM3Action(MachineAction):
def __init__(self):
super().__init__("DiscoverUM3Action")

View file

@ -1,7 +1,7 @@
# Copyright (c) 2015 Ultimaker B.V. # Copyright (c) 2015 Ultimaker B.V.
# Cura is released under the terms of the AGPLv3 or higher. # Cura is released under the terms of the AGPLv3 or higher.
from . import NetworkPrinterOutputDevicePlugin from . import NetworkPrinterOutputDevicePlugin
from . import DiscoverUM3Action
from UM.i18n import i18nCatalog from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura") catalog = i18nCatalog("cura")
@ -12,8 +12,11 @@ def getMetaData():
"author": "Ultimaker", "author": "Ultimaker",
"description": catalog.i18nc("Wifi connection", "Wifi connection"), "description": catalog.i18nc("Wifi connection", "Wifi connection"),
"api": 3 "api": 3
} },
"profile_reader": [
{}
]
} }
def register(app): def register(app):
return { "output_device": NetworkPrinterOutputDevicePlugin.NetworkPrinterOutputDevicePlugin()} return { "output_device": NetworkPrinterOutputDevicePlugin.NetworkPrinterOutputDevicePlugin(), "machine_action": DiscoverUM3Action.DiscoverUM3Action()}