mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Fleshing out of bedleveling action
CURA-1385
This commit is contained in:
parent
81602e9ccd
commit
924af37dff
4 changed files with 142 additions and 1 deletions
|
@ -17,7 +17,7 @@ class MachineAction(QObject, PluginObject):
|
|||
super().__init__()
|
||||
self._key = key
|
||||
self._label = label
|
||||
self._qml_url = ""
|
||||
self._qml_url = ""
|
||||
|
||||
self._component = None
|
||||
self._context = None
|
||||
|
@ -41,6 +41,18 @@ class MachineAction(QObject, PluginObject):
|
|||
def execute(self):
|
||||
self._execute()
|
||||
|
||||
## Reset the action to it's default state.
|
||||
# This should not be re-implemented by child classes, instead re-implement _reset.
|
||||
# /sa _reset
|
||||
@pyqtSlot()
|
||||
def reset(self):
|
||||
self._reset()
|
||||
|
||||
## Protected implementation of reset.
|
||||
# /sa reset()
|
||||
def _reset(self):
|
||||
pass
|
||||
|
||||
def _execute(self):
|
||||
raise NotImplementedError("Execute() must be implemented")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue