mirror of
https://github.com/ciromattia/kcc
synced 2026-06-19 04:50:51 +00:00
Disable horizontal mode check when "no split/rotate" is checked.
This commit is contained in:
@@ -313,6 +313,12 @@ class Ui_KCC(object):
|
|||||||
GUI.GammaLabel.setText('Gamma: ' + str(value))
|
GUI.GammaLabel.setText('Gamma: ' + str(value))
|
||||||
self.GammaValue = value
|
self.GammaValue = value
|
||||||
|
|
||||||
|
def toggleNoSplitRotate(self, value):
|
||||||
|
if value:
|
||||||
|
GUI.RotateBox.setEnabled(False)
|
||||||
|
else:
|
||||||
|
GUI.RotateBox.setEnabled(True)
|
||||||
|
|
||||||
def changeDevice(self, value, start=False):
|
def changeDevice(self, value, start=False):
|
||||||
if value == 11 and (start or self.currentMode != 3):
|
if value == 11 and (start or self.currentMode != 3):
|
||||||
GUI.BasicModeButton.setEnabled(False)
|
GUI.BasicModeButton.setEnabled(False)
|
||||||
@@ -440,6 +446,7 @@ class Ui_KCC(object):
|
|||||||
GUI.FileButton.clicked.connect(self.selectFile)
|
GUI.FileButton.clicked.connect(self.selectFile)
|
||||||
GUI.ConvertButton.clicked.connect(self.convertStart)
|
GUI.ConvertButton.clicked.connect(self.convertStart)
|
||||||
GUI.GammaSlider.valueChanged.connect(self.changeGamma)
|
GUI.GammaSlider.valueChanged.connect(self.changeGamma)
|
||||||
|
GUI.NoRotateBox.stateChanged.connect(self.toggleNoSplitRotate)
|
||||||
GUI.DeviceBox.activated.connect(self.changeDevice)
|
GUI.DeviceBox.activated.connect(self.changeDevice)
|
||||||
KCC.connect(self.worker, QtCore.SIGNAL("progressBarTick"), self.updateProgressbar)
|
KCC.connect(self.worker, QtCore.SIGNAL("progressBarTick"), self.updateProgressbar)
|
||||||
KCC.connect(self.worker, QtCore.SIGNAL("modeConvert"), self.modeConvert)
|
KCC.connect(self.worker, QtCore.SIGNAL("modeConvert"), self.modeConvert)
|
||||||
|
|||||||
Reference in New Issue
Block a user