forked from openlp/openlp
Add new dialog and fix the Theme import code not to include old style preview code
This commit is contained in:
parent
a662404122
commit
a02835f0f8
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'amendthemedialog.ui'
|
# Form implementation generated from reading ui file 'amendthemedialog.ui'
|
||||||
#
|
#
|
||||||
# Created: Fri Apr 10 20:38:33 2009
|
# Created: Sun Apr 19 07:51:09 2009
|
||||||
# by: PyQt4 UI code generator 4.4.4
|
# by: PyQt4 UI code generator 4.4.4
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
@ -12,272 +12,416 @@ from PyQt4 import QtCore, QtGui
|
|||||||
class Ui_AmendThemeDialog(object):
|
class Ui_AmendThemeDialog(object):
|
||||||
def setupUi(self, AmendThemeDialog):
|
def setupUi(self, AmendThemeDialog):
|
||||||
AmendThemeDialog.setObjectName("AmendThemeDialog")
|
AmendThemeDialog.setObjectName("AmendThemeDialog")
|
||||||
AmendThemeDialog.resize(752, 533)
|
AmendThemeDialog.setWindowModality(QtCore.Qt.ApplicationModal)
|
||||||
|
AmendThemeDialog.resize(586, 651)
|
||||||
icon = QtGui.QIcon()
|
icon = QtGui.QIcon()
|
||||||
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
AmendThemeDialog.setWindowIcon(icon)
|
AmendThemeDialog.setWindowIcon(icon)
|
||||||
self.ThemeButtonBox = QtGui.QDialogButtonBox(AmendThemeDialog)
|
AmendThemeDialog.setModal(True)
|
||||||
self.ThemeButtonBox.setGeometry(QtCore.QRect(580, 500, 156, 26))
|
self.AmendThemeLayout = QtGui.QVBoxLayout(AmendThemeDialog)
|
||||||
self.ThemeButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
self.AmendThemeLayout.setSpacing(8)
|
||||||
self.ThemeButtonBox.setObjectName("ThemeButtonBox")
|
self.AmendThemeLayout.setMargin(8)
|
||||||
self.layoutWidget = QtGui.QWidget(AmendThemeDialog)
|
self.AmendThemeLayout.setObjectName("AmendThemeLayout")
|
||||||
self.layoutWidget.setGeometry(QtCore.QRect(50, 20, 441, 41))
|
self.ThemeNameWidget = QtGui.QWidget(AmendThemeDialog)
|
||||||
self.layoutWidget.setObjectName("layoutWidget")
|
self.ThemeNameWidget.setObjectName("ThemeNameWidget")
|
||||||
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
|
self.ThemeNameLayout = QtGui.QHBoxLayout(self.ThemeNameWidget)
|
||||||
self.horizontalLayout.setObjectName("horizontalLayout")
|
self.ThemeNameLayout.setSpacing(8)
|
||||||
self.ThemeNameLabel = QtGui.QLabel(self.layoutWidget)
|
self.ThemeNameLayout.setMargin(0)
|
||||||
|
self.ThemeNameLayout.setObjectName("ThemeNameLayout")
|
||||||
|
self.ThemeNameLabel = QtGui.QLabel(self.ThemeNameWidget)
|
||||||
self.ThemeNameLabel.setObjectName("ThemeNameLabel")
|
self.ThemeNameLabel.setObjectName("ThemeNameLabel")
|
||||||
self.horizontalLayout.addWidget(self.ThemeNameLabel)
|
self.ThemeNameLayout.addWidget(self.ThemeNameLabel)
|
||||||
self.ThemeNameEdit = QtGui.QLineEdit(self.layoutWidget)
|
self.ThemeNameEdit = QtGui.QLineEdit(self.ThemeNameWidget)
|
||||||
self.ThemeNameEdit.setObjectName("ThemeNameEdit")
|
self.ThemeNameEdit.setObjectName("ThemeNameEdit")
|
||||||
self.horizontalLayout.addWidget(self.ThemeNameEdit)
|
self.ThemeNameLayout.addWidget(self.ThemeNameEdit)
|
||||||
self.widget = QtGui.QWidget(AmendThemeDialog)
|
self.AmendThemeLayout.addWidget(self.ThemeNameWidget)
|
||||||
self.widget.setGeometry(QtCore.QRect(31, 71, 721, 411))
|
self.ContentWidget = QtGui.QWidget(AmendThemeDialog)
|
||||||
self.widget.setObjectName("widget")
|
self.ContentWidget.setObjectName("ContentWidget")
|
||||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.widget)
|
self.ContentLayout = QtGui.QHBoxLayout(self.ContentWidget)
|
||||||
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
self.ContentLayout.setSpacing(8)
|
||||||
self.LeftSide = QtGui.QWidget(self.widget)
|
self.ContentLayout.setMargin(0)
|
||||||
self.LeftSide.setObjectName("LeftSide")
|
self.ContentLayout.setObjectName("ContentLayout")
|
||||||
self.tabWidget = QtGui.QTabWidget(self.LeftSide)
|
self.ThemeTabWidget = QtGui.QTabWidget(self.ContentWidget)
|
||||||
self.tabWidget.setGeometry(QtCore.QRect(0, 0, 341, 401))
|
self.ThemeTabWidget.setObjectName("ThemeTabWidget")
|
||||||
self.tabWidget.setObjectName("tabWidget")
|
|
||||||
self.BackgroundTab = QtGui.QWidget()
|
self.BackgroundTab = QtGui.QWidget()
|
||||||
self.BackgroundTab.setObjectName("BackgroundTab")
|
self.BackgroundTab.setObjectName("BackgroundTab")
|
||||||
self.layoutWidget1 = QtGui.QWidget(self.BackgroundTab)
|
self.BackgroundLayout = QtGui.QFormLayout(self.BackgroundTab)
|
||||||
self.layoutWidget1.setGeometry(QtCore.QRect(10, 10, 321, 351))
|
self.BackgroundLayout.setMargin(8)
|
||||||
self.layoutWidget1.setObjectName("layoutWidget1")
|
self.BackgroundLayout.setSpacing(8)
|
||||||
self.gridLayout = QtGui.QGridLayout(self.layoutWidget1)
|
self.BackgroundLayout.setObjectName("BackgroundLayout")
|
||||||
self.gridLayout.setObjectName("gridLayout")
|
self.BackgroundLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.BackgroundLabel = QtGui.QLabel(self.layoutWidget1)
|
|
||||||
self.BackgroundLabel.setObjectName("BackgroundLabel")
|
self.BackgroundLabel.setObjectName("BackgroundLabel")
|
||||||
self.gridLayout.addWidget(self.BackgroundLabel, 0, 0, 1, 2)
|
self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.BackgroundLabel)
|
||||||
self.BackgroundComboBox = QtGui.QComboBox(self.layoutWidget1)
|
self.BackgroundComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.BackgroundComboBox.setObjectName("BackgroundComboBox")
|
self.BackgroundComboBox.setObjectName("BackgroundComboBox")
|
||||||
self.BackgroundComboBox.addItem(QtCore.QString())
|
self.BackgroundComboBox.addItem(QtCore.QString())
|
||||||
self.BackgroundComboBox.addItem(QtCore.QString())
|
self.BackgroundComboBox.addItem(QtCore.QString())
|
||||||
self.gridLayout.addWidget(self.BackgroundComboBox, 0, 2, 1, 2)
|
self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.BackgroundComboBox)
|
||||||
self.BackgroundTypeLabel = QtGui.QLabel(self.layoutWidget1)
|
self.BackgroundTypeLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.BackgroundTypeLabel.setObjectName("BackgroundTypeLabel")
|
self.BackgroundTypeLabel.setObjectName("BackgroundTypeLabel")
|
||||||
self.gridLayout.addWidget(self.BackgroundTypeLabel, 1, 0, 1, 2)
|
self.BackgroundLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.BackgroundTypeLabel)
|
||||||
self.BackgroundTypeComboBox = QtGui.QComboBox(self.layoutWidget1)
|
self.BackgroundTypeComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.BackgroundTypeComboBox.setObjectName("BackgroundTypeComboBox")
|
self.BackgroundTypeComboBox.setObjectName("BackgroundTypeComboBox")
|
||||||
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
||||||
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
||||||
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
self.BackgroundTypeComboBox.addItem(QtCore.QString())
|
||||||
self.gridLayout.addWidget(self.BackgroundTypeComboBox, 1, 2, 1, 2)
|
self.BackgroundLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.BackgroundTypeComboBox)
|
||||||
self.Color1Label = QtGui.QLabel(self.layoutWidget1)
|
self.Color1Label = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.Color1Label.setObjectName("Color1Label")
|
self.Color1Label.setObjectName("Color1Label")
|
||||||
self.gridLayout.addWidget(self.Color1Label, 2, 0, 1, 1)
|
self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.Color1Label)
|
||||||
self.Color1PushButton = QtGui.QPushButton(self.layoutWidget1)
|
self.Color1PushButton = QtGui.QPushButton(self.BackgroundTab)
|
||||||
self.Color1PushButton.setObjectName("Color1PushButton")
|
self.Color1PushButton.setObjectName("Color1PushButton")
|
||||||
self.gridLayout.addWidget(self.Color1PushButton, 2, 2, 1, 2)
|
self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.Color1PushButton)
|
||||||
self.Color2Label = QtGui.QLabel(self.layoutWidget1)
|
self.Color2Label = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.Color2Label.setObjectName("Color2Label")
|
self.Color2Label.setObjectName("Color2Label")
|
||||||
self.gridLayout.addWidget(self.Color2Label, 3, 0, 1, 1)
|
self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.Color2Label)
|
||||||
self.Color2PushButton = QtGui.QPushButton(self.layoutWidget1)
|
self.Color2PushButton = QtGui.QPushButton(self.BackgroundTab)
|
||||||
self.Color2PushButton.setObjectName("Color2PushButton")
|
self.Color2PushButton.setObjectName("Color2PushButton")
|
||||||
self.gridLayout.addWidget(self.Color2PushButton, 3, 2, 1, 2)
|
self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.Color2PushButton)
|
||||||
self.ImageLabel = QtGui.QLabel(self.layoutWidget1)
|
self.ImageLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.ImageLabel.setObjectName("ImageLabel")
|
self.ImageLabel.setObjectName("ImageLabel")
|
||||||
self.gridLayout.addWidget(self.ImageLabel, 4, 0, 1, 1)
|
self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.ImageLabel)
|
||||||
self.ImageLineEdit = QtGui.QLineEdit(self.layoutWidget1)
|
self.GradientLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.ImageLineEdit.setObjectName("ImageLineEdit")
|
|
||||||
self.gridLayout.addWidget(self.ImageLineEdit, 4, 1, 1, 2)
|
|
||||||
self.ImagePushButton = QtGui.QPushButton(self.layoutWidget1)
|
|
||||||
icon1 = QtGui.QIcon()
|
|
||||||
icon1.addPixmap(QtGui.QPixmap(":/services/service_open.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
|
||||||
self.ImagePushButton.setIcon(icon1)
|
|
||||||
self.ImagePushButton.setObjectName("ImagePushButton")
|
|
||||||
self.gridLayout.addWidget(self.ImagePushButton, 4, 3, 1, 1)
|
|
||||||
self.GradientLabel = QtGui.QLabel(self.layoutWidget1)
|
|
||||||
self.GradientLabel.setObjectName("GradientLabel")
|
self.GradientLabel.setObjectName("GradientLabel")
|
||||||
self.gridLayout.addWidget(self.GradientLabel, 5, 0, 1, 1)
|
self.BackgroundLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.GradientLabel)
|
||||||
self.GradientComboBox = QtGui.QComboBox(self.layoutWidget1)
|
self.GradientComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.GradientComboBox.setObjectName("GradientComboBox")
|
self.GradientComboBox.setObjectName("GradientComboBox")
|
||||||
self.GradientComboBox.addItem(QtCore.QString())
|
self.GradientComboBox.addItem(QtCore.QString())
|
||||||
self.GradientComboBox.addItem(QtCore.QString())
|
self.GradientComboBox.addItem(QtCore.QString())
|
||||||
self.GradientComboBox.addItem(QtCore.QString())
|
self.GradientComboBox.addItem(QtCore.QString())
|
||||||
self.gridLayout.addWidget(self.GradientComboBox, 5, 2, 1, 2)
|
self.BackgroundLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.GradientComboBox)
|
||||||
self.tabWidget.addTab(self.BackgroundTab, "")
|
self.ImageFilenameWidget = QtGui.QWidget(self.BackgroundTab)
|
||||||
|
self.ImageFilenameWidget.setObjectName("ImageFilenameWidget")
|
||||||
|
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.ImageFilenameWidget)
|
||||||
|
self.horizontalLayout_2.setSpacing(0)
|
||||||
|
self.horizontalLayout_2.setMargin(0)
|
||||||
|
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
|
||||||
|
self.ImageLineEdit = QtGui.QLineEdit(self.ImageFilenameWidget)
|
||||||
|
self.ImageLineEdit.setObjectName("ImageLineEdit")
|
||||||
|
self.horizontalLayout_2.addWidget(self.ImageLineEdit)
|
||||||
|
self.ImageToolButton = QtGui.QToolButton(self.ImageFilenameWidget)
|
||||||
|
icon1 = QtGui.QIcon()
|
||||||
|
icon1.addPixmap(QtGui.QPixmap(":/images/image_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
|
self.ImageToolButton.setIcon(icon1)
|
||||||
|
self.ImageToolButton.setObjectName("ImageToolButton")
|
||||||
|
self.horizontalLayout_2.addWidget(self.ImageToolButton)
|
||||||
|
self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.ImageFilenameWidget)
|
||||||
|
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
|
#self.BackgroundLayout.addItem(spacerItem, 7, 1, 1, 1)
|
||||||
|
self.ThemeTabWidget.addTab(self.BackgroundTab, "")
|
||||||
self.FontMainTab = QtGui.QWidget()
|
self.FontMainTab = QtGui.QWidget()
|
||||||
self.FontMainTab.setObjectName("FontMainTab")
|
self.FontMainTab.setObjectName("FontMainTab")
|
||||||
self.MainFontGroupBox = QtGui.QGroupBox(self.FontMainTab)
|
self.FontMainLayout = QtGui.QHBoxLayout(self.FontMainTab)
|
||||||
self.MainFontGroupBox.setGeometry(QtCore.QRect(20, 10, 307, 119))
|
self.FontMainLayout.setSpacing(8)
|
||||||
|
self.FontMainLayout.setMargin(8)
|
||||||
|
self.FontMainLayout.setObjectName("FontMainLayout")
|
||||||
|
self.MainLeftWidget = QtGui.QWidget(self.FontMainTab)
|
||||||
|
self.MainLeftWidget.setObjectName("MainLeftWidget")
|
||||||
|
self.MainLeftLayout = QtGui.QVBoxLayout(self.MainLeftWidget)
|
||||||
|
self.MainLeftLayout.setSpacing(8)
|
||||||
|
self.MainLeftLayout.setMargin(0)
|
||||||
|
self.MainLeftLayout.setObjectName("MainLeftLayout")
|
||||||
|
self.MainFontGroupBox = QtGui.QGroupBox(self.MainLeftWidget)
|
||||||
self.MainFontGroupBox.setObjectName("MainFontGroupBox")
|
self.MainFontGroupBox.setObjectName("MainFontGroupBox")
|
||||||
self.gridLayout_2 = QtGui.QGridLayout(self.MainFontGroupBox)
|
self.MainFontLayout = QtGui.QFormLayout(self.MainFontGroupBox)
|
||||||
self.gridLayout_2.setObjectName("gridLayout_2")
|
self.MainFontLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
|
self.MainFontLayout.setMargin(8)
|
||||||
|
self.MainFontLayout.setSpacing(8)
|
||||||
|
self.MainFontLayout.setObjectName("MainFontLayout")
|
||||||
self.MainFontlabel = QtGui.QLabel(self.MainFontGroupBox)
|
self.MainFontlabel = QtGui.QLabel(self.MainFontGroupBox)
|
||||||
self.MainFontlabel.setObjectName("MainFontlabel")
|
self.MainFontlabel.setObjectName("MainFontlabel")
|
||||||
self.gridLayout_2.addWidget(self.MainFontlabel, 0, 0, 1, 1)
|
self.MainFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.MainFontlabel)
|
||||||
self.MainFontComboBox = QtGui.QFontComboBox(self.MainFontGroupBox)
|
self.MainFontComboBox = QtGui.QFontComboBox(self.MainFontGroupBox)
|
||||||
self.MainFontComboBox.setObjectName("MainFontComboBox")
|
self.MainFontComboBox.setObjectName("MainFontComboBox")
|
||||||
self.gridLayout_2.addWidget(self.MainFontComboBox, 0, 1, 1, 2)
|
self.MainFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.MainFontComboBox)
|
||||||
self.MainFontColorLabel = QtGui.QLabel(self.MainFontGroupBox)
|
self.MainFontColorLabel = QtGui.QLabel(self.MainFontGroupBox)
|
||||||
self.MainFontColorLabel.setObjectName("MainFontColorLabel")
|
self.MainFontColorLabel.setObjectName("MainFontColorLabel")
|
||||||
self.gridLayout_2.addWidget(self.MainFontColorLabel, 1, 0, 1, 1)
|
self.MainFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.MainFontColorLabel)
|
||||||
self.MainFontColorPushButton = QtGui.QPushButton(self.MainFontGroupBox)
|
self.MainFontColorPushButton = QtGui.QPushButton(self.MainFontGroupBox)
|
||||||
self.MainFontColorPushButton.setObjectName("MainFontColorPushButton")
|
self.MainFontColorPushButton.setObjectName("MainFontColorPushButton")
|
||||||
self.gridLayout_2.addWidget(self.MainFontColorPushButton, 1, 2, 1, 1)
|
self.MainFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.MainFontColorPushButton)
|
||||||
self.MainFontSize = QtGui.QLabel(self.MainFontGroupBox)
|
self.MainFontSize = QtGui.QLabel(self.MainFontGroupBox)
|
||||||
self.MainFontSize.setObjectName("MainFontSize")
|
self.MainFontSize.setObjectName("MainFontSize")
|
||||||
self.gridLayout_2.addWidget(self.MainFontSize, 2, 0, 1, 1)
|
self.MainFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.MainFontSize)
|
||||||
self.MainFontSizeLineEdit = QtGui.QLineEdit(self.MainFontGroupBox)
|
self.MainFontSizeSpinBox = QtGui.QSpinBox(self.MainFontGroupBox)
|
||||||
self.MainFontSizeLineEdit.setObjectName("MainFontSizeLineEdit")
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
self.gridLayout_2.addWidget(self.MainFontSizeLineEdit, 2, 1, 1, 1)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
self.MainFontlSlider = QtGui.QSlider(self.MainFontGroupBox)
|
sizePolicy.setVerticalStretch(0)
|
||||||
self.MainFontlSlider.setProperty("value", QtCore.QVariant(15))
|
sizePolicy.setHeightForWidth(self.MainFontSizeSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.MainFontlSlider.setMaximum(40)
|
self.MainFontSizeSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.MainFontlSlider.setOrientation(QtCore.Qt.Horizontal)
|
self.MainFontSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
||||||
self.MainFontlSlider.setTickPosition(QtGui.QSlider.TicksBelow)
|
self.MainFontSizeSpinBox.setMaximum(999)
|
||||||
self.MainFontlSlider.setTickInterval(5)
|
self.MainFontSizeSpinBox.setProperty("value", QtCore.QVariant(16))
|
||||||
self.MainFontlSlider.setObjectName("MainFontlSlider")
|
self.MainFontSizeSpinBox.setObjectName("MainFontSizeSpinBox")
|
||||||
self.gridLayout_2.addWidget(self.MainFontlSlider, 2, 2, 1, 1)
|
self.MainFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.MainFontSizeSpinBox)
|
||||||
self.FooterFontGroupBox = QtGui.QGroupBox(self.FontMainTab)
|
self.MainLeftLayout.addWidget(self.MainFontGroupBox)
|
||||||
self.FooterFontGroupBox.setGeometry(QtCore.QRect(20, 160, 301, 190))
|
spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.FooterFontGroupBox.setObjectName("FooterFontGroupBox")
|
self.MainLeftLayout.addItem(spacerItem1)
|
||||||
self.verticalLayout = QtGui.QVBoxLayout(self.FooterFontGroupBox)
|
self.FontMainLayout.addWidget(self.MainLeftWidget)
|
||||||
self.verticalLayout.setObjectName("verticalLayout")
|
self.MainRightWidget = QtGui.QWidget(self.FontMainTab)
|
||||||
self.FontMainUseDefault = QtGui.QCheckBox(self.FooterFontGroupBox)
|
self.MainRightWidget.setObjectName("MainRightWidget")
|
||||||
|
self.MainRightLayout = QtGui.QVBoxLayout(self.MainRightWidget)
|
||||||
|
self.MainRightLayout.setSpacing(8)
|
||||||
|
self.MainRightLayout.setMargin(0)
|
||||||
|
self.MainRightLayout.setObjectName("MainRightLayout")
|
||||||
|
self.MainLocationGroupBox = QtGui.QGroupBox(self.MainRightWidget)
|
||||||
|
self.MainLocationGroupBox.setObjectName("MainLocationGroupBox")
|
||||||
|
self.MainLocationLayout = QtGui.QFormLayout(self.MainLocationGroupBox)
|
||||||
|
self.MainLocationLayout.setMargin(8)
|
||||||
|
self.MainLocationLayout.setSpacing(8)
|
||||||
|
self.MainLocationLayout.setObjectName("MainLocationLayout")
|
||||||
|
self.DefaultLocationLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
|
self.DefaultLocationLabel.setObjectName("DefaultLocationLabel")
|
||||||
|
self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.DefaultLocationLabel)
|
||||||
|
self.FontMainUseDefault = QtGui.QCheckBox(self.MainLocationGroupBox)
|
||||||
self.FontMainUseDefault.setTristate(False)
|
self.FontMainUseDefault.setTristate(False)
|
||||||
self.FontMainUseDefault.setObjectName("FontMainUseDefault")
|
self.FontMainUseDefault.setObjectName("FontMainUseDefault")
|
||||||
self.verticalLayout.addWidget(self.FontMainUseDefault)
|
self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontMainUseDefault)
|
||||||
self.horizontalLayout_3 = QtGui.QHBoxLayout()
|
self.FontMainXLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
|
|
||||||
self.FontMainXLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
|
||||||
self.FontMainXLabel.setObjectName("FontMainXLabel")
|
self.FontMainXLabel.setObjectName("FontMainXLabel")
|
||||||
self.horizontalLayout_3.addWidget(self.FontMainXLabel)
|
self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontMainXLabel)
|
||||||
self.FontMainXEdit = QtGui.QLineEdit(self.FooterFontGroupBox)
|
self.FontMainYLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainXEdit.setObjectName("FontMainXEdit")
|
|
||||||
self.horizontalLayout_3.addWidget(self.FontMainXEdit)
|
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout_3)
|
|
||||||
self.horizontalLayout_4 = QtGui.QHBoxLayout()
|
|
||||||
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
|
|
||||||
self.FontMainYLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
|
||||||
self.FontMainYLabel.setObjectName("FontMainYLabel")
|
self.FontMainYLabel.setObjectName("FontMainYLabel")
|
||||||
self.horizontalLayout_4.addWidget(self.FontMainYLabel)
|
self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontMainYLabel)
|
||||||
self.FontMainYEdit = QtGui.QLineEdit(self.FooterFontGroupBox)
|
self.FontMainWidthLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainYEdit.setObjectName("FontMainYEdit")
|
|
||||||
self.horizontalLayout_4.addWidget(self.FontMainYEdit)
|
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout_4)
|
|
||||||
self.horizontalLayout_5 = QtGui.QHBoxLayout()
|
|
||||||
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
|
|
||||||
self.FontMainWidthLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
|
||||||
self.FontMainWidthLabel.setObjectName("FontMainWidthLabel")
|
self.FontMainWidthLabel.setObjectName("FontMainWidthLabel")
|
||||||
self.horizontalLayout_5.addWidget(self.FontMainWidthLabel)
|
self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontMainWidthLabel)
|
||||||
self.FontMainWidthEdit = QtGui.QLineEdit(self.FooterFontGroupBox)
|
self.FontMainHeightLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainWidthEdit.setObjectName("FontMainWidthEdit")
|
|
||||||
self.horizontalLayout_5.addWidget(self.FontMainWidthEdit)
|
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout_5)
|
|
||||||
self.horizontalLayout_6 = QtGui.QHBoxLayout()
|
|
||||||
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
|
|
||||||
self.FontMainHeightLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
|
||||||
self.FontMainHeightLabel.setObjectName("FontMainHeightLabel")
|
self.FontMainHeightLabel.setObjectName("FontMainHeightLabel")
|
||||||
self.horizontalLayout_6.addWidget(self.FontMainHeightLabel)
|
self.MainLocationLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.FontMainHeightLabel)
|
||||||
self.FontMainHeightEdit = QtGui.QLineEdit(self.FooterFontGroupBox)
|
self.FontMainXSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
self.FontMainHeightEdit.setObjectName("FontMainHeightEdit")
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
self.horizontalLayout_6.addWidget(self.FontMainHeightEdit)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
self.verticalLayout.addLayout(self.horizontalLayout_6)
|
sizePolicy.setVerticalStretch(0)
|
||||||
self.tabWidget.addTab(self.FontMainTab, "")
|
sizePolicy.setHeightForWidth(self.FontMainXSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontMainXSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontMainXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontMainXSpinBox.setMaximum(9999)
|
||||||
|
self.FontMainXSpinBox.setProperty("value", QtCore.QVariant(0))
|
||||||
|
self.FontMainXSpinBox.setObjectName("FontMainXSpinBox")
|
||||||
|
self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontMainXSpinBox)
|
||||||
|
self.FontMainYSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.FontMainYSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontMainYSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontMainYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontMainYSpinBox.setMaximum(9999)
|
||||||
|
self.FontMainYSpinBox.setObjectName("FontMainYSpinBox")
|
||||||
|
self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontMainYSpinBox)
|
||||||
|
self.FontMainWidthSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.FontMainWidthSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontMainWidthSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontMainWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontMainWidthSpinBox.setMaximum(9999)
|
||||||
|
self.FontMainWidthSpinBox.setObjectName("FontMainWidthSpinBox")
|
||||||
|
self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.FontMainWidthSpinBox)
|
||||||
|
self.FontMainHeightSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.FontMainHeightSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontMainHeightSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontMainHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontMainHeightSpinBox.setMaximum(9999)
|
||||||
|
self.FontMainHeightSpinBox.setObjectName("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, "")
|
||||||
self.FontFooterTab = QtGui.QWidget()
|
self.FontFooterTab = QtGui.QWidget()
|
||||||
self.FontFooterTab.setObjectName("FontFooterTab")
|
self.FontFooterTab.setObjectName("FontFooterTab")
|
||||||
self.FooterFontGroupBox_2 = QtGui.QGroupBox(self.FontFooterTab)
|
self.FontFooterLayout = QtGui.QHBoxLayout(self.FontFooterTab)
|
||||||
self.FooterFontGroupBox_2.setGeometry(QtCore.QRect(20, 160, 301, 190))
|
self.FontFooterLayout.setSpacing(8)
|
||||||
self.FooterFontGroupBox_2.setObjectName("FooterFontGroupBox_2")
|
self.FontFooterLayout.setMargin(8)
|
||||||
self.verticalLayout_2 = QtGui.QVBoxLayout(self.FooterFontGroupBox_2)
|
self.FontFooterLayout.setObjectName("FontFooterLayout")
|
||||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
self.FooterLeftWidget = QtGui.QWidget(self.FontFooterTab)
|
||||||
self.FontMainUseDefault_2 = QtGui.QCheckBox(self.FooterFontGroupBox_2)
|
self.FooterLeftWidget.setObjectName("FooterLeftWidget")
|
||||||
self.FontMainUseDefault_2.setTristate(False)
|
self.FooterLeftLayout = QtGui.QVBoxLayout(self.FooterLeftWidget)
|
||||||
self.FontMainUseDefault_2.setObjectName("FontMainUseDefault_2")
|
self.FooterLeftLayout.setSpacing(8)
|
||||||
self.verticalLayout_2.addWidget(self.FontMainUseDefault_2)
|
self.FooterLeftLayout.setMargin(0)
|
||||||
self.horizontalLayout_7 = QtGui.QHBoxLayout()
|
self.FooterLeftLayout.setObjectName("FooterLeftLayout")
|
||||||
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
|
self.FooterFontGroupBox = QtGui.QGroupBox(self.FooterLeftWidget)
|
||||||
self.FontFooterXLabel = QtGui.QLabel(self.FooterFontGroupBox_2)
|
self.FooterFontGroupBox.setObjectName("FooterFontGroupBox")
|
||||||
self.FontFooterXLabel.setObjectName("FontFooterXLabel")
|
self.FooterFontLayout = QtGui.QFormLayout(self.FooterFontGroupBox)
|
||||||
self.horizontalLayout_7.addWidget(self.FontFooterXLabel)
|
self.FooterFontLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
|
||||||
self.FontFooterXEdit = QtGui.QLineEdit(self.FooterFontGroupBox_2)
|
self.FooterFontLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
self.FontFooterXEdit.setObjectName("FontFooterXEdit")
|
self.FooterFontLayout.setMargin(8)
|
||||||
self.horizontalLayout_7.addWidget(self.FontFooterXEdit)
|
self.FooterFontLayout.setSpacing(8)
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayout_7)
|
self.FooterFontLayout.setObjectName("FooterFontLayout")
|
||||||
self.horizontalLayout_8 = QtGui.QHBoxLayout()
|
self.FontFooterLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
|
self.FontFooterLabel.setObjectName("FontFooterLabel")
|
||||||
self.FontFooterYLabel = QtGui.QLabel(self.FooterFontGroupBox_2)
|
self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.FontFooterLabel)
|
||||||
self.FontFooterYLabel.setObjectName("FontFooterYLabel")
|
self.FontFooterComboBox = QtGui.QFontComboBox(self.FooterFontGroupBox)
|
||||||
self.horizontalLayout_8.addWidget(self.FontFooterYLabel)
|
|
||||||
self.FontFooterYEdit = QtGui.QLineEdit(self.FooterFontGroupBox_2)
|
|
||||||
self.FontFooterYEdit.setObjectName("FontFooterYEdit")
|
|
||||||
self.horizontalLayout_8.addWidget(self.FontFooterYEdit)
|
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayout_8)
|
|
||||||
self.horizontalLayout_9 = QtGui.QHBoxLayout()
|
|
||||||
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
|
|
||||||
self.FontFooterWidthLabel = QtGui.QLabel(self.FooterFontGroupBox_2)
|
|
||||||
self.FontFooterWidthLabel.setObjectName("FontFooterWidthLabel")
|
|
||||||
self.horizontalLayout_9.addWidget(self.FontFooterWidthLabel)
|
|
||||||
self.FontFooterWidthEdit = QtGui.QLineEdit(self.FooterFontGroupBox_2)
|
|
||||||
self.FontFooterWidthEdit.setObjectName("FontFooterWidthEdit")
|
|
||||||
self.horizontalLayout_9.addWidget(self.FontFooterWidthEdit)
|
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayout_9)
|
|
||||||
self.horizontalLayout_10 = QtGui.QHBoxLayout()
|
|
||||||
self.horizontalLayout_10.setObjectName("horizontalLayout_10")
|
|
||||||
self.FontFooterHeightLabel = QtGui.QLabel(self.FooterFontGroupBox_2)
|
|
||||||
self.FontFooterHeightLabel.setObjectName("FontFooterHeightLabel")
|
|
||||||
self.horizontalLayout_10.addWidget(self.FontFooterHeightLabel)
|
|
||||||
self.FontFooterHeightEdit = QtGui.QLineEdit(self.FooterFontGroupBox_2)
|
|
||||||
self.FontFooterHeightEdit.setObjectName("FontFooterHeightEdit")
|
|
||||||
self.horizontalLayout_10.addWidget(self.FontFooterHeightEdit)
|
|
||||||
self.verticalLayout_2.addLayout(self.horizontalLayout_10)
|
|
||||||
self.FooterFontGroupBox_3 = QtGui.QGroupBox(self.FontFooterTab)
|
|
||||||
self.FooterFontGroupBox_3.setGeometry(QtCore.QRect(20, 10, 307, 119))
|
|
||||||
self.FooterFontGroupBox_3.setObjectName("FooterFontGroupBox_3")
|
|
||||||
self.gridLayout_3 = QtGui.QGridLayout(self.FooterFontGroupBox_3)
|
|
||||||
self.gridLayout_3.setObjectName("gridLayout_3")
|
|
||||||
self.FontFooterlabel = QtGui.QLabel(self.FooterFontGroupBox_3)
|
|
||||||
self.FontFooterlabel.setObjectName("FontFooterlabel")
|
|
||||||
self.gridLayout_3.addWidget(self.FontFooterlabel, 0, 0, 1, 1)
|
|
||||||
self.FontFooterComboBox = QtGui.QFontComboBox(self.FooterFontGroupBox_3)
|
|
||||||
self.FontFooterComboBox.setObjectName("FontFooterComboBox")
|
self.FontFooterComboBox.setObjectName("FontFooterComboBox")
|
||||||
self.gridLayout_3.addWidget(self.FontFooterComboBox, 0, 1, 1, 2)
|
self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontFooterComboBox)
|
||||||
self.FontFooterColorLabel = QtGui.QLabel(self.FooterFontGroupBox_3)
|
self.FontFooterColorLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterColorLabel.setObjectName("FontFooterColorLabel")
|
self.FontFooterColorLabel.setObjectName("FontFooterColorLabel")
|
||||||
self.gridLayout_3.addWidget(self.FontFooterColorLabel, 1, 0, 1, 1)
|
self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontFooterColorLabel)
|
||||||
self.FontFooterColorPushButton = QtGui.QPushButton(self.FooterFontGroupBox_3)
|
self.FontFooterColorPushButton = QtGui.QPushButton(self.FooterFontGroupBox)
|
||||||
self.FontFooterColorPushButton.setObjectName("FontFooterColorPushButton")
|
self.FontFooterColorPushButton.setObjectName("FontFooterColorPushButton")
|
||||||
self.gridLayout_3.addWidget(self.FontFooterColorPushButton, 1, 2, 1, 1)
|
self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontFooterColorPushButton)
|
||||||
self.FontFooterSizeLabel = QtGui.QLabel(self.FooterFontGroupBox_3)
|
self.FontFooterSizeLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterSizeLabel.setObjectName("FontFooterSizeLabel")
|
self.FontFooterSizeLabel.setObjectName("FontFooterSizeLabel")
|
||||||
self.gridLayout_3.addWidget(self.FontFooterSizeLabel, 2, 0, 1, 1)
|
self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontFooterSizeLabel)
|
||||||
self.FontFooterSizeLineEdit = QtGui.QLineEdit(self.FooterFontGroupBox_3)
|
self.FontFooterSizeSpinBox = QtGui.QSpinBox(self.FooterFontGroupBox)
|
||||||
self.FontFooterSizeLineEdit.setObjectName("FontFooterSizeLineEdit")
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
self.gridLayout_3.addWidget(self.FontFooterSizeLineEdit, 2, 1, 1, 1)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
self.FontFooterSlider = QtGui.QSlider(self.FooterFontGroupBox_3)
|
sizePolicy.setVerticalStretch(0)
|
||||||
self.FontFooterSlider.setProperty("value", QtCore.QVariant(15))
|
sizePolicy.setHeightForWidth(self.FontFooterSizeSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontFooterSlider.setMaximum(40)
|
self.FontFooterSizeSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontFooterSlider.setOrientation(QtCore.Qt.Horizontal)
|
self.FontFooterSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
||||||
self.FontFooterSlider.setTickPosition(QtGui.QSlider.TicksBelow)
|
self.FontFooterSizeSpinBox.setMaximum(999)
|
||||||
self.FontFooterSlider.setTickInterval(5)
|
self.FontFooterSizeSpinBox.setProperty("value", QtCore.QVariant(10))
|
||||||
self.FontFooterSlider.setObjectName("FontFooterSlider")
|
self.FontFooterSizeSpinBox.setObjectName("FontFooterSizeSpinBox")
|
||||||
self.gridLayout_3.addWidget(self.FontFooterSlider, 2, 2, 1, 1)
|
self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontFooterSizeSpinBox)
|
||||||
self.tabWidget.addTab(self.FontFooterTab, "")
|
self.FooterLeftLayout.addWidget(self.FooterFontGroupBox)
|
||||||
self.OptionsTab = QtGui.QWidget()
|
spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.OptionsTab.setObjectName("OptionsTab")
|
self.FooterLeftLayout.addItem(spacerItem3)
|
||||||
self.ShadowGroupBox = QtGui.QGroupBox(self.OptionsTab)
|
self.FontFooterLayout.addWidget(self.FooterLeftWidget)
|
||||||
self.ShadowGroupBox.setGeometry(QtCore.QRect(20, 10, 301, 80))
|
self.FooterRightWidget = QtGui.QWidget(self.FontFooterTab)
|
||||||
|
self.FooterRightWidget.setObjectName("FooterRightWidget")
|
||||||
|
self.FooterRightLayout = QtGui.QVBoxLayout(self.FooterRightWidget)
|
||||||
|
self.FooterRightLayout.setSpacing(8)
|
||||||
|
self.FooterRightLayout.setMargin(0)
|
||||||
|
self.FooterRightLayout.setObjectName("FooterRightLayout")
|
||||||
|
self.LocationFooterGroupBox = QtGui.QGroupBox(self.FooterRightWidget)
|
||||||
|
self.LocationFooterGroupBox.setObjectName("LocationFooterGroupBox")
|
||||||
|
self.LocationFooterLayout = QtGui.QFormLayout(self.LocationFooterGroupBox)
|
||||||
|
self.LocationFooterLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
|
||||||
|
self.LocationFooterLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
|
self.LocationFooterLayout.setMargin(8)
|
||||||
|
self.LocationFooterLayout.setSpacing(8)
|
||||||
|
self.LocationFooterLayout.setObjectName("LocationFooterLayout")
|
||||||
|
self.FontFooterDefaultLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterDefaultLabel.setObjectName("FontFooterDefaultLabel")
|
||||||
|
self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.FontFooterDefaultLabel)
|
||||||
|
self.FontFooterDefaultCheckBox = QtGui.QCheckBox(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterDefaultCheckBox.setTristate(False)
|
||||||
|
self.FontFooterDefaultCheckBox.setObjectName("FontFooterDefaultCheckBox")
|
||||||
|
self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontFooterDefaultCheckBox)
|
||||||
|
self.FontFooterXLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterXLabel.setObjectName("FontFooterXLabel")
|
||||||
|
self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontFooterXLabel)
|
||||||
|
self.FontFooterYLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterYLabel.setObjectName("FontFooterYLabel")
|
||||||
|
self.LocationFooterLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontFooterYLabel)
|
||||||
|
self.FontFooterWidthLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterWidthLabel.setObjectName("FontFooterWidthLabel")
|
||||||
|
self.LocationFooterLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontFooterWidthLabel)
|
||||||
|
self.FontFooterHeightLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
|
self.FontFooterHeightLabel.setObjectName("FontFooterHeightLabel")
|
||||||
|
self.LocationFooterLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.FontFooterHeightLabel)
|
||||||
|
self.FontFooterXSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
||||||
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.FontFooterXSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontFooterXSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontFooterXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontFooterXSpinBox.setMaximum(9999)
|
||||||
|
self.FontFooterXSpinBox.setProperty("value", QtCore.QVariant(0))
|
||||||
|
self.FontFooterXSpinBox.setObjectName("FontFooterXSpinBox")
|
||||||
|
self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontFooterXSpinBox)
|
||||||
|
self.FontFooterYSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
||||||
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.FontFooterYSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
|
self.FontFooterYSpinBox.setSizePolicy(sizePolicy)
|
||||||
|
self.FontFooterYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
|
self.FontFooterYSpinBox.setMaximum(9999)
|
||||||
|
self.FontFooterYSpinBox.setProperty("value", QtCore.QVariant(0))
|
||||||
|
self.FontFooterYSpinBox.setObjectName("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("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("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, "")
|
||||||
|
self.OtherOptionsTab = QtGui.QWidget()
|
||||||
|
self.OtherOptionsTab.setObjectName("OtherOptionsTab")
|
||||||
|
self.OtherOptionsLayout = QtGui.QHBoxLayout(self.OtherOptionsTab)
|
||||||
|
self.OtherOptionsLayout.setSpacing(8)
|
||||||
|
self.OtherOptionsLayout.setMargin(8)
|
||||||
|
self.OtherOptionsLayout.setObjectName("OtherOptionsLayout")
|
||||||
|
self.OptionsLeftWidget = QtGui.QWidget(self.OtherOptionsTab)
|
||||||
|
self.OptionsLeftWidget.setObjectName("OptionsLeftWidget")
|
||||||
|
self.OptionsLeftLayout = QtGui.QVBoxLayout(self.OptionsLeftWidget)
|
||||||
|
self.OptionsLeftLayout.setSpacing(8)
|
||||||
|
self.OptionsLeftLayout.setMargin(0)
|
||||||
|
self.OptionsLeftLayout.setObjectName("OptionsLeftLayout")
|
||||||
|
self.ShadowGroupBox = QtGui.QGroupBox(self.OptionsLeftWidget)
|
||||||
self.ShadowGroupBox.setObjectName("ShadowGroupBox")
|
self.ShadowGroupBox.setObjectName("ShadowGroupBox")
|
||||||
self.layoutWidget2 = QtGui.QWidget(self.ShadowGroupBox)
|
self.verticalLayout = QtGui.QVBoxLayout(self.ShadowGroupBox)
|
||||||
self.layoutWidget2.setGeometry(QtCore.QRect(10, 20, 281, 58))
|
self.verticalLayout.setSpacing(8)
|
||||||
self.layoutWidget2.setObjectName("layoutWidget2")
|
self.verticalLayout.setMargin(8)
|
||||||
self.formLayout = QtGui.QFormLayout(self.layoutWidget2)
|
self.verticalLayout.setObjectName("verticalLayout")
|
||||||
self.formLayout.setObjectName("formLayout")
|
self.OutlineWidget = QtGui.QWidget(self.ShadowGroupBox)
|
||||||
self.ShadowCheckBox = QtGui.QCheckBox(self.layoutWidget2)
|
self.OutlineWidget.setObjectName("OutlineWidget")
|
||||||
|
self.OutlineLayout = QtGui.QFormLayout(self.OutlineWidget)
|
||||||
|
self.OutlineLayout.setMargin(0)
|
||||||
|
self.OutlineLayout.setSpacing(8)
|
||||||
|
self.OutlineLayout.setObjectName("OutlineLayout")
|
||||||
|
self.OutlineCheckBox = QtGui.QCheckBox(self.OutlineWidget)
|
||||||
|
self.OutlineCheckBox.setObjectName("OutlineCheckBox")
|
||||||
|
self.OutlineLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.OutlineCheckBox)
|
||||||
|
self.OutlineColorLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
|
self.OutlineColorLabel.setObjectName("OutlineColorLabel")
|
||||||
|
self.OutlineLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.OutlineColorLabel)
|
||||||
|
self.OutlineColorPushButton = QtGui.QPushButton(self.OutlineWidget)
|
||||||
|
self.OutlineColorPushButton.setObjectName("OutlineColorPushButton")
|
||||||
|
self.OutlineLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.OutlineColorPushButton)
|
||||||
|
self.OutlineEnabledLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
|
self.OutlineEnabledLabel.setObjectName("OutlineEnabledLabel")
|
||||||
|
self.OutlineLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.OutlineEnabledLabel)
|
||||||
|
self.verticalLayout.addWidget(self.OutlineWidget)
|
||||||
|
self.ShadowWidget = QtGui.QWidget(self.ShadowGroupBox)
|
||||||
|
self.ShadowWidget.setObjectName("ShadowWidget")
|
||||||
|
self.ShadowLayout = QtGui.QFormLayout(self.ShadowWidget)
|
||||||
|
self.ShadowLayout.setMargin(0)
|
||||||
|
self.ShadowLayout.setSpacing(8)
|
||||||
|
self.ShadowLayout.setObjectName("ShadowLayout")
|
||||||
|
self.ShadowCheckBox = QtGui.QCheckBox(self.ShadowWidget)
|
||||||
self.ShadowCheckBox.setObjectName("ShadowCheckBox")
|
self.ShadowCheckBox.setObjectName("ShadowCheckBox")
|
||||||
self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.ShadowCheckBox)
|
self.ShadowLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.ShadowCheckBox)
|
||||||
self.ShadowColorLabel = QtGui.QLabel(self.layoutWidget2)
|
self.ShadowColorLabel = QtGui.QLabel(self.ShadowWidget)
|
||||||
self.ShadowColorLabel.setObjectName("ShadowColorLabel")
|
self.ShadowColorLabel.setObjectName("ShadowColorLabel")
|
||||||
self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.ShadowColorLabel)
|
self.ShadowLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.ShadowColorLabel)
|
||||||
self.ShadowColorPushButton = QtGui.QPushButton(self.layoutWidget2)
|
self.ShadowColorPushButton = QtGui.QPushButton(self.ShadowWidget)
|
||||||
self.ShadowColorPushButton.setObjectName("ShadowColorPushButton")
|
self.ShadowColorPushButton.setObjectName("ShadowColorPushButton")
|
||||||
self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.ShadowColorPushButton)
|
self.ShadowLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.ShadowColorPushButton)
|
||||||
self.AlignmentGroupBox = QtGui.QGroupBox(self.OptionsTab)
|
self.ShadowEnabledLabel = QtGui.QLabel(self.ShadowWidget)
|
||||||
self.AlignmentGroupBox.setGeometry(QtCore.QRect(10, 200, 321, 161))
|
self.ShadowEnabledLabel.setObjectName("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("OptionsRightWidget")
|
||||||
|
self.OptionsRightLayout = QtGui.QVBoxLayout(self.OptionsRightWidget)
|
||||||
|
self.OptionsRightLayout.setSpacing(8)
|
||||||
|
self.OptionsRightLayout.setMargin(0)
|
||||||
|
self.OptionsRightLayout.setObjectName("OptionsRightLayout")
|
||||||
|
self.AlignmentGroupBox = QtGui.QGroupBox(self.OptionsRightWidget)
|
||||||
self.AlignmentGroupBox.setObjectName("AlignmentGroupBox")
|
self.AlignmentGroupBox.setObjectName("AlignmentGroupBox")
|
||||||
self.gridLayout_4 = QtGui.QGridLayout(self.AlignmentGroupBox)
|
self.gridLayout_4 = QtGui.QGridLayout(self.AlignmentGroupBox)
|
||||||
self.gridLayout_4.setObjectName("gridLayout_4")
|
self.gridLayout_4.setObjectName("gridLayout_4")
|
||||||
@ -299,43 +443,82 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.VerticalComboBox.addItem(QtCore.QString())
|
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.gridLayout_4.addWidget(self.VerticalComboBox, 1, 1, 1, 1)
|
||||||
self.OutlineGroupBox = QtGui.QGroupBox(self.OptionsTab)
|
self.OptionsRightLayout.addWidget(self.AlignmentGroupBox)
|
||||||
self.OutlineGroupBox.setGeometry(QtCore.QRect(20, 110, 301, 80))
|
spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.OutlineGroupBox.setObjectName("OutlineGroupBox")
|
self.OptionsRightLayout.addItem(spacerItem6)
|
||||||
self.layoutWidget_3 = QtGui.QWidget(self.OutlineGroupBox)
|
self.OtherOptionsLayout.addWidget(self.OptionsRightWidget)
|
||||||
self.layoutWidget_3.setGeometry(QtCore.QRect(10, 20, 281, 58))
|
self.ThemeTabWidget.addTab(self.OtherOptionsTab, "")
|
||||||
self.layoutWidget_3.setObjectName("layoutWidget_3")
|
self.ContentLayout.addWidget(self.ThemeTabWidget)
|
||||||
self.OutlineformLayout = QtGui.QFormLayout(self.layoutWidget_3)
|
self.AmendThemeLayout.addWidget(self.ContentWidget)
|
||||||
self.OutlineformLayout.setObjectName("OutlineformLayout")
|
self.PreviewGroupBox = QtGui.QGroupBox(AmendThemeDialog)
|
||||||
self.OutlineCheckBox = QtGui.QCheckBox(self.layoutWidget_3)
|
self.PreviewGroupBox.setObjectName("PreviewGroupBox")
|
||||||
self.OutlineCheckBox.setObjectName("OutlineCheckBox")
|
self.ThemePreviewLayout = QtGui.QHBoxLayout(self.PreviewGroupBox)
|
||||||
self.OutlineformLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.OutlineCheckBox)
|
self.ThemePreviewLayout.setSpacing(8)
|
||||||
self.OutlineColorLabel = QtGui.QLabel(self.layoutWidget_3)
|
self.ThemePreviewLayout.setMargin(8)
|
||||||
self.OutlineColorLabel.setObjectName("OutlineColorLabel")
|
self.ThemePreviewLayout.setObjectName("ThemePreviewLayout")
|
||||||
self.OutlineformLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.OutlineColorLabel)
|
spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
self.OutlineColorPushButton = QtGui.QPushButton(self.layoutWidget_3)
|
self.ThemePreviewLayout.addItem(spacerItem7)
|
||||||
self.OutlineColorPushButton.setObjectName("OutlineColorPushButton")
|
self.ThemePreview = QtGui.QLabel(self.PreviewGroupBox)
|
||||||
self.OutlineformLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.OutlineColorPushButton)
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
|
||||||
self.tabWidget.addTab(self.OptionsTab, "")
|
sizePolicy.setHorizontalStretch(0)
|
||||||
self.horizontalLayout_2.addWidget(self.LeftSide)
|
sizePolicy.setVerticalStretch(0)
|
||||||
self.RightSide = QtGui.QWidget(self.widget)
|
sizePolicy.setHeightForWidth(self.ThemePreview.sizePolicy().hasHeightForWidth())
|
||||||
self.RightSide.setObjectName("RightSide")
|
self.ThemePreview.setSizePolicy(sizePolicy)
|
||||||
self.ThemePreview = QtGui.QLabel(self.RightSide)
|
self.ThemePreview.setMinimumSize(QtCore.QSize(300, 225))
|
||||||
self.ThemePreview.setGeometry(QtCore.QRect(20, 60, 311, 271))
|
self.ThemePreview.setFrameShape(QtGui.QFrame.WinPanel)
|
||||||
self.ThemePreview.setFrameShape(QtGui.QFrame.Box)
|
self.ThemePreview.setFrameShadow(QtGui.QFrame.Sunken)
|
||||||
self.ThemePreview.setFrameShadow(QtGui.QFrame.Raised)
|
self.ThemePreview.setLineWidth(1)
|
||||||
self.ThemePreview.setLineWidth(2)
|
|
||||||
self.ThemePreview.setScaledContents(True)
|
self.ThemePreview.setScaledContents(True)
|
||||||
self.ThemePreview.setObjectName("ThemePreview")
|
self.ThemePreview.setObjectName("ThemePreview")
|
||||||
self.horizontalLayout_2.addWidget(self.RightSide)
|
self.ThemePreviewLayout.addWidget(self.ThemePreview)
|
||||||
|
spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
|
||||||
|
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("ThemeButtonBox")
|
||||||
|
self.AmendThemeLayout.addWidget(self.ThemeButtonBox)
|
||||||
|
|
||||||
self.retranslateUi(AmendThemeDialog)
|
self.retranslateUi(AmendThemeDialog)
|
||||||
self.tabWidget.setCurrentIndex(0)
|
self.ThemeTabWidget.setCurrentIndex(0)
|
||||||
|
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL("accepted()"), AmendThemeDialog.accept)
|
||||||
|
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL("rejected()"), AmendThemeDialog.reject)
|
||||||
QtCore.QMetaObject.connectSlotsByName(AmendThemeDialog)
|
QtCore.QMetaObject.connectSlotsByName(AmendThemeDialog)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ThemeButtonBox, self.ThemeNameEdit)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ThemeNameEdit, self.ThemeTabWidget)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ThemeTabWidget, self.BackgroundComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.BackgroundComboBox, self.BackgroundTypeComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.BackgroundTypeComboBox, self.Color1PushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.Color1PushButton, self.Color2PushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.Color2PushButton, self.ImageLineEdit)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ImageLineEdit, self.ImageToolButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ImageToolButton, self.GradientComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.GradientComboBox, self.MainFontComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.MainFontComboBox, self.MainFontColorPushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.MainFontColorPushButton, self.MainFontSizeSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.MainFontSizeSpinBox, self.FontMainUseDefault)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontMainUseDefault, self.FontMainXSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontMainXSpinBox, self.FontMainYSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontMainYSpinBox, self.FontMainWidthSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontMainWidthSpinBox, self.FontMainHeightSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontMainHeightSpinBox, self.FontFooterComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterComboBox, self.FontFooterColorPushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterColorPushButton, self.FontFooterSizeSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterSizeSpinBox, self.FontFooterDefaultCheckBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterDefaultCheckBox, self.FontFooterXSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterXSpinBox, self.FontFooterYSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterYSpinBox, self.FontFooterWidthspinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterWidthspinBox, self.FontFooterHeightSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.FontFooterHeightSpinBox, self.OutlineCheckBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.OutlineCheckBox, self.OutlineColorPushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.OutlineColorPushButton, self.ShadowCheckBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ShadowCheckBox, self.ShadowColorPushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(self.ShadowColorPushButton, self.HorizontalComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(self.HorizontalComboBox, self.VerticalComboBox)
|
||||||
|
|
||||||
def retranslateUi(self, AmendThemeDialog):
|
def retranslateUi(self, AmendThemeDialog):
|
||||||
AmendThemeDialog.setWindowTitle(QtGui.QApplication.translate("AmendThemeDialog", "Theme Maintance", None, QtGui.QApplication.UnicodeUTF8))
|
AmendThemeDialog.setWindowTitle(QtGui.QApplication.translate("AmendThemeDialog", "Theme Maintance", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.ThemeNameLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Theme Name", None, QtGui.QApplication.UnicodeUTF8))
|
self.ThemeNameLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Theme Name:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.BackgroundLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Background:", None, QtGui.QApplication.UnicodeUTF8))
|
self.BackgroundLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Background:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.BackgroundComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Opaque", None, QtGui.QApplication.UnicodeUTF8))
|
self.BackgroundComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Opaque", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.BackgroundComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Transparent", None, QtGui.QApplication.UnicodeUTF8))
|
self.BackgroundComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Transparent", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
@ -350,32 +533,44 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.GradientComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Horizontal", None, QtGui.QApplication.UnicodeUTF8))
|
self.GradientComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Horizontal", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.GradientComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Vertical", None, QtGui.QApplication.UnicodeUTF8))
|
self.GradientComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Vertical", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.GradientComboBox.setItemText(2, QtGui.QApplication.translate("AmendThemeDialog", "Circular", None, QtGui.QApplication.UnicodeUTF8))
|
self.GradientComboBox.setItemText(2, QtGui.QApplication.translate("AmendThemeDialog", "Circular", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.BackgroundTab), QtGui.QApplication.translate("AmendThemeDialog", "Background", None, QtGui.QApplication.UnicodeUTF8))
|
self.ThemeTabWidget.setTabText(self.ThemeTabWidget.indexOf(self.BackgroundTab), QtGui.QApplication.translate("AmendThemeDialog", "Background", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.MainFontGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Main Font", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainFontGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Main Font", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.MainFontlabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font:", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainFontlabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.MainFontColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font Color", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainFontColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font Color:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.MainFontSize.setText(QtGui.QApplication.translate("AmendThemeDialog", "Size:", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainFontSize.setText(QtGui.QApplication.translate("AmendThemeDialog", "Size:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FooterFontGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Display Location", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainFontSizeSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "pt", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainUseDefault.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use default location", None, QtGui.QApplication.UnicodeUTF8))
|
self.MainLocationGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Display Location", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.DefaultLocationLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use Default Location:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainXLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "X Position:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainXLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "X Position:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainYLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Y Position:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainYLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Y Position:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainWidthLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Width", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainWidthLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Width:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainHeightLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Height", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainHeightLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Height:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.FontMainTab), QtGui.QApplication.translate("AmendThemeDialog", "Font Main", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainXSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FooterFontGroupBox_2.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Display Location", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainYSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontMainUseDefault_2.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use default location", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontMainWidthSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontMainHeightSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.ThemeTabWidget.setTabText(self.ThemeTabWidget.indexOf(self.FontMainTab), QtGui.QApplication.translate("AmendThemeDialog", "Font Main", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FooterFontGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Footer Font", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontFooterLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontFooterColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font Color:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontFooterSizeLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Size:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontFooterSizeSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "pt", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.LocationFooterGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Display Location", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.FontFooterDefaultLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use Default Location:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterXLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "X Position:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterXLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "X Position:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterYLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Y Position:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterYLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Y Position:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterWidthLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Width", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterWidthLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Width:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterHeightLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Height", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterHeightLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Height:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FooterFontGroupBox_3.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Footer Font", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterXSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterlabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterYSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Font Color", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterWidthspinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.FontFooterSizeLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Size:", None, QtGui.QApplication.UnicodeUTF8))
|
self.FontFooterHeightSpinBox.setSuffix(QtGui.QApplication.translate("AmendThemeDialog", "px", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.FontFooterTab), QtGui.QApplication.translate("AmendThemeDialog", "Font Footer", None, QtGui.QApplication.UnicodeUTF8))
|
self.ThemeTabWidget.setTabText(self.ThemeTabWidget.indexOf(self.FontFooterTab), QtGui.QApplication.translate("AmendThemeDialog", "Font Footer", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.ShadowGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Shadow", None, QtGui.QApplication.UnicodeUTF8))
|
self.ShadowGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Shadow && Outline", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.ShadowCheckBox.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use Shadow", None, QtGui.QApplication.UnicodeUTF8))
|
self.OutlineColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Outline Color:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.OutlineEnabledLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Show Outline:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.ShadowColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Shadow Color:", None, QtGui.QApplication.UnicodeUTF8))
|
self.ShadowColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Shadow Color:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
|
self.ShadowEnabledLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Show Shadow:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.AlignmentGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Alignment", None, QtGui.QApplication.UnicodeUTF8))
|
self.AlignmentGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Alignment", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.HorizontalLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Horizontal Align:", None, QtGui.QApplication.UnicodeUTF8))
|
self.HorizontalLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Horizontal Align:", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.HorizontalComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Left", None, QtGui.QApplication.UnicodeUTF8))
|
self.HorizontalComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Left", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
@ -385,8 +580,6 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.VerticalComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Top", None, QtGui.QApplication.UnicodeUTF8))
|
self.VerticalComboBox.setItemText(0, QtGui.QApplication.translate("AmendThemeDialog", "Top", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.VerticalComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Middle", None, QtGui.QApplication.UnicodeUTF8))
|
self.VerticalComboBox.setItemText(1, QtGui.QApplication.translate("AmendThemeDialog", "Middle", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.VerticalComboBox.setItemText(2, QtGui.QApplication.translate("AmendThemeDialog", "Bottom", None, QtGui.QApplication.UnicodeUTF8))
|
self.VerticalComboBox.setItemText(2, QtGui.QApplication.translate("AmendThemeDialog", "Bottom", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.OutlineGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Outline", None, QtGui.QApplication.UnicodeUTF8))
|
self.ThemeTabWidget.setTabText(self.ThemeTabWidget.indexOf(self.OtherOptionsTab), QtGui.QApplication.translate("AmendThemeDialog", "Other Options", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.OutlineCheckBox.setText(QtGui.QApplication.translate("AmendThemeDialog", "Use Outline", None, QtGui.QApplication.UnicodeUTF8))
|
self.PreviewGroupBox.setTitle(QtGui.QApplication.translate("AmendThemeDialog", "Preview", None, QtGui.QApplication.UnicodeUTF8))
|
||||||
self.OutlineColorLabel.setText(QtGui.QApplication.translate("AmendThemeDialog", "Outline Color:", None, QtGui.QApplication.UnicodeUTF8))
|
|
||||||
self.tabWidget.setTabText(self.tabWidget.indexOf(self.OptionsTab), QtGui.QApplication.translate("AmendThemeDialog", "Alignment", None, QtGui.QApplication.UnicodeUTF8))
|
|
||||||
|
|
||||||
|
@ -38,9 +38,6 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.setupUi(self)
|
self.setupUi(self)
|
||||||
|
|
||||||
#define signals
|
#define signals
|
||||||
#Exits
|
|
||||||
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL("accepted()"), self.accept)
|
|
||||||
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL("rejected()"), self.close)
|
|
||||||
#Buttons
|
#Buttons
|
||||||
QtCore.QObject.connect(self.Color1PushButton ,
|
QtCore.QObject.connect(self.Color1PushButton ,
|
||||||
QtCore.SIGNAL("pressed()"), self.onColor1PushButtonClicked)
|
QtCore.SIGNAL("pressed()"), self.onColor1PushButtonClicked)
|
||||||
|
@ -245,24 +245,23 @@ class ThemeManager(QWidget):
|
|||||||
os.mkdir(os.path.join(dir, file))
|
os.mkdir(os.path.join(dir, file))
|
||||||
else:
|
else:
|
||||||
fullpath = os.path.join(dir, file)
|
fullpath = os.path.join(dir, file)
|
||||||
if themename is None:
|
names = file.split(u'/')
|
||||||
names = file.split(u'/')
|
if len(names) > 1: # not preview file
|
||||||
themename = names[0]
|
if themename is None:
|
||||||
xml_data = zip.read(file)
|
themename = names[0]
|
||||||
if os.path.splitext (file) [1].lower () in [u'.xml']:
|
xml_data = zip.read(file)
|
||||||
if self.checkVersion1(xml_data):
|
if os.path.splitext (file) [1].lower () in [u'.xml']:
|
||||||
filexml = self.migrateVersion122(filename, fullpath, xml_data)
|
if self.checkVersion1(xml_data):
|
||||||
|
filexml = self.migrateVersion122(filename, fullpath, xml_data)
|
||||||
|
else:
|
||||||
|
file_xml = xml_data
|
||||||
|
outfile = open(fullpath, 'w')
|
||||||
|
outfile.write(filexml)
|
||||||
|
outfile.close()
|
||||||
else:
|
else:
|
||||||
file_xml = xml_data
|
outfile = open(fullpath, 'w')
|
||||||
outfile = open(fullpath, 'w')
|
outfile.write(zip.read(file))
|
||||||
outfile.write(filexml)
|
outfile.close()
|
||||||
outfile.close()
|
|
||||||
if os.path.splitext (file) [1].lower () in [u'.bmp']:
|
|
||||||
print os.path.splitext (file)
|
|
||||||
else:
|
|
||||||
outfile = open(fullpath, 'w')
|
|
||||||
outfile.write(zip.read(file))
|
|
||||||
outfile.close()
|
|
||||||
self.generateImage(dir,themename, filexml)
|
self.generateImage(dir,themename, filexml)
|
||||||
|
|
||||||
def checkVersion1(self, xmlfile):
|
def checkVersion1(self, xmlfile):
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user