added stub simulation entry and logs
This commit is contained in:
@@ -137,6 +137,19 @@ class EditGraphItemCommand(QUndoCommand):
|
||||
self.controller._set_graph_item_data(self.owner_id, self.item_kind, self.item_id, self.old)
|
||||
|
||||
|
||||
class EditSimulationSettingsCommand(QUndoCommand):
|
||||
def __init__(self, controller, owner_id: str, old: dict, new: dict) -> None:
|
||||
super().__init__("Edit simulation settings")
|
||||
self.controller, self.owner_id = controller, owner_id
|
||||
self.old, self.new = old, new
|
||||
|
||||
def redo(self) -> None:
|
||||
self.controller._set_simulation_settings(self.owner_id, self.new)
|
||||
|
||||
def undo(self) -> None:
|
||||
self.controller._set_simulation_settings(self.owner_id, self.old)
|
||||
|
||||
|
||||
class DeleteAnnotationsCommand(QUndoCommand):
|
||||
def __init__(self, controller, owner_id: str, annotations: dict[str, Annotation]) -> None:
|
||||
super().__init__("Delete annotations")
|
||||
|
||||
Reference in New Issue
Block a user