Пример #1
0
    def updateWavenumberRange(self):
        super().updateWavenumberRange()

        wmin = min(self.data.wmin, octavvs.ui.constants.WMIN)
        wmax = max(self.data.wmax, octavvs.ui.constants.WMAX)
        self.lineEditMinwn.setRange(wmin, wmax, default=wmin)
        self.lineEditMaxwn.setRange(wmin, wmax, default=wmax)
        self.lineEditNormWavenum.setRange(wmin,
                                          wmax,
                                          default=.5 * (wmin + wmax))

        if self.data.wavenumber is not None:
            # Update slider ranges before setting new values
            uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn,
                                  self.data.wavenumber,
                                  uitools.ixfinder_noless)
            uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn,
                                  self.data.wavenumber,
                                  uitools.ixfinder_nomore)
Пример #2
0
 def srMaxEdit(self):
     uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn,
                           self.data.wavenumber, uitools.ixfinder_nomore)
     self.updateSR()
Пример #3
0
 def srMinEdit(self):
     uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn,
                           self.data.wavenumber, uitools.ixfinder_noless)
     self.updateSR()
Пример #4
0
 def srMaxEdit(self):
     uitools.box_to_slider(self.horizontalSliderMax, self.lineEditMaxwn,
                           self.plot_SGF.getWavenumbers(),
                           uitools.ixfinder_nomore)
Пример #5
0
 def srMinEdit(self):
     uitools.box_to_slider(self.horizontalSliderMin, self.lineEditMinwn,
                           self.plot_SGF.getWavenumbers(),
                           uitools.ixfinder_noless)