diff --git a/src/nqrduck_spectrometer/pulseparameters.py b/src/nqrduck_spectrometer/pulseparameters.py index c736def..03d241f 100644 --- a/src/nqrduck_spectrometer/pulseparameters.py +++ b/src/nqrduck_spectrometer/pulseparameters.py @@ -44,9 +44,9 @@ class TXPulse(BaseSpectrometerModel.PulseParameter): def get_pixmap(self): self_path = Path(__file__).parent if self.options["TX Amplitude"].value > 0: - image_path = self_path / "resources/pulseparameter/wip_txpulse.png" + image_path = self_path / "resources/pulseparameter/TX_Pulse.png" else: - image_path = self_path / "resources/pulseparameter/wip_no_txpulse.png" + image_path = self_path / "resources/pulseparameter/NoPulse.png" pixmap = QPixmap(str(image_path)) return pixmap @@ -65,6 +65,19 @@ class TXPulse(BaseSpectrometerModel.PulseParameter): class RXReadout(BaseSpectrometerModel.PulseParameter): def __init__(self, name) -> None: super().__init__(name) + self.add_option("RX", BooleanOption(False)) + + def get_pixmap(self): + self_path = Path(__file__).parent + if self.options["RX"].state == False: + image_path = self_path / "resources/pulseparameter/RXOff.png" + else: + image_path = self_path / "resources/pulseparameter/RXOn.png" + pixmap = QPixmap(str(image_path)) + return pixmap + + def set_options(self, options): + self.state = options class Gate(BaseSpectrometerModel.PulseParameter): @@ -75,9 +88,9 @@ class Gate(BaseSpectrometerModel.PulseParameter): def get_pixmap(self): self_path = Path(__file__).parent if self.options["Gate State"].state == False: - image_path = self_path / "resources/pulseparameter/wip_no_txpulse.png" + image_path = self_path / "resources/pulseparameter/GateOff.png" else: - image_path = self_path / "resources/pulseparameter/wip_txpulse.png" + image_path = self_path / "resources/pulseparameter/GateOn.png" pixmap = QPixmap(str(image_path)) return pixmap diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/GateOff.png b/src/nqrduck_spectrometer/resources/pulseparameter/GateOff.png new file mode 100644 index 0000000..d4622be Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/GateOff.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/GateOn.png b/src/nqrduck_spectrometer/resources/pulseparameter/GateOn.png new file mode 100644 index 0000000..a5f067e Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/GateOn.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/NoPulse.png b/src/nqrduck_spectrometer/resources/pulseparameter/NoPulse.png new file mode 100644 index 0000000..d101b59 Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/NoPulse.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/RXOff.png b/src/nqrduck_spectrometer/resources/pulseparameter/RXOff.png new file mode 100644 index 0000000..5558273 Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/RXOff.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/RXOn.png b/src/nqrduck_spectrometer/resources/pulseparameter/RXOn.png new file mode 100644 index 0000000..f1ee07a Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/RXOn.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/TX_Pulse.png b/src/nqrduck_spectrometer/resources/pulseparameter/TX_Pulse.png new file mode 100644 index 0000000..82cc917 Binary files /dev/null and b/src/nqrduck_spectrometer/resources/pulseparameter/TX_Pulse.png differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/wip_no_txpulse.png b/src/nqrduck_spectrometer/resources/pulseparameter/wip_no_txpulse.png deleted file mode 100644 index 0f98d22..0000000 Binary files a/src/nqrduck_spectrometer/resources/pulseparameter/wip_no_txpulse.png and /dev/null differ diff --git a/src/nqrduck_spectrometer/resources/pulseparameter/wip_txpulse.png b/src/nqrduck_spectrometer/resources/pulseparameter/wip_txpulse.png deleted file mode 100644 index 9782dc9..0000000 Binary files a/src/nqrduck_spectrometer/resources/pulseparameter/wip_txpulse.png and /dev/null differ