more interactive edit

This commit is contained in:
Dominik Demuth
2023-10-25 20:04:49 +02:00
parent 6339bdc2cc
commit 7fe564a61e
10 changed files with 921 additions and 241 deletions

View File

@ -418,6 +418,13 @@ class UpperManagement(QtCore.QObject):
self.undostack.push(single_undo)
self.undostack.endMacro()
def edit_signals(self: UpperManagement, args: list[tuple]) -> None:
self.undostack.beginMacro('Edit signals')
for sid in self.graphs[self.current_graph]:
single_undo = EditCommand(self.data[sid], *args)
self.undostack.push(single_undo)
self.undostack.endMacro()
def cut(self):
if self.current_graph:
xlim, _ = self.graphs[self.current_graph].ranges