From 41eaa2cd290799f5fe2ebf15dc3587521287649e Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Tue, 27 Jul 2010 11:20:20 +0100 Subject: [PATCH] AmendTheme naming and missed trailing new line --- openlp/core/lib/serviceitem.py | 2 +- openlp/core/ui/amendthemedialog.py | 1328 ++++++++++++++-------------- openlp/core/ui/amendthemeform.py | 426 ++++----- 3 files changed, 878 insertions(+), 878 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index 591b205e2..ca7111d41 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -389,4 +389,4 @@ class ServiceItem(object): """ Clear's the service item's cache. """ - self.cache = {} \ No newline at end of file + self.cache = {} diff --git a/openlp/core/ui/amendthemedialog.py b/openlp/core/ui/amendthemedialog.py index ce44bcdc2..bef41e8fa 100644 --- a/openlp/core/ui/amendthemedialog.py +++ b/openlp/core/ui/amendthemedialog.py @@ -29,801 +29,801 @@ from PyQt4 import QtCore, QtGui from openlp.core.lib import build_icon, translate class Ui_AmendThemeDialog(object): - def setupUi(self, AmendThemeDialog): - AmendThemeDialog.setObjectName(u'AmendThemeDialog') - AmendThemeDialog.setWindowModality(QtCore.Qt.ApplicationModal) - AmendThemeDialog.resize(586, 651) + def setupUi(self, amendThemeDialog): + amendThemeDialog.setObjectName(u'amendThemeDialog') + amendThemeDialog.setWindowModality(QtCore.Qt.ApplicationModal) + amendThemeDialog.resize(586, 651) icon = build_icon(u':/icon/openlp-logo-16x16.png') - AmendThemeDialog.setWindowIcon(icon) - AmendThemeDialog.setModal(True) - self.AmendThemeLayout = QtGui.QVBoxLayout(AmendThemeDialog) - self.AmendThemeLayout.setSpacing(8) - self.AmendThemeLayout.setMargin(8) - self.AmendThemeLayout.setObjectName(u'AmendThemeLayout') - self.ThemeNameWidget = QtGui.QWidget(AmendThemeDialog) - self.ThemeNameWidget.setObjectName(u'ThemeNameWidget') - self.ThemeNameLayout = QtGui.QHBoxLayout(self.ThemeNameWidget) - self.ThemeNameLayout.setSpacing(8) - self.ThemeNameLayout.setMargin(0) - self.ThemeNameLayout.setObjectName(u'ThemeNameLayout') - self.ThemeNameLabel = QtGui.QLabel(self.ThemeNameWidget) - self.ThemeNameLabel.setObjectName(u'ThemeNameLabel') - self.ThemeNameLayout.addWidget(self.ThemeNameLabel) - self.ThemeNameEdit = QtGui.QLineEdit(self.ThemeNameWidget) - self.ThemeNameEdit.setObjectName(u'ThemeNameEdit') - self.ThemeNameLabel.setBuddy(self.ThemeNameEdit) - self.ThemeNameLayout.addWidget(self.ThemeNameEdit) - self.AmendThemeLayout.addWidget(self.ThemeNameWidget) - self.ContentWidget = QtGui.QWidget(AmendThemeDialog) - self.ContentWidget.setObjectName(u'ContentWidget') - self.ContentLayout = QtGui.QHBoxLayout(self.ContentWidget) - self.ContentLayout.setSpacing(8) - self.ContentLayout.setMargin(0) - self.ContentLayout.setObjectName(u'ContentLayout') - self.ThemeTabWidget = QtGui.QTabWidget(self.ContentWidget) - self.ThemeTabWidget.setObjectName(u'ThemeTabWidget') - self.BackgroundTab = QtGui.QWidget() - self.BackgroundTab.setObjectName(u'BackgroundTab') - self.BackgroundLayout = QtGui.QFormLayout(self.BackgroundTab) - self.BackgroundLayout.setMargin(8) - self.BackgroundLayout.setSpacing(8) - self.BackgroundLayout.setObjectName(u'BackgroundLayout') - self.BackgroundLabel = QtGui.QLabel(self.BackgroundTab) - self.BackgroundLabel.setObjectName(u'BackgroundLabel') - self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.BackgroundLabel) - self.BackgroundComboBox = QtGui.QComboBox(self.BackgroundTab) - self.BackgroundComboBox.setObjectName(u'BackgroundComboBox') - self.BackgroundLabel.setBuddy(self.BackgroundComboBox) - self.BackgroundComboBox.addItem(QtCore.QString()) - self.BackgroundComboBox.addItem(QtCore.QString()) - self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.BackgroundComboBox) - self.BackgroundTypeLabel = QtGui.QLabel(self.BackgroundTab) - self.BackgroundTypeLabel.setObjectName(u'BackgroundTypeLabel') - self.BackgroundLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.BackgroundTypeLabel) - self.BackgroundTypeComboBox = QtGui.QComboBox(self.BackgroundTab) - self.BackgroundTypeComboBox.setObjectName(u'BackgroundTypeComboBox') - self.BackgroundTypeComboBox.addItem(QtCore.QString()) - self.BackgroundTypeComboBox.addItem(QtCore.QString()) - self.BackgroundTypeComboBox.addItem(QtCore.QString()) - self.BackgroundLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.BackgroundTypeComboBox) - self.Color1Label = QtGui.QLabel(self.BackgroundTab) - self.Color1Label.setObjectName(u'Color1Label') - self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.Color1Label) - self.Color1PushButton = QtGui.QPushButton(self.BackgroundTab) - self.Color1PushButton.setObjectName(u'Color1PushButton') - self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.Color1PushButton) - self.Color2Label = QtGui.QLabel(self.BackgroundTab) - self.Color2Label.setObjectName(u'Color2Label') - self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.LabelRole, - self.Color2Label) - self.Color2PushButton = QtGui.QPushButton(self.BackgroundTab) - self.Color2PushButton.setObjectName(u'Color2PushButton') - self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.FieldRole, - self.Color2PushButton) - self.ImageLabel = QtGui.QLabel(self.BackgroundTab) - self.ImageLabel.setObjectName(u'ImageLabel') - self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.LabelRole, - self.ImageLabel) - self.GradientLabel = QtGui.QLabel(self.BackgroundTab) - self.GradientLabel.setObjectName(u'GradientLabel') - self.BackgroundLayout.setWidget(6, QtGui.QFormLayout.LabelRole, - self.GradientLabel) - self.GradientComboBox = QtGui.QComboBox(self.BackgroundTab) - self.GradientComboBox.setObjectName(u'GradientComboBox') - self.GradientComboBox.addItem(QtCore.QString()) - self.GradientComboBox.addItem(QtCore.QString()) - self.GradientComboBox.addItem(QtCore.QString()) - self.BackgroundLayout.setWidget(6, QtGui.QFormLayout.FieldRole, - self.GradientComboBox) - self.ImageFilenameWidget = QtGui.QWidget(self.BackgroundTab) - self.ImageFilenameWidget.setObjectName(u'ImageFilenameWidget') - self.horizontalLayout_2 = QtGui.QHBoxLayout(self.ImageFilenameWidget) + amendThemeDialog.setWindowIcon(icon) + amendThemeDialog.setModal(True) + self.amendThemeLayout = QtGui.QVBoxLayout(amendThemeDialog) + self.amendThemeLayout.setSpacing(8) + self.amendThemeLayout.setMargin(8) + self.amendThemeLayout.setObjectName(u'amendThemeLayout') + self.themeNameWidget = QtGui.QWidget(amendThemeDialog) + self.themeNameWidget.setObjectName(u'themeNameWidget') + self.themeNameLayout = QtGui.QHBoxLayout(self.themeNameWidget) + self.themeNameLayout.setSpacing(8) + self.themeNameLayout.setMargin(0) + self.themeNameLayout.setObjectName(u'themeNameLayout') + self.themeNameLabel = QtGui.QLabel(self.themeNameWidget) + self.themeNameLabel.setObjectName(u'themeNameLabel') + self.themeNameLayout.addWidget(self.themeNameLabel) + self.themeNameEdit = QtGui.QLineEdit(self.themeNameWidget) + self.themeNameEdit.setObjectName(u'themeNameEdit') + self.themeNameLabel.setBuddy(self.themeNameEdit) + self.themeNameLayout.addWidget(self.themeNameEdit) + self.amendThemeLayout.addWidget(self.themeNameWidget) + self.contentWidget = QtGui.QWidget(amendThemeDialog) + self.contentWidget.setObjectName(u'contentWidget') + self.contentLayout = QtGui.QHBoxLayout(self.contentWidget) + self.contentLayout.setSpacing(8) + self.contentLayout.setMargin(0) + self.contentLayout.setObjectName(u'contentLayout') + self.themeTabWidget = QtGui.QTabWidget(self.contentWidget) + self.themeTabWidget.setObjectName(u'themeTabWidget') + self.backgroundTab = QtGui.QWidget() + self.backgroundTab.setObjectName(u'backgroundTab') + self.backgroundLayout = QtGui.QFormLayout(self.backgroundTab) + self.backgroundLayout.setMargin(8) + self.backgroundLayout.setSpacing(8) + self.backgroundLayout.setObjectName(u'backgroundLayout') + self.backgroundLabel = QtGui.QLabel(self.backgroundTab) + self.backgroundLabel.setObjectName(u'backgroundLabel') + self.backgroundLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.backgroundLabel) + self.backgroundComboBox = QtGui.QComboBox(self.backgroundTab) + self.backgroundComboBox.setObjectName(u'backgroundComboBox') + self.backgroundLabel.setBuddy(self.backgroundComboBox) + self.backgroundComboBox.addItem(QtCore.QString()) + self.backgroundComboBox.addItem(QtCore.QString()) + self.backgroundLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.backgroundComboBox) + self.backgroundTypeLabel = QtGui.QLabel(self.backgroundTab) + self.backgroundTypeLabel.setObjectName(u'backgroundTypeLabel') + self.backgroundLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.backgroundTypeLabel) + self.backgroundTypeComboBox = QtGui.QComboBox(self.backgroundTab) + self.backgroundTypeComboBox.setObjectName(u'backgroundTypeComboBox') + self.backgroundTypeComboBox.addItem(QtCore.QString()) + self.backgroundTypeComboBox.addItem(QtCore.QString()) + self.backgroundTypeComboBox.addItem(QtCore.QString()) + self.backgroundLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.backgroundTypeComboBox) + self.color1Label = QtGui.QLabel(self.backgroundTab) + self.color1Label.setObjectName(u'color1Label') + self.backgroundLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.color1Label) + self.color1PushButton = QtGui.QPushButton(self.backgroundTab) + self.color1PushButton.setObjectName(u'color1PushButton') + self.backgroundLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.color1PushButton) + self.color2Label = QtGui.QLabel(self.backgroundTab) + self.color2Label.setObjectName(u'color2Label') + self.backgroundLayout.setWidget(3, QtGui.QFormLayout.LabelRole, + self.color2Label) + self.color2PushButton = QtGui.QPushButton(self.backgroundTab) + self.color2PushButton.setObjectName(u'color2PushButton') + self.backgroundLayout.setWidget(3, QtGui.QFormLayout.FieldRole, + self.color2PushButton) + self.imageLabel = QtGui.QLabel(self.backgroundTab) + self.imageLabel.setObjectName(u'imageLabel') + self.backgroundLayout.setWidget(4, QtGui.QFormLayout.LabelRole, + self.imageLabel) + self.gradientLabel = QtGui.QLabel(self.backgroundTab) + self.gradientLabel.setObjectName(u'gradientLabel') + self.backgroundLayout.setWidget(6, QtGui.QFormLayout.LabelRole, + self.gradientLabel) + self.gradientComboBox = QtGui.QComboBox(self.backgroundTab) + self.gradientComboBox.setObjectName(u'gradientComboBox') + self.gradientComboBox.addItem(QtCore.QString()) + self.gradientComboBox.addItem(QtCore.QString()) + self.gradientComboBox.addItem(QtCore.QString()) + self.backgroundLayout.setWidget(6, QtGui.QFormLayout.FieldRole, + self.gradientComboBox) + self.imageFilenameWidget = QtGui.QWidget(self.backgroundTab) + self.imageFilenameWidget.setObjectName(u'imageFilenameWidget') + self.horizontalLayout_2 = QtGui.QHBoxLayout(self.imageFilenameWidget) self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setMargin(0) self.horizontalLayout_2.setObjectName(u'horizontalLayout_2') - self.ImageLineEdit = QtGui.QLineEdit(self.ImageFilenameWidget) - self.ImageLineEdit.setObjectName(u'ImageLineEdit') - self.horizontalLayout_2.addWidget(self.ImageLineEdit) - self.ImageToolButton = QtGui.QToolButton(self.ImageFilenameWidget) - self.ImageToolButton.setIcon(build_icon(u':/general/general_open.png')) - self.ImageToolButton.setObjectName(u'ImageToolButton') - self.ImageToolButton.setAutoRaise(True) - self.horizontalLayout_2.addWidget(self.ImageToolButton) - self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.FieldRole, - self.ImageFilenameWidget) - self.ThemeTabWidget.addTab(self.BackgroundTab, u'') - self.FontMainTab = QtGui.QWidget() - self.FontMainTab.setObjectName(u'FontMainTab') - self.FontMainLayout = QtGui.QHBoxLayout(self.FontMainTab) - self.FontMainLayout.setSpacing(8) - self.FontMainLayout.setMargin(8) - self.FontMainLayout.setObjectName(u'FontMainLayout') - self.MainLeftWidget = QtGui.QWidget(self.FontMainTab) - self.MainLeftWidget.setObjectName(u'MainLeftWidget') - self.MainLeftLayout = QtGui.QVBoxLayout(self.MainLeftWidget) - self.MainLeftLayout.setSpacing(8) - self.MainLeftLayout.setMargin(0) - self.MainLeftLayout.setObjectName(u'MainLeftLayout') - self.FontMainGroupBox = QtGui.QGroupBox(self.MainLeftWidget) - self.FontMainGroupBox.setObjectName(u'FontMainGroupBox') - self.MainFontLayout = QtGui.QFormLayout(self.FontMainGroupBox) - self.MainFontLayout.setFormAlignment(QtCore.Qt.AlignLeading | + self.imageLineEdit = QtGui.QLineEdit(self.imageFilenameWidget) + self.imageLineEdit.setObjectName(u'imageLineEdit') + self.horizontalLayout_2.addWidget(self.imageLineEdit) + self.imageToolButton = QtGui.QToolButton(self.imageFilenameWidget) + self.imageToolButton.setIcon(build_icon(u':/general/general_open.png')) + self.imageToolButton.setObjectName(u'imageToolButton') + self.imageToolButton.setAutoRaise(True) + self.horizontalLayout_2.addWidget(self.imageToolButton) + self.backgroundLayout.setWidget(4, QtGui.QFormLayout.FieldRole, + self.imageFilenameWidget) + self.themeTabWidget.addTab(self.backgroundTab, u'') + self.fontMainTab = QtGui.QWidget() + self.fontMainTab.setObjectName(u'fontMainTab') + self.fontMainLayout = QtGui.QHBoxLayout(self.fontMainTab) + self.fontMainLayout.setSpacing(8) + self.fontMainLayout.setMargin(8) + self.fontMainLayout.setObjectName(u'fontMainLayout') + self.mainLeftWidget = QtGui.QWidget(self.fontMainTab) + self.mainLeftWidget.setObjectName(u'mainLeftWidget') + self.mainLeftLayout = QtGui.QVBoxLayout(self.mainLeftWidget) + self.mainLeftLayout.setSpacing(8) + self.mainLeftLayout.setMargin(0) + self.mainLeftLayout.setObjectName(u'mainLeftLayout') + self.fontMainGroupBox = QtGui.QGroupBox(self.mainLeftWidget) + self.fontMainGroupBox.setObjectName(u'fontMainGroupBox') + self.mainFontLayout = QtGui.QFormLayout(self.fontMainGroupBox) + self.mainFontLayout.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) - self.MainFontLayout.setMargin(8) - self.MainFontLayout.setSpacing(8) - self.MainFontLayout.setObjectName(u'MainFontLayout') - self.FontMainlabel = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainlabel.setObjectName(u'FontMainlabel') - self.MainFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.FontMainlabel) - self.FontMainComboBox = QtGui.QFontComboBox(self.FontMainGroupBox) - self.FontMainComboBox.setObjectName(u'FontMainComboBox') - self.MainFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.FontMainComboBox) - self.FontMainColorLabel = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainColorLabel.setObjectName(u'FontMainColorLabel') - self.MainFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.FontMainColorLabel) - self.FontMainColorPushButton = QtGui.QPushButton(self.FontMainGroupBox) - self.FontMainColorPushButton.setObjectName(u'FontMainColorPushButton') - self.MainFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.FontMainColorPushButton) - self.FontMainSize = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainSize.setObjectName(u'FontMainSize') - self.MainFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.FontMainSize) - self.FontMainSizeSpinBox = QtGui.QSpinBox(self.FontMainGroupBox) + self.mainFontLayout.setMargin(8) + self.mainFontLayout.setSpacing(8) + self.mainFontLayout.setObjectName(u'mainFontLayout') + self.fontMainlabel = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainlabel.setObjectName(u'fontMainlabel') + self.mainFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.fontMainlabel) + self.fontMainComboBox = QtGui.QFontComboBox(self.fontMainGroupBox) + self.fontMainComboBox.setObjectName(u'fontMainComboBox') + self.mainFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.fontMainComboBox) + self.fontMainColorLabel = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainColorLabel.setObjectName(u'fontMainColorLabel') + self.mainFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.fontMainColorLabel) + self.fontMainColorPushButton = QtGui.QPushButton(self.fontMainGroupBox) + self.fontMainColorPushButton.setObjectName(u'fontMainColorPushButton') + self.mainFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.fontMainColorPushButton) + self.fontMainSize = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainSize.setObjectName(u'fontMainSize') + self.mainFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.fontMainSize) + self.fontMainSizeSpinBox = QtGui.QSpinBox(self.fontMainGroupBox) defaultSizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) defaultSizePolicy.setHeightForWidth( - self.FontMainSizeSpinBox.sizePolicy().hasHeightForWidth()) - self.FontMainSizeSpinBox.setSizePolicy(defaultSizePolicy) - self.FontMainSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0)) - self.FontMainSizeSpinBox.setProperty(u'value', QtCore.QVariant(16)) - self.FontMainSizeSpinBox.setMaximum(999) - self.FontMainSizeSpinBox.setObjectName(u'FontMainSizeSpinBox') - self.MainFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.FontMainSizeSpinBox) - self.FontMainWeightComboBox = QtGui.QComboBox(self.FontMainGroupBox) - self.FontMainWeightComboBox.setObjectName(u'FontMainWeightComboBox') - self.FontMainWeightComboBox.addItem(QtCore.QString()) - self.FontMainWeightComboBox.addItem(QtCore.QString()) - self.FontMainWeightComboBox.addItem(QtCore.QString()) - self.FontMainWeightComboBox.addItem(QtCore.QString()) - self.MainFontLayout.setWidget(3, QtGui.QFormLayout.FieldRole, - self.FontMainWeightComboBox) - self.FontMainWeightLabel = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainWeightLabel.setObjectName(u'FontMainWeightLabel') - self.MainFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, - self.FontMainWeightLabel) - self.MainLeftLayout.addWidget(self.FontMainGroupBox) - self.FontMainWrapLineAdjustmentLabel = QtGui.QLabel( - self.FontMainGroupBox) - self.FontMainWrapLineAdjustmentLabel.setObjectName( - u'FontMainWrapLineAdjustmentLabel') - self.MainFontLayout.setWidget(4, QtGui.QFormLayout.LabelRole, - self.FontMainWrapLineAdjustmentLabel) - self.FontMainLineAdjustmentSpinBox = QtGui.QSpinBox( - self.FontMainGroupBox) - self.FontMainLineAdjustmentSpinBox.setObjectName( - u'FontMainLineAdjustmentSpinBox') - self.FontMainLineAdjustmentSpinBox.setMinimum(-99) - self.MainFontLayout.setWidget(4, QtGui.QFormLayout.FieldRole, - self.FontMainLineAdjustmentSpinBox) - self.FontMainWrapIndentationLabel = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainWrapIndentationLabel.setObjectName( - u'FontMainWrapIndentationLabel') - self.MainFontLayout.setWidget(5, QtGui.QFormLayout.LabelRole, - self.FontMainWrapIndentationLabel) - self.FontMainLineSpacingSpinBox = QtGui.QSpinBox(self.FontMainGroupBox) - self.FontMainLineSpacingSpinBox.setObjectName( - u'FontMainLineSpacingSpinBox') - self.FontMainLineSpacingSpinBox.setMaximum(10) - self.MainFontLayout.setWidget(5, QtGui.QFormLayout.FieldRole, - self.FontMainLineSpacingSpinBox) - self.FontMainLinesPageLabel = QtGui.QLabel(self.FontMainGroupBox) - self.FontMainLinesPageLabel.setObjectName(u'FontMainLinesPageLabel') - self.MainFontLayout.addRow(self.FontMainLinesPageLabel) + self.fontMainSizeSpinBox.sizePolicy().hasHeightForWidth()) + self.fontMainSizeSpinBox.setSizePolicy(defaultSizePolicy) + self.fontMainSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0)) + self.fontMainSizeSpinBox.setProperty(u'value', QtCore.QVariant(16)) + self.fontMainSizeSpinBox.setMaximum(999) + self.fontMainSizeSpinBox.setObjectName(u'fontMainSizeSpinBox') + self.mainFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.fontMainSizeSpinBox) + self.fontMainWeightComboBox = QtGui.QComboBox(self.fontMainGroupBox) + self.fontMainWeightComboBox.setObjectName(u'fontMainWeightComboBox') + self.fontMainWeightComboBox.addItem(QtCore.QString()) + self.fontMainWeightComboBox.addItem(QtCore.QString()) + self.fontMainWeightComboBox.addItem(QtCore.QString()) + self.fontMainWeightComboBox.addItem(QtCore.QString()) + self.mainFontLayout.setWidget(3, QtGui.QFormLayout.FieldRole, + self.fontMainWeightComboBox) + self.fontMainWeightLabel = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainWeightLabel.setObjectName(u'fontMainWeightLabel') + self.mainFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, + self.fontMainWeightLabel) + self.mainLeftLayout.addWidget(self.fontMainGroupBox) + self.fontMainWrapLineAdjustmentLabel = QtGui.QLabel( + self.fontMainGroupBox) + self.fontMainWrapLineAdjustmentLabel.setObjectName( + u'fontMainWrapLineAdjustmentLabel') + self.mainFontLayout.setWidget(4, QtGui.QFormLayout.LabelRole, + self.fontMainWrapLineAdjustmentLabel) + self.fontMainLineAdjustmentSpinBox = QtGui.QSpinBox( + self.fontMainGroupBox) + self.fontMainLineAdjustmentSpinBox.setObjectName( + u'fontMainLineAdjustmentSpinBox') + self.fontMainLineAdjustmentSpinBox.setMinimum(-99) + self.mainFontLayout.setWidget(4, QtGui.QFormLayout.FieldRole, + self.fontMainLineAdjustmentSpinBox) + self.fontMainWrapIndentationLabel = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainWrapIndentationLabel.setObjectName( + u'fontMainWrapIndentationLabel') + self.mainFontLayout.setWidget(5, QtGui.QFormLayout.LabelRole, + self.fontMainWrapIndentationLabel) + self.fontMainLineSpacingSpinBox = QtGui.QSpinBox(self.fontMainGroupBox) + self.fontMainLineSpacingSpinBox.setObjectName( + u'fontMainLineSpacingSpinBox') + self.fontMainLineSpacingSpinBox.setMaximum(10) + self.mainFontLayout.setWidget(5, QtGui.QFormLayout.FieldRole, + self.fontMainLineSpacingSpinBox) + self.fontMainLinesPageLabel = QtGui.QLabel(self.fontMainGroupBox) + self.fontMainLinesPageLabel.setObjectName(u'fontMainLinesPageLabel') + self.mainFontLayout.addRow(self.fontMainLinesPageLabel) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.MainLeftLayout.addItem(spacerItem1) - self.FontMainLayout.addWidget(self.MainLeftWidget) - self.MainRightWidget = QtGui.QWidget(self.FontMainTab) - self.MainRightWidget.setObjectName(u'MainRightWidget') - self.MainRightLayout = QtGui.QVBoxLayout(self.MainRightWidget) - self.MainRightLayout.setSpacing(8) - self.MainRightLayout.setMargin(0) - self.MainRightLayout.setObjectName(u'MainRightLayout') - self.MainLocationGroupBox = QtGui.QGroupBox(self.MainRightWidget) - self.MainLocationGroupBox.setObjectName(u'MainLocationGroupBox') - self.MainLocationLayout = QtGui.QFormLayout(self.MainLocationGroupBox) - self.MainLocationLayout.setMargin(8) - self.MainLocationLayout.setSpacing(8) - self.MainLocationLayout.setObjectName(u'MainLocationLayout') - self.DefaultLocationLabel = QtGui.QLabel(self.MainLocationGroupBox) - self.DefaultLocationLabel.setObjectName(u'DefaultLocationLabel') - self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.DefaultLocationLabel) - self.FontMainDefaultCheckBox = QtGui.QCheckBox( - self.MainLocationGroupBox) - self.FontMainDefaultCheckBox.setTristate(False) - self.FontMainDefaultCheckBox.setObjectName(u'FontMainDefaultCheckBox') - self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.FontMainDefaultCheckBox) - self.FontMainXLabel = QtGui.QLabel(self.MainLocationGroupBox) - self.FontMainXLabel.setObjectName(u'FontMainXLabel') - self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.FontMainXLabel) - self.FontMainYLabel = QtGui.QLabel(self.MainLocationGroupBox) - self.FontMainYLabel.setObjectName(u'FontMainYLabel') - self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.FontMainYLabel) - self.FontMainWidthLabel = QtGui.QLabel(self.MainLocationGroupBox) - self.FontMainWidthLabel.setObjectName(u'FontMainWidthLabel') - self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.LabelRole, - self.FontMainWidthLabel) - self.FontMainHeightLabel = QtGui.QLabel(self.MainLocationGroupBox) - self.FontMainHeightLabel.setObjectName(u'FontMainHeightLabel') - self.MainLocationLayout.setWidget(4, QtGui.QFormLayout.LabelRole, - self.FontMainHeightLabel) - self.FontMainXSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox) + self.mainLeftLayout.addItem(spacerItem1) + self.fontMainLayout.addWidget(self.mainLeftWidget) + self.mainRightWidget = QtGui.QWidget(self.fontMainTab) + self.mainRightWidget.setObjectName(u'mainRightWidget') + self.mainRightLayout = QtGui.QVBoxLayout(self.mainRightWidget) + self.mainRightLayout.setSpacing(8) + self.mainRightLayout.setMargin(0) + self.mainRightLayout.setObjectName(u'mainRightLayout') + self.mainLocationGroupBox = QtGui.QGroupBox(self.mainRightWidget) + self.mainLocationGroupBox.setObjectName(u'mainLocationGroupBox') + self.mainLocationLayout = QtGui.QFormLayout(self.mainLocationGroupBox) + self.mainLocationLayout.setMargin(8) + self.mainLocationLayout.setSpacing(8) + self.mainLocationLayout.setObjectName(u'mainLocationLayout') + self.defaultLocationLabel = QtGui.QLabel(self.mainLocationGroupBox) + self.defaultLocationLabel.setObjectName(u'defaultLocationLabel') + self.mainLocationLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.defaultLocationLabel) + self.fontMainDefaultCheckBox = QtGui.QCheckBox( + self.mainLocationGroupBox) + self.fontMainDefaultCheckBox.setTristate(False) + self.fontMainDefaultCheckBox.setObjectName(u'fontMainDefaultCheckBox') + self.mainLocationLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.fontMainDefaultCheckBox) + self.fontMainXLabel = QtGui.QLabel(self.mainLocationGroupBox) + self.fontMainXLabel.setObjectName(u'fontMainXLabel') + self.mainLocationLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.fontMainXLabel) + self.fontMainYLabel = QtGui.QLabel(self.mainLocationGroupBox) + self.fontMainYLabel.setObjectName(u'fontMainYLabel') + self.mainLocationLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.fontMainYLabel) + self.fontMainWidthLabel = QtGui.QLabel(self.mainLocationGroupBox) + self.fontMainWidthLabel.setObjectName(u'fontMainWidthLabel') + self.mainLocationLayout.setWidget(3, QtGui.QFormLayout.LabelRole, + self.fontMainWidthLabel) + self.fontMainHeightLabel = QtGui.QLabel(self.mainLocationGroupBox) + self.fontMainHeightLabel.setObjectName(u'fontMainHeightLabel') + self.mainLocationLayout.setWidget(4, QtGui.QFormLayout.LabelRole, + self.fontMainHeightLabel) + self.fontMainXSpinBox = QtGui.QSpinBox(self.mainLocationGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontMainXSpinBox.sizePolicy().hasHeightForWidth()) - self.FontMainXSpinBox.setSizePolicy(defaultSizePolicy) - self.FontMainXSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontMainXSpinBox.setProperty(u'value', QtCore.QVariant(0)) - self.FontMainXSpinBox.setMaximum(9999) - self.FontMainXSpinBox.setObjectName(u'FontMainXSpinBox') - self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.FontMainXSpinBox) - self.FontMainYSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox) + self.fontMainXSpinBox.sizePolicy().hasHeightForWidth()) + self.fontMainXSpinBox.setSizePolicy(defaultSizePolicy) + self.fontMainXSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontMainXSpinBox.setProperty(u'value', QtCore.QVariant(0)) + self.fontMainXSpinBox.setMaximum(9999) + self.fontMainXSpinBox.setObjectName(u'fontMainXSpinBox') + self.mainLocationLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.fontMainXSpinBox) + self.fontMainYSpinBox = QtGui.QSpinBox(self.mainLocationGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontMainYSpinBox.sizePolicy().hasHeightForWidth()) - self.FontMainYSpinBox.setSizePolicy(defaultSizePolicy) - self.FontMainYSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontMainYSpinBox.setMaximum(9999) - self.FontMainYSpinBox.setObjectName(u'FontMainYSpinBox') - self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.FontMainYSpinBox) - self.FontMainWidthSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox) + self.fontMainYSpinBox.sizePolicy().hasHeightForWidth()) + self.fontMainYSpinBox.setSizePolicy(defaultSizePolicy) + self.fontMainYSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontMainYSpinBox.setMaximum(9999) + self.fontMainYSpinBox.setObjectName(u'fontMainYSpinBox') + self.mainLocationLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.fontMainYSpinBox) + self.fontMainWidthSpinBox = QtGui.QSpinBox(self.mainLocationGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontMainWidthSpinBox.sizePolicy().hasHeightForWidth()) - self.FontMainWidthSpinBox.setSizePolicy(defaultSizePolicy) - self.FontMainWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontMainWidthSpinBox.setMaximum(9999) - self.FontMainWidthSpinBox.setObjectName(u'FontMainWidthSpinBox') - self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.FieldRole, - self.FontMainWidthSpinBox) - self.FontMainHeightSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox) + self.fontMainWidthSpinBox.sizePolicy().hasHeightForWidth()) + self.fontMainWidthSpinBox.setSizePolicy(defaultSizePolicy) + self.fontMainWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontMainWidthSpinBox.setMaximum(9999) + self.fontMainWidthSpinBox.setObjectName(u'fontMainWidthSpinBox') + self.mainLocationLayout.setWidget(3, QtGui.QFormLayout.FieldRole, + self.fontMainWidthSpinBox) + self.fontMainHeightSpinBox = QtGui.QSpinBox(self.mainLocationGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontMainHeightSpinBox.sizePolicy().hasHeightForWidth()) - self.FontMainHeightSpinBox.setSizePolicy(defaultSizePolicy) - self.FontMainHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontMainHeightSpinBox.setMaximum(9999) - self.FontMainHeightSpinBox.setObjectName(u'FontMainHeightSpinBox') - self.MainLocationLayout.setWidget(4, QtGui.QFormLayout.FieldRole, - self.FontMainHeightSpinBox) - self.MainRightLayout.addWidget(self.MainLocationGroupBox) + self.fontMainHeightSpinBox.sizePolicy().hasHeightForWidth()) + self.fontMainHeightSpinBox.setSizePolicy(defaultSizePolicy) + self.fontMainHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontMainHeightSpinBox.setMaximum(9999) + self.fontMainHeightSpinBox.setObjectName(u'fontMainHeightSpinBox') + self.mainLocationLayout.setWidget(4, QtGui.QFormLayout.FieldRole, + self.fontMainHeightSpinBox) + self.mainRightLayout.addWidget(self.mainLocationGroupBox) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.MainRightLayout.addItem(spacerItem2) - self.FontMainLayout.addWidget(self.MainRightWidget) - self.ThemeTabWidget.addTab(self.FontMainTab, u'') - self.FontFooterTab = QtGui.QWidget() - self.FontFooterTab.setObjectName(u'FontFooterTab') - self.FontFooterLayout = QtGui.QHBoxLayout(self.FontFooterTab) - self.FontFooterLayout.setSpacing(8) - self.FontFooterLayout.setMargin(8) - self.FontFooterLayout.setObjectName(u'FontFooterLayout') - self.FooterLeftWidget = QtGui.QWidget(self.FontFooterTab) - self.FooterLeftWidget.setObjectName(u'FooterLeftWidget') - self.FooterLeftLayout = QtGui.QVBoxLayout(self.FooterLeftWidget) - self.FooterLeftLayout.setSpacing(8) - self.FooterLeftLayout.setMargin(0) - self.FooterLeftLayout.setObjectName(u'FooterLeftLayout') - self.FooterFontGroupBox = QtGui.QGroupBox(self.FooterLeftWidget) - self.FooterFontGroupBox.setObjectName(u'FooterFontGroupBox') - self.FooterFontLayout = QtGui.QFormLayout(self.FooterFontGroupBox) - self.FooterFontLayout.setFieldGrowthPolicy( + self.mainRightLayout.addItem(spacerItem2) + self.fontMainLayout.addWidget(self.mainRightWidget) + self.themeTabWidget.addTab(self.fontMainTab, u'') + self.fontFooterTab = QtGui.QWidget() + self.fontFooterTab.setObjectName(u'fontFooterTab') + self.fontFooterLayout = QtGui.QHBoxLayout(self.fontFooterTab) + self.fontFooterLayout.setSpacing(8) + self.fontFooterLayout.setMargin(8) + self.fontFooterLayout.setObjectName(u'fontFooterLayout') + self.footerLeftWidget = QtGui.QWidget(self.fontFooterTab) + self.footerLeftWidget.setObjectName(u'footerLeftWidget') + self.footerLeftLayout = QtGui.QVBoxLayout(self.footerLeftWidget) + self.footerLeftLayout.setSpacing(8) + self.footerLeftLayout.setMargin(0) + self.footerLeftLayout.setObjectName(u'footerLeftLayout') + self.footerFontGroupBox = QtGui.QGroupBox(self.footerLeftWidget) + self.footerFontGroupBox.setObjectName(u'footerFontGroupBox') + self.footerFontLayout = QtGui.QFormLayout(self.footerFontGroupBox) + self.footerFontLayout.setFieldGrowthPolicy( QtGui.QFormLayout.ExpandingFieldsGrow) - self.FooterFontLayout.setFormAlignment(QtCore.Qt.AlignLeading | + self.footerFontLayout.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) - self.FooterFontLayout.setMargin(8) - self.FooterFontLayout.setSpacing(8) - self.FooterFontLayout.setObjectName(u'FooterFontLayout') - self.FontFooterLabel = QtGui.QLabel(self.FooterFontGroupBox) - self.FontFooterLabel.setObjectName(u'FontFooterLabel') - self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.FontFooterLabel) - self.FontFooterComboBox = QtGui.QFontComboBox(self.FooterFontGroupBox) - self.FontFooterComboBox.setObjectName(u'FontFooterComboBox') - self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.FontFooterComboBox) - self.FontFooterColorLabel = QtGui.QLabel(self.FooterFontGroupBox) - self.FontFooterColorLabel.setObjectName(u'FontFooterColorLabel') - self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.FontFooterColorLabel) - self.FontFooterColorPushButton = QtGui.QPushButton( - self.FooterFontGroupBox) - self.FontFooterColorPushButton.setObjectName( - u'FontFooterColorPushButton') - self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.FontFooterColorPushButton) - self.FontFooterSizeLabel = QtGui.QLabel(self.FooterFontGroupBox) - self.FontFooterSizeLabel.setObjectName(u'FontFooterSizeLabel') - self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.FontFooterSizeLabel) - self.FontFooterSizeSpinBox = QtGui.QSpinBox(self.FooterFontGroupBox) + self.footerFontLayout.setMargin(8) + self.footerFontLayout.setSpacing(8) + self.footerFontLayout.setObjectName(u'footerFontLayout') + self.fontFooterLabel = QtGui.QLabel(self.footerFontGroupBox) + self.fontFooterLabel.setObjectName(u'fontFooterLabel') + self.footerFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.fontFooterLabel) + self.fontFooterComboBox = QtGui.QFontComboBox(self.footerFontGroupBox) + self.fontFooterComboBox.setObjectName(u'fontFooterComboBox') + self.footerFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.fontFooterComboBox) + self.fontFooterColorLabel = QtGui.QLabel(self.footerFontGroupBox) + self.fontFooterColorLabel.setObjectName(u'fontFooterColorLabel') + self.footerFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.fontFooterColorLabel) + self.fontFooterColorPushButton = QtGui.QPushButton( + self.footerFontGroupBox) + self.fontFooterColorPushButton.setObjectName( + u'fontFooterColorPushButton') + self.footerFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.fontFooterColorPushButton) + self.fontFooterSizeLabel = QtGui.QLabel(self.footerFontGroupBox) + self.fontFooterSizeLabel.setObjectName(u'fontFooterSizeLabel') + self.footerFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.fontFooterSizeLabel) + self.fontFooterSizeSpinBox = QtGui.QSpinBox(self.footerFontGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontFooterSizeSpinBox.sizePolicy().hasHeightForWidth()) - self.FontFooterSizeSpinBox.setSizePolicy(defaultSizePolicy) - self.FontFooterSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0)) - self.FontFooterSizeSpinBox.setProperty(u'value', QtCore.QVariant(10)) - self.FontFooterSizeSpinBox.setMaximum(999) - self.FontFooterSizeSpinBox.setObjectName(u'FontFooterSizeSpinBox') - self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.FontFooterSizeSpinBox) - self.FontFooterWeightComboBox = QtGui.QComboBox(self.FooterFontGroupBox) - self.FontFooterWeightComboBox.setObjectName(u'FontFooterWeightComboBox') - self.FontFooterWeightComboBox.addItem(QtCore.QString()) - self.FontFooterWeightComboBox.addItem(QtCore.QString()) - self.FontFooterWeightComboBox.addItem(QtCore.QString()) - self.FontFooterWeightComboBox.addItem(QtCore.QString()) - self.FooterFontLayout.setWidget(3, QtGui.QFormLayout.FieldRole, - self.FontFooterWeightComboBox) - self.FontFooterWeightLabel = QtGui.QLabel(self.FooterFontGroupBox) - self.FontFooterWeightLabel.setObjectName(u'FontFooterWeightLabel') - self.FooterFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, - self.FontFooterWeightLabel) - self.FooterLeftLayout.addWidget(self.FooterFontGroupBox) + self.fontFooterSizeSpinBox.sizePolicy().hasHeightForWidth()) + self.fontFooterSizeSpinBox.setSizePolicy(defaultSizePolicy) + self.fontFooterSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0)) + self.fontFooterSizeSpinBox.setProperty(u'value', QtCore.QVariant(10)) + self.fontFooterSizeSpinBox.setMaximum(999) + self.fontFooterSizeSpinBox.setObjectName(u'fontFooterSizeSpinBox') + self.footerFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.fontFooterSizeSpinBox) + self.fontFooterWeightComboBox = QtGui.QComboBox(self.footerFontGroupBox) + self.fontFooterWeightComboBox.setObjectName(u'fontFooterWeightComboBox') + self.fontFooterWeightComboBox.addItem(QtCore.QString()) + self.fontFooterWeightComboBox.addItem(QtCore.QString()) + self.fontFooterWeightComboBox.addItem(QtCore.QString()) + self.fontFooterWeightComboBox.addItem(QtCore.QString()) + self.footerFontLayout.setWidget(3, QtGui.QFormLayout.FieldRole, + self.fontFooterWeightComboBox) + self.fontFooterWeightLabel = QtGui.QLabel(self.footerFontGroupBox) + self.fontFooterWeightLabel.setObjectName(u'fontFooterWeightLabel') + self.footerFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, + self.fontFooterWeightLabel) + self.footerLeftLayout.addWidget(self.footerFontGroupBox) spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.FooterLeftLayout.addItem(spacerItem3) - self.FontFooterLayout.addWidget(self.FooterLeftWidget) - self.FooterRightWidget = QtGui.QWidget(self.FontFooterTab) - self.FooterRightWidget.setObjectName(u'FooterRightWidget') - self.FooterRightLayout = QtGui.QVBoxLayout(self.FooterRightWidget) - self.FooterRightLayout.setSpacing(8) - self.FooterRightLayout.setMargin(0) - self.FooterRightLayout.setObjectName(u'FooterRightLayout') - self.LocationFooterGroupBox = QtGui.QGroupBox(self.FooterRightWidget) - self.LocationFooterGroupBox.setObjectName(u'LocationFooterGroupBox') - self.LocationFooterLayout = QtGui.QFormLayout( - self.LocationFooterGroupBox) - self.LocationFooterLayout.setFieldGrowthPolicy( + self.footerLeftLayout.addItem(spacerItem3) + self.fontFooterLayout.addWidget(self.footerLeftWidget) + self.footerRightWidget = QtGui.QWidget(self.fontFooterTab) + self.footerRightWidget.setObjectName(u'footerRightWidget') + self.footerRightLayout = QtGui.QVBoxLayout(self.footerRightWidget) + self.footerRightLayout.setSpacing(8) + self.footerRightLayout.setMargin(0) + self.footerRightLayout.setObjectName(u'footerRightLayout') + self.locationFooterGroupBox = QtGui.QGroupBox(self.footerRightWidget) + self.locationFooterGroupBox.setObjectName(u'locationFooterGroupBox') + self.locationFooterLayout = QtGui.QFormLayout( + self.locationFooterGroupBox) + self.locationFooterLayout.setFieldGrowthPolicy( QtGui.QFormLayout.ExpandingFieldsGrow) - self.LocationFooterLayout.setFormAlignment(QtCore.Qt.AlignLeading | + self.locationFooterLayout.setFormAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) - self.LocationFooterLayout.setMargin(8) - self.LocationFooterLayout.setSpacing(8) - self.LocationFooterLayout.setObjectName(u'LocationFooterLayout') - self.FontFooterDefaultLabel = QtGui.QLabel(self.LocationFooterGroupBox) - self.FontFooterDefaultLabel.setObjectName(u'FontFooterDefaultLabel') - self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.FontFooterDefaultLabel) - self.FontFooterDefaultCheckBox = QtGui.QCheckBox( - self.LocationFooterGroupBox) - self.FontFooterDefaultCheckBox.setTristate(False) - self.FontFooterDefaultCheckBox.setObjectName( - u'FontFooterDefaultCheckBox') - self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.FontFooterDefaultCheckBox) - self.FontFooterXLabel = QtGui.QLabel(self.LocationFooterGroupBox) - self.FontFooterXLabel.setObjectName(u'FontFooterXLabel') - self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.FontFooterXLabel) - self.FontFooterYLabel = QtGui.QLabel(self.LocationFooterGroupBox) - self.FontFooterYLabel.setObjectName(u'FontFooterYLabel') - self.LocationFooterLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.FontFooterYLabel) - self.FontFooterWidthLabel = QtGui.QLabel(self.LocationFooterGroupBox) - self.FontFooterWidthLabel.setObjectName(u'FontFooterWidthLabel') - self.LocationFooterLayout.setWidget(3, QtGui.QFormLayout.LabelRole, - self.FontFooterWidthLabel) - self.FontFooterHeightLabel = QtGui.QLabel(self.LocationFooterGroupBox) - self.FontFooterHeightLabel.setObjectName(u'FontFooterHeightLabel') - self.LocationFooterLayout.setWidget(4, QtGui.QFormLayout.LabelRole, - self.FontFooterHeightLabel) - self.FontFooterXSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox) + self.locationFooterLayout.setMargin(8) + self.locationFooterLayout.setSpacing(8) + self.locationFooterLayout.setObjectName(u'locationFooterLayout') + self.fontFooterDefaultLabel = QtGui.QLabel(self.locationFooterGroupBox) + self.fontFooterDefaultLabel.setObjectName(u'fontFooterDefaultLabel') + self.locationFooterLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.fontFooterDefaultLabel) + self.fontFooterDefaultCheckBox = QtGui.QCheckBox( + self.locationFooterGroupBox) + self.fontFooterDefaultCheckBox.setTristate(False) + self.fontFooterDefaultCheckBox.setObjectName( + u'fontFooterDefaultCheckBox') + self.locationFooterLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.fontFooterDefaultCheckBox) + self.fontFooterXLabel = QtGui.QLabel(self.locationFooterGroupBox) + self.fontFooterXLabel.setObjectName(u'fontFooterXLabel') + self.locationFooterLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.fontFooterXLabel) + self.fontFooterYLabel = QtGui.QLabel(self.locationFooterGroupBox) + self.fontFooterYLabel.setObjectName(u'fontFooterYLabel') + self.locationFooterLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.fontFooterYLabel) + self.fontFooterWidthLabel = QtGui.QLabel(self.locationFooterGroupBox) + self.fontFooterWidthLabel.setObjectName(u'fontFooterWidthLabel') + self.locationFooterLayout.setWidget(3, QtGui.QFormLayout.LabelRole, + self.fontFooterWidthLabel) + self.fontFooterHeightLabel = QtGui.QLabel(self.locationFooterGroupBox) + self.fontFooterHeightLabel.setObjectName(u'fontFooterHeightLabel') + self.locationFooterLayout.setWidget(4, QtGui.QFormLayout.LabelRole, + self.fontFooterHeightLabel) + self.fontFooterXSpinBox = QtGui.QSpinBox(self.locationFooterGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontFooterXSpinBox.sizePolicy().hasHeightForWidth()) - self.FontFooterXSpinBox.setSizePolicy(defaultSizePolicy) - self.FontFooterXSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontFooterXSpinBox.setProperty(u'value', QtCore.QVariant(0)) - self.FontFooterXSpinBox.setMaximum(9999) - self.FontFooterXSpinBox.setObjectName(u'FontFooterXSpinBox') - self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.FontFooterXSpinBox) - self.FontFooterYSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox) + self.fontFooterXSpinBox.sizePolicy().hasHeightForWidth()) + self.fontFooterXSpinBox.setSizePolicy(defaultSizePolicy) + self.fontFooterXSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontFooterXSpinBox.setProperty(u'value', QtCore.QVariant(0)) + self.fontFooterXSpinBox.setMaximum(9999) + self.fontFooterXSpinBox.setObjectName(u'fontFooterXSpinBox') + self.locationFooterLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.fontFooterXSpinBox) + self.fontFooterYSpinBox = QtGui.QSpinBox(self.locationFooterGroupBox) defaultSizePolicy.setHeightForWidth( - self.FontFooterXSpinBox.sizePolicy().hasHeightForWidth()) - self.FontFooterYSpinBox.setSizePolicy(defaultSizePolicy) - self.FontFooterYSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontFooterYSpinBox.setProperty(u'value', QtCore.QVariant(0)) - self.FontFooterYSpinBox.setMaximum(9999) - self.FontFooterYSpinBox.setObjectName(u'FontFooterYSpinBox') - self.LocationFooterLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.FontFooterYSpinBox) - self.FontFooterWidthSpinBox = QtGui.QSpinBox( - self.LocationFooterGroupBox) - self.FontFooterWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontFooterWidthSpinBox.setMaximum(9999) - self.FontFooterWidthSpinBox.setObjectName(u'FontFooterWidthSpinBox') - self.LocationFooterLayout.setWidget(3, QtGui.QFormLayout.FieldRole, - self.FontFooterWidthSpinBox) - self.FontFooterHeightSpinBox = QtGui.QSpinBox( - self.LocationFooterGroupBox) - self.FontFooterHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0)) - self.FontFooterHeightSpinBox.setMaximum(9999) - self.FontFooterHeightSpinBox.setObjectName(u'FontFooterHeightSpinBox') - self.LocationFooterLayout.setWidget(4, QtGui.QFormLayout.FieldRole, - self.FontFooterHeightSpinBox) - self.FooterRightLayout.addWidget(self.LocationFooterGroupBox) + self.fontFooterXSpinBox.sizePolicy().hasHeightForWidth()) + self.fontFooterYSpinBox.setSizePolicy(defaultSizePolicy) + self.fontFooterYSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontFooterYSpinBox.setProperty(u'value', QtCore.QVariant(0)) + self.fontFooterYSpinBox.setMaximum(9999) + self.fontFooterYSpinBox.setObjectName(u'fontFooterYSpinBox') + self.locationFooterLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.fontFooterYSpinBox) + self.fontFooterWidthSpinBox = QtGui.QSpinBox( + self.locationFooterGroupBox) + self.fontFooterWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontFooterWidthSpinBox.setMaximum(9999) + self.fontFooterWidthSpinBox.setObjectName(u'fontFooterWidthSpinBox') + self.locationFooterLayout.setWidget(3, QtGui.QFormLayout.FieldRole, + self.fontFooterWidthSpinBox) + self.fontFooterHeightSpinBox = QtGui.QSpinBox( + self.locationFooterGroupBox) + self.fontFooterHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0)) + self.fontFooterHeightSpinBox.setMaximum(9999) + self.fontFooterHeightSpinBox.setObjectName(u'fontFooterHeightSpinBox') + self.locationFooterLayout.setWidget(4, QtGui.QFormLayout.FieldRole, + self.fontFooterHeightSpinBox) + self.footerRightLayout.addWidget(self.locationFooterGroupBox) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.FooterRightLayout.addItem(spacerItem4) - self.FontFooterLayout.addWidget(self.FooterRightWidget) - self.ThemeTabWidget.addTab(self.FontFooterTab, u'') - self.OtherOptionsTab = QtGui.QWidget() - self.OtherOptionsTab.setObjectName(u'OtherOptionsTab') - self.OtherOptionsLayout = QtGui.QHBoxLayout(self.OtherOptionsTab) - self.OtherOptionsLayout.setSpacing(8) - self.OtherOptionsLayout.setMargin(8) - self.OtherOptionsLayout.setObjectName(u'OtherOptionsLayout') - self.OptionsLeftWidget = QtGui.QWidget(self.OtherOptionsTab) - self.OptionsLeftWidget.setObjectName(u'OptionsLeftWidget') - self.OptionsLeftLayout = QtGui.QVBoxLayout(self.OptionsLeftWidget) - self.OptionsLeftLayout.setSpacing(8) - self.OptionsLeftLayout.setMargin(0) - self.OptionsLeftLayout.setObjectName(u'OptionsLeftLayout') - self.OutlineGroupBox = QtGui.QGroupBox(self.OptionsLeftWidget) - self.OutlineGroupBox.setObjectName(u'OutlineGroupBox') - self.verticalLayout = QtGui.QVBoxLayout(self.OutlineGroupBox) + self.footerRightLayout.addItem(spacerItem4) + self.fontFooterLayout.addWidget(self.footerRightWidget) + self.themeTabWidget.addTab(self.fontFooterTab, u'') + self.otherOptionsTab = QtGui.QWidget() + self.otherOptionsTab.setObjectName(u'otherOptionsTab') + self.otherOptionsLayout = QtGui.QHBoxLayout(self.otherOptionsTab) + self.otherOptionsLayout.setSpacing(8) + self.otherOptionsLayout.setMargin(8) + self.otherOptionsLayout.setObjectName(u'otherOptionsLayout') + self.optionsLeftWidget = QtGui.QWidget(self.otherOptionsTab) + self.optionsLeftWidget.setObjectName(u'optionsLeftWidget') + self.optionsLeftLayout = QtGui.QVBoxLayout(self.optionsLeftWidget) + self.optionsLeftLayout.setSpacing(8) + self.optionsLeftLayout.setMargin(0) + self.optionsLeftLayout.setObjectName(u'optionsLeftLayout') + self.outlineGroupBox = QtGui.QGroupBox(self.optionsLeftWidget) + self.outlineGroupBox.setObjectName(u'outlineGroupBox') + self.verticalLayout = QtGui.QVBoxLayout(self.outlineGroupBox) self.verticalLayout.setSpacing(8) self.verticalLayout.setMargin(8) self.verticalLayout.setObjectName(u'verticalLayout') - self.OutlineWidget = QtGui.QWidget(self.OutlineGroupBox) - self.OutlineWidget.setObjectName(u'OutlineWidget') - self.OutlineLayout = QtGui.QFormLayout(self.OutlineWidget) - self.OutlineLayout.setMargin(0) - self.OutlineLayout.setSpacing(8) - self.OutlineLayout.setObjectName(u'OutlineLayout') - self.OutlineCheckBox = QtGui.QCheckBox(self.OutlineWidget) - self.OutlineCheckBox.setObjectName(u'OutlineCheckBox') - self.OutlineLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.OutlineCheckBox) - self.OutlineSpinBox = QtGui.QSpinBox(self.OutlineWidget) - self.OutlineSpinBox.setObjectName(u'OutlineSpinBox') - self.OutlineSpinBox.setMaximum(10) - self.OutlineLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.OutlineSpinBox) - self.OutlineSpinBoxLabel = QtGui.QLabel(self.OutlineWidget) - self.OutlineSpinBoxLabel.setObjectName(u'OutlineSpinBoxLabel') - self.OutlineLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.OutlineSpinBoxLabel) - self.OutlineColorLabel = QtGui.QLabel(self.OutlineWidget) - self.OutlineColorLabel.setObjectName(u'OutlineColorLabel') - self.OutlineLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.OutlineColorLabel) - self.OutlineColorPushButton = QtGui.QPushButton(self.OutlineWidget) - self.OutlineColorPushButton.setObjectName(u'OutlineColorPushButton') - self.OutlineLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.OutlineColorPushButton) - self.OutlineEnabledLabel = QtGui.QLabel(self.OutlineWidget) - self.OutlineEnabledLabel.setObjectName(u'OutlineEnabledLabel') - self.OutlineLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.OutlineEnabledLabel) - self.verticalLayout.addWidget(self.OutlineWidget) - self.OptionsLeftLayout.addWidget(self.OutlineGroupBox) - self.ShadowGroupBox = QtGui.QGroupBox(self.OptionsLeftWidget) - self.ShadowGroupBox.setObjectName(u'ShadowGroupBox') - self.verticalLayout = QtGui.QVBoxLayout(self.ShadowGroupBox) + self.outlineWidget = QtGui.QWidget(self.outlineGroupBox) + self.outlineWidget.setObjectName(u'outlineWidget') + self.outlineLayout = QtGui.QFormLayout(self.outlineWidget) + self.outlineLayout.setMargin(0) + self.outlineLayout.setSpacing(8) + self.outlineLayout.setObjectName(u'outlineLayout') + self.outlineCheckBox = QtGui.QCheckBox(self.outlineWidget) + self.outlineCheckBox.setObjectName(u'outlineCheckBox') + self.outlineLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.outlineCheckBox) + self.outlineSpinBox = QtGui.QSpinBox(self.outlineWidget) + self.outlineSpinBox.setObjectName(u'outlineSpinBox') + self.outlineSpinBox.setMaximum(10) + self.outlineLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.outlineSpinBox) + self.outlineSpinBoxLabel = QtGui.QLabel(self.outlineWidget) + self.outlineSpinBoxLabel.setObjectName(u'outlineSpinBoxLabel') + self.outlineLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.outlineSpinBoxLabel) + self.outlineColorLabel = QtGui.QLabel(self.outlineWidget) + self.outlineColorLabel.setObjectName(u'outlineColorLabel') + self.outlineLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.outlineColorLabel) + self.outlineColorPushButton = QtGui.QPushButton(self.outlineWidget) + self.outlineColorPushButton.setObjectName(u'outlineColorPushButton') + self.outlineLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.outlineColorPushButton) + self.outlineEnabledLabel = QtGui.QLabel(self.outlineWidget) + self.outlineEnabledLabel.setObjectName(u'outlineEnabledLabel') + self.outlineLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.outlineEnabledLabel) + self.verticalLayout.addWidget(self.outlineWidget) + self.optionsLeftLayout.addWidget(self.outlineGroupBox) + self.shadowGroupBox = QtGui.QGroupBox(self.optionsLeftWidget) + self.shadowGroupBox.setObjectName(u'shadowGroupBox') + self.verticalLayout = QtGui.QVBoxLayout(self.shadowGroupBox) self.verticalLayout.setSpacing(8) self.verticalLayout.setMargin(8) self.verticalLayout.setObjectName(u'verticalLayout') - self.ShadowWidget = QtGui.QWidget(self.ShadowGroupBox) - self.ShadowWidget.setObjectName(u'ShadowWidget') - self.ShadowLayout = QtGui.QFormLayout(self.ShadowWidget) - self.ShadowLayout.setMargin(0) - self.ShadowLayout.setSpacing(8) - self.ShadowLayout.setObjectName(u'ShadowLayout') - self.ShadowCheckBox = QtGui.QCheckBox(self.ShadowWidget) - self.ShadowCheckBox.setObjectName(u'ShadowCheckBox') - self.ShadowLayout.setWidget(0, QtGui.QFormLayout.FieldRole, - self.ShadowCheckBox) - self.ShadowSpinBox = QtGui.QSpinBox(self.OutlineWidget) - self.ShadowSpinBox.setObjectName(u'ShadowSpinBox') - self.ShadowSpinBox.setMaximum(10) - self.ShadowLayout.setWidget(1, QtGui.QFormLayout.FieldRole, - self.ShadowSpinBox) - self.ShadowSpinBoxLabel = QtGui.QLabel(self.OutlineWidget) - self.ShadowSpinBoxLabel.setObjectName(u'ShadowSpinBoxLabel') - self.ShadowLayout.setWidget(1, QtGui.QFormLayout.LabelRole, - self.ShadowSpinBoxLabel) - self.ShadowColorLabel = QtGui.QLabel(self.ShadowWidget) - self.ShadowColorLabel.setObjectName(u'ShadowColorLabel') - self.ShadowLayout.setWidget(2, QtGui.QFormLayout.LabelRole, - self.ShadowColorLabel) - self.ShadowColorPushButton = QtGui.QPushButton(self.ShadowWidget) - self.ShadowColorPushButton.setObjectName(u'ShadowColorPushButton') - self.ShadowLayout.setWidget(2, QtGui.QFormLayout.FieldRole, - self.ShadowColorPushButton) - self.ShadowEnabledLabel = QtGui.QLabel(self.ShadowWidget) - self.ShadowEnabledLabel.setObjectName(u'ShadowEnabledLabel') - self.ShadowLayout.setWidget(0, QtGui.QFormLayout.LabelRole, - self.ShadowEnabledLabel) - self.verticalLayout.addWidget(self.ShadowWidget) - self.OptionsLeftLayout.addWidget(self.ShadowGroupBox) + self.shadowWidget = QtGui.QWidget(self.shadowGroupBox) + self.shadowWidget.setObjectName(u'shadowWidget') + self.shadowLayout = QtGui.QFormLayout(self.shadowWidget) + self.shadowLayout.setMargin(0) + self.shadowLayout.setSpacing(8) + self.shadowLayout.setObjectName(u'shadowLayout') + self.shadowCheckBox = QtGui.QCheckBox(self.shadowWidget) + self.shadowCheckBox.setObjectName(u'shadowCheckBox') + self.shadowLayout.setWidget(0, QtGui.QFormLayout.FieldRole, + self.shadowCheckBox) + self.shadowSpinBox = QtGui.QSpinBox(self.outlineWidget) + self.shadowSpinBox.setObjectName(u'shadowSpinBox') + self.shadowSpinBox.setMaximum(10) + self.shadowLayout.setWidget(1, QtGui.QFormLayout.FieldRole, + self.shadowSpinBox) + self.shadowSpinBoxLabel = QtGui.QLabel(self.outlineWidget) + self.shadowSpinBoxLabel.setObjectName(u'shadowSpinBoxLabel') + self.shadowLayout.setWidget(1, QtGui.QFormLayout.LabelRole, + self.shadowSpinBoxLabel) + self.shadowColorLabel = QtGui.QLabel(self.shadowWidget) + self.shadowColorLabel.setObjectName(u'shadowColorLabel') + self.shadowLayout.setWidget(2, QtGui.QFormLayout.LabelRole, + self.shadowColorLabel) + self.shadowColorPushButton = QtGui.QPushButton(self.shadowWidget) + self.shadowColorPushButton.setObjectName(u'shadowColorPushButton') + self.shadowLayout.setWidget(2, QtGui.QFormLayout.FieldRole, + self.shadowColorPushButton) + self.shadowEnabledLabel = QtGui.QLabel(self.shadowWidget) + self.shadowEnabledLabel.setObjectName(u'shadowEnabledLabel') + self.shadowLayout.setWidget(0, QtGui.QFormLayout.LabelRole, + self.shadowEnabledLabel) + self.verticalLayout.addWidget(self.shadowWidget) + self.optionsLeftLayout.addWidget(self.shadowGroupBox) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.OptionsLeftLayout.addItem(spacerItem5) - self.OtherOptionsLayout.addWidget(self.OptionsLeftWidget) - self.OptionsRightWidget = QtGui.QWidget(self.OtherOptionsTab) - self.OptionsRightWidget.setObjectName(u'OptionsRightWidget') - self.OptionsRightLayout = QtGui.QVBoxLayout(self.OptionsRightWidget) - self.OptionsRightLayout.setSpacing(8) - self.OptionsRightLayout.setMargin(0) - self.OptionsRightLayout.setObjectName(u'OptionsRightLayout') - self.AlignmentGroupBox = QtGui.QGroupBox(self.OptionsRightWidget) - self.AlignmentGroupBox.setObjectName(u'AlignmentGroupBox') - self.gridLayout_4 = QtGui.QGridLayout(self.AlignmentGroupBox) + self.optionsLeftLayout.addItem(spacerItem5) + self.otherOptionsLayout.addWidget(self.optionsLeftWidget) + self.optionsRightWidget = QtGui.QWidget(self.otherOptionsTab) + self.optionsRightWidget.setObjectName(u'optionsRightWidget') + self.optionsRightLayout = QtGui.QVBoxLayout(self.optionsRightWidget) + self.optionsRightLayout.setSpacing(8) + self.optionsRightLayout.setMargin(0) + self.optionsRightLayout.setObjectName(u'optionsRightLayout') + self.alignmentGroupBox = QtGui.QGroupBox(self.optionsRightWidget) + self.alignmentGroupBox.setObjectName(u'alignmentGroupBox') + self.gridLayout_4 = QtGui.QGridLayout(self.alignmentGroupBox) self.gridLayout_4.setObjectName(u'gridLayout_4') - self.HorizontalLabel = QtGui.QLabel(self.AlignmentGroupBox) - self.HorizontalLabel.setObjectName(u'HorizontalLabel') - self.gridLayout_4.addWidget(self.HorizontalLabel, 0, 0, 1, 1) - self.HorizontalComboBox = QtGui.QComboBox(self.AlignmentGroupBox) - self.HorizontalComboBox.setObjectName(u'HorizontalComboBox') - self.HorizontalComboBox.addItem(QtCore.QString()) - self.HorizontalComboBox.addItem(QtCore.QString()) - self.HorizontalComboBox.addItem(QtCore.QString()) - self.gridLayout_4.addWidget(self.HorizontalComboBox, 0, 1, 1, 1) - self.VerticalLabel = QtGui.QLabel(self.AlignmentGroupBox) - self.VerticalLabel.setObjectName(u'VerticalLabel') - self.gridLayout_4.addWidget(self.VerticalLabel, 1, 0, 1, 1) - self.VerticalComboBox = QtGui.QComboBox(self.AlignmentGroupBox) - self.VerticalComboBox.setObjectName(u'VerticalComboBox') - self.VerticalComboBox.addItem(QtCore.QString()) - self.VerticalComboBox.addItem(QtCore.QString()) - self.VerticalComboBox.addItem(QtCore.QString()) - self.gridLayout_4.addWidget(self.VerticalComboBox, 1, 1, 1, 1) - self.OptionsRightLayout.addWidget(self.AlignmentGroupBox) - self.TransitionGroupBox = QtGui.QGroupBox(self.OptionsRightWidget) - self.TransitionGroupBox.setObjectName(u'TransitionGroupBox') - self.gridLayout_5 = QtGui.QGridLayout(self.TransitionGroupBox) + self.horizontalLabel = QtGui.QLabel(self.alignmentGroupBox) + self.horizontalLabel.setObjectName(u'horizontalLabel') + self.gridLayout_4.addWidget(self.horizontalLabel, 0, 0, 1, 1) + self.horizontalComboBox = QtGui.QComboBox(self.alignmentGroupBox) + self.horizontalComboBox.setObjectName(u'horizontalComboBox') + self.horizontalComboBox.addItem(QtCore.QString()) + self.horizontalComboBox.addItem(QtCore.QString()) + self.horizontalComboBox.addItem(QtCore.QString()) + self.gridLayout_4.addWidget(self.horizontalComboBox, 0, 1, 1, 1) + self.verticalLabel = QtGui.QLabel(self.alignmentGroupBox) + self.verticalLabel.setObjectName(u'verticalLabel') + self.gridLayout_4.addWidget(self.verticalLabel, 1, 0, 1, 1) + self.verticalComboBox = QtGui.QComboBox(self.alignmentGroupBox) + self.verticalComboBox.setObjectName(u'verticalComboBox') + self.verticalComboBox.addItem(QtCore.QString()) + self.verticalComboBox.addItem(QtCore.QString()) + self.verticalComboBox.addItem(QtCore.QString()) + self.gridLayout_4.addWidget(self.verticalComboBox, 1, 1, 1, 1) + self.optionsRightLayout.addWidget(self.alignmentGroupBox) + self.transitionGroupBox = QtGui.QGroupBox(self.optionsRightWidget) + self.transitionGroupBox.setObjectName(u'transitionGroupBox') + self.gridLayout_5 = QtGui.QGridLayout(self.transitionGroupBox) self.gridLayout_5.setObjectName(u'gridLayout_5') - self.SlideTransitionCheckBoxLabel = QtGui.QLabel( - self.TransitionGroupBox) - self.SlideTransitionCheckBoxLabel.setObjectName( - u'SlideTransitionCheckBoxLabel') + self.slideTransitionCheckBoxLabel = QtGui.QLabel( + self.transitionGroupBox) + self.slideTransitionCheckBoxLabel.setObjectName( + u'slideTransitionCheckBoxLabel') self.gridLayout_5.addWidget( - self.SlideTransitionCheckBoxLabel, 0, 0, 1, 1) - self.SlideTransitionCheckBox = QtGui.QCheckBox(self.AlignmentGroupBox) - self.SlideTransitionCheckBox.setTristate(False) - self.gridLayout_5.addWidget(self.SlideTransitionCheckBox, 0, 1, 1, 1) - self.OptionsRightLayout.addWidget(self.TransitionGroupBox) + self.slideTransitionCheckBoxLabel, 0, 0, 1, 1) + self.slideTransitionCheckBox = QtGui.QCheckBox(self.alignmentGroupBox) + self.slideTransitionCheckBox.setTristate(False) + self.gridLayout_5.addWidget(self.slideTransitionCheckBox, 0, 1, 1, 1) + self.optionsRightLayout.addWidget(self.transitionGroupBox) spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) - self.OptionsRightLayout.addItem(spacerItem6) - self.OtherOptionsLayout.addWidget(self.OptionsRightWidget) - self.ThemeTabWidget.addTab(self.OtherOptionsTab, u'') - self.ContentLayout.addWidget(self.ThemeTabWidget) - self.AmendThemeLayout.addWidget(self.ContentWidget) - self.PreviewGroupBox = QtGui.QGroupBox(AmendThemeDialog) - self.PreviewGroupBox.setObjectName(u'PreviewGroupBox') - self.ThemePreviewLayout = QtGui.QHBoxLayout(self.PreviewGroupBox) - self.ThemePreviewLayout.setSpacing(8) - self.ThemePreviewLayout.setMargin(8) - self.ThemePreviewLayout.setObjectName(u'ThemePreviewLayout') + self.optionsRightLayout.addItem(spacerItem6) + self.otherOptionsLayout.addWidget(self.optionsRightWidget) + self.themeTabWidget.addTab(self.otherOptionsTab, u'') + self.contentLayout.addWidget(self.themeTabWidget) + self.amendThemeLayout.addWidget(self.contentWidget) + self.previewGroupBox = QtGui.QGroupBox(amendThemeDialog) + self.previewGroupBox.setObjectName(u'previewGroupBox') + self.themePreviewLayout = QtGui.QHBoxLayout(self.previewGroupBox) + self.themePreviewLayout.setSpacing(8) + self.themePreviewLayout.setMargin(8) + self.themePreviewLayout.setObjectName(u'themePreviewLayout') spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) - self.ThemePreviewLayout.addItem(spacerItem7) - self.ThemePreview = QtGui.QLabel(self.PreviewGroupBox) + self.themePreviewLayout.addItem(spacerItem7) + self.themePreview = QtGui.QLabel(self.previewGroupBox) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( - self.ThemePreview.sizePolicy().hasHeightForWidth()) - self.ThemePreview.setSizePolicy(sizePolicy) - self.ThemePreview.setMaximumSize(QtCore.QSize(300, 225)) - self.ThemePreview.setFrameShape(QtGui.QFrame.WinPanel) - self.ThemePreview.setFrameShadow(QtGui.QFrame.Sunken) - self.ThemePreview.setLineWidth(1) - self.ThemePreview.setScaledContents(True) - self.ThemePreview.setObjectName(u'ThemePreview') - self.ThemePreviewLayout.addWidget(self.ThemePreview) + self.themePreview.sizePolicy().hasHeightForWidth()) + self.themePreview.setSizePolicy(sizePolicy) + self.themePreview.setMaximumSize(QtCore.QSize(300, 225)) + self.themePreview.setFrameShape(QtGui.QFrame.WinPanel) + self.themePreview.setFrameShadow(QtGui.QFrame.Sunken) + self.themePreview.setLineWidth(1) + self.themePreview.setScaledContents(True) + self.themePreview.setObjectName(u'themePreview') + self.themePreviewLayout.addWidget(self.themePreview) spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) - self.ThemePreviewLayout.addItem(spacerItem8) - self.AmendThemeLayout.addWidget(self.PreviewGroupBox) - self.ThemeButtonBox = QtGui.QDialogButtonBox(AmendThemeDialog) - self.ThemeButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | + self.themePreviewLayout.addItem(spacerItem8) + self.amendThemeLayout.addWidget(self.previewGroupBox) + self.themeButtonBox = QtGui.QDialogButtonBox(amendThemeDialog) + self.themeButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) - self.ThemeButtonBox.setObjectName(u'ThemeButtonBox') - self.AmendThemeLayout.addWidget(self.ThemeButtonBox) + self.themeButtonBox.setObjectName(u'themeButtonBox') + self.amendThemeLayout.addWidget(self.themeButtonBox) - self.retranslateUi(AmendThemeDialog) - self.ThemeTabWidget.setCurrentIndex(0) - QtCore.QObject.connect(self.ThemeButtonBox, - QtCore.SIGNAL(u'accepted()'), AmendThemeDialog.accept) - QtCore.QObject.connect(self.ThemeButtonBox, - QtCore.SIGNAL(u'rejected()'), AmendThemeDialog.reject) - QtCore.QMetaObject.connectSlotsByName(AmendThemeDialog) + self.retranslateUi(amendThemeDialog) + self.themeTabWidget.setCurrentIndex(0) + QtCore.QObject.connect(self.themeButtonBox, + QtCore.SIGNAL(u'accepted()'), amendThemeDialog.accept) + QtCore.QObject.connect(self.themeButtonBox, + QtCore.SIGNAL(u'rejected()'), amendThemeDialog.reject) + QtCore.QMetaObject.connectSlotsByName(amendThemeDialog) - def retranslateUi(self, AmendThemeDialog): - AmendThemeDialog.setWindowTitle( + def retranslateUi(self, amendThemeDialog): + amendThemeDialog.setWindowTitle( translate('OpenLP.AmendThemeForm', 'Theme Maintenance')) - self.ThemeNameLabel.setText( + self.themeNameLabel.setText( translate('OpenLP.AmendThemeForm', 'Theme &name:')) - self.BackgroundLabel.setText( + self.backgroundLabel.setText( translate('OpenLP.AmendThemeForm', '&Visibility:')) - self.BackgroundComboBox.setItemText(0, + self.backgroundComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Opaque')) - self.BackgroundComboBox.setItemText(1, + self.backgroundComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Transparent')) - self.BackgroundTypeLabel.setText( + self.backgroundTypeLabel.setText( translate('OpenLP.AmendThemeForm', 'Type:')) - self.BackgroundTypeComboBox.setItemText(0, + self.backgroundTypeComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Solid Color')) - self.BackgroundTypeComboBox.setItemText(1, + self.backgroundTypeComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Gradient')) - self.BackgroundTypeComboBox.setItemText(2, + self.backgroundTypeComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Image')) - self.Color1Label.setText(u':') - self.Color2Label.setText(u':') - self.ImageLabel.setText( + self.color1Label.setText(u':') + self.color2Label.setText(u':') + self.imageLabel.setText( translate('OpenLP.AmendThemeForm', 'Image:')) - self.GradientLabel.setText( + self.gradientLabel.setText( translate('OpenLP.AmendThemeForm', 'Gradient:')) - self.GradientComboBox.setItemText(0, + self.gradientComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Horizontal')) - self.GradientComboBox.setItemText(1, + self.gradientComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Vertical')) - self.GradientComboBox.setItemText(2, + self.gradientComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Circular')) - self.ThemeTabWidget.setTabText( - self.ThemeTabWidget.indexOf(self.BackgroundTab), + self.themeTabWidget.setTabText( + self.themeTabWidget.indexOf(self.backgroundTab), translate('OpenLP.AmendThemeForm', '&Background')) - self.FontMainGroupBox.setTitle( + self.fontMainGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Main Font')) - self.FontMainlabel.setText( + self.fontMainlabel.setText( translate('OpenLP.AmendThemeForm', 'Font:')) - self.FontMainColorLabel.setText( + self.fontMainColorLabel.setText( translate('OpenLP.AmendThemeForm', 'Color:')) - self.FontMainSize.setText( + self.fontMainSize.setText( translate('OpenLP.AmendThemeForm', 'Size:')) - self.FontMainSizeSpinBox.setSuffix( + self.fontMainSizeSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'pt')) - self.FontMainWrapIndentationLabel.setText( + self.fontMainWrapIndentationLabel.setText( translate('OpenLP.AmendThemeForm', 'Wrap indentation:')) - self.FontMainWrapLineAdjustmentLabel.setText( + self.fontMainWrapLineAdjustmentLabel.setText( translate('OpenLP.AmendThemeForm', 'Adjust line spacing:')) - self.FontMainWeightComboBox.setItemText(0, + self.fontMainWeightComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Normal')) - self.FontMainWeightComboBox.setItemText(1, + self.fontMainWeightComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Bold')) - self.FontMainWeightComboBox.setItemText(2, + self.fontMainWeightComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Italics')) - self.FontMainWeightComboBox.setItemText(3, + self.fontMainWeightComboBox.setItemText(3, translate('OpenLP.AmendThemeForm', 'Bold/Italics')) - self.FontMainWeightLabel.setText( + self.fontMainWeightLabel.setText( translate('OpenLP.AmendThemeForm', 'Style:')) - self.MainLocationGroupBox.setTitle( + self.mainLocationGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Display Location')) - self.DefaultLocationLabel.setText( + self.defaultLocationLabel.setText( translate('OpenLP.AmendThemeForm', 'Use default location')) - self.FontMainXLabel.setText( + self.fontMainXLabel.setText( translate('OpenLP.AmendThemeForm', 'X position:')) - self.FontMainYLabel.setText( + self.fontMainYLabel.setText( translate('OpenLP.AmendThemeForm', 'Y position:')) - self.FontMainWidthLabel.setText( + self.fontMainWidthLabel.setText( translate('OpenLP.AmendThemeForm', 'Width:')) - self.FontMainHeightLabel.setText( + self.fontMainHeightLabel.setText( translate('OpenLP.AmendThemeForm', 'Height:')) - self.FontMainXSpinBox.setSuffix( + self.fontMainXSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontMainYSpinBox.setSuffix( + self.fontMainYSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontMainWidthSpinBox.setSuffix( + self.fontMainWidthSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontMainHeightSpinBox.setSuffix( + self.fontMainHeightSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.ThemeTabWidget.setTabText( - self.ThemeTabWidget.indexOf(self.FontMainTab), + self.themeTabWidget.setTabText( + self.themeTabWidget.indexOf(self.fontMainTab), translate('OpenLP.AmendThemeForm', '&Main Font')) - self.FooterFontGroupBox.setTitle( + self.footerFontGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Footer Font')) - self.FontFooterLabel.setText( + self.fontFooterLabel.setText( translate('OpenLP.AmendThemeForm', 'Font:')) - self.FontFooterColorLabel.setText( + self.fontFooterColorLabel.setText( translate('OpenLP.AmendThemeForm', 'Color:')) - self.FontFooterSizeLabel.setText( + self.fontFooterSizeLabel.setText( translate('OpenLP.AmendThemeForm', 'Size:')) - self.FontFooterSizeSpinBox.setSuffix( + self.fontFooterSizeSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'pt')) - self.FontFooterWeightComboBox.setItemText(0, + self.fontFooterWeightComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Normal')) - self.FontFooterWeightComboBox.setItemText(1, + self.fontFooterWeightComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Bold')) - self.FontFooterWeightComboBox.setItemText(2, + self.fontFooterWeightComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Italics')) - self.FontFooterWeightComboBox.setItemText(3, + self.fontFooterWeightComboBox.setItemText(3, translate('OpenLP.AmendThemeForm', 'Bold/Italics')) - self.FontFooterWeightLabel.setText( + self.fontFooterWeightLabel.setText( translate('OpenLP.AmendThemeForm', 'Style:')) - self.LocationFooterGroupBox.setTitle( + self.locationFooterGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Display Location')) - self.FontFooterDefaultLabel.setText( + self.fontFooterDefaultLabel.setText( translate('OpenLP.AmendThemeForm', 'Use default location')) - self.FontFooterXLabel.setText( + self.fontFooterXLabel.setText( translate('OpenLP.AmendThemeForm', 'X position:')) - self.FontFooterYLabel.setText( + self.fontFooterYLabel.setText( translate('OpenLP.AmendThemeForm', 'Y position:')) - self.FontFooterWidthLabel.setText( + self.fontFooterWidthLabel.setText( translate('OpenLP.AmendThemeForm', 'Width:')) - self.FontFooterHeightLabel.setText( + self.fontFooterHeightLabel.setText( translate('OpenLP.AmendThemeForm', 'Height:')) - self.FontFooterXSpinBox.setSuffix( + self.fontFooterXSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontFooterYSpinBox.setSuffix( + self.fontFooterYSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontFooterWidthSpinBox.setSuffix( + self.fontFooterWidthSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.FontFooterHeightSpinBox.setSuffix( + self.fontFooterHeightSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.ThemeTabWidget.setTabText( - self.ThemeTabWidget.indexOf(self.FontFooterTab), + self.themeTabWidget.setTabText( + self.themeTabWidget.indexOf(self.fontFooterTab), translate('OpenLP.AmendThemeForm', '&Footer Font')) - self.OutlineGroupBox.setTitle( + self.outlineGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Outline')) - self.OutlineSpinBoxLabel.setText( + self.outlineSpinBoxLabel.setText( translate('OpenLP.AmendThemeForm', 'Outline size:')) - self.OutlineSpinBox.setSuffix( + self.outlineSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.OutlineColorLabel.setText( + self.outlineColorLabel.setText( translate('OpenLP.AmendThemeForm', 'Outline color:')) - self.OutlineEnabledLabel.setText( + self.outlineEnabledLabel.setText( translate('OpenLP.AmendThemeForm', 'Show outline:')) - self.ShadowGroupBox.setTitle( + self.shadowGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Shadow')) - self.ShadowSpinBoxLabel.setText( + self.shadowSpinBoxLabel.setText( translate('OpenLP.AmendThemeForm', 'Shadow size:')) - self.ShadowSpinBox.setSuffix( + self.shadowSpinBox.setSuffix( translate('OpenLP.AmendThemeForm', 'px')) - self.ShadowColorLabel.setText( + self.shadowColorLabel.setText( translate('OpenLP.AmendThemeForm', 'Shadow color:')) - self.ShadowEnabledLabel.setText( + self.shadowEnabledLabel.setText( translate('OpenLP.AmendThemeForm', 'Show shadow:')) - self.AlignmentGroupBox.setTitle( + self.alignmentGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Alignment')) - self.HorizontalLabel.setText( + self.horizontalLabel.setText( translate('OpenLP.AmendThemeForm', 'Horizontal align:')) - self.HorizontalComboBox.setItemText(0, + self.horizontalComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Left')) - self.HorizontalComboBox.setItemText(1, + self.horizontalComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Right')) - self.HorizontalComboBox.setItemText(2, + self.horizontalComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Center')) - self.VerticalLabel.setText( + self.verticalLabel.setText( translate('OpenLP.AmendThemeForm', 'Vertical align:')) - self.VerticalComboBox.setItemText(0, + self.verticalComboBox.setItemText(0, translate('OpenLP.AmendThemeForm', 'Top')) - self.VerticalComboBox.setItemText(1, + self.verticalComboBox.setItemText(1, translate('OpenLP.AmendThemeForm', 'Middle')) - self.VerticalComboBox.setItemText(2, + self.verticalComboBox.setItemText(2, translate('OpenLP.AmendThemeForm', 'Bottom')) - self.TransitionGroupBox.setTitle( + self.transitionGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Slide Transition')) - self.SlideTransitionCheckBoxLabel.setText( + self.slideTransitionCheckBoxLabel.setText( translate('OpenLP.AmendThemeForm', 'Transition active')) - self.ThemeTabWidget.setTabText( - self.ThemeTabWidget.indexOf(self.OtherOptionsTab), + self.themeTabWidget.setTabText( + self.themeTabWidget.indexOf(self.otherOptionsTab), translate('OpenLP.AmendThemeForm', '&Other Options')) - self.PreviewGroupBox.setTitle( + self.previewGroupBox.setTitle( translate('OpenLP.AmendThemeForm', 'Preview')) diff --git a/openlp/core/ui/amendthemeform.py b/openlp/core/ui/amendthemeform.py index 2776b3f7b..cefd79df2 100644 --- a/openlp/core/ui/amendthemeform.py +++ b/openlp/core/ui/amendthemeform.py @@ -52,102 +52,102 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.setupUi(self) # define signals # Buttons - QtCore.QObject.connect(self.Color1PushButton, + QtCore.QObject.connect(self.color1PushButton, QtCore.SIGNAL(u'pressed()'), self.onColor1PushButtonClicked) - QtCore.QObject.connect(self.Color2PushButton, + QtCore.QObject.connect(self.color2PushButton, QtCore.SIGNAL(u'pressed()'), self.onColor2PushButtonClicked) - QtCore.QObject.connect(self.FontMainColorPushButton, + QtCore.QObject.connect(self.fontMainColorPushButton, QtCore.SIGNAL(u'pressed()'), self.onFontMainColorPushButtonClicked) - QtCore.QObject.connect(self.FontFooterColorPushButton, + QtCore.QObject.connect(self.fontFooterColorPushButton, QtCore.SIGNAL(u'pressed()'), self.onFontFooterColorPushButtonClicked) - QtCore.QObject.connect(self.OutlineColorPushButton, + QtCore.QObject.connect(self.outlineColorPushButton, QtCore.SIGNAL(u'pressed()'), self.onOutlineColorPushButtonClicked) - QtCore.QObject.connect(self.ShadowColorPushButton, + QtCore.QObject.connect(self.shadowColorPushButton, QtCore.SIGNAL(u'pressed()'), self.onShadowColorPushButtonClicked) - QtCore.QObject.connect(self.ImageToolButton, + QtCore.QObject.connect(self.imageToolButton, QtCore.SIGNAL(u'clicked()'), self.onImageToolButtonClicked) # Combo boxes - QtCore.QObject.connect(self.BackgroundComboBox, + QtCore.QObject.connect(self.backgroundComboBox, QtCore.SIGNAL(u'activated(int)'), self.onBackgroundComboBoxSelected) - QtCore.QObject.connect(self.BackgroundTypeComboBox, + QtCore.QObject.connect(self.backgroundTypeComboBox, QtCore.SIGNAL(u'activated(int)'), self.onBackgroundTypeComboBoxSelected) - QtCore.QObject.connect(self.GradientComboBox, + QtCore.QObject.connect(self.gradientComboBox, QtCore.SIGNAL(u'activated(int)'), self.onGradientComboBoxSelected) - QtCore.QObject.connect(self.FontMainComboBox, + QtCore.QObject.connect(self.fontMainComboBox, QtCore.SIGNAL(u'activated(int)'), self.onFontMainComboBoxSelected) - QtCore.QObject.connect(self.FontMainWeightComboBox, + QtCore.QObject.connect(self.fontMainWeightComboBox, QtCore.SIGNAL(u'activated(int)'), self.onFontMainWeightComboBoxSelected) - QtCore.QObject.connect(self.FontFooterComboBox, + QtCore.QObject.connect(self.fontFooterComboBox, QtCore.SIGNAL(u'activated(int)'), self.onFontFooterComboBoxSelected) - QtCore.QObject.connect(self.FontFooterWeightComboBox, + QtCore.QObject.connect(self.fontFooterWeightComboBox, QtCore.SIGNAL(u'activated(int)'), self.onFontFooterWeightComboBoxSelected) - QtCore.QObject.connect(self.HorizontalComboBox, + QtCore.QObject.connect(self.horizontalComboBox, QtCore.SIGNAL(u'activated(int)'), self.onHorizontalComboBoxSelected) - QtCore.QObject.connect(self.VerticalComboBox, + QtCore.QObject.connect(self.verticalComboBox, QtCore.SIGNAL(u'activated(int)'), self.onVerticalComboBoxSelected) # Spin boxes - QtCore.QObject.connect(self.FontMainSizeSpinBox, + QtCore.QObject.connect(self.fontMainSizeSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainSizeSpinBoxChanged) - QtCore.QObject.connect(self.FontFooterSizeSpinBox, + QtCore.QObject.connect(self.fontFooterSizeSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterSizeSpinBoxChanged) - QtCore.QObject.connect(self.FontMainXSpinBox, + QtCore.QObject.connect(self.fontMainXSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainXSpinBoxChanged) - QtCore.QObject.connect(self.FontMainYSpinBox, + QtCore.QObject.connect(self.fontMainYSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainYSpinBoxChanged) - QtCore.QObject.connect(self.FontMainWidthSpinBox, + QtCore.QObject.connect(self.fontMainWidthSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainWidthSpinBoxChanged) - QtCore.QObject.connect(self.FontMainHeightSpinBox, + QtCore.QObject.connect(self.fontMainHeightSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainHeightSpinBoxChanged) - QtCore.QObject.connect(self.FontMainLineAdjustmentSpinBox, + QtCore.QObject.connect(self.fontMainLineAdjustmentSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainLineAdjustmentSpinBoxChanged) - QtCore.QObject.connect(self.FontMainLineSpacingSpinBox, + QtCore.QObject.connect(self.fontMainLineSpacingSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontMainLineSpacingSpinBoxChanged) - QtCore.QObject.connect(self.FontFooterXSpinBox, + QtCore.QObject.connect(self.fontFooterXSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterXSpinBoxChanged) - QtCore.QObject.connect(self.FontFooterYSpinBox, + QtCore.QObject.connect(self.fontFooterYSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterYSpinBoxChanged) - QtCore.QObject.connect(self.FontFooterWidthSpinBox, + QtCore.QObject.connect(self.fontFooterWidthSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterWidthSpinBoxChanged) - QtCore.QObject.connect(self.FontFooterHeightSpinBox, + QtCore.QObject.connect(self.fontFooterHeightSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onFontFooterHeightSpinBoxChanged) - QtCore.QObject.connect(self.ShadowSpinBox, + QtCore.QObject.connect(self.shadowSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onShadowSpinBoxChanged) - QtCore.QObject.connect(self.OutlineSpinBox, + QtCore.QObject.connect(self.outlineSpinBox, QtCore.SIGNAL(u'editingFinished()'), self.onOutlineSpinBoxChanged) # CheckBoxes - QtCore.QObject.connect(self.FontMainDefaultCheckBox, + QtCore.QObject.connect(self.fontMainDefaultCheckBox, QtCore.SIGNAL(u'stateChanged(int)'), self.onFontMainDefaultCheckBoxChanged) - QtCore.QObject.connect(self.FontFooterDefaultCheckBox, + QtCore.QObject.connect(self.fontFooterDefaultCheckBox, QtCore.SIGNAL(u'stateChanged(int)'), self.onFontFooterDefaultCheckBoxChanged) - QtCore.QObject.connect(self.OutlineCheckBox, + QtCore.QObject.connect(self.outlineCheckBox, QtCore.SIGNAL(u'stateChanged(int)'), self.onOutlineCheckBoxChanged) - QtCore.QObject.connect(self.ShadowCheckBox, + QtCore.QObject.connect(self.shadowCheckBox, QtCore.SIGNAL(u'stateChanged(int)'), self.onShadowCheckBoxChanged) - QtCore.QObject.connect(self.SlideTransitionCheckBox, + QtCore.QObject.connect(self.slideTransitionCheckBox, QtCore.SIGNAL(u'stateChanged(int)'), self.onSlideTransitionCheckBoxChanged) def accept(self): new_theme = ThemeXML() - theme_name = unicode(self.ThemeNameEdit.text()) + theme_name = unicode(self.themeNameEdit.text()) new_theme.new_document(theme_name) save_from = None save_to = None @@ -225,7 +225,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): translate('OpenLP.AmendThemeForm', 'Select Image'), u'', images_filter) if filename: - self.ImageLineEdit.setText(filename) + self.imageLineEdit.setText(filename) self.theme.background_filename = filename self.previewTheme() @@ -233,7 +233,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): #Main Font Tab # def onFontMainComboBoxSelected(self): - self.theme.font_main_name = self.FontMainComboBox.currentFont().family() + self.theme.font_main_name = self.fontMainComboBox.currentFont().family() self.previewTheme() def onFontMainWeightComboBoxSelected(self, value): @@ -256,13 +256,13 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.font_main_color), self) if new_color.isValid(): self.theme.font_main_color = new_color.name() - self.FontMainColorPushButton.setStyleSheet( + self.fontMainColorPushButton.setStyleSheet( u'background-color: %s' % unicode(self.theme.font_main_color)) self.previewTheme() def onFontMainSizeSpinBoxChanged(self): - if self.theme.font_main_proportion != self.FontMainSizeSpinBox.value(): - self.theme.font_main_proportion = self.FontMainSizeSpinBox.value() + if self.theme.font_main_proportion != self.fontMainSizeSpinBox.value(): + self.theme.font_main_proportion = self.fontMainSizeSpinBox.value() self.previewTheme() def onFontMainDefaultCheckBoxChanged(self, value): @@ -277,49 +277,49 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.theme.font_main_y = u'10' self.theme.font_main_width = u'1024' self.theme.font_main_height = u'730' - self.FontMainXSpinBox.setValue(self.theme.font_main_x) - self.FontMainYSpinBox.setValue(self.theme.font_main_y) - self.FontMainWidthSpinBox.setValue(self.theme.font_main_width) - self.FontMainHeightSpinBox.setValue(self.theme.font_main_height) - self.FontMainLineAdjustmentSpinBox.setValue( + self.fontMainXSpinBox.setValue(self.theme.font_main_x) + self.fontMainYSpinBox.setValue(self.theme.font_main_y) + self.fontMainWidthSpinBox.setValue(self.theme.font_main_width) + self.fontMainHeightSpinBox.setValue(self.theme.font_main_height) + self.fontMainLineAdjustmentSpinBox.setValue( self.theme.font_main_line_adjustment) - self.FontMainLineSpacingSpinBox.setValue( + self.fontMainLineSpacingSpinBox.setValue( self.theme.font_main_indentation) self.stateChanging(self.theme) self.previewTheme() def onFontMainXSpinBoxChanged(self): - if self.theme.font_main_x != self.FontMainXSpinBox.value(): - self.theme.font_main_x = self.FontMainXSpinBox.value() + if self.theme.font_main_x != self.fontMainXSpinBox.value(): + self.theme.font_main_x = self.fontMainXSpinBox.value() self.previewTheme() def onFontMainYSpinBoxChanged(self): - if self.theme.font_main_y != self.FontMainYSpinBox.value(): - self.theme.font_main_y = self.FontMainYSpinBox.value() + if self.theme.font_main_y != self.fontMainYSpinBox.value(): + self.theme.font_main_y = self.fontMainYSpinBox.value() self.previewTheme() def onFontMainWidthSpinBoxChanged(self): - if self.theme.font_main_width != self.FontMainWidthSpinBox.value(): - self.theme.font_main_width = self.FontMainWidthSpinBox.value() + if self.theme.font_main_width != self.fontMainWidthSpinBox.value(): + self.theme.font_main_width = self.fontMainWidthSpinBox.value() self.previewTheme() def onFontMainLineAdjustmentSpinBoxChanged(self): if self.theme.font_main_line_adjustment != \ - self.FontMainLineAdjustmentSpinBox.value(): + self.fontMainLineAdjustmentSpinBox.value(): self.theme.font_main_line_adjustment = \ - self.FontMainLineAdjustmentSpinBox.value() + self.fontMainLineAdjustmentSpinBox.value() self.previewTheme() def onFontMainLineSpacingSpinBoxChanged(self): if self.theme.font_main_indentation != \ - self.FontMainLineSpacingSpinBox.value(): + self.fontMainLineSpacingSpinBox.value(): self.theme.font_main_indentation = \ - self.FontMainLineSpacingSpinBox.value() + self.fontMainLineSpacingSpinBox.value() self.previewTheme() def onFontMainHeightSpinBoxChanged(self): - if self.theme.font_main_height != self.FontMainHeightSpinBox.value(): - self.theme.font_main_height = self.FontMainHeightSpinBox.value() + if self.theme.font_main_height != self.fontMainHeightSpinBox.value(): + self.theme.font_main_height = self.fontMainHeightSpinBox.value() self.previewTheme() # @@ -327,7 +327,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): # def onFontFooterComboBoxSelected(self): self.theme.font_footer_name = \ - self.FontFooterComboBox.currentFont().family() + self.fontFooterComboBox.currentFont().family() self.previewTheme() def onFontFooterWeightComboBoxSelected(self, value): @@ -350,15 +350,15 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.font_footer_color), self) if new_color.isValid(): self.theme.font_footer_color = new_color.name() - self.FontFooterColorPushButton.setStyleSheet( + self.fontFooterColorPushButton.setStyleSheet( u'background-color: %s' % unicode(self.theme.font_footer_color)) self.previewTheme() def onFontFooterSizeSpinBoxChanged(self): if self.theme.font_footer_proportion != \ - self.FontFooterSizeSpinBox.value(): + self.fontFooterSizeSpinBox.value(): self.theme.font_footer_proportion = \ - self.FontFooterSizeSpinBox.value() + self.fontFooterSizeSpinBox.value() self.previewTheme() def onFontFooterDefaultCheckBoxChanged(self, value): @@ -373,41 +373,41 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.theme.font_footer_y = u'730' self.theme.font_footer_width = u'1024' self.theme.font_footer_height = u'38' - self.FontFooterXSpinBox.setValue(self.theme.font_footer_x) - self.FontFooterYSpinBox.setValue(self.theme.font_footer_y) - self.FontFooterWidthSpinBox.setValue(self.theme.font_footer_width) - self.FontFooterHeightSpinBox.setValue( + self.fontFooterXSpinBox.setValue(self.theme.font_footer_x) + self.fontFooterYSpinBox.setValue(self.theme.font_footer_y) + self.fontFooterWidthSpinBox.setValue(self.theme.font_footer_width) + self.fontFooterHeightSpinBox.setValue( self.theme.font_footer_height) self.stateChanging(self.theme) self.previewTheme() def onFontFooterXSpinBoxChanged(self): - if self.theme.font_footer_x != self.FontFooterXSpinBox.value(): - self.theme.font_footer_x = self.FontFooterXSpinBox.value() + if self.theme.font_footer_x != self.fontFooterXSpinBox.value(): + self.theme.font_footer_x = self.fontFooterXSpinBox.value() self.previewTheme() def onFontFooterYSpinBoxChanged(self): - if self.theme.font_footer_y != self.FontFooterYSpinBox.value(): - self.theme.font_footer_y = self.FontFooterYSpinBox.value() + if self.theme.font_footer_y != self.fontFooterYSpinBox.value(): + self.theme.font_footer_y = self.fontFooterYSpinBox.value() self.previewTheme() def onFontFooterWidthSpinBoxChanged(self): - if self.theme.font_footer_width != self.FontFooterWidthSpinBox.value(): - self.theme.font_footer_width = self.FontFooterWidthSpinBox.value() + if self.theme.font_footer_width != self.fontFooterWidthSpinBox.value(): + self.theme.font_footer_width = self.fontFooterWidthSpinBox.value() self.previewTheme() def onFontFooterHeightSpinBoxChanged(self): if self.theme.font_footer_height != \ - self.FontFooterHeightSpinBox.value(): + self.fontFooterHeightSpinBox.value(): self.theme.font_footer_height = \ - self.FontFooterHeightSpinBox.value() + self.fontFooterHeightSpinBox.value() self.previewTheme() # #Background Tab # def onGradientComboBoxSelected(self, currentIndex): - self.setBackground(self.BackgroundTypeComboBox.currentIndex(), + self.setBackground(self.backgroundTypeComboBox.currentIndex(), currentIndex) def onBackgroundComboBoxSelected(self, currentIndex): @@ -419,14 +419,14 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.previewTheme() def onBackgroundTypeComboBoxSelected(self, currentIndex): - self.setBackground(currentIndex, self.GradientComboBox.currentIndex()) + self.setBackground(currentIndex, self.gradientComboBox.currentIndex()) def setBackground(self, background, gradient): if background == 0: # Solid self.theme.background_type = u'solid' if self.theme.background_color is None: self.theme.background_color = u'#000000' - self.ImageLineEdit.setText(u'') + self.imageLineEdit.setText(u'') elif background == 1: # Gradient self.theme.background_type = u'gradient' if gradient == 0: # Horizontal @@ -439,7 +439,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.theme.background_startColor = u'#000000' if self.theme.background_endColor is None: self.theme.background_endColor = u'#ff0000' - self.ImageLineEdit.setText(u'') + self.imageLineEdit.setText(u'') else: self.theme.background_type = u'image' self.stateChanging(self.theme) @@ -451,14 +451,14 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.background_color), self) if new_color.isValid(): self.theme.background_color = new_color.name() - self.Color1PushButton.setStyleSheet(u'background-color: %s' % + self.color1PushButton.setStyleSheet(u'background-color: %s' % unicode(self.theme.background_color)) else: new_color = QtGui.QColorDialog.getColor( QtGui.QColor(self.theme.background_startColor), self) if new_color.isValid(): self.theme.background_startColor = new_color.name() - self.Color1PushButton.setStyleSheet(u'background-color: %s' % + self.color1PushButton.setStyleSheet(u'background-color: %s' % unicode(self.theme.background_startColor)) self.previewTheme() @@ -467,7 +467,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.background_endColor), self) if new_color.isValid(): self.theme.background_endColor = new_color.name() - self.Color2PushButton.setStyleSheet(u'background-color: %s' % + self.color2PushButton.setStyleSheet(u'background-color: %s' % unicode(self.theme.background_endColor)) self.previewTheme() @@ -483,13 +483,13 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): self.previewTheme() def onOutlineSpinBoxChanged(self): - if self.theme.display_outline_size != self.OutlineSpinBox.value(): - self.theme.display_outline_size = self.OutlineSpinBox.value() + if self.theme.display_outline_size != self.outlineSpinBox.value(): + self.theme.display_outline_size = self.outlineSpinBox.value() self.previewTheme() def onShadowSpinBoxChanged(self): - if self.theme.display_shadow_size != self.ShadowSpinBox.value(): - self.theme.display_shadow_size = self.ShadowSpinBox.value() + if self.theme.display_shadow_size != self.shadowSpinBox.value(): + self.theme.display_shadow_size = self.shadowSpinBox.value() self.previewTheme() def onOutlineColorPushButtonClicked(self): @@ -497,7 +497,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.display_outline_color), self) if new_color.isValid(): self.theme.display_outline_color = new_color.name() - self.OutlineColorPushButton.setStyleSheet(u'background-color: %s' % + self.outlineColorPushButton.setStyleSheet(u'background-color: %s' % unicode(self.theme.display_outline_color)) self.previewTheme() @@ -522,7 +522,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): QtGui.QColor(self.theme.display_shadow_color), self) if new_color.isValid(): self.theme.display_shadow_color = new_color.name() - self.ShadowColorPushButton.setStyleSheet(u'background-color: %s' % + self.shadowColorPushButton.setStyleSheet(u'background-color: %s' % unicode(self.theme.display_shadow_color)) self.previewTheme() @@ -541,194 +541,194 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): # def paintUi(self, theme): self.stateChanging(theme) - self.ThemeNameEdit.setText(self.theme.theme_name) + self.themeNameEdit.setText(self.theme.theme_name) # Background Tab if self.theme.background_mode == u'opaque': - self.BackgroundComboBox.setCurrentIndex(0) + self.backgroundComboBox.setCurrentIndex(0) else: - self.BackgroundComboBox.setCurrentIndex(1) - self.ImageLineEdit.setText(u'') + self.backgroundComboBox.setCurrentIndex(1) + self.imageLineEdit.setText(u'') if theme.background_type == u'solid': - self.BackgroundTypeComboBox.setCurrentIndex(0) + self.backgroundTypeComboBox.setCurrentIndex(0) elif theme.background_type == u'gradient': - self.BackgroundTypeComboBox.setCurrentIndex(1) + self.backgroundTypeComboBox.setCurrentIndex(1) else: - self.BackgroundTypeComboBox.setCurrentIndex(2) - self.ImageLineEdit.setText(self.theme.background_filename) + self.backgroundTypeComboBox.setCurrentIndex(2) + self.imageLineEdit.setText(self.theme.background_filename) if self.theme.background_direction == u'horizontal': - self.GradientComboBox.setCurrentIndex(0) + self.gradientComboBox.setCurrentIndex(0) elif self.theme.background_direction == u'vertical': - self.GradientComboBox.setCurrentIndex(1) + self.gradientComboBox.setCurrentIndex(1) else: - self.GradientComboBox.setCurrentIndex(2) + self.gradientComboBox.setCurrentIndex(2) # Font Main Tab - self.FontMainComboBox.setCurrentFont( + self.fontMainComboBox.setCurrentFont( QtGui.QFont(self.theme.font_main_name)) - self.FontMainSizeSpinBox.setValue(self.theme.font_main_proportion) + self.fontMainSizeSpinBox.setValue(self.theme.font_main_proportion) if not self.theme.font_main_italics and \ self.theme.font_main_weight == u'Normal': - self.FontMainWeightComboBox.setCurrentIndex(0) + self.fontMainWeightComboBox.setCurrentIndex(0) elif not self.theme.font_main_italics and \ self.theme.font_main_weight == u'Bold': - self.FontMainWeightComboBox.setCurrentIndex(1) + self.fontMainWeightComboBox.setCurrentIndex(1) elif self.theme.font_main_italics and \ self.theme.font_main_weight == u'Normal': - self.FontMainWeightComboBox.setCurrentIndex(2) + self.fontMainWeightComboBox.setCurrentIndex(2) else: - self.FontMainWeightComboBox.setCurrentIndex(3) - self.FontMainLineSpacingSpinBox.setValue( + self.fontMainWeightComboBox.setCurrentIndex(3) + self.fontMainLineSpacingSpinBox.setValue( self.theme.font_main_indentation) - self.FontMainXSpinBox.setValue(self.theme.font_main_x) - self.FontMainYSpinBox.setValue(self.theme.font_main_y) - self.FontMainWidthSpinBox.setValue(self.theme.font_main_width) - self.FontMainHeightSpinBox.setValue(self.theme.font_main_height) + self.fontMainXSpinBox.setValue(self.theme.font_main_x) + self.fontMainYSpinBox.setValue(self.theme.font_main_y) + self.fontMainWidthSpinBox.setValue(self.theme.font_main_width) + self.fontMainHeightSpinBox.setValue(self.theme.font_main_height) # Font Footer Tab - self.FontFooterComboBox.setCurrentFont( + self.fontFooterComboBox.setCurrentFont( QtGui.QFont(self.theme.font_footer_name)) - self.FontFooterSizeSpinBox.setValue( + self.fontFooterSizeSpinBox.setValue( self.theme.font_footer_proportion) if not self.theme.font_footer_italics and \ self.theme.font_footer_weight == u'Normal': - self.FontFooterWeightComboBox.setCurrentIndex(0) + self.fontFooterWeightComboBox.setCurrentIndex(0) elif not self.theme.font_footer_italics and \ self.theme.font_footer_weight == u'Bold': - self.FontFooterWeightComboBox.setCurrentIndex(1) + self.fontFooterWeightComboBox.setCurrentIndex(1) elif self.theme.font_footer_italics and \ self.theme.font_footer_weight == u'Normal': - self.FontFooterWeightComboBox.setCurrentIndex(2) + self.fontFooterWeightComboBox.setCurrentIndex(2) else: - self.FontFooterWeightComboBox.setCurrentIndex(3) - self.FontFooterXSpinBox.setValue(self.theme.font_footer_x) - self.FontFooterYSpinBox.setValue(self.theme.font_footer_y) - self.FontFooterWidthSpinBox.setValue(self.theme.font_footer_width) - self.FontFooterHeightSpinBox.setValue(self.theme.font_footer_height) - self.FontMainColorPushButton.setStyleSheet( + self.fontFooterWeightComboBox.setCurrentIndex(3) + self.fontFooterXSpinBox.setValue(self.theme.font_footer_x) + self.fontFooterYSpinBox.setValue(self.theme.font_footer_y) + self.fontFooterWidthSpinBox.setValue(self.theme.font_footer_width) + self.fontFooterHeightSpinBox.setValue(self.theme.font_footer_height) + self.fontMainColorPushButton.setStyleSheet( u'background-color: %s' % unicode(theme.font_main_color)) - self.FontFooterColorPushButton.setStyleSheet( + self.fontFooterColorPushButton.setStyleSheet( u'background-color: %s' % unicode(theme.font_footer_color)) if not self.theme.font_main_override: - self.FontMainDefaultCheckBox.setChecked(True) + self.fontMainDefaultCheckBox.setChecked(True) else: - self.FontMainDefaultCheckBox.setChecked(False) + self.fontMainDefaultCheckBox.setChecked(False) if not self.theme.font_footer_override: - self.FontFooterDefaultCheckBox.setChecked(True) + self.fontFooterDefaultCheckBox.setChecked(True) else: - self.FontFooterDefaultCheckBox.setChecked(False) - self.OutlineColorPushButton.setStyleSheet( + self.fontFooterDefaultCheckBox.setChecked(False) + self.outlineColorPushButton.setStyleSheet( u'background-color: %s' % unicode(theme.display_outline_color)) - self.ShadowColorPushButton.setStyleSheet( + self.shadowColorPushButton.setStyleSheet( u'background-color: %s' % unicode(theme.display_shadow_color)) if self.theme.display_outline: - self.OutlineCheckBox.setChecked(True) - self.OutlineColorPushButton.setEnabled(True) + self.outlineCheckBox.setChecked(True) + self.outlineColorPushButton.setEnabled(True) else: - self.OutlineCheckBox.setChecked(False) - self.OutlineColorPushButton.setEnabled(False) - self.OutlineSpinBox.setValue(int(self.theme.display_outline_size)) + self.outlineCheckBox.setChecked(False) + self.outlineColorPushButton.setEnabled(False) + self.outlineSpinBox.setValue(int(self.theme.display_outline_size)) if self.theme.display_shadow: - self.ShadowCheckBox.setChecked(True) - self.ShadowColorPushButton.setEnabled(True) + self.shadowCheckBox.setChecked(True) + self.shadowColorPushButton.setEnabled(True) else: - self.ShadowCheckBox.setChecked(False) - self.ShadowColorPushButton.setEnabled(False) - self.ShadowSpinBox.setValue(int(self.theme.display_shadow_size)) + self.shadowCheckBox.setChecked(False) + self.shadowColorPushButton.setEnabled(False) + self.shadowSpinBox.setValue(int(self.theme.display_shadow_size)) if self.theme.display_slideTransition: - self.SlideTransitionCheckBox.setCheckState(QtCore.Qt.Checked) + self.slideTransitionCheckBox.setCheckState(QtCore.Qt.Checked) else: - self.SlideTransitionCheckBox.setCheckState(QtCore.Qt.Unchecked) - self.HorizontalComboBox.setCurrentIndex( + self.slideTransitionCheckBox.setCheckState(QtCore.Qt.Unchecked) + self.horizontalComboBox.setCurrentIndex( self.theme.display_horizontalAlign) - self.VerticalComboBox.setCurrentIndex(self.theme.display_verticalAlign) + self.verticalComboBox.setCurrentIndex(self.theme.display_verticalAlign) def stateChanging(self, theme): if theme.background_mode == u'transparent': - self.Color1Label.setVisible(False) - self.Color1PushButton.setVisible(False) - self.Color2Label.setVisible(False) - self.Color2PushButton.setVisible(False) - self.ImageLabel.setVisible(False) - self.ImageLineEdit.setVisible(False) - self.ImageFilenameWidget.setVisible(False) - self.GradientLabel.setVisible(False) - self.GradientComboBox.setVisible(False) - self.BackgroundTypeComboBox.setVisible(False) - self.BackgroundTypeLabel.setVisible(False) + self.color1Label.setVisible(False) + self.color1PushButton.setVisible(False) + self.color2Label.setVisible(False) + self.color2PushButton.setVisible(False) + self.imageLabel.setVisible(False) + self.imageLineEdit.setVisible(False) + self.imageFilenameWidget.setVisible(False) + self.gradientLabel.setVisible(False) + self.gradientComboBox.setVisible(False) + self.backgroundTypeComboBox.setVisible(False) + self.backgroundTypeLabel.setVisible(False) else: - self.BackgroundTypeComboBox.setVisible(True) - self.BackgroundTypeLabel.setVisible(True) + self.backgroundTypeComboBox.setVisible(True) + self.backgroundTypeLabel.setVisible(True) if theme.background_type == u'solid': - self.Color1PushButton.setStyleSheet( + self.color1PushButton.setStyleSheet( u'background-color: %s' % unicode(theme.background_color)) - self.Color1Label.setText( + self.color1Label.setText( translate('OpenLP.AmendThemeForm', 'Color:')) - self.Color1Label.setVisible(True) - self.Color1PushButton.setVisible(True) - self.Color2Label.setVisible(False) - self.Color2PushButton.setVisible(False) - self.ImageLabel.setVisible(False) - self.ImageLineEdit.setVisible(False) - self.ImageFilenameWidget.setVisible(False) - self.GradientLabel.setVisible(False) - self.GradientComboBox.setVisible(False) + self.color1Label.setVisible(True) + self.color1PushButton.setVisible(True) + self.color2Label.setVisible(False) + self.color2PushButton.setVisible(False) + self.imageLabel.setVisible(False) + self.imageLineEdit.setVisible(False) + self.imageFilenameWidget.setVisible(False) + self.gradientLabel.setVisible(False) + self.gradientComboBox.setVisible(False) elif theme.background_type == u'gradient': - self.Color1PushButton.setStyleSheet(u'background-color: %s' \ + self.color1PushButton.setStyleSheet(u'background-color: %s' \ % unicode(theme.background_startColor)) - self.Color2PushButton.setStyleSheet(u'background-color: %s' \ + self.color2PushButton.setStyleSheet(u'background-color: %s' \ % unicode(theme.background_endColor)) - self.Color1Label.setText( + self.color1Label.setText( translate('OpenLP.AmendThemeForm', 'First color:')) - self.Color2Label.setText( + self.color2Label.setText( translate('OpenLP.AmendThemeForm', 'Second color:')) - self.Color1Label.setVisible(True) - self.Color1PushButton.setVisible(True) - self.Color2Label.setVisible(True) - self.Color2PushButton.setVisible(True) - self.ImageLabel.setVisible(False) - self.ImageLineEdit.setVisible(False) - self.ImageFilenameWidget.setVisible(False) - self.GradientLabel.setVisible(True) - self.GradientComboBox.setVisible(True) + self.color1Label.setVisible(True) + self.color1PushButton.setVisible(True) + self.color2Label.setVisible(True) + self.color2PushButton.setVisible(True) + self.imageLabel.setVisible(False) + self.imageLineEdit.setVisible(False) + self.imageFilenameWidget.setVisible(False) + self.gradientLabel.setVisible(True) + self.gradientComboBox.setVisible(True) else: # must be image - self.Color1Label.setVisible(False) - self.Color1PushButton.setVisible(False) - self.Color2Label.setVisible(False) - self.Color2PushButton.setVisible(False) - self.ImageLabel.setVisible(True) - self.ImageLineEdit.setVisible(True) - self.ImageFilenameWidget.setVisible(True) - self.GradientLabel.setVisible(False) - self.GradientComboBox.setVisible(False) + self.color1Label.setVisible(False) + self.color1PushButton.setVisible(False) + self.color2Label.setVisible(False) + self.color2PushButton.setVisible(False) + self.imageLabel.setVisible(True) + self.imageLineEdit.setVisible(True) + self.imageFilenameWidget.setVisible(True) + self.gradientLabel.setVisible(False) + self.gradientComboBox.setVisible(False) if not theme.font_main_override: - self.FontMainXSpinBox.setEnabled(False) - self.FontMainYSpinBox.setEnabled(False) - self.FontMainWidthSpinBox.setEnabled(False) - self.FontMainHeightSpinBox.setEnabled(False) + self.fontMainXSpinBox.setEnabled(False) + self.fontMainYSpinBox.setEnabled(False) + self.fontMainWidthSpinBox.setEnabled(False) + self.fontMainHeightSpinBox.setEnabled(False) else: - self.FontMainXSpinBox.setEnabled(True) - self.FontMainYSpinBox.setEnabled(True) - self.FontMainWidthSpinBox.setEnabled(True) - self.FontMainHeightSpinBox.setEnabled(True) + self.fontMainXSpinBox.setEnabled(True) + self.fontMainYSpinBox.setEnabled(True) + self.fontMainWidthSpinBox.setEnabled(True) + self.fontMainHeightSpinBox.setEnabled(True) if not theme.font_footer_override: - self.FontFooterXSpinBox.setEnabled(False) - self.FontFooterYSpinBox.setEnabled(False) - self.FontFooterWidthSpinBox.setEnabled(False) - self.FontFooterHeightSpinBox.setEnabled(False) + self.fontFooterXSpinBox.setEnabled(False) + self.fontFooterYSpinBox.setEnabled(False) + self.fontFooterWidthSpinBox.setEnabled(False) + self.fontFooterHeightSpinBox.setEnabled(False) else: - self.FontFooterXSpinBox.setEnabled(True) - self.FontFooterYSpinBox.setEnabled(True) - self.FontFooterWidthSpinBox.setEnabled(True) - self.FontFooterHeightSpinBox.setEnabled(True) + self.fontFooterXSpinBox.setEnabled(True) + self.fontFooterYSpinBox.setEnabled(True) + self.fontFooterWidthSpinBox.setEnabled(True) + self.fontFooterHeightSpinBox.setEnabled(True) if self.theme.display_outline: - self.OutlineColorPushButton.setEnabled(True) + self.outlineColorPushButton.setEnabled(True) else: - self.OutlineColorPushButton.setEnabled(False) + self.outlineColorPushButton.setEnabled(False) if self.theme.display_shadow: - self.ShadowColorPushButton.setEnabled(True) + self.shadowColorPushButton.setEnabled(True) else: - self.ShadowColorPushButton.setEnabled(False) + self.shadowColorPushButton.setEnabled(False) def previewTheme(self): if self.allowPreview: @@ -742,15 +742,15 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): # pixels top/bottom line_height += 2 * int(self.theme.display_outline_size) page_length = \ - ((self.FontMainHeightSpinBox.value()) / line_height ) + ((self.fontMainHeightSpinBox.value()) / line_height ) log.debug(u'Page Length area height %s, metrics %s, lines %s' % - (self.FontMainHeightSpinBox.value(), metrics.height(), + (self.fontMainHeightSpinBox.value(), metrics.height(), page_length)) page_length_text = unicode( translate('OpenLP.AmendThemeForm', 'Slide height is %s rows.')) - self.FontMainLinesPageLabel.setText(page_length_text % page_length) + self.fontMainLinesPageLabel.setText(page_length_text % page_length) frame = self.thememanager.generateImage(self.theme) - self.ThemePreview.setPixmap(QtGui.QPixmap.fromImage(frame)) + self.themePreview.setPixmap(QtGui.QPixmap.fromImage(frame)) def _getThemeMetrics(self): main_weight = 50 @@ -765,5 +765,5 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): # Validate that the screen width is big enough to display the text if self.theme.font_main_width < metrics.maxWidth() * 2 + 64: self.theme.font_main_width = metrics.maxWidth() * 2 + 64 - self.FontMainWidthSpinBox.setValue(self.theme.font_main_width) + self.fontMainWidthSpinBox.setValue(self.theme.font_main_width) return metrics