Added run button and parameter dialog
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user