Index: simulator/plugins/GeneralProgressMessage/interface.ui =================================================================== diff -u -r2204a65b0af94e7e555f0f4207fd2701c164d1d5 -r12408471ebe8f39c87bd0242a2d5e36f122175d4 --- simulator/plugins/GeneralProgressMessage/interface.ui (.../interface.ui) (revision 2204a65b0af94e7e555f0f4207fd2701c164d1d5) +++ simulator/plugins/GeneralProgressMessage/interface.ui (.../interface.ui) (revision 12408471ebe8f39c87bd0242a2d5e36f122175d4) @@ -6,8 +6,8 @@ 0 0 - 468 - 153 + 375 + 182 @@ -42,7 +42,7 @@ - + @@ -63,28 +63,50 @@ - - - - - 10 - + + + + D000 - - 0 + + 96 - - 300 + + + + + + Decimal - - 300 + + + + + + MsgID - - Qt::Horizontal + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + 0 + 0 + + + + Timeout + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + @@ -128,23 +150,28 @@ - - - - - 0 - 0 - + + + + + 10 + - - Timeout + + 0 - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + 300 + + 300 + + + Qt::Horizontal + - + @@ -165,7 +192,7 @@ - + @@ -196,32 +223,22 @@ - + - MsgID + HD - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + true - - - D000 - + - 96 + DG - - - - Decimal - - - Index: simulator/plugins/GeneralProgressMessage/loader.py =================================================================== diff -u -r2204a65b0af94e7e555f0f4207fd2701c164d1d5 -r12408471ebe8f39c87bd0242a2d5e36f122175d4 --- simulator/plugins/GeneralProgressMessage/loader.py (.../loader.py) (revision 2204a65b0af94e7e555f0f4207fd2701c164d1d5) +++ simulator/plugins/GeneralProgressMessage/loader.py (.../loader.py) (revision 12408471ebe8f39c87bd0242a2d5e36f122175d4) @@ -19,10 +19,11 @@ """ The Saline Bolus ui loader class """ + rbHD: QtWidgets.QRadioButton + rbDG: QtWidgets.QRadioButton leMessageID: QtWidgets.QLineEdit leTargetMax: QtWidgets.QLineEdit sldTimeout: QtWidgets.QSlider - sldTimeout: QtWidgets.QSlider sldCountdown: QtWidgets.QSlider def __init__(self, hd_simulator: HDSimulator): @@ -33,6 +34,8 @@ finds and creates widgets :return: none """ + self.rbHD = self.find_radio_button('rbHD') + self.rbDG = self.find_radio_button('rbDG') self.leMessageID = self.find_line_edit('leMessageID') self.leTargetMax = self.find_line_edit('leTargetMax') self.sldTimeout = self.find_slider('sldTimeout') @@ -61,6 +64,7 @@ :return: none """ self.sldTimeout.setMaximum(int(value)) + self.sldCountdown.setMaximum(int(value)) @Slot() def do_data(self): @@ -72,4 +76,4 @@ message_id = self.leMessageID.text() timeout = self.sldTimeout.value() countdown = self.sldCountdown.value() - self.hd_simulator.cmd_send_general_progress_data(int(message_id), timeout, countdown) + self.hd_simulator.cmd_send_general_progress_data(int(message_id), timeout, countdown, self.rbHD.isChecked()) Index: simulator/plugins/HDOpMode/loader.py =================================================================== diff -u -ra11b044673a77150b1d3485d43a5a001340a0feb -r12408471ebe8f39c87bd0242a2d5e36f122175d4 --- simulator/plugins/HDOpMode/loader.py (.../loader.py) (revision a11b044673a77150b1d3485d43a5a001340a0feb) +++ simulator/plugins/HDOpMode/loader.py (.../loader.py) (revision 12408471ebe8f39c87bd0242a2d5e36f122175d4) @@ -12,6 +12,7 @@ from dialin.ui.hd_simulator import HDSimulator # plugin specific from dialin.common.hd_defs import HDDefs +from dialin.common.hd_defs import HD_Standby_States class Loader(DynamicLoader): @@ -50,7 +51,7 @@ :return: none """ self.tblOpMode.setCurrentCell(HDDefs.MODE_INIT.value, 0) - self.tblSubMode.setCurrentCell(HDDefs.MODE_INIT.value, 0) + self.tblSubMode.setCurrentCell(HD_Standby_States.STANDBY_START_STATE.value, 0) @Slot() def do_treatment_states(self):