Added run button and parameter dialog

This commit is contained in:
2026-07-20 18:46:59 +02:00
parent 4cfe7c3a0e
commit 38e3d7aae9
16 changed files with 587 additions and 72 deletions

View File

@@ -150,6 +150,19 @@ class EditSimulationSettingsCommand(QUndoCommand):
self.controller._set_simulation_settings(self.owner_id, self.old)
class EditGraphParametersCommand(QUndoCommand):
def __init__(self, controller, old: dict, new: dict) -> None:
super().__init__("Edit graph parameters")
self.controller = controller
self.old, self.new = old, new
def redo(self) -> None:
self.controller._set_graph_parameters(self.new)
def undo(self) -> None:
self.controller._set_graph_parameters(self.old)
class DeleteAnnotationsCommand(QUndoCommand):
def __init__(self, controller, owner_id: str, annotations: dict[str, Annotation]) -> None:
super().__init__("Delete annotations")