Index: simulator/plugins/createtreatment/loader.py =================================================================== diff -u -r587822f6461dce6f46302875b09abb552532f698 -r967521dff94783ce48b50abc8db6bcd67bb501bf --- simulator/plugins/createtreatment/loader.py (.../loader.py) (revision 587822f6461dce6f46302875b09abb552532f698) +++ simulator/plugins/createtreatment/loader.py (.../loader.py) (revision 967521dff94783ce48b50abc8db6bcd67bb501bf) @@ -9,7 +9,7 @@ # parent from simulator.dynamicloader import DynamicLoader # hd Simulator -from dialin.ui.hd_simulator import HDSimulator +from simulator.interface import SimulationInterface from dialin.ui.hd_simulator import RequestRejectReasons # plugin specific # -- None -- @@ -31,8 +31,8 @@ spnUFVolumeRejectReason: QtWidgets.QSpinBox sldUFVolume: QtWidgets.QSlider - def __init__(self, hd_simulator: HDSimulator): - super().__init__(os.path.dirname(__file__), hd_simulator) + def __init__(self, interface: SimulationInterface): + super().__init__(os.path.dirname(__file__), interface) def _init_loader(self): """ @@ -74,7 +74,7 @@ the slot for accept button :return: none """ - self.hd_simulator.cmd_send_treatment_parameter_manual_validation_response([ + self.interface.hd.cmd_send_treatment_parameter_manual_validation_response([ 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -90,7 +90,7 @@ """ reason = self.spnCreateRejectReason.value() print(reason) - self.hd_simulator.cmd_send_treatment_parameter_manual_validation_response([ + self.interface.hd.cmd_send_treatment_parameter_manual_validation_response([ reason, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -105,7 +105,7 @@ :return: none """ volume = self.sldUFVolume.value() - self.hd_simulator.cmd_send_uf_treatment_response(True, 0, volume) + self.interface.hd.cmd_send_uf_treatment_response(True, 0, volume) self.lblCreateAction.setText('Accepted ') @Slot() @@ -116,5 +116,5 @@ """ reason = self.spnUFVolumeRejectReason.value() volume = self.sldUFVolume.value() - self.hd_simulator.cmd_send_uf_treatment_response(False, reason, volume) + self.interface.hd.cmd_send_uf_treatment_response(False, reason, volume) self.lblCreateAction.setText('Rejected ' + "{}".format(reason))