1 from __future__
import print_function
12 raise NotImplementedError
15 """ Repeats this event. 17 raise NotImplementedError
20 """ Combines this event with another event of the same kind. 22 If the combination was successfull True or otherwise False will be returned. 27 """ Returns a string with more detailed explanation of what this event does 29 E.g. what exactly was dragged, moved or which values changed. 34 """ Sets the last saved state flag. 36 If the flag is True, this UndoEvent represents the first action 37 after saving the file for the last time. 42 """ Returns the last saved state flag, see setLastSavedState(). 44 if hasattr(self,
"_lastSavedStateFlag"):
48 def dump(self, prefix="undo"):
53 """ This UndoEvent holds a list of UndoEvents whose redo() and undo() are invoked at the same time 54 when the corresponding function of this event is invoked. 57 LABEL =
"Multiple actions" 59 def __init__(self, listOfUndoEvents, label=None):
60 UndoEvent.__init__(self)
69 if not event.LABEL
in labels:
70 labels.append(event.LABEL)
84 def dump(self, prefix="undo"):
85 UndoEvent.dump(self, prefix)
87 event.dump(
" " + prefix)
def combine(self, otherUndoEvent)
def setLastSavedState(self, flag)
S & print(S &os, JobReport::InputFile const &f)
def dump(self, prefix="undo")
def isLastSavedState(self)
def __init__(self, listOfUndoEvents, label=None)
static std::string join(char **cmd)
def dump(self, prefix="undo")