astrodatagui: add plot update events for combo boxes
This commit is contained in:
@@ -31,6 +31,10 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
|||||||
self.cbPlotFoldEnable.stateChanged.connect(self.plotOptionsExclusiveCBChecked)
|
self.cbPlotFoldEnable.stateChanged.connect(self.plotOptionsExclusiveCBChecked)
|
||||||
self.cbPlotPeriodogramEnable.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.setupCustomSimbadQueries()
|
||||||
self.show()
|
self.show()
|
||||||
self.loadDB()
|
self.loadDB()
|
||||||
@@ -223,6 +227,21 @@ class AstrodataGUI(QtWidgets.QMainWindow):
|
|||||||
case self.cbPlotPeriodogramEnable:
|
case self.cbPlotPeriodogramEnable:
|
||||||
self.updateFlaredetectioWidgetPeriodogram()
|
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):
|
def updateFlaredetectioWidgetNormalize(self):
|
||||||
normalizeEnabled = self.cbPlotNormalizeEnable.isChecked()
|
normalizeEnabled = self.cbPlotNormalizeEnable.isChecked()
|
||||||
normalizeUnit = self.comboPlotNormalizeUnit.currentText()
|
normalizeUnit = self.comboPlotNormalizeUnit.currentText()
|
||||||
|
|||||||
Reference in New Issue
Block a user