diff --git a/main/astrodatagui/AstrodataGUI.py b/main/astrodatagui/AstrodataGUI.py index 6e3dbac..10a602b 100644 --- a/main/astrodatagui/AstrodataGUI.py +++ b/main/astrodatagui/AstrodataGUI.py @@ -31,6 +31,10 @@ class AstrodataGUI(QtWidgets.QMainWindow): self.cbPlotFoldEnable.stateChanged.connect(self.plotOptionsExclusiveCBChecked) self.cbPlotPeriodogramEnable.stateChanged.connect(self.plotOptionsExclusiveCBChecked) + self.comboPlotFluxType.currentTextChanged.connect(self.plotOptionsComboBoxTextChanged) + self.comboPlotNormalizeUnit.currentTextChanged.connect(self.plotOptionsComboBoxTextChanged) + self.comboPlotPeriodogramMethod.currentTextChanged.connect(self.plotOptionsComboBoxTextChanged) + self.setupCustomSimbadQueries() self.show() self.loadDB() @@ -223,6 +227,21 @@ class AstrodataGUI(QtWidgets.QMainWindow): case self.cbPlotPeriodogramEnable: self.updateFlaredetectioWidgetPeriodogram() + def plotOptionsComboBoxTextChanged(self, value): + match(self.sender()): + case self.comboPlotFluxType: + self.updateFlaredetectioWidgetFlux() + + case self.comboPlotNormalizeUnit: + self.updateFlaredetectioWidgetNormalize() + + case self.comboPlotPeriodogramMethod: + self.updateFlaredetectioWidgetPeriodogram() + + def updateFlaredetectioWidgetFlux(self): + fluxType = self.comboPlotFluxType.currentText() + self.flaredetectorPreview.setFluxType(fluxType) + def updateFlaredetectioWidgetNormalize(self): normalizeEnabled = self.cbPlotNormalizeEnable.isChecked() normalizeUnit = self.comboPlotNormalizeUnit.currentText()