forked from openlp/openlp
Rename CheckedBoxen
This commit is contained in:
parent
6fe8ecf0c3
commit
6504d74fa0
@ -596,15 +596,15 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.TransitionGroupBox.setObjectName(u'TransitionGroupBox')
|
self.TransitionGroupBox.setObjectName(u'TransitionGroupBox')
|
||||||
self.gridLayout_5 = QtGui.QGridLayout(self.TransitionGroupBox)
|
self.gridLayout_5 = QtGui.QGridLayout(self.TransitionGroupBox)
|
||||||
self.gridLayout_5.setObjectName(u'gridLayout_5')
|
self.gridLayout_5.setObjectName(u'gridLayout_5')
|
||||||
self.SlideTransitionCheckedBoxLabel = QtGui.QLabel(
|
self.SlideTransitionCheckBoxLabel = QtGui.QLabel(
|
||||||
self.TransitionGroupBox)
|
self.TransitionGroupBox)
|
||||||
self.SlideTransitionCheckedBoxLabel.setObjectName(
|
self.SlideTransitionCheckBoxLabel.setObjectName(
|
||||||
u'SlideTransitionCheckedBoxLabel')
|
u'SlideTransitionCheckBoxLabel')
|
||||||
self.gridLayout_5.addWidget(
|
self.gridLayout_5.addWidget(
|
||||||
self.SlideTransitionCheckedBoxLabel, 0, 0, 1, 1)
|
self.SlideTransitionCheckBoxLabel, 0, 0, 1, 1)
|
||||||
self.SlideTransitionCheckedBox = QtGui.QCheckBox(self.AlignmentGroupBox)
|
self.SlideTransitionCheckBox = QtGui.QCheckBox(self.AlignmentGroupBox)
|
||||||
self.SlideTransitionCheckedBox.setTristate(False)
|
self.SlideTransitionCheckBox.setTristate(False)
|
||||||
self.gridLayout_5.addWidget(self.SlideTransitionCheckedBox, 0, 1, 1, 1)
|
self.gridLayout_5.addWidget(self.SlideTransitionCheckBox, 0, 1, 1, 1)
|
||||||
self.OptionsRightLayout.addWidget(self.TransitionGroupBox)
|
self.OptionsRightLayout.addWidget(self.TransitionGroupBox)
|
||||||
spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
|
spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum,
|
||||||
QtGui.QSizePolicy.Expanding)
|
QtGui.QSizePolicy.Expanding)
|
||||||
@ -864,7 +864,7 @@ class Ui_AmendThemeDialog(object):
|
|||||||
translate('AmendThemeForm', 'Bottom'))
|
translate('AmendThemeForm', 'Bottom'))
|
||||||
self.TransitionGroupBox.setTitle(
|
self.TransitionGroupBox.setTitle(
|
||||||
translate('AmendThemeForm', 'Slide Transition'))
|
translate('AmendThemeForm', 'Slide Transition'))
|
||||||
self.SlideTransitionCheckedBoxLabel.setText(
|
self.SlideTransitionCheckBoxLabel.setText(
|
||||||
translate('AmendThemeForm', 'Transition active:'))
|
translate('AmendThemeForm', 'Transition active:'))
|
||||||
self.ThemeTabWidget.setTabText(
|
self.ThemeTabWidget.setTabText(
|
||||||
self.ThemeTabWidget.indexOf(self.OtherOptionsTab),
|
self.ThemeTabWidget.indexOf(self.OtherOptionsTab),
|
||||||
|
@ -133,9 +133,9 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
QtCore.QObject.connect(self.OutlineSpinBox,
|
QtCore.QObject.connect(self.OutlineSpinBox,
|
||||||
QtCore.SIGNAL(u'editingFinished()'),
|
QtCore.SIGNAL(u'editingFinished()'),
|
||||||
self.onOutlineSpinBoxChanged)
|
self.onOutlineSpinBoxChanged)
|
||||||
QtCore.QObject.connect(self.SlideTransitionCheckedBox,
|
QtCore.QObject.connect(self.SlideTransitionCheckBox,
|
||||||
QtCore.SIGNAL(u'stateChanged(int)'),
|
QtCore.SIGNAL(u'stateChanged(int)'),
|
||||||
self.onSlideTransitionCheckedBoxChanged)
|
self.onSlideTransitionCheckBoxChanged)
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
new_theme = ThemeXML()
|
new_theme = ThemeXML()
|
||||||
@ -500,7 +500,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.stateChanging(self.theme)
|
self.stateChanging(self.theme)
|
||||||
self.previewTheme()
|
self.previewTheme()
|
||||||
|
|
||||||
def onSlideTransitionCheckedBoxChanged(self, value):
|
def onSlideTransitionCheckBoxChanged(self, value):
|
||||||
if value == 2: # checked
|
if value == 2: # checked
|
||||||
self.theme.display_slideTransition = True
|
self.theme.display_slideTransition = True
|
||||||
else:
|
else:
|
||||||
@ -624,9 +624,9 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.ShadowColorPushButton.setEnabled(False)
|
self.ShadowColorPushButton.setEnabled(False)
|
||||||
self.ShadowSpinBox.setValue(int(self.theme.display_shadow_size))
|
self.ShadowSpinBox.setValue(int(self.theme.display_shadow_size))
|
||||||
if self.theme.display_slideTransition:
|
if self.theme.display_slideTransition:
|
||||||
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Checked)
|
self.SlideTransitionCheckBox.setCheckState(QtCore.Qt.Checked)
|
||||||
else:
|
else:
|
||||||
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Unchecked)
|
self.SlideTransitionCheckBox.setCheckState(QtCore.Qt.Unchecked)
|
||||||
self.HorizontalComboBox.setCurrentIndex(
|
self.HorizontalComboBox.setCurrentIndex(
|
||||||
self.theme.display_horizontalAlign)
|
self.theme.display_horizontalAlign)
|
||||||
self.VerticalComboBox.setCurrentIndex(self.theme.display_verticalAlign)
|
self.VerticalComboBox.setCurrentIndex(self.theme.display_verticalAlign)
|
||||||
|
Loading…
Reference in New Issue
Block a user