Repository URL to install this package:
|
Version:
2:2.1.3 ▾
|
# Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.
from . import Operation
class GroupedOperation(Operation.Operation):
def __init__(self):
super().__init__()
self._children = []
def addOperation(self, op):
self._children.append(op)
def removeOperation(self, index):
del self._children[index]
def undo(self):
for op in self._children:
op.undo()
def redo(self):
for op in self._children:
op.redo()