forked from openlp/openlp
Moar whitespace, exceptions and naming
This commit is contained in:
parent
f41cadd17b
commit
fb1e222422
@ -335,8 +335,8 @@ class MediaManagerItem(QtGui.QWidget):
|
|||||||
log.info(u'New files(s) %s', unicode(files))
|
log.info(u'New files(s) %s', unicode(files))
|
||||||
if files:
|
if files:
|
||||||
self.loadList(files)
|
self.loadList(files)
|
||||||
dir = os.path.split(unicode(files[0]))[0]
|
lastDir = os.path.split(unicode(files[0]))[0]
|
||||||
SettingsManager.set_last_dir(self.settingsSection, dir)
|
SettingsManager.set_last_dir(self.settingsSection, lastDir)
|
||||||
SettingsManager.set_list(self.settingsSection,
|
SettingsManager.set_list(self.settingsSection,
|
||||||
self.settingsSection, self.getFileList())
|
self.settingsSection, self.getFileList())
|
||||||
|
|
||||||
|
@ -189,7 +189,8 @@ class Renderer(object):
|
|||||||
pos = split_text.rfind(u' ')
|
pos = split_text.rfind(u' ')
|
||||||
#no more spaces and we are still too long
|
#no more spaces and we are still too long
|
||||||
if pos == -1:
|
if pos == -1:
|
||||||
while metrics.width(split_text, -1) > line_width:
|
while \
|
||||||
|
metrics.width(split_text, -1) > line_width:
|
||||||
split_text = split_text[:-1]
|
split_text = split_text[:-1]
|
||||||
pos = len(split_text)
|
pos = len(split_text)
|
||||||
else:
|
else:
|
||||||
@ -199,12 +200,14 @@ class Renderer(object):
|
|||||||
#if we have more text add up to 10 spaces on the front.
|
#if we have more text add up to 10 spaces on the front.
|
||||||
if line and self._theme.font_main_indentation > 0:
|
if line and self._theme.font_main_indentation > 0:
|
||||||
line = u'%s%s' % \
|
line = u'%s%s' % \
|
||||||
(u' '[:int(self._theme.font_main_indentation)], line)
|
(u' '[:int(self._theme.font_main_indentation)],
|
||||||
|
line)
|
||||||
#Text fits in a line now
|
#Text fits in a line now
|
||||||
for count, line in enumerate(split_lines):
|
for count, line in enumerate(split_lines):
|
||||||
page.append(line)
|
page.append(line)
|
||||||
#last but one line and only 2 lines to go or end of page
|
#last but one line and only 2 lines to go or end of page
|
||||||
if (len(page) == page_length - 1 and len(split_lines) - 3 == count) or \
|
if (len(page) == page_length - 1 and
|
||||||
|
len(split_lines) - 3 == count) or \
|
||||||
len(page) == page_length:
|
len(page) == page_length:
|
||||||
split_pages.append(page)
|
split_pages.append(page)
|
||||||
page = []
|
page = []
|
||||||
@ -559,7 +562,8 @@ class Renderer(object):
|
|||||||
self.painter.drawText(x, rowpos, line)
|
self.painter.drawText(x, rowpos, line)
|
||||||
if self._theme.display_slideTransition:
|
if self._theme.display_slideTransition:
|
||||||
# Print 2nd image with 70% weight
|
# Print 2nd image with 70% weight
|
||||||
if self._theme.display_outline and outline_size != 0 and not footer:
|
if self._theme.display_outline and outline_size != 0 and \
|
||||||
|
not footer:
|
||||||
path = QtGui.QPainterPath()
|
path = QtGui.QPainterPath()
|
||||||
path.addText(QtCore.QPointF(x, rowpos), font, line)
|
path.addText(QtCore.QPointF(x, rowpos), font, line)
|
||||||
self.painter2.setBrush(self.painter2.pen().brush())
|
self.painter2.setBrush(self.painter2.pen().brush())
|
||||||
|
@ -181,7 +181,8 @@ class RenderManager(object):
|
|||||||
footer.append(u'CCLI 123456')
|
footer.append(u'CCLI 123456')
|
||||||
formatted = self.renderer.format_slide(verse, False)
|
formatted = self.renderer.format_slide(verse, False)
|
||||||
#Only Render the first slide page returned
|
#Only Render the first slide page returned
|
||||||
return self.renderer.generate_frame_from_lines(formatted[0], footer)[u'main']
|
return self.renderer.generate_frame_from_lines(formatted[0],
|
||||||
|
footer)[u'main']
|
||||||
|
|
||||||
def format_slide(self, words):
|
def format_slide(self, words):
|
||||||
"""
|
"""
|
||||||
|
@ -366,9 +366,9 @@ class ThemeXML(object):
|
|||||||
The XML string to parse.
|
The XML string to parse.
|
||||||
"""
|
"""
|
||||||
theme_xml = ElementTree(element=XML(xml))
|
theme_xml = ElementTree(element=XML(xml))
|
||||||
iter = theme_xml.getiterator()
|
xml_iter = theme_xml.getiterator()
|
||||||
master = u''
|
master = u''
|
||||||
for element in iter:
|
for element in xml_iter:
|
||||||
element.text = unicode(element.text).decode('unicode-escape')
|
element.text = unicode(element.text).decode('unicode-escape')
|
||||||
if element.getchildren():
|
if element.getchildren():
|
||||||
master = element.tag + u'_'
|
master = element.tag + u'_'
|
||||||
|
@ -132,7 +132,8 @@ class Ui_AboutDialog(object):
|
|||||||
'consider contributing by using the button below.'
|
'consider contributing by using the button below.'
|
||||||
))
|
))
|
||||||
self.AboutNotebook.setTabText(
|
self.AboutNotebook.setTabText(
|
||||||
self.AboutNotebook.indexOf(self.AboutTab), translate('AboutForm', 'About'))
|
self.AboutNotebook.indexOf(self.AboutTab),
|
||||||
|
translate('AboutForm', 'About'))
|
||||||
self.CreditsTextEdit.setPlainText(translate('AboutForm',
|
self.CreditsTextEdit.setPlainText(translate('AboutForm',
|
||||||
'Project Lead\n'
|
'Project Lead\n'
|
||||||
' Raoul "superfly" Snyman\n'
|
' Raoul "superfly" Snyman\n'
|
||||||
|
@ -68,45 +68,56 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.BackgroundLayout.setObjectName(u'BackgroundLayout')
|
self.BackgroundLayout.setObjectName(u'BackgroundLayout')
|
||||||
self.BackgroundLabel = QtGui.QLabel(self.BackgroundTab)
|
self.BackgroundLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.BackgroundLabel.setObjectName(u'BackgroundLabel')
|
self.BackgroundLabel.setObjectName(u'BackgroundLabel')
|
||||||
self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.BackgroundLabel)
|
self.BackgroundLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.BackgroundLabel)
|
||||||
self.BackgroundComboBox = QtGui.QComboBox(self.BackgroundTab)
|
self.BackgroundComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.BackgroundComboBox.setObjectName(u'BackgroundComboBox')
|
self.BackgroundComboBox.setObjectName(u'BackgroundComboBox')
|
||||||
self.BackgroundComboBox.addItem(QtCore.QString())
|
self.BackgroundComboBox.addItem(QtCore.QString())
|
||||||
self.BackgroundComboBox.addItem(QtCore.QString())
|
self.BackgroundComboBox.addItem(QtCore.QString())
|
||||||
self.BackgroundLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.BackgroundComboBox)
|
self.BackgroundLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.BackgroundComboBox)
|
||||||
self.BackgroundTypeLabel = QtGui.QLabel(self.BackgroundTab)
|
self.BackgroundTypeLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.BackgroundTypeLabel.setObjectName(u'BackgroundTypeLabel')
|
self.BackgroundTypeLabel.setObjectName(u'BackgroundTypeLabel')
|
||||||
self.BackgroundLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.BackgroundTypeLabel)
|
self.BackgroundLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.BackgroundTypeLabel)
|
||||||
self.BackgroundTypeComboBox = QtGui.QComboBox(self.BackgroundTab)
|
self.BackgroundTypeComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.BackgroundTypeComboBox.setObjectName(u'BackgroundTypeComboBox')
|
self.BackgroundTypeComboBox.setObjectName(u'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.BackgroundLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.BackgroundTypeComboBox)
|
self.BackgroundLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.BackgroundTypeComboBox)
|
||||||
self.Color1Label = QtGui.QLabel(self.BackgroundTab)
|
self.Color1Label = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.Color1Label.setObjectName(u'Color1Label')
|
self.Color1Label.setObjectName(u'Color1Label')
|
||||||
self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.Color1Label)
|
self.BackgroundLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.Color1Label)
|
||||||
self.Color1PushButton = QtGui.QPushButton(self.BackgroundTab)
|
self.Color1PushButton = QtGui.QPushButton(self.BackgroundTab)
|
||||||
self.Color1PushButton.setObjectName(u'Color1PushButton')
|
self.Color1PushButton.setObjectName(u'Color1PushButton')
|
||||||
self.BackgroundLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.Color1PushButton)
|
self.BackgroundLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.Color1PushButton)
|
||||||
self.Color2Label = QtGui.QLabel(self.BackgroundTab)
|
self.Color2Label = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.Color2Label.setObjectName(u'Color2Label')
|
self.Color2Label.setObjectName(u'Color2Label')
|
||||||
self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.Color2Label)
|
self.BackgroundLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.LabelRole, self.Color2Label)
|
||||||
self.Color2PushButton = QtGui.QPushButton(self.BackgroundTab)
|
self.Color2PushButton = QtGui.QPushButton(self.BackgroundTab)
|
||||||
self.Color2PushButton.setObjectName(u'Color2PushButton')
|
self.Color2PushButton.setObjectName(u'Color2PushButton')
|
||||||
self.BackgroundLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.Color2PushButton)
|
self.BackgroundLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.FieldRole, self.Color2PushButton)
|
||||||
self.ImageLabel = QtGui.QLabel(self.BackgroundTab)
|
self.ImageLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.ImageLabel.setObjectName(u'ImageLabel')
|
self.ImageLabel.setObjectName(u'ImageLabel')
|
||||||
self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.ImageLabel)
|
self.BackgroundLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.LabelRole, self.ImageLabel)
|
||||||
self.GradientLabel = QtGui.QLabel(self.BackgroundTab)
|
self.GradientLabel = QtGui.QLabel(self.BackgroundTab)
|
||||||
self.GradientLabel.setObjectName(u'GradientLabel')
|
self.GradientLabel.setObjectName(u'GradientLabel')
|
||||||
self.BackgroundLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.GradientLabel)
|
self.BackgroundLayout.setWidget(
|
||||||
|
6, QtGui.QFormLayout.LabelRole, self.GradientLabel)
|
||||||
self.GradientComboBox = QtGui.QComboBox(self.BackgroundTab)
|
self.GradientComboBox = QtGui.QComboBox(self.BackgroundTab)
|
||||||
self.GradientComboBox.setObjectName(u'GradientComboBox')
|
self.GradientComboBox.setObjectName(u'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.BackgroundLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.GradientComboBox)
|
self.BackgroundLayout.setWidget(
|
||||||
|
6, QtGui.QFormLayout.FieldRole, self.GradientComboBox)
|
||||||
self.ImageFilenameWidget = QtGui.QWidget(self.BackgroundTab)
|
self.ImageFilenameWidget = QtGui.QWidget(self.BackgroundTab)
|
||||||
self.ImageFilenameWidget.setObjectName(u'ImageFilenameWidget')
|
self.ImageFilenameWidget.setObjectName(u'ImageFilenameWidget')
|
||||||
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.ImageFilenameWidget)
|
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.ImageFilenameWidget)
|
||||||
@ -121,7 +132,8 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.ImageToolButton.setIcon(icon1)
|
self.ImageToolButton.setIcon(icon1)
|
||||||
self.ImageToolButton.setObjectName(u'ImageToolButton')
|
self.ImageToolButton.setObjectName(u'ImageToolButton')
|
||||||
self.horizontalLayout_2.addWidget(self.ImageToolButton)
|
self.horizontalLayout_2.addWidget(self.ImageToolButton)
|
||||||
self.BackgroundLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.ImageFilenameWidget)
|
self.BackgroundLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.FieldRole, self.ImageFilenameWidget)
|
||||||
self.ThemeTabWidget.addTab(self.BackgroundTab, u'')
|
self.ThemeTabWidget.addTab(self.BackgroundTab, u'')
|
||||||
self.FontMainTab = QtGui.QWidget()
|
self.FontMainTab = QtGui.QWidget()
|
||||||
self.FontMainTab.setObjectName(u'FontMainTab')
|
self.FontMainTab.setObjectName(u'FontMainTab')
|
||||||
@ -138,65 +150,88 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.FontMainGroupBox = QtGui.QGroupBox(self.MainLeftWidget)
|
self.FontMainGroupBox = QtGui.QGroupBox(self.MainLeftWidget)
|
||||||
self.FontMainGroupBox.setObjectName(u'FontMainGroupBox')
|
self.FontMainGroupBox.setObjectName(u'FontMainGroupBox')
|
||||||
self.MainFontLayout = QtGui.QFormLayout(self.FontMainGroupBox)
|
self.MainFontLayout = QtGui.QFormLayout(self.FontMainGroupBox)
|
||||||
self.MainFontLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
self.MainFontLayout.setFormAlignment(
|
||||||
|
QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
self.MainFontLayout.setMargin(8)
|
self.MainFontLayout.setMargin(8)
|
||||||
self.MainFontLayout.setSpacing(8)
|
self.MainFontLayout.setSpacing(8)
|
||||||
self.MainFontLayout.setObjectName(u'MainFontLayout')
|
self.MainFontLayout.setObjectName(u'MainFontLayout')
|
||||||
self.FontMainlabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainlabel = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainlabel.setObjectName(u'FontMainlabel')
|
self.FontMainlabel.setObjectName(u'FontMainlabel')
|
||||||
self.MainFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.FontMainlabel)
|
self.MainFontLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.FontMainlabel)
|
||||||
self.FontMainComboBox = QtGui.QFontComboBox(self.FontMainGroupBox)
|
self.FontMainComboBox = QtGui.QFontComboBox(self.FontMainGroupBox)
|
||||||
self.FontMainComboBox.setObjectName(u'FontMainComboBox')
|
self.FontMainComboBox.setObjectName(u'FontMainComboBox')
|
||||||
self.MainFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontMainComboBox)
|
self.MainFontLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.FontMainComboBox)
|
||||||
self.FontMainColorLabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainColorLabel = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainColorLabel.setObjectName(u'FontMainColorLabel')
|
self.FontMainColorLabel.setObjectName(u'FontMainColorLabel')
|
||||||
self.MainFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontMainColorLabel)
|
self.MainFontLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.FontMainColorLabel)
|
||||||
self.FontMainColorPushButton = QtGui.QPushButton(self.FontMainGroupBox)
|
self.FontMainColorPushButton = QtGui.QPushButton(self.FontMainGroupBox)
|
||||||
self.FontMainColorPushButton.setObjectName(u'FontMainColorPushButton')
|
self.FontMainColorPushButton.setObjectName(u'FontMainColorPushButton')
|
||||||
self.MainFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontMainColorPushButton)
|
self.MainFontLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.FontMainColorPushButton)
|
||||||
self.FontMainSize = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainSize = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainSize.setObjectName(u'FontMainSize')
|
self.FontMainSize.setObjectName(u'FontMainSize')
|
||||||
self.MainFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontMainSize)
|
self.MainFontLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.FontMainSize)
|
||||||
self.FontMainSizeSpinBox = QtGui.QSpinBox(self.FontMainGroupBox)
|
self.FontMainSizeSpinBox = QtGui.QSpinBox(self.FontMainGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontMainSizeSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontMainSizeSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontMainSizeSpinBox.setSizePolicy(sizePolicy)
|
self.FontMainSizeSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontMainSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
self.FontMainSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
||||||
self.FontMainSizeSpinBox.setProperty(u'value', QtCore.QVariant(16))
|
self.FontMainSizeSpinBox.setProperty(u'value', QtCore.QVariant(16))
|
||||||
self.FontMainSizeSpinBox.setMaximum(999)
|
self.FontMainSizeSpinBox.setMaximum(999)
|
||||||
self.FontMainSizeSpinBox.setObjectName(u'FontMainSizeSpinBox')
|
self.FontMainSizeSpinBox.setObjectName(u'FontMainSizeSpinBox')
|
||||||
self.MainFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontMainSizeSpinBox)
|
self.MainFontLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.FontMainSizeSpinBox)
|
||||||
self.FontMainWeightComboBox = QtGui.QComboBox(self.FontMainGroupBox)
|
self.FontMainWeightComboBox = QtGui.QComboBox(self.FontMainGroupBox)
|
||||||
self.FontMainWeightComboBox.setObjectName("FontMainWeightComboBox")
|
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.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.MainFontLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.FieldRole, self.FontMainWeightComboBox)
|
||||||
self.FontMainWeightLabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainWeightLabel = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainWeightLabel.setObjectName("FontMainWeightLabel")
|
self.FontMainWeightLabel.setObjectName(u'FontMainWeightLabel')
|
||||||
self.MainFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontMainWeightLabel)
|
self.MainFontLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.LabelRole, self.FontMainWeightLabel)
|
||||||
self.MainLeftLayout.addWidget(self.FontMainGroupBox)
|
self.MainLeftLayout.addWidget(self.FontMainGroupBox)
|
||||||
self.FontMainWrapLineAdjustmentLabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainWrapLineAdjustmentLabel = QtGui.QLabel(
|
||||||
self.FontMainWrapLineAdjustmentLabel.setObjectName("FontMainWrapLineAdjustmentLabel")
|
self.FontMainGroupBox)
|
||||||
self.MainFontLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.FontMainWrapLineAdjustmentLabel)
|
self.FontMainWrapLineAdjustmentLabel.setObjectName(
|
||||||
self.FontMainLineAdjustmentSpinBox = QtGui.QSpinBox(self.FontMainGroupBox)
|
u'FontMainWrapLineAdjustmentLabel')
|
||||||
self.FontMainLineAdjustmentSpinBox.setObjectName("FontMainLineAdjustmentSpinBox")
|
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.FontMainLineAdjustmentSpinBox.setMinimum(-99)
|
||||||
self.MainFontLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.FontMainLineAdjustmentSpinBox)
|
self.MainFontLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.FieldRole, self.FontMainLineAdjustmentSpinBox)
|
||||||
self.FontMainWrapIndentationLabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainWrapIndentationLabel = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainWrapIndentationLabel.setObjectName("FontMainWrapIndentationLabel")
|
self.FontMainWrapIndentationLabel.setObjectName(
|
||||||
self.MainFontLayout.setWidget(5, QtGui.QFormLayout.LabelRole, self.FontMainWrapIndentationLabel)
|
u'FontMainWrapIndentationLabel')
|
||||||
|
self.MainFontLayout.setWidget(
|
||||||
|
5, QtGui.QFormLayout.LabelRole, self.FontMainWrapIndentationLabel)
|
||||||
self.FontMainLineSpacingSpinBox = QtGui.QSpinBox(self.FontMainGroupBox)
|
self.FontMainLineSpacingSpinBox = QtGui.QSpinBox(self.FontMainGroupBox)
|
||||||
self.FontMainLineSpacingSpinBox.setObjectName("FontMainLineSpacingSpinBox")
|
self.FontMainLineSpacingSpinBox.setObjectName(
|
||||||
|
"FontMainLineSpacingSpinBox")
|
||||||
self.FontMainLineSpacingSpinBox.setMaximum(10)
|
self.FontMainLineSpacingSpinBox.setMaximum(10)
|
||||||
self.MainFontLayout.setWidget(5, QtGui.QFormLayout.FieldRole, self.FontMainLineSpacingSpinBox)
|
self.MainFontLayout.setWidget(
|
||||||
|
5, QtGui.QFormLayout.FieldRole, self.FontMainLineSpacingSpinBox)
|
||||||
self.FontMainLinesPageLabel = QtGui.QLabel(self.FontMainGroupBox)
|
self.FontMainLinesPageLabel = QtGui.QLabel(self.FontMainGroupBox)
|
||||||
self.FontMainLinesPageLabel.setObjectName("FontMainLinesPageLabel")
|
self.FontMainLinesPageLabel.setObjectName(u'FontMainLinesPageLabel')
|
||||||
self.MainFontLayout.setWidget(6, QtGui.QFormLayout.LabelRole, self.FontMainLinesPageLabel)
|
self.MainFontLayout.setWidget(
|
||||||
spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
6, QtGui.QFormLayout.LabelRole, self.FontMainLinesPageLabel)
|
||||||
|
spacerItem1 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.MainLeftLayout.addItem(spacerItem1)
|
self.MainLeftLayout.addItem(spacerItem1)
|
||||||
self.FontMainLayout.addWidget(self.MainLeftWidget)
|
self.FontMainLayout.addWidget(self.MainLeftWidget)
|
||||||
self.MainRightWidget = QtGui.QWidget(self.FontMainTab)
|
self.MainRightWidget = QtGui.QWidget(self.FontMainTab)
|
||||||
@ -213,66 +248,86 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.MainLocationLayout.setObjectName(u'MainLocationLayout')
|
self.MainLocationLayout.setObjectName(u'MainLocationLayout')
|
||||||
self.DefaultLocationLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
self.DefaultLocationLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.DefaultLocationLabel.setObjectName(u'DefaultLocationLabel')
|
self.DefaultLocationLabel.setObjectName(u'DefaultLocationLabel')
|
||||||
self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.DefaultLocationLabel)
|
self.MainLocationLayout.setWidget(
|
||||||
self.FontMainDefaultCheckBox = QtGui.QCheckBox(self.MainLocationGroupBox)
|
0, QtGui.QFormLayout.LabelRole, self.DefaultLocationLabel)
|
||||||
|
self.FontMainDefaultCheckBox = QtGui.QCheckBox(
|
||||||
|
self.MainLocationGroupBox)
|
||||||
self.FontMainDefaultCheckBox.setTristate(False)
|
self.FontMainDefaultCheckBox.setTristate(False)
|
||||||
self.FontMainDefaultCheckBox.setObjectName(u'FontMainDefaultCheckBox')
|
self.FontMainDefaultCheckBox.setObjectName(u'FontMainDefaultCheckBox')
|
||||||
self.MainLocationLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontMainDefaultCheckBox)
|
self.MainLocationLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.FontMainDefaultCheckBox)
|
||||||
self.FontMainXLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
self.FontMainXLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainXLabel.setObjectName(u'FontMainXLabel')
|
self.FontMainXLabel.setObjectName(u'FontMainXLabel')
|
||||||
self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontMainXLabel)
|
self.MainLocationLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.FontMainXLabel)
|
||||||
self.FontMainYLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
self.FontMainYLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainYLabel.setObjectName(u'FontMainYLabel')
|
self.FontMainYLabel.setObjectName(u'FontMainYLabel')
|
||||||
self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontMainYLabel)
|
self.MainLocationLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.FontMainYLabel)
|
||||||
self.FontMainWidthLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
self.FontMainWidthLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainWidthLabel.setObjectName(u'FontMainWidthLabel')
|
self.FontMainWidthLabel.setObjectName(u'FontMainWidthLabel')
|
||||||
self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontMainWidthLabel)
|
self.MainLocationLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.LabelRole, self.FontMainWidthLabel)
|
||||||
self.FontMainHeightLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
self.FontMainHeightLabel = QtGui.QLabel(self.MainLocationGroupBox)
|
||||||
self.FontMainHeightLabel.setObjectName(u'FontMainHeightLabel')
|
self.FontMainHeightLabel.setObjectName(u'FontMainHeightLabel')
|
||||||
self.MainLocationLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.FontMainHeightLabel)
|
self.MainLocationLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.LabelRole, self.FontMainHeightLabel)
|
||||||
self.FontMainXSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
self.FontMainXSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontMainXSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontMainXSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontMainXSpinBox.setSizePolicy(sizePolicy)
|
self.FontMainXSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontMainXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontMainXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontMainXSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
self.FontMainXSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
||||||
self.FontMainXSpinBox.setMaximum(9999)
|
self.FontMainXSpinBox.setMaximum(9999)
|
||||||
self.FontMainXSpinBox.setObjectName(u'FontMainXSpinBox')
|
self.FontMainXSpinBox.setObjectName(u'FontMainXSpinBox')
|
||||||
self.MainLocationLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontMainXSpinBox)
|
self.MainLocationLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.FontMainXSpinBox)
|
||||||
self.FontMainYSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
self.FontMainYSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontMainYSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontMainYSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontMainYSpinBox.setSizePolicy(sizePolicy)
|
self.FontMainYSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontMainYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontMainYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontMainYSpinBox.setMaximum(9999)
|
self.FontMainYSpinBox.setMaximum(9999)
|
||||||
self.FontMainYSpinBox.setObjectName(u'FontMainYSpinBox')
|
self.FontMainYSpinBox.setObjectName(u'FontMainYSpinBox')
|
||||||
self.MainLocationLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontMainYSpinBox)
|
self.MainLocationLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.FontMainYSpinBox)
|
||||||
self.FontMainWidthSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
self.FontMainWidthSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontMainWidthSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontMainWidthSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontMainWidthSpinBox.setSizePolicy(sizePolicy)
|
self.FontMainWidthSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontMainWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontMainWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontMainWidthSpinBox.setMaximum(9999)
|
self.FontMainWidthSpinBox.setMaximum(9999)
|
||||||
self.FontMainWidthSpinBox.setObjectName(u'FontMainWidthSpinBox')
|
self.FontMainWidthSpinBox.setObjectName(u'FontMainWidthSpinBox')
|
||||||
self.MainLocationLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.FontMainWidthSpinBox)
|
self.MainLocationLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.FieldRole, self.FontMainWidthSpinBox)
|
||||||
self.FontMainHeightSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
self.FontMainHeightSpinBox = QtGui.QSpinBox(self.MainLocationGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontMainHeightSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontMainHeightSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontMainHeightSpinBox.setSizePolicy(sizePolicy)
|
self.FontMainHeightSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontMainHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontMainHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontMainHeightSpinBox.setMaximum(9999)
|
self.FontMainHeightSpinBox.setMaximum(9999)
|
||||||
self.FontMainHeightSpinBox.setObjectName(u'FontMainHeightSpinBox')
|
self.FontMainHeightSpinBox.setObjectName(u'FontMainHeightSpinBox')
|
||||||
self.MainLocationLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.FontMainHeightSpinBox)
|
self.MainLocationLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.FieldRole, self.FontMainHeightSpinBox)
|
||||||
self.MainRightLayout.addWidget(self.MainLocationGroupBox)
|
self.MainRightLayout.addWidget(self.MainLocationGroupBox)
|
||||||
spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem2 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.MainRightLayout.addItem(spacerItem2)
|
self.MainRightLayout.addItem(spacerItem2)
|
||||||
self.FontMainLayout.addWidget(self.MainRightWidget)
|
self.FontMainLayout.addWidget(self.MainRightWidget)
|
||||||
self.ThemeTabWidget.addTab(self.FontMainTab, u'')
|
self.ThemeTabWidget.addTab(self.FontMainTab, u'')
|
||||||
@ -291,49 +346,64 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.FooterFontGroupBox = QtGui.QGroupBox(self.FooterLeftWidget)
|
self.FooterFontGroupBox = QtGui.QGroupBox(self.FooterLeftWidget)
|
||||||
self.FooterFontGroupBox.setObjectName(u'FooterFontGroupBox')
|
self.FooterFontGroupBox.setObjectName(u'FooterFontGroupBox')
|
||||||
self.FooterFontLayout = QtGui.QFormLayout(self.FooterFontGroupBox)
|
self.FooterFontLayout = QtGui.QFormLayout(self.FooterFontGroupBox)
|
||||||
self.FooterFontLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
|
self.FooterFontLayout.setFieldGrowthPolicy(
|
||||||
self.FooterFontLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
QtGui.QFormLayout.ExpandingFieldsGrow)
|
||||||
|
self.FooterFontLayout.setFormAlignment(
|
||||||
|
QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
self.FooterFontLayout.setMargin(8)
|
self.FooterFontLayout.setMargin(8)
|
||||||
self.FooterFontLayout.setSpacing(8)
|
self.FooterFontLayout.setSpacing(8)
|
||||||
self.FooterFontLayout.setObjectName(u'FooterFontLayout')
|
self.FooterFontLayout.setObjectName(u'FooterFontLayout')
|
||||||
self.FontFooterLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
self.FontFooterLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterLabel.setObjectName(u'FontFooterLabel')
|
self.FontFooterLabel.setObjectName(u'FontFooterLabel')
|
||||||
self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.FontFooterLabel)
|
self.FooterFontLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.FontFooterLabel)
|
||||||
self.FontFooterComboBox = QtGui.QFontComboBox(self.FooterFontGroupBox)
|
self.FontFooterComboBox = QtGui.QFontComboBox(self.FooterFontGroupBox)
|
||||||
self.FontFooterComboBox.setObjectName(u'FontFooterComboBox')
|
self.FontFooterComboBox.setObjectName(u'FontFooterComboBox')
|
||||||
self.FooterFontLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontFooterComboBox)
|
self.FooterFontLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.FontFooterComboBox)
|
||||||
self.FontFooterColorLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
self.FontFooterColorLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterColorLabel.setObjectName(u'FontFooterColorLabel')
|
self.FontFooterColorLabel.setObjectName(u'FontFooterColorLabel')
|
||||||
self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontFooterColorLabel)
|
self.FooterFontLayout.setWidget(
|
||||||
self.FontFooterColorPushButton = QtGui.QPushButton(self.FooterFontGroupBox)
|
1, QtGui.QFormLayout.LabelRole, self.FontFooterColorLabel)
|
||||||
self.FontFooterColorPushButton.setObjectName(u'FontFooterColorPushButton')
|
self.FontFooterColorPushButton = QtGui.QPushButton(
|
||||||
self.FooterFontLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontFooterColorPushButton)
|
self.FooterFontGroupBox)
|
||||||
|
self.FontFooterColorPushButton.setObjectName(
|
||||||
|
u'FontFooterColorPushButton')
|
||||||
|
self.FooterFontLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.FontFooterColorPushButton)
|
||||||
self.FontFooterSizeLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
self.FontFooterSizeLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterSizeLabel.setObjectName(u'FontFooterSizeLabel')
|
self.FontFooterSizeLabel.setObjectName(u'FontFooterSizeLabel')
|
||||||
self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontFooterSizeLabel)
|
self.FooterFontLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.FontFooterSizeLabel)
|
||||||
self.FontFooterSizeSpinBox = QtGui.QSpinBox(self.FooterFontGroupBox)
|
self.FontFooterSizeSpinBox = QtGui.QSpinBox(self.FooterFontGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontFooterSizeSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontFooterSizeSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontFooterSizeSpinBox.setSizePolicy(sizePolicy)
|
self.FontFooterSizeSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontFooterSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
self.FontFooterSizeSpinBox.setMinimumSize(QtCore.QSize(70, 0))
|
||||||
self.FontFooterSizeSpinBox.setProperty(u'value', QtCore.QVariant(10))
|
self.FontFooterSizeSpinBox.setProperty(u'value', QtCore.QVariant(10))
|
||||||
self.FontFooterSizeSpinBox.setMaximum(999)
|
self.FontFooterSizeSpinBox.setMaximum(999)
|
||||||
self.FontFooterSizeSpinBox.setObjectName(u'FontFooterSizeSpinBox')
|
self.FontFooterSizeSpinBox.setObjectName(u'FontFooterSizeSpinBox')
|
||||||
self.FooterFontLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontFooterSizeSpinBox)
|
self.FooterFontLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.FontFooterSizeSpinBox)
|
||||||
self.FontFooterWeightComboBox = QtGui.QComboBox(self.FooterFontGroupBox)
|
self.FontFooterWeightComboBox = QtGui.QComboBox(self.FooterFontGroupBox)
|
||||||
self.FontFooterWeightComboBox.setObjectName("FontFooterWeightComboBox")
|
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.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.FooterFontLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.FieldRole, self.FontFooterWeightComboBox)
|
||||||
self.FontFooterWeightLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
self.FontFooterWeightLabel = QtGui.QLabel(self.FooterFontGroupBox)
|
||||||
self.FontFooterWeightLabel.setObjectName("FontFooterWeightLabel")
|
self.FontFooterWeightLabel.setObjectName(u'FontFooterWeightLabel')
|
||||||
self.FooterFontLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontFooterWeightLabel)
|
self.FooterFontLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.LabelRole, self.FontFooterWeightLabel)
|
||||||
self.FooterLeftLayout.addWidget(self.FooterFontGroupBox)
|
self.FooterLeftLayout.addWidget(self.FooterFontGroupBox)
|
||||||
spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem3 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.FooterLeftLayout.addItem(spacerItem3)
|
self.FooterLeftLayout.addItem(spacerItem3)
|
||||||
self.FontFooterLayout.addWidget(self.FooterLeftWidget)
|
self.FontFooterLayout.addWidget(self.FooterLeftWidget)
|
||||||
self.FooterRightWidget = QtGui.QWidget(self.FontFooterTab)
|
self.FooterRightWidget = QtGui.QWidget(self.FontFooterTab)
|
||||||
@ -344,65 +414,87 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.FooterRightLayout.setObjectName(u'FooterRightLayout')
|
self.FooterRightLayout.setObjectName(u'FooterRightLayout')
|
||||||
self.LocationFooterGroupBox = QtGui.QGroupBox(self.FooterRightWidget)
|
self.LocationFooterGroupBox = QtGui.QGroupBox(self.FooterRightWidget)
|
||||||
self.LocationFooterGroupBox.setObjectName(u'LocationFooterGroupBox')
|
self.LocationFooterGroupBox.setObjectName(u'LocationFooterGroupBox')
|
||||||
self.LocationFooterLayout = QtGui.QFormLayout(self.LocationFooterGroupBox)
|
self.LocationFooterLayout = QtGui.QFormLayout(
|
||||||
self.LocationFooterLayout.setFieldGrowthPolicy(QtGui.QFormLayout.ExpandingFieldsGrow)
|
self.LocationFooterGroupBox)
|
||||||
self.LocationFooterLayout.setFormAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
self.LocationFooterLayout.setFieldGrowthPolicy(
|
||||||
|
QtGui.QFormLayout.ExpandingFieldsGrow)
|
||||||
|
self.LocationFooterLayout.setFormAlignment(
|
||||||
|
QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
|
||||||
self.LocationFooterLayout.setMargin(8)
|
self.LocationFooterLayout.setMargin(8)
|
||||||
self.LocationFooterLayout.setSpacing(8)
|
self.LocationFooterLayout.setSpacing(8)
|
||||||
self.LocationFooterLayout.setObjectName(u'LocationFooterLayout')
|
self.LocationFooterLayout.setObjectName(u'LocationFooterLayout')
|
||||||
self.FontFooterDefaultLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
self.FontFooterDefaultLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
self.FontFooterDefaultLabel.setObjectName(u'FontFooterDefaultLabel')
|
self.FontFooterDefaultLabel.setObjectName(u'FontFooterDefaultLabel')
|
||||||
self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.FontFooterDefaultLabel)
|
self.LocationFooterLayout.setWidget(
|
||||||
self.FontFooterDefaultCheckBox = QtGui.QCheckBox(self.LocationFooterGroupBox)
|
0, QtGui.QFormLayout.LabelRole, self.FontFooterDefaultLabel)
|
||||||
|
self.FontFooterDefaultCheckBox = QtGui.QCheckBox(
|
||||||
|
self.LocationFooterGroupBox)
|
||||||
self.FontFooterDefaultCheckBox.setTristate(False)
|
self.FontFooterDefaultCheckBox.setTristate(False)
|
||||||
self.FontFooterDefaultCheckBox.setObjectName(u'FontFooterDefaultCheckBox')
|
self.FontFooterDefaultCheckBox.setObjectName(
|
||||||
self.LocationFooterLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.FontFooterDefaultCheckBox)
|
u'FontFooterDefaultCheckBox')
|
||||||
|
self.LocationFooterLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.FontFooterDefaultCheckBox)
|
||||||
self.FontFooterXLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
self.FontFooterXLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
self.FontFooterXLabel.setObjectName(u'FontFooterXLabel')
|
self.FontFooterXLabel.setObjectName(u'FontFooterXLabel')
|
||||||
self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.FontFooterXLabel)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.FontFooterXLabel)
|
||||||
self.FontFooterYLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
self.FontFooterYLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
self.FontFooterYLabel.setObjectName(u'FontFooterYLabel')
|
self.FontFooterYLabel.setObjectName(u'FontFooterYLabel')
|
||||||
self.LocationFooterLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.FontFooterYLabel)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.FontFooterYLabel)
|
||||||
self.FontFooterWidthLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
self.FontFooterWidthLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
self.FontFooterWidthLabel.setObjectName(u'FontFooterWidthLabel')
|
self.FontFooterWidthLabel.setObjectName(u'FontFooterWidthLabel')
|
||||||
self.LocationFooterLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.FontFooterWidthLabel)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
3, QtGui.QFormLayout.LabelRole, self.FontFooterWidthLabel)
|
||||||
self.FontFooterHeightLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
self.FontFooterHeightLabel = QtGui.QLabel(self.LocationFooterGroupBox)
|
||||||
self.FontFooterHeightLabel.setObjectName(u'FontFooterHeightLabel')
|
self.FontFooterHeightLabel.setObjectName(u'FontFooterHeightLabel')
|
||||||
self.LocationFooterLayout.setWidget(4, QtGui.QFormLayout.LabelRole, self.FontFooterHeightLabel)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.LabelRole, self.FontFooterHeightLabel)
|
||||||
self.FontFooterXSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
self.FontFooterXSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontFooterXSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontFooterXSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontFooterXSpinBox.setSizePolicy(sizePolicy)
|
self.FontFooterXSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontFooterXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontFooterXSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontFooterXSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
self.FontFooterXSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
||||||
self.FontFooterXSpinBox.setMaximum(9999)
|
self.FontFooterXSpinBox.setMaximum(9999)
|
||||||
self.FontFooterXSpinBox.setObjectName(u'FontFooterXSpinBox')
|
self.FontFooterXSpinBox.setObjectName(u'FontFooterXSpinBox')
|
||||||
self.LocationFooterLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.FontFooterXSpinBox)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.FontFooterXSpinBox)
|
||||||
self.FontFooterYSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
self.FontFooterYSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.FontFooterYSpinBox.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.FontFooterYSpinBox.sizePolicy().hasHeightForWidth())
|
||||||
self.FontFooterYSpinBox.setSizePolicy(sizePolicy)
|
self.FontFooterYSpinBox.setSizePolicy(sizePolicy)
|
||||||
self.FontFooterYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontFooterYSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontFooterYSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
self.FontFooterYSpinBox.setProperty(u'value', QtCore.QVariant(0))
|
||||||
self.FontFooterYSpinBox.setMaximum(9999)
|
self.FontFooterYSpinBox.setMaximum(9999)
|
||||||
self.FontFooterYSpinBox.setObjectName(u'FontFooterYSpinBox')
|
self.FontFooterYSpinBox.setObjectName(u'FontFooterYSpinBox')
|
||||||
self.LocationFooterLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.FontFooterYSpinBox)
|
self.LocationFooterLayout.setWidget(
|
||||||
self.FontFooterWidthSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
2, QtGui.QFormLayout.FieldRole, self.FontFooterYSpinBox)
|
||||||
|
self.FontFooterWidthSpinBox = QtGui.QSpinBox(
|
||||||
|
self.LocationFooterGroupBox)
|
||||||
self.FontFooterWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontFooterWidthSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontFooterWidthSpinBox.setMaximum(9999)
|
self.FontFooterWidthSpinBox.setMaximum(9999)
|
||||||
self.FontFooterWidthSpinBox.setObjectName(u'FontFooterWidthSpinBox')
|
self.FontFooterWidthSpinBox.setObjectName(u'FontFooterWidthSpinBox')
|
||||||
self.LocationFooterLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.FontFooterWidthSpinBox)
|
self.LocationFooterLayout.setWidget(
|
||||||
self.FontFooterHeightSpinBox = QtGui.QSpinBox(self.LocationFooterGroupBox)
|
3, QtGui.QFormLayout.FieldRole, self.FontFooterWidthSpinBox)
|
||||||
|
self.FontFooterHeightSpinBox = QtGui.QSpinBox(
|
||||||
|
self.LocationFooterGroupBox)
|
||||||
self.FontFooterHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
self.FontFooterHeightSpinBox.setMinimumSize(QtCore.QSize(78, 0))
|
||||||
self.FontFooterHeightSpinBox.setMaximum(9999)
|
self.FontFooterHeightSpinBox.setMaximum(9999)
|
||||||
self.FontFooterHeightSpinBox.setObjectName(u'FontFooterHeightSpinBox')
|
self.FontFooterHeightSpinBox.setObjectName(u'FontFooterHeightSpinBox')
|
||||||
self.LocationFooterLayout.setWidget(4, QtGui.QFormLayout.FieldRole, self.FontFooterHeightSpinBox)
|
self.LocationFooterLayout.setWidget(
|
||||||
|
4, QtGui.QFormLayout.FieldRole, self.FontFooterHeightSpinBox)
|
||||||
self.FooterRightLayout.addWidget(self.LocationFooterGroupBox)
|
self.FooterRightLayout.addWidget(self.LocationFooterGroupBox)
|
||||||
spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem4 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.FooterRightLayout.addItem(spacerItem4)
|
self.FooterRightLayout.addItem(spacerItem4)
|
||||||
self.FontFooterLayout.addWidget(self.FooterRightWidget)
|
self.FontFooterLayout.addWidget(self.FooterRightWidget)
|
||||||
self.ThemeTabWidget.addTab(self.FontFooterTab, u'')
|
self.ThemeTabWidget.addTab(self.FontFooterTab, u'')
|
||||||
@ -432,23 +524,29 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.OutlineLayout.setObjectName(u'OutlineLayout')
|
self.OutlineLayout.setObjectName(u'OutlineLayout')
|
||||||
self.OutlineCheckBox = QtGui.QCheckBox(self.OutlineWidget)
|
self.OutlineCheckBox = QtGui.QCheckBox(self.OutlineWidget)
|
||||||
self.OutlineCheckBox.setObjectName(u'OutlineCheckBox')
|
self.OutlineCheckBox.setObjectName(u'OutlineCheckBox')
|
||||||
self.OutlineLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.OutlineCheckBox)
|
self.OutlineLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.OutlineCheckBox)
|
||||||
self.OutlineSpinBox = QtGui.QSpinBox(self.OutlineWidget)
|
self.OutlineSpinBox = QtGui.QSpinBox(self.OutlineWidget)
|
||||||
self.OutlineSpinBox.setObjectName("OutlineSpinBox")
|
self.OutlineSpinBox.setObjectName(u'OutlineSpinBox')
|
||||||
self.OutlineSpinBox.setMaximum(10)
|
self.OutlineSpinBox.setMaximum(10)
|
||||||
self.OutlineLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.OutlineSpinBox)
|
self.OutlineLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.OutlineSpinBox)
|
||||||
self.OutlineSpinBoxLabel = QtGui.QLabel(self.OutlineWidget)
|
self.OutlineSpinBoxLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
self.OutlineSpinBoxLabel.setObjectName(u'OutlineSpinBoxLabel')
|
self.OutlineSpinBoxLabel.setObjectName(u'OutlineSpinBoxLabel')
|
||||||
self.OutlineLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.OutlineSpinBoxLabel)
|
self.OutlineLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.OutlineSpinBoxLabel)
|
||||||
self.OutlineColorLabel = QtGui.QLabel(self.OutlineWidget)
|
self.OutlineColorLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
self.OutlineColorLabel.setObjectName(u'OutlineColorLabel')
|
self.OutlineColorLabel.setObjectName(u'OutlineColorLabel')
|
||||||
self.OutlineLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.OutlineColorLabel)
|
self.OutlineLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.OutlineColorLabel)
|
||||||
self.OutlineColorPushButton = QtGui.QPushButton(self.OutlineWidget)
|
self.OutlineColorPushButton = QtGui.QPushButton(self.OutlineWidget)
|
||||||
self.OutlineColorPushButton.setObjectName(u'OutlineColorPushButton')
|
self.OutlineColorPushButton.setObjectName(u'OutlineColorPushButton')
|
||||||
self.OutlineLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.OutlineColorPushButton)
|
self.OutlineLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.OutlineColorPushButton)
|
||||||
self.OutlineEnabledLabel = QtGui.QLabel(self.OutlineWidget)
|
self.OutlineEnabledLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
self.OutlineEnabledLabel.setObjectName(u'OutlineEnabledLabel')
|
self.OutlineEnabledLabel.setObjectName(u'OutlineEnabledLabel')
|
||||||
self.OutlineLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.OutlineEnabledLabel)
|
self.OutlineLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.OutlineEnabledLabel)
|
||||||
self.verticalLayout.addWidget(self.OutlineWidget)
|
self.verticalLayout.addWidget(self.OutlineWidget)
|
||||||
self.OptionsLeftLayout.addWidget(self.OutlineGroupBox)
|
self.OptionsLeftLayout.addWidget(self.OutlineGroupBox)
|
||||||
self.ShadowGroupBox = QtGui.QGroupBox(self.OptionsLeftWidget)
|
self.ShadowGroupBox = QtGui.QGroupBox(self.OptionsLeftWidget)
|
||||||
@ -465,26 +563,33 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.ShadowLayout.setObjectName(u'ShadowLayout')
|
self.ShadowLayout.setObjectName(u'ShadowLayout')
|
||||||
self.ShadowCheckBox = QtGui.QCheckBox(self.ShadowWidget)
|
self.ShadowCheckBox = QtGui.QCheckBox(self.ShadowWidget)
|
||||||
self.ShadowCheckBox.setObjectName(u'ShadowCheckBox')
|
self.ShadowCheckBox.setObjectName(u'ShadowCheckBox')
|
||||||
self.ShadowLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.ShadowCheckBox)
|
self.ShadowLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.ShadowCheckBox)
|
||||||
self.ShadowSpinBox = QtGui.QSpinBox(self.OutlineWidget)
|
self.ShadowSpinBox = QtGui.QSpinBox(self.OutlineWidget)
|
||||||
self.ShadowSpinBox.setObjectName("ShadowSpinBox")
|
self.ShadowSpinBox.setObjectName(u'ShadowSpinBox')
|
||||||
self.ShadowSpinBox.setMaximum(10)
|
self.ShadowSpinBox.setMaximum(10)
|
||||||
self.ShadowLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.ShadowSpinBox)
|
self.ShadowLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.ShadowSpinBox)
|
||||||
self.ShadowSpinBoxLabel = QtGui.QLabel(self.OutlineWidget)
|
self.ShadowSpinBoxLabel = QtGui.QLabel(self.OutlineWidget)
|
||||||
self.ShadowSpinBoxLabel.setObjectName(u'ShadowSpinBoxLabel')
|
self.ShadowSpinBoxLabel.setObjectName(u'ShadowSpinBoxLabel')
|
||||||
self.ShadowLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.ShadowSpinBoxLabel)
|
self.ShadowLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.ShadowSpinBoxLabel)
|
||||||
self.ShadowColorLabel = QtGui.QLabel(self.ShadowWidget)
|
self.ShadowColorLabel = QtGui.QLabel(self.ShadowWidget)
|
||||||
self.ShadowColorLabel.setObjectName(u'ShadowColorLabel')
|
self.ShadowColorLabel.setObjectName(u'ShadowColorLabel')
|
||||||
self.ShadowLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.ShadowColorLabel)
|
self.ShadowLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.LabelRole, self.ShadowColorLabel)
|
||||||
self.ShadowColorPushButton = QtGui.QPushButton(self.ShadowWidget)
|
self.ShadowColorPushButton = QtGui.QPushButton(self.ShadowWidget)
|
||||||
self.ShadowColorPushButton.setObjectName(u'ShadowColorPushButton')
|
self.ShadowColorPushButton.setObjectName(u'ShadowColorPushButton')
|
||||||
self.ShadowLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.ShadowColorPushButton)
|
self.ShadowLayout.setWidget(
|
||||||
|
2, QtGui.QFormLayout.FieldRole, self.ShadowColorPushButton)
|
||||||
self.ShadowEnabledLabel = QtGui.QLabel(self.ShadowWidget)
|
self.ShadowEnabledLabel = QtGui.QLabel(self.ShadowWidget)
|
||||||
self.ShadowEnabledLabel.setObjectName(u'ShadowEnabledLabel')
|
self.ShadowEnabledLabel.setObjectName(u'ShadowEnabledLabel')
|
||||||
self.ShadowLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.ShadowEnabledLabel)
|
self.ShadowLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.ShadowEnabledLabel)
|
||||||
self.verticalLayout.addWidget(self.ShadowWidget)
|
self.verticalLayout.addWidget(self.ShadowWidget)
|
||||||
self.OptionsLeftLayout.addWidget(self.ShadowGroupBox)
|
self.OptionsLeftLayout.addWidget(self.ShadowGroupBox)
|
||||||
spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem5 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.OptionsLeftLayout.addItem(spacerItem5)
|
self.OptionsLeftLayout.addItem(spacerItem5)
|
||||||
self.OtherOptionsLayout.addWidget(self.OptionsLeftWidget)
|
self.OtherOptionsLayout.addWidget(self.OptionsLeftWidget)
|
||||||
self.OptionsRightWidget = QtGui.QWidget(self.OtherOptionsTab)
|
self.OptionsRightWidget = QtGui.QWidget(self.OtherOptionsTab)
|
||||||
@ -520,14 +625,18 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.TransitionGroupBox.setObjectName(u'TransitionGroupBox')
|
self.TransitionGroupBox.setObjectName(u'TransitionGroupBox')
|
||||||
self.gridLayout_5 = QtGui.QGridLayout(self.TransitionGroupBox)
|
self.gridLayout_5 = QtGui.QGridLayout(self.TransitionGroupBox)
|
||||||
self.gridLayout_5.setObjectName(u'gridLayout_5')
|
self.gridLayout_5.setObjectName(u'gridLayout_5')
|
||||||
self.SlideTransitionCheckedBoxLabel = QtGui.QLabel(self.TransitionGroupBox)
|
self.SlideTransitionCheckedBoxLabel = QtGui.QLabel(
|
||||||
self.SlideTransitionCheckedBoxLabel.setObjectName(u'SlideTransitionCheckedBoxLabel')
|
self.TransitionGroupBox)
|
||||||
self.gridLayout_5.addWidget(self.SlideTransitionCheckedBoxLabel, 0, 0, 1, 1)
|
self.SlideTransitionCheckedBoxLabel.setObjectName(
|
||||||
|
u'SlideTransitionCheckedBoxLabel')
|
||||||
|
self.gridLayout_5.addWidget(
|
||||||
|
self.SlideTransitionCheckedBoxLabel, 0, 0, 1, 1)
|
||||||
self.SlideTransitionCheckedBox = QtGui.QCheckBox(self.AlignmentGroupBox)
|
self.SlideTransitionCheckedBox = QtGui.QCheckBox(self.AlignmentGroupBox)
|
||||||
self.SlideTransitionCheckedBox.setTristate(False)
|
self.SlideTransitionCheckedBox.setTristate(False)
|
||||||
self.gridLayout_5.addWidget(self.SlideTransitionCheckedBox, 0, 1, 1, 1)
|
self.gridLayout_5.addWidget(self.SlideTransitionCheckedBox, 0, 1, 1, 1)
|
||||||
self.OptionsRightLayout.addWidget(self.TransitionGroupBox)
|
self.OptionsRightLayout.addWidget(self.TransitionGroupBox)
|
||||||
spacerItem6 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem6 = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.OptionsRightLayout.addItem(spacerItem6)
|
self.OptionsRightLayout.addItem(spacerItem6)
|
||||||
self.OtherOptionsLayout.addWidget(self.OptionsRightWidget)
|
self.OtherOptionsLayout.addWidget(self.OptionsRightWidget)
|
||||||
self.ThemeTabWidget.addTab(self.OtherOptionsTab, u'')
|
self.ThemeTabWidget.addTab(self.OtherOptionsTab, u'')
|
||||||
@ -539,13 +648,16 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.ThemePreviewLayout.setSpacing(8)
|
self.ThemePreviewLayout.setSpacing(8)
|
||||||
self.ThemePreviewLayout.setMargin(8)
|
self.ThemePreviewLayout.setMargin(8)
|
||||||
self.ThemePreviewLayout.setObjectName(u'ThemePreviewLayout')
|
self.ThemePreviewLayout.setObjectName(u'ThemePreviewLayout')
|
||||||
spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
spacerItem7 = QtGui.QSpacerItem(
|
||||||
|
40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
||||||
self.ThemePreviewLayout.addItem(spacerItem7)
|
self.ThemePreviewLayout.addItem(spacerItem7)
|
||||||
self.ThemePreview = QtGui.QLabel(self.PreviewGroupBox)
|
self.ThemePreview = QtGui.QLabel(self.PreviewGroupBox)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.ThemePreview.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.ThemePreview.sizePolicy().hasHeightForWidth())
|
||||||
self.ThemePreview.setSizePolicy(sizePolicy)
|
self.ThemePreview.setSizePolicy(sizePolicy)
|
||||||
self.ThemePreview.setMaximumSize(QtCore.QSize(300, 225))
|
self.ThemePreview.setMaximumSize(QtCore.QSize(300, 225))
|
||||||
self.ThemePreview.setFrameShape(QtGui.QFrame.WinPanel)
|
self.ThemePreview.setFrameShape(QtGui.QFrame.WinPanel)
|
||||||
@ -554,88 +666,142 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.ThemePreview.setScaledContents(True)
|
self.ThemePreview.setScaledContents(True)
|
||||||
self.ThemePreview.setObjectName(u'ThemePreview')
|
self.ThemePreview.setObjectName(u'ThemePreview')
|
||||||
self.ThemePreviewLayout.addWidget(self.ThemePreview)
|
self.ThemePreviewLayout.addWidget(self.ThemePreview)
|
||||||
spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
spacerItem8 = QtGui.QSpacerItem(
|
||||||
|
40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
|
||||||
self.ThemePreviewLayout.addItem(spacerItem8)
|
self.ThemePreviewLayout.addItem(spacerItem8)
|
||||||
self.AmendThemeLayout.addWidget(self.PreviewGroupBox)
|
self.AmendThemeLayout.addWidget(self.PreviewGroupBox)
|
||||||
self.ThemeButtonBox = QtGui.QDialogButtonBox(AmendThemeDialog)
|
self.ThemeButtonBox = QtGui.QDialogButtonBox(AmendThemeDialog)
|
||||||
self.ThemeButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
self.ThemeButtonBox.setStandardButtons(
|
||||||
|
QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
|
||||||
self.ThemeButtonBox.setObjectName(u'ThemeButtonBox')
|
self.ThemeButtonBox.setObjectName(u'ThemeButtonBox')
|
||||||
self.AmendThemeLayout.addWidget(self.ThemeButtonBox)
|
self.AmendThemeLayout.addWidget(self.ThemeButtonBox)
|
||||||
|
|
||||||
self.retranslateUi(AmendThemeDialog)
|
self.retranslateUi(AmendThemeDialog)
|
||||||
self.ThemeTabWidget.setCurrentIndex(0)
|
self.ThemeTabWidget.setCurrentIndex(0)
|
||||||
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL(u'accepted()'), AmendThemeDialog.accept)
|
QtCore.QObject.connect(self.ThemeButtonBox,
|
||||||
QtCore.QObject.connect(self.ThemeButtonBox, QtCore.SIGNAL(u'rejected()'), AmendThemeDialog.reject)
|
QtCore.SIGNAL(u'accepted()'), AmendThemeDialog.accept)
|
||||||
|
QtCore.QObject.connect(self.ThemeButtonBox,
|
||||||
|
QtCore.SIGNAL(u'rejected()'), AmendThemeDialog.reject)
|
||||||
QtCore.QMetaObject.connectSlotsByName(AmendThemeDialog)
|
QtCore.QMetaObject.connectSlotsByName(AmendThemeDialog)
|
||||||
AmendThemeDialog.setTabOrder(self.ThemeButtonBox, self.ThemeNameEdit)
|
AmendThemeDialog.setTabOrder(self.ThemeButtonBox, self.ThemeNameEdit)
|
||||||
AmendThemeDialog.setTabOrder(self.ThemeNameEdit, self.ThemeTabWidget)
|
AmendThemeDialog.setTabOrder(self.ThemeNameEdit, self.ThemeTabWidget)
|
||||||
AmendThemeDialog.setTabOrder(self.ThemeTabWidget, self.BackgroundComboBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.BackgroundComboBox, self.BackgroundTypeComboBox)
|
self.ThemeTabWidget, self.BackgroundComboBox)
|
||||||
AmendThemeDialog.setTabOrder(self.BackgroundTypeComboBox, self.Color1PushButton)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.Color1PushButton, self.Color2PushButton)
|
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.Color2PushButton, self.ImageLineEdit)
|
||||||
AmendThemeDialog.setTabOrder(self.ImageLineEdit, self.ImageToolButton)
|
AmendThemeDialog.setTabOrder(self.ImageLineEdit, self.ImageToolButton)
|
||||||
AmendThemeDialog.setTabOrder(self.ImageToolButton, self.GradientComboBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.GradientComboBox, self.FontMainComboBox)
|
self.ImageToolButton, self.GradientComboBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainComboBox, self.FontMainColorPushButton)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainColorPushButton, self.FontMainSizeSpinBox)
|
self.GradientComboBox, self.FontMainComboBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainSizeSpinBox, self.FontMainWeightComboBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainWeightComboBox, self.FontMainLineSpacingSpinBox)
|
self.FontMainComboBox, self.FontMainColorPushButton)
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainLineSpacingSpinBox, self.FontMainDefaultCheckBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainDefaultCheckBox, self.FontMainXSpinBox)
|
self.FontMainColorPushButton, self.FontMainSizeSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainXSpinBox, self.FontMainYSpinBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainYSpinBox, self.FontMainWidthSpinBox)
|
self.FontMainSizeSpinBox, self.FontMainWeightComboBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainWidthSpinBox, self.FontMainHeightSpinBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontMainHeightSpinBox, self.FontFooterComboBox)
|
self.FontMainWeightComboBox, self.FontMainLineSpacingSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterComboBox, self.FontFooterColorPushButton)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterColorPushButton, self.FontFooterSizeSpinBox)
|
self.FontMainLineSpacingSpinBox, self.FontMainDefaultCheckBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterSizeSpinBox, self.FontFooterWeightComboBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterWeightComboBox, self.FontFooterDefaultCheckBox)
|
self.FontMainDefaultCheckBox, self.FontMainXSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterDefaultCheckBox, self.FontFooterXSpinBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterXSpinBox, self.FontFooterYSpinBox)
|
self.FontMainXSpinBox, self.FontMainYSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterYSpinBox, self.FontFooterWidthSpinBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterWidthSpinBox, self.FontFooterHeightSpinBox)
|
self.FontMainYSpinBox, self.FontMainWidthSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.FontFooterHeightSpinBox, self.OutlineCheckBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.OutlineCheckBox, self.OutlineColorPushButton)
|
self.FontMainWidthSpinBox, self.FontMainHeightSpinBox)
|
||||||
AmendThemeDialog.setTabOrder(self.OutlineColorPushButton, self.ShadowCheckBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.ShadowCheckBox, self.ShadowColorPushButton)
|
self.FontMainHeightSpinBox, self.FontFooterComboBox)
|
||||||
AmendThemeDialog.setTabOrder(self.ShadowColorPushButton, self.HorizontalComboBox)
|
AmendThemeDialog.setTabOrder(
|
||||||
AmendThemeDialog.setTabOrder(self.HorizontalComboBox, self.VerticalComboBox)
|
self.FontFooterComboBox, self.FontFooterColorPushButton)
|
||||||
|
AmendThemeDialog.setTabOrder(
|
||||||
|
self.FontFooterColorPushButton, self.FontFooterSizeSpinBox)
|
||||||
|
AmendThemeDialog.setTabOrder(
|
||||||
|
self.FontFooterSizeSpinBox, self.FontFooterWeightComboBox)
|
||||||
|
AmendThemeDialog.setTabOrder(
|
||||||
|
self.FontFooterWeightComboBox, 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(translate('AmendThemeForm', 'Theme Maintenance'))
|
AmendThemeDialog.setWindowTitle(
|
||||||
|
translate('AmendThemeForm', 'Theme Maintenance'))
|
||||||
self.ThemeNameLabel.setText(translate('AmendThemeForm', 'Theme Name:'))
|
self.ThemeNameLabel.setText(translate('AmendThemeForm', 'Theme Name:'))
|
||||||
self.BackgroundLabel.setText(translate('AmendThemeForm', 'Background:'))
|
self.BackgroundLabel.setText(translate('AmendThemeForm', 'Background:'))
|
||||||
self.BackgroundComboBox.setItemText(0, translate('AmendThemeForm', 'Opaque'))
|
self.BackgroundComboBox.setItemText(0,
|
||||||
self.BackgroundComboBox.setItemText(1, translate('AmendThemeForm', 'Transparent'))
|
translate('AmendThemeForm', 'Opaque'))
|
||||||
self.BackgroundTypeLabel.setText(translate('AmendThemeForm', 'Background Type:'))
|
self.BackgroundComboBox.setItemText(1,
|
||||||
self.BackgroundTypeComboBox.setItemText(0, translate('AmendThemeForm', 'Solid Color'))
|
translate('AmendThemeForm', 'Transparent'))
|
||||||
self.BackgroundTypeComboBox.setItemText(1, translate('AmendThemeForm', 'Gradient'))
|
self.BackgroundTypeLabel.setText(
|
||||||
self.BackgroundTypeComboBox.setItemText(2, translate('AmendThemeForm', 'Image'))
|
translate('AmendThemeForm', 'Background Type:'))
|
||||||
|
self.BackgroundTypeComboBox.setItemText(0,
|
||||||
|
translate('AmendThemeForm', 'Solid Color'))
|
||||||
|
self.BackgroundTypeComboBox.setItemText(1,
|
||||||
|
translate('AmendThemeForm', 'Gradient'))
|
||||||
|
self.BackgroundTypeComboBox.setItemText(2,
|
||||||
|
translate('AmendThemeForm', 'Image'))
|
||||||
self.Color1Label.setText(translate('AmendThemeForm', '<Color1>'))
|
self.Color1Label.setText(translate('AmendThemeForm', '<Color1>'))
|
||||||
self.Color2Label.setText(translate('AmendThemeForm', '<Color2>'))
|
self.Color2Label.setText(translate('AmendThemeForm', '<Color2>'))
|
||||||
self.ImageLabel.setText(translate('AmendThemeForm', 'Image:'))
|
self.ImageLabel.setText(translate('AmendThemeForm', 'Image:'))
|
||||||
self.GradientLabel.setText(translate('AmendThemeForm', 'Gradient :'))
|
self.GradientLabel.setText(translate('AmendThemeForm', 'Gradient :'))
|
||||||
self.GradientComboBox.setItemText(0, translate('AmendThemeForm', 'Horizontal'))
|
self.GradientComboBox.setItemText(0,
|
||||||
self.GradientComboBox.setItemText(1, translate('AmendThemeForm', 'Vertical'))
|
translate('AmendThemeForm', 'Horizontal'))
|
||||||
self.GradientComboBox.setItemText(2, translate('AmendThemeForm', 'Circular'))
|
self.GradientComboBox.setItemText(1,
|
||||||
|
translate('AmendThemeForm', 'Vertical'))
|
||||||
|
self.GradientComboBox.setItemText(2,
|
||||||
|
translate('AmendThemeForm', 'Circular'))
|
||||||
self.ThemeTabWidget.setTabText(
|
self.ThemeTabWidget.setTabText(
|
||||||
self.ThemeTabWidget.indexOf(self.BackgroundTab),
|
self.ThemeTabWidget.indexOf(self.BackgroundTab),
|
||||||
translate('AmendThemeForm', 'Background'))
|
translate('AmendThemeForm', 'Background'))
|
||||||
self.FontMainGroupBox.setTitle(translate('AmendThemeForm', 'Main Font'))
|
self.FontMainGroupBox.setTitle(translate('AmendThemeForm', 'Main Font'))
|
||||||
self.FontMainlabel.setText(translate('AmendThemeForm', 'Font:'))
|
self.FontMainlabel.setText(translate('AmendThemeForm', 'Font:'))
|
||||||
self.FontMainColorLabel.setText(translate('AmendThemeForm', 'Font Color:'))
|
self.FontMainColorLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Font Color:'))
|
||||||
self.FontMainSize.setText(translate('AmendThemeForm', 'Size:'))
|
self.FontMainSize.setText(translate('AmendThemeForm', 'Size:'))
|
||||||
self.FontMainSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt'))
|
self.FontMainSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt'))
|
||||||
self.FontMainWrapIndentationLabel.setText(translate('AmendThemeForm', 'Wrap Indentation'))
|
self.FontMainWrapIndentationLabel.setText(
|
||||||
self.FontMainWrapLineAdjustmentLabel.setText(translate('AmendThemeForm', 'Adjust Line Spacing'))
|
translate('AmendThemeForm', 'Wrap Indentation'))
|
||||||
self.FontMainWeightComboBox.setItemText(0, translate('AmendThemeForm', 'Normal'))
|
self.FontMainWrapLineAdjustmentLabel.setText(
|
||||||
self.FontMainWeightComboBox.setItemText(1, translate('AmendThemeForm', 'Bold'))
|
translate('AmendThemeForm', 'Adjust Line Spacing'))
|
||||||
self.FontMainWeightComboBox.setItemText(2, translate('AmendThemeForm', 'Italics'))
|
self.FontMainWeightComboBox.setItemText(0,
|
||||||
self.FontMainWeightComboBox.setItemText(3, translate('AmendThemeForm', 'Bold/Italics'))
|
translate('AmendThemeForm', 'Normal'))
|
||||||
self.FontMainWeightLabel.setText(translate('AmendThemeForm', 'Font Weight:'))
|
self.FontMainWeightComboBox.setItemText(1,
|
||||||
self.MainLocationGroupBox.setTitle(translate('AmendThemeForm', 'Display Location'))
|
translate('AmendThemeForm', 'Bold'))
|
||||||
self.DefaultLocationLabel.setText(translate('AmendThemeForm', 'Use Default Location:'))
|
self.FontMainWeightComboBox.setItemText(2,
|
||||||
|
translate('AmendThemeForm', 'Italics'))
|
||||||
|
self.FontMainWeightComboBox.setItemText(3,
|
||||||
|
translate('AmendThemeForm', 'Bold/Italics'))
|
||||||
|
self.FontMainWeightLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Font Weight:'))
|
||||||
|
self.MainLocationGroupBox.setTitle(
|
||||||
|
translate('AmendThemeForm', 'Display Location'))
|
||||||
|
self.DefaultLocationLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Use Default Location:'))
|
||||||
self.FontMainXLabel.setText(translate('AmendThemeForm', 'X Position:'))
|
self.FontMainXLabel.setText(translate('AmendThemeForm', 'X Position:'))
|
||||||
self.FontMainYLabel.setText(translate('AmendThemeForm', 'Y Position:'))
|
self.FontMainYLabel.setText(translate('AmendThemeForm', 'Y Position:'))
|
||||||
self.FontMainWidthLabel.setText(translate('AmendThemeForm', 'Width:'))
|
self.FontMainWidthLabel.setText(translate('AmendThemeForm', 'Width:'))
|
||||||
@ -647,51 +813,81 @@ class Ui_AmendThemeDialog(object):
|
|||||||
self.ThemeTabWidget.setTabText(
|
self.ThemeTabWidget.setTabText(
|
||||||
self.ThemeTabWidget.indexOf(self.FontMainTab),
|
self.ThemeTabWidget.indexOf(self.FontMainTab),
|
||||||
translate('AmendThemeForm', 'Font Main'))
|
translate('AmendThemeForm', 'Font Main'))
|
||||||
self.FooterFontGroupBox.setTitle(translate('AmendThemeForm', 'Footer Font'))
|
self.FooterFontGroupBox.setTitle(
|
||||||
|
translate('AmendThemeForm', 'Footer Font'))
|
||||||
self.FontFooterLabel.setText(translate('AmendThemeForm', 'Font:'))
|
self.FontFooterLabel.setText(translate('AmendThemeForm', 'Font:'))
|
||||||
self.FontFooterColorLabel.setText(translate('AmendThemeForm', 'Font Color:'))
|
self.FontFooterColorLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Font Color:'))
|
||||||
self.FontFooterSizeLabel.setText(translate('AmendThemeForm', 'Size:'))
|
self.FontFooterSizeLabel.setText(translate('AmendThemeForm', 'Size:'))
|
||||||
self.FontFooterSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt'))
|
self.FontFooterSizeSpinBox.setSuffix(translate('AmendThemeForm', 'pt'))
|
||||||
self.FontFooterWeightComboBox.setItemText(0, translate('AmendThemeForm', 'Normal'))
|
self.FontFooterWeightComboBox.setItemText(0,
|
||||||
self.FontFooterWeightComboBox.setItemText(1, translate('AmendThemeForm', 'Bold'))
|
translate('AmendThemeForm', 'Normal'))
|
||||||
self.FontFooterWeightComboBox.setItemText(2, translate('AmendThemeForm', 'Italics'))
|
self.FontFooterWeightComboBox.setItemText(1,
|
||||||
self.FontFooterWeightComboBox.setItemText(3, translate('AmendThemeForm', 'Bold/Italics'))
|
translate('AmendThemeForm', 'Bold'))
|
||||||
self.FontFooterWeightLabel.setText(translate('AmendThemeForm', 'Font Weight:'))
|
self.FontFooterWeightComboBox.setItemText(2,
|
||||||
self.LocationFooterGroupBox.setTitle(translate('AmendThemeForm', 'Display Location'))
|
translate('AmendThemeForm', 'Italics'))
|
||||||
self.FontFooterDefaultLabel.setText(translate('AmendThemeForm', 'Use Default Location:'))
|
self.FontFooterWeightComboBox.setItemText(3,
|
||||||
self.FontFooterXLabel.setText(translate('AmendThemeForm', 'X Position:'))
|
translate('AmendThemeForm', 'Bold/Italics'))
|
||||||
self.FontFooterYLabel.setText(translate('AmendThemeForm', 'Y Position:'))
|
self.FontFooterWeightLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Font Weight:'))
|
||||||
|
self.LocationFooterGroupBox.setTitle(
|
||||||
|
translate('AmendThemeForm', 'Display Location'))
|
||||||
|
self.FontFooterDefaultLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Use Default Location:'))
|
||||||
|
self.FontFooterXLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'X Position:'))
|
||||||
|
self.FontFooterYLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Y Position:'))
|
||||||
self.FontFooterWidthLabel.setText(translate('AmendThemeForm', 'Width:'))
|
self.FontFooterWidthLabel.setText(translate('AmendThemeForm', 'Width:'))
|
||||||
self.FontFooterHeightLabel.setText(translate('AmendThemeForm', 'Height:'))
|
self.FontFooterHeightLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Height:'))
|
||||||
self.FontFooterXSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.FontFooterXSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
||||||
self.FontFooterYSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.FontFooterYSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
||||||
self.FontFooterWidthSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.FontFooterWidthSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
||||||
self.FontFooterHeightSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.FontFooterHeightSpinBox.setSuffix(
|
||||||
|
translate('AmendThemeForm', 'px'))
|
||||||
self.ThemeTabWidget.setTabText(
|
self.ThemeTabWidget.setTabText(
|
||||||
self.ThemeTabWidget.indexOf(self.FontFooterTab),
|
self.ThemeTabWidget.indexOf(self.FontFooterTab),
|
||||||
translate('AmendThemeForm', 'Font Footer'))
|
translate('AmendThemeForm', 'Font Footer'))
|
||||||
self.OutlineGroupBox.setTitle(translate('AmendThemeForm', 'Outline'))
|
self.OutlineGroupBox.setTitle(translate('AmendThemeForm', 'Outline'))
|
||||||
self.OutlineSpinBoxLabel.setText(translate('AmendThemeForm', 'Outline Size:'))
|
self.OutlineSpinBoxLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Outline Size:'))
|
||||||
self.OutlineSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.OutlineSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
||||||
self.OutlineColorLabel.setText(translate('AmendThemeForm', 'Outline Color:'))
|
self.OutlineColorLabel.setText(
|
||||||
self.OutlineEnabledLabel.setText(translate('AmendThemeForm', 'Show Outline:'))
|
translate('AmendThemeForm', 'Outline Color:'))
|
||||||
|
self.OutlineEnabledLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Show Outline:'))
|
||||||
self.ShadowGroupBox.setTitle(translate('AmendThemeForm', 'Shadow'))
|
self.ShadowGroupBox.setTitle(translate('AmendThemeForm', 'Shadow'))
|
||||||
self.ShadowSpinBoxLabel.setText(translate('AmendThemeForm', 'Shadow Size:'))
|
self.ShadowSpinBoxLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Shadow Size:'))
|
||||||
self.ShadowSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
self.ShadowSpinBox.setSuffix(translate('AmendThemeForm', 'px'))
|
||||||
self.ShadowColorLabel.setText(translate('AmendThemeForm', 'Shadow Color:'))
|
self.ShadowColorLabel.setText(
|
||||||
self.ShadowEnabledLabel.setText(translate('AmendThemeForm', 'Show Shadow:'))
|
translate('AmendThemeForm', 'Shadow Color:'))
|
||||||
self.AlignmentGroupBox.setTitle(translate('AmendThemeForm', 'Alignment'))
|
self.ShadowEnabledLabel.setText(
|
||||||
self.HorizontalLabel.setText(translate('AmendThemeForm', 'Horizontal Align:'))
|
translate('AmendThemeForm', 'Show Shadow:'))
|
||||||
self.HorizontalComboBox.setItemText(0, translate('AmendThemeForm', 'Left'))
|
self.AlignmentGroupBox.setTitle(
|
||||||
self.HorizontalComboBox.setItemText(1, translate('AmendThemeForm', 'Right'))
|
translate('AmendThemeForm', 'Alignment'))
|
||||||
self.HorizontalComboBox.setItemText(2, translate('AmendThemeForm', 'Center'))
|
self.HorizontalLabel.setText(
|
||||||
self.VerticalLabel.setText(translate('AmendThemeForm', 'Vertical Align:'))
|
translate('AmendThemeForm', 'Horizontal Align:'))
|
||||||
|
self.HorizontalComboBox.setItemText(0,
|
||||||
|
translate('AmendThemeForm', 'Left'))
|
||||||
|
self.HorizontalComboBox.setItemText(1,
|
||||||
|
translate('AmendThemeForm', 'Right'))
|
||||||
|
self.HorizontalComboBox.setItemText(2,
|
||||||
|
translate('AmendThemeForm', 'Center'))
|
||||||
|
self.VerticalLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Vertical Align:'))
|
||||||
self.VerticalComboBox.setItemText(0, translate('AmendThemeForm', 'Top'))
|
self.VerticalComboBox.setItemText(0, translate('AmendThemeForm', 'Top'))
|
||||||
self.VerticalComboBox.setItemText(1, translate('AmendThemeForm', 'Middle'))
|
self.VerticalComboBox.setItemText(1,
|
||||||
self.VerticalComboBox.setItemText(2, translate('AmendThemeForm', 'Bottom'))
|
translate('AmendThemeForm', 'Middle'))
|
||||||
self.TransitionGroupBox.setTitle(translate('AmendThemeForm', 'Slide Transition'))
|
self.VerticalComboBox.setItemText(2,
|
||||||
self.SlideTransitionCheckedBoxLabel.setText(translate('AmendThemeForm', 'Transition Active:'))
|
translate('AmendThemeForm', 'Bottom'))
|
||||||
|
self.TransitionGroupBox.setTitle(
|
||||||
|
translate('AmendThemeForm', 'Slide Transition'))
|
||||||
|
self.SlideTransitionCheckedBoxLabel.setText(
|
||||||
|
translate('AmendThemeForm', 'Transition Active:'))
|
||||||
self.ThemeTabWidget.setTabText(
|
self.ThemeTabWidget.setTabText(
|
||||||
self.ThemeTabWidget.indexOf(self.OtherOptionsTab),
|
self.ThemeTabWidget.indexOf(self.OtherOptionsTab),
|
||||||
translate('AmendThemeForm', 'Other Options'))
|
translate('AmendThemeForm', 'Other Options'))
|
||||||
self.PreviewGroupBox.setTitle(translate('AmendThemeForm', 'Preview'))
|
self.PreviewGroupBox.setTitle(translate('AmendThemeForm', 'Preview'))
|
||||||
|
|
||||||
|
@ -100,10 +100,12 @@ class Ui_PluginViewDialog(object):
|
|||||||
|
|
||||||
def retranslateUi(self, PluginViewDialog):
|
def retranslateUi(self, PluginViewDialog):
|
||||||
PluginViewDialog.setWindowTitle(translate('PluginForm', 'Plugin List'))
|
PluginViewDialog.setWindowTitle(translate('PluginForm', 'Plugin List'))
|
||||||
self.PluginInfoGroupBox.setTitle(translate('PluginForm', 'Plugin Details'))
|
self.PluginInfoGroupBox.setTitle(
|
||||||
|
translate('PluginForm', 'Plugin Details'))
|
||||||
self.VersionLabel.setText(translate('PluginForm', 'Version:'))
|
self.VersionLabel.setText(translate('PluginForm', 'Version:'))
|
||||||
self.VersionNumberLabel.setText(translate('PluginForm', 'TextLabel'))
|
self.VersionNumberLabel.setText(translate('PluginForm', 'TextLabel'))
|
||||||
self.AboutLabel.setText(translate('PluginForm', 'About:'))
|
self.AboutLabel.setText(translate('PluginForm', 'About:'))
|
||||||
self.StatusLabel.setText(translate('PluginForm', 'Status:'))
|
self.StatusLabel.setText(translate('PluginForm', 'Status:'))
|
||||||
self.StatusComboBox.setItemText(0, translate('PluginForm', 'Active'))
|
self.StatusComboBox.setItemText(0, translate('PluginForm', 'Active'))
|
||||||
self.StatusComboBox.setItemText(1, translate('PluginForm', 'Inactive'))
|
self.StatusComboBox.setItemText(1, translate('PluginForm', 'Inactive'))
|
||||||
|
|
||||||
|
@ -67,7 +67,8 @@ class Ui_ServiceItemEditDialog(object):
|
|||||||
QtCore.QMetaObject.connectSlotsByName(ServiceItemEditDialog)
|
QtCore.QMetaObject.connectSlotsByName(ServiceItemEditDialog)
|
||||||
|
|
||||||
def retranslateUi(self, ServiceItemEditDialog):
|
def retranslateUi(self, ServiceItemEditDialog):
|
||||||
ServiceItemEditDialog.setWindowTitle(translate('ServiceItemEditForm', 'Service Item Maintenance'))
|
ServiceItemEditDialog.setWindowTitle(
|
||||||
|
translate('ServiceItemEditForm', 'Service Item Maintenance'))
|
||||||
self.upButton.setText(translate('ServiceItemEditForm', 'Up'))
|
self.upButton.setText(translate('ServiceItemEditForm', 'Up'))
|
||||||
self.deleteButton.setText(translate('ServiceItemEditForm', 'Delete'))
|
self.deleteButton.setText(translate('ServiceItemEditForm', 'Delete'))
|
||||||
self.downButton.setText(translate('ServiceItemEditForm', 'Down'))
|
self.downButton.setText(translate('ServiceItemEditForm', 'Down'))
|
||||||
|
@ -39,7 +39,8 @@ class Ui_ServiceNoteEdit(object):
|
|||||||
self.textEdit.setObjectName(u'textEdit')
|
self.textEdit.setObjectName(u'textEdit')
|
||||||
self.verticalLayout.addWidget(self.textEdit)
|
self.verticalLayout.addWidget(self.textEdit)
|
||||||
self.buttonBox = QtGui.QDialogButtonBox(self.widget)
|
self.buttonBox = QtGui.QDialogButtonBox(self.widget)
|
||||||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
|
self.buttonBox.setStandardButtons(
|
||||||
|
QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
|
||||||
self.buttonBox.setObjectName(u'buttonBox')
|
self.buttonBox.setObjectName(u'buttonBox')
|
||||||
self.verticalLayout.addWidget(self.buttonBox)
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
@ -47,4 +48,6 @@ class Ui_ServiceNoteEdit(object):
|
|||||||
QtCore.QMetaObject.connectSlotsByName(ServiceNoteEdit)
|
QtCore.QMetaObject.connectSlotsByName(ServiceNoteEdit)
|
||||||
|
|
||||||
def retranslateUi(self, ServiceNoteEdit):
|
def retranslateUi(self, ServiceNoteEdit):
|
||||||
ServiceNoteEdit.setWindowTitle(translate('ServiceNoteForm', 'Service Item Notes'))
|
ServiceNoteEdit.setWindowTitle(
|
||||||
|
translate('ServiceNoteForm', 'Service Item Notes'))
|
||||||
|
|
||||||
|
@ -777,7 +777,8 @@ class SlideController(QtGui.QWidget):
|
|||||||
def updatePreview(self):
|
def updatePreview(self):
|
||||||
rm = self.parent.RenderManager
|
rm = self.parent.RenderManager
|
||||||
if not rm.screens.current[u'primary']:
|
if not rm.screens.current[u'primary']:
|
||||||
# Grab now, but try again in a couple of seconds if slide change is slow
|
# Grab now, but try again in a couple of seconds if slide change
|
||||||
|
# is slow
|
||||||
QtCore.QTimer.singleShot(0.5, self.grabMainDisplay)
|
QtCore.QTimer.singleShot(0.5, self.grabMainDisplay)
|
||||||
QtCore.QTimer.singleShot(2.5, self.grabMainDisplay)
|
QtCore.QTimer.singleShot(2.5, self.grabMainDisplay)
|
||||||
else:
|
else:
|
||||||
|
@ -184,16 +184,14 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
else:
|
else:
|
||||||
for plugin in self.parent.plugin_manager.plugins:
|
for plugin in self.parent.plugin_manager.plugins:
|
||||||
if not plugin.can_delete_theme(theme):
|
if not plugin.can_delete_theme(theme):
|
||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(self, self.trUtf8('Error'),
|
||||||
self, self.trUtf8('Error'),
|
self.trUtf8('Theme %s is use in %s plugin' % (theme,
|
||||||
self.trUtf8('Theme %s is use in %s plugin' % (theme, plugin.name)),
|
plugin.name)))
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
|
||||||
return
|
return
|
||||||
if unicode(self.parent.ServiceManagerContents.ThemeComboBox.currentText()) == theme:
|
if unicode(self.parent.ServiceManagerContents.ThemeComboBox.currentText()) == theme:
|
||||||
QtGui.QMessageBox.critical(
|
QtGui.QMessageBox.critical(self, self.trUtf8('Error'),
|
||||||
self, self.trUtf8('Error'),
|
self.trUtf8('Theme %s is use by Service Manager' %
|
||||||
self.trUtf8('Theme %s is use by Service Manager' % theme),
|
theme))
|
||||||
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.Ok))
|
|
||||||
return
|
return
|
||||||
self.themelist.remove(theme)
|
self.themelist.remove(theme)
|
||||||
th = theme + u'.png'
|
th = theme + u'.png'
|
||||||
|
@ -31,7 +31,8 @@ class Ui_AlertDialog(object):
|
|||||||
AlertDialog.setObjectName(u'AlertDialog')
|
AlertDialog.setObjectName(u'AlertDialog')
|
||||||
AlertDialog.resize(567, 440)
|
AlertDialog.resize(567, 440)
|
||||||
icon = QtGui.QIcon()
|
icon = QtGui.QIcon()
|
||||||
icon.addPixmap(QtGui.QPixmap(u':/icon/openlp.org-icon-32.bmp'), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon.addPixmap(QtGui.QPixmap(u':/icon/openlp.org-icon-32.bmp'),
|
||||||
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
AlertDialog.setWindowIcon(icon)
|
AlertDialog.setWindowIcon(icon)
|
||||||
self.AlertDialogLayout = QtGui.QVBoxLayout(AlertDialog)
|
self.AlertDialogLayout = QtGui.QVBoxLayout(AlertDialog)
|
||||||
self.AlertDialogLayout.setSpacing(8)
|
self.AlertDialogLayout.setSpacing(8)
|
||||||
@ -42,22 +43,28 @@ class Ui_AlertDialog(object):
|
|||||||
self.AlertTextLayout.setSpacing(8)
|
self.AlertTextLayout.setSpacing(8)
|
||||||
self.AlertTextLayout.setObjectName(u'AlertTextLayout')
|
self.AlertTextLayout.setObjectName(u'AlertTextLayout')
|
||||||
self.AlertEntryLabel = QtGui.QLabel(AlertDialog)
|
self.AlertEntryLabel = QtGui.QLabel(AlertDialog)
|
||||||
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
|
sizePolicy = QtGui.QSizePolicy(
|
||||||
|
QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
|
||||||
sizePolicy.setHorizontalStretch(0)
|
sizePolicy.setHorizontalStretch(0)
|
||||||
sizePolicy.setVerticalStretch(0)
|
sizePolicy.setVerticalStretch(0)
|
||||||
sizePolicy.setHeightForWidth(self.AlertEntryLabel.sizePolicy().hasHeightForWidth())
|
sizePolicy.setHeightForWidth(
|
||||||
|
self.AlertEntryLabel.sizePolicy().hasHeightForWidth())
|
||||||
self.AlertEntryLabel.setSizePolicy(sizePolicy)
|
self.AlertEntryLabel.setSizePolicy(sizePolicy)
|
||||||
self.AlertEntryLabel.setObjectName(u'AlertEntryLabel')
|
self.AlertEntryLabel.setObjectName(u'AlertEntryLabel')
|
||||||
self.AlertTextLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.AlertEntryLabel)
|
self.AlertTextLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.LabelRole, self.AlertEntryLabel)
|
||||||
self.AlertParameter = QtGui.QLabel(AlertDialog)
|
self.AlertParameter = QtGui.QLabel(AlertDialog)
|
||||||
self.AlertParameter.setObjectName(u'AlertParameter')
|
self.AlertParameter.setObjectName(u'AlertParameter')
|
||||||
self.AlertTextLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.AlertParameter)
|
self.AlertTextLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.LabelRole, self.AlertParameter)
|
||||||
self.ParameterEdit = QtGui.QLineEdit(AlertDialog)
|
self.ParameterEdit = QtGui.QLineEdit(AlertDialog)
|
||||||
self.ParameterEdit.setObjectName(u'ParameterEdit')
|
self.ParameterEdit.setObjectName(u'ParameterEdit')
|
||||||
self.AlertTextLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.ParameterEdit)
|
self.AlertTextLayout.setWidget(
|
||||||
|
1, QtGui.QFormLayout.FieldRole, self.ParameterEdit)
|
||||||
self.AlertTextEdit = QtGui.QLineEdit(AlertDialog)
|
self.AlertTextEdit = QtGui.QLineEdit(AlertDialog)
|
||||||
self.AlertTextEdit.setObjectName(u'AlertTextEdit')
|
self.AlertTextEdit.setObjectName(u'AlertTextEdit')
|
||||||
self.AlertTextLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.AlertTextEdit)
|
self.AlertTextLayout.setWidget(
|
||||||
|
0, QtGui.QFormLayout.FieldRole, self.AlertTextEdit)
|
||||||
self.AlertDialogLayout.addLayout(self.AlertTextLayout)
|
self.AlertDialogLayout.addLayout(self.AlertTextLayout)
|
||||||
self.ManagementLayout = QtGui.QHBoxLayout()
|
self.ManagementLayout = QtGui.QHBoxLayout()
|
||||||
self.ManagementLayout.setSpacing(8)
|
self.ManagementLayout.setSpacing(8)
|
||||||
@ -72,24 +79,28 @@ class Ui_AlertDialog(object):
|
|||||||
self.ManageButtonLayout.setObjectName(u'ManageButtonLayout')
|
self.ManageButtonLayout.setObjectName(u'ManageButtonLayout')
|
||||||
self.NewButton = QtGui.QPushButton(AlertDialog)
|
self.NewButton = QtGui.QPushButton(AlertDialog)
|
||||||
icon1 = QtGui.QIcon()
|
icon1 = QtGui.QIcon()
|
||||||
icon1.addPixmap(QtGui.QPixmap(u':/general/general_new.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon1.addPixmap(QtGui.QPixmap(u':/general/general_new.png'),
|
||||||
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.NewButton.setIcon(icon1)
|
self.NewButton.setIcon(icon1)
|
||||||
self.NewButton.setObjectName(u'NewButton')
|
self.NewButton.setObjectName(u'NewButton')
|
||||||
self.ManageButtonLayout.addWidget(self.NewButton)
|
self.ManageButtonLayout.addWidget(self.NewButton)
|
||||||
self.SaveButton = QtGui.QPushButton(AlertDialog)
|
self.SaveButton = QtGui.QPushButton(AlertDialog)
|
||||||
self.SaveButton.setEnabled(False)
|
self.SaveButton.setEnabled(False)
|
||||||
icon2 = QtGui.QIcon()
|
icon2 = QtGui.QIcon()
|
||||||
icon2.addPixmap(QtGui.QPixmap(u':/general/general_save.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon2.addPixmap(QtGui.QPixmap(u':/general/general_save.png'),
|
||||||
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.SaveButton.setIcon(icon2)
|
self.SaveButton.setIcon(icon2)
|
||||||
self.SaveButton.setObjectName(u'SaveButton')
|
self.SaveButton.setObjectName(u'SaveButton')
|
||||||
self.ManageButtonLayout.addWidget(self.SaveButton)
|
self.ManageButtonLayout.addWidget(self.SaveButton)
|
||||||
self.DeleteButton = QtGui.QPushButton(AlertDialog)
|
self.DeleteButton = QtGui.QPushButton(AlertDialog)
|
||||||
icon3 = QtGui.QIcon()
|
icon3 = QtGui.QIcon()
|
||||||
icon3.addPixmap(QtGui.QPixmap(u':/general/general_delete.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon3.addPixmap(QtGui.QPixmap(u':/general/general_delete.png'),
|
||||||
|
QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.DeleteButton.setIcon(icon3)
|
self.DeleteButton.setIcon(icon3)
|
||||||
self.DeleteButton.setObjectName(u'DeleteButton')
|
self.DeleteButton.setObjectName(u'DeleteButton')
|
||||||
self.ManageButtonLayout.addWidget(self.DeleteButton)
|
self.ManageButtonLayout.addWidget(self.DeleteButton)
|
||||||
spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
spacerItem = QtGui.QSpacerItem(
|
||||||
|
20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||||
self.ManageButtonLayout.addItem(spacerItem)
|
self.ManageButtonLayout.addItem(spacerItem)
|
||||||
self.ManagementLayout.addLayout(self.ManageButtonLayout)
|
self.ManagementLayout.addLayout(self.ManageButtonLayout)
|
||||||
self.AlertDialogLayout.addLayout(self.ManagementLayout)
|
self.AlertDialogLayout.addLayout(self.ManagementLayout)
|
||||||
|
@ -317,7 +317,7 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
if not isinstance(name, unicode):
|
if not isinstance(name, unicode):
|
||||||
name = unicode(name, u'utf8')
|
name = unicode(name, u'utf8')
|
||||||
self.web_bible_list[WebDownload.Crosswalk][ver] = name.strip()
|
self.web_bible_list[WebDownload.Crosswalk][ver] = name.strip()
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Crosswalk resources missing')
|
log.exception(u'Crosswalk resources missing')
|
||||||
finally:
|
finally:
|
||||||
if books_file:
|
if books_file:
|
||||||
@ -336,8 +336,9 @@ class ImportWizardForm(QtGui.QWizard, Ui_BibleImportWizard):
|
|||||||
ver = unicode(ver, u'utf8')
|
ver = unicode(ver, u'utf8')
|
||||||
if not isinstance(name, unicode):
|
if not isinstance(name, unicode):
|
||||||
name = unicode(name, u'utf8')
|
name = unicode(name, u'utf8')
|
||||||
self.web_bible_list[WebDownload.BibleGateway][ver] = name.strip()
|
self.web_bible_list[WebDownload.BibleGateway][ver] = \
|
||||||
except:
|
name.strip()
|
||||||
|
except IOError:
|
||||||
log.exception(u'Biblegateway resources missing')
|
log.exception(u'Biblegateway resources missing')
|
||||||
finally:
|
finally:
|
||||||
if books_file:
|
if books_file:
|
||||||
|
@ -80,7 +80,7 @@ class CSVBible(BibleDB):
|
|||||||
self.create_book(unicode(line[1], details['encoding']),
|
self.create_book(unicode(line[1], details['encoding']),
|
||||||
line[2], int(line[0]))
|
line[2], int(line[0]))
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Loading books from file failed')
|
log.exception(u'Loading books from file failed')
|
||||||
success = False
|
success = False
|
||||||
finally:
|
finally:
|
||||||
@ -109,7 +109,7 @@ class CSVBible(BibleDB):
|
|||||||
unicode(line[3], details['encoding']))
|
unicode(line[3], details['encoding']))
|
||||||
Receiver.send_message(u'openlp_process_events')
|
Receiver.send_message(u'openlp_process_events')
|
||||||
self.commit()
|
self.commit()
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Loading verses from file failed')
|
log.exception(u'Loading verses from file failed')
|
||||||
success = False
|
success = False
|
||||||
finally:
|
finally:
|
||||||
|
@ -123,7 +123,7 @@ class BibleDB(QtCore.QObject):
|
|||||||
try:
|
try:
|
||||||
os.remove(self.db_file)
|
os.remove(self.db_file)
|
||||||
return True
|
return True
|
||||||
except:
|
except OSError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def register(self, wizard):
|
def register(self, wizard):
|
||||||
|
@ -462,7 +462,8 @@ class HTTPBible(BibleDB):
|
|||||||
"""
|
"""
|
||||||
Return the list of books.
|
Return the list of books.
|
||||||
"""
|
"""
|
||||||
return [Book.populate(name=book['name']) for book in HTTPBooks.get_books()]
|
return [Book.populate(name=book['name'])
|
||||||
|
for book in HTTPBooks.get_books()]
|
||||||
|
|
||||||
def lookup_book(self, book):
|
def lookup_book(self, book):
|
||||||
"""
|
"""
|
||||||
|
@ -97,7 +97,7 @@ class OpenSongBible(BibleDB):
|
|||||||
QtCore.QString('%s %s %s' % (self.trUtf8('Importing'),\
|
QtCore.QString('%s %s %s' % (self.trUtf8('Importing'),\
|
||||||
db_book.name, chapter.attrib[u'n'])))
|
db_book.name, chapter.attrib[u'n'])))
|
||||||
self.commit()
|
self.commit()
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Loading bible from OpenSong file failed')
|
log.exception(u'Loading bible from OpenSong file failed')
|
||||||
success = False
|
success = False
|
||||||
finally:
|
finally:
|
||||||
|
@ -78,7 +78,7 @@ class OSISBible(BibleDB):
|
|||||||
book = line.split(u',')
|
book = line.split(u',')
|
||||||
self.books[book[0]] = (book[1].lstrip().rstrip(),
|
self.books[book[0]] = (book[1].lstrip().rstrip(),
|
||||||
book[2].lstrip().rstrip())
|
book[2].lstrip().rstrip())
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'OSIS bible import failed')
|
log.exception(u'OSIS bible import failed')
|
||||||
finally:
|
finally:
|
||||||
if fbibles:
|
if fbibles:
|
||||||
@ -104,7 +104,7 @@ class OSISBible(BibleDB):
|
|||||||
try:
|
try:
|
||||||
detect_file = open(self.filename, u'r')
|
detect_file = open(self.filename, u'r')
|
||||||
details = chardet.detect(detect_file.read())
|
details = chardet.detect(detect_file.read())
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Failed to detect OSIS file encoding')
|
log.exception(u'Failed to detect OSIS file encoding')
|
||||||
return
|
return
|
||||||
finally:
|
finally:
|
||||||
@ -173,7 +173,7 @@ class OSISBible(BibleDB):
|
|||||||
self.wizard.incrementProgressBar(u'Finishing import...')
|
self.wizard.incrementProgressBar(u'Finishing import...')
|
||||||
if match_count == 0:
|
if match_count == 0:
|
||||||
success = False
|
success = False
|
||||||
except:
|
except (ValueError, IOError):
|
||||||
log.exception(u'Loading bible from OSIS file failed')
|
log.exception(u'Loading bible from OSIS file failed')
|
||||||
success = False
|
success = False
|
||||||
finally:
|
finally:
|
||||||
@ -185,4 +185,3 @@ class OSISBible(BibleDB):
|
|||||||
else:
|
else:
|
||||||
return success
|
return success
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
from sqlalchemy.exceptions import InvalidRequestError
|
||||||
|
|
||||||
from openlp.core.utils import AppLocation
|
from openlp.core.utils import AppLocation
|
||||||
from openlp.plugins.custom.lib.models import init_models, metadata, CustomSlide
|
from openlp.plugins.custom.lib.models import init_models, metadata, CustomSlide
|
||||||
@ -80,7 +81,7 @@ class CustomManager(object):
|
|||||||
self.session.commit()
|
self.session.commit()
|
||||||
log.debug(u'Custom Slide saved')
|
log.debug(u'Custom Slide saved')
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Custom Slide save failed')
|
log.exception(u'Custom Slide save failed')
|
||||||
return False
|
return False
|
||||||
@ -104,7 +105,7 @@ class CustomManager(object):
|
|||||||
self.session.delete(customslide)
|
self.session.delete(customslide)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Custom Slide deleton failed')
|
log.exception(u'Custom Slide deleton failed')
|
||||||
return False
|
return False
|
||||||
|
@ -117,7 +117,7 @@ class ImageMediaItem(MediaManagerItem):
|
|||||||
try:
|
try:
|
||||||
os.remove(
|
os.remove(
|
||||||
os.path.join(self.servicePath, unicode(text.text())))
|
os.path.join(self.servicePath, unicode(text.text())))
|
||||||
except:
|
except OSError:
|
||||||
#if not present do not worry
|
#if not present do not worry
|
||||||
pass
|
pass
|
||||||
self.ListView.takeItem(item.row())
|
self.ListView.takeItem(item.row())
|
||||||
|
@ -100,16 +100,17 @@ class PresentationController(object):
|
|||||||
self.docs = []
|
self.docs = []
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.name = name
|
self.name = name
|
||||||
self.settingsSection = self.plugin.settingsSection
|
self.settings_section = self.plugin.settingsSection
|
||||||
self.available = self.check_available()
|
self.available = self.check_available()
|
||||||
if self.available:
|
if self.available:
|
||||||
self.enabled = QtCore.QSettings().value(
|
self.enabled = QtCore.QSettings().value(
|
||||||
self.settingsSection + u'/' + name,
|
self.settings_section + u'/' + name,
|
||||||
QtCore.QVariant(QtCore.Qt.Unchecked)).toInt()[0] == QtCore.Qt.Checked
|
QtCore.QVariant(QtCore.Qt.Unchecked)).toInt()[0] == \
|
||||||
|
QtCore.Qt.Checked
|
||||||
else:
|
else:
|
||||||
self.enabled = False
|
self.enabled = False
|
||||||
self.thumbnailroot = os.path.join(
|
self.thumbnailroot = os.path.join(
|
||||||
AppLocation.get_section_data_path(self.settingsSection),
|
AppLocation.get_section_data_path(self.settings_section),
|
||||||
name, u'thumbnails')
|
name, u'thumbnails')
|
||||||
self.thumbnailprefix = u'slide'
|
self.thumbnailprefix = u'slide'
|
||||||
if not os.path.isdir(self.thumbnailroot):
|
if not os.path.isdir(self.thumbnailroot):
|
||||||
@ -123,7 +124,8 @@ class PresentationController(object):
|
|||||||
|
|
||||||
def start_process(self):
|
def start_process(self):
|
||||||
"""
|
"""
|
||||||
Loads a running version of the presentation application in the background.
|
Loads a running version of the presentation application in the
|
||||||
|
background.
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@ -569,7 +569,8 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
|
|||||||
verseId = unicode((item.data(QtCore.Qt.UserRole)).toString())
|
verseId = unicode((item.data(QtCore.Qt.UserRole)).toString())
|
||||||
bits = verseId.split(u':')
|
bits = verseId.split(u':')
|
||||||
sxml.add_verse_to_lyrics(bits[0], bits[1], unicode(item.text()))
|
sxml.add_verse_to_lyrics(bits[0], bits[1], unicode(item.text()))
|
||||||
text = text + unicode(self.VerseListWidget.item(i, 0).text()) + u' '
|
text = text + unicode(self.VerseListWidget.item(i, 0).text()) \
|
||||||
|
+ u' '
|
||||||
text = text.replace(u'\'', u'')
|
text = text.replace(u'\'', u'')
|
||||||
text = text.replace(u',', u'')
|
text = text.replace(u',', u'')
|
||||||
text = text.replace(u';', u'')
|
text = text.replace(u';', u'')
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
from sqlalchemy.exceptions import InvalidRequestError
|
||||||
|
|
||||||
from openlp.core.utils import AppLocation
|
from openlp.core.utils import AppLocation
|
||||||
from openlp.plugins.songs.lib.models import init_models, metadata, Song, \
|
from openlp.plugins.songs.lib.models import init_models, metadata, Song, \
|
||||||
@ -161,7 +162,7 @@ class SongManager(object):
|
|||||||
self.session.add(song)
|
self.session.add(song)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
log.exception(u'Could not save song to song database')
|
log.exception(u'Could not save song to song database')
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
return False
|
return False
|
||||||
@ -172,7 +173,7 @@ class SongManager(object):
|
|||||||
self.session.delete(song)
|
self.session.delete(song)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not delete song from song database')
|
log.exception(u'Could not delete song from song database')
|
||||||
return False
|
return False
|
||||||
@ -203,7 +204,7 @@ class SongManager(object):
|
|||||||
self.session.add(author)
|
self.session.add(author)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not save author to song database')
|
log.exception(u'Could not save author to song database')
|
||||||
return False
|
return False
|
||||||
@ -217,7 +218,7 @@ class SongManager(object):
|
|||||||
self.session.delete(author)
|
self.session.delete(author)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not delete author from song database')
|
log.exception(u'Could not delete author from song database')
|
||||||
return False
|
return False
|
||||||
@ -248,7 +249,7 @@ class SongManager(object):
|
|||||||
self.session.add(topic)
|
self.session.add(topic)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not save topic to song database')
|
log.exception(u'Could not save topic to song database')
|
||||||
return False
|
return False
|
||||||
@ -262,7 +263,7 @@ class SongManager(object):
|
|||||||
self.session.delete(topic)
|
self.session.delete(topic)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not delete topic from song database')
|
log.exception(u'Could not delete topic from song database')
|
||||||
return False
|
return False
|
||||||
@ -293,7 +294,7 @@ class SongManager(object):
|
|||||||
self.session.add(book)
|
self.session.add(book)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not save book to song database')
|
log.exception(u'Could not save book to song database')
|
||||||
return False
|
return False
|
||||||
@ -307,10 +308,11 @@ class SongManager(object):
|
|||||||
self.session.delete(book)
|
self.session.delete(book)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Could not delete book from song database')
|
log.exception(u'Could not delete book from song database')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_songs_for_theme(self, theme):
|
def get_songs_for_theme(self, theme):
|
||||||
return self.session.query(Song).filter(Song.theme_name == theme).all()
|
return self.session.query(Song).filter(Song.theme_name == theme).all()
|
||||||
|
|
||||||
|
@ -24,7 +24,9 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
|
||||||
from songimport import SongImport
|
from songimport import SongImport
|
||||||
|
|
||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
@ -35,9 +37,11 @@ if os.name == u'nt':
|
|||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
import uno
|
import uno
|
||||||
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH
|
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, \
|
||||||
except:
|
PAGE_BOTH
|
||||||
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
class OooImport(object):
|
class OooImport(object):
|
||||||
"""
|
"""
|
||||||
Import songs from Impress/Powerpoint docs using Impress
|
Import songs from Impress/Powerpoint docs using Impress
|
||||||
@ -75,7 +79,8 @@ class OooImport(object):
|
|||||||
"""
|
"""
|
||||||
if os.name == u'nt':
|
if os.name == u'nt':
|
||||||
self.start_ooo_process()
|
self.start_ooo_process()
|
||||||
self.desktop = self.manager.createInstance(u'com.sun.star.frame.Desktop')
|
self.desktop = self.manager.createInstance(
|
||||||
|
u'com.sun.star.frame.Desktop')
|
||||||
else:
|
else:
|
||||||
context = uno.getComponentContext()
|
context = uno.getComponentContext()
|
||||||
resolver = context.ServiceManager.createInstanceWithContext(
|
resolver = context.ServiceManager.createInstanceWithContext(
|
||||||
@ -101,8 +106,8 @@ class OooImport(object):
|
|||||||
self.manager._FlagAsMethod(u'Bridge_GetStruct')
|
self.manager._FlagAsMethod(u'Bridge_GetStruct')
|
||||||
self.manager._FlagAsMethod(u'Bridge_GetValueObject')
|
self.manager._FlagAsMethod(u'Bridge_GetValueObject')
|
||||||
else:
|
else:
|
||||||
cmd = u'openoffice.org -nologo -norestore -minimized -invisible ' \
|
cmd = u'openoffice.org -nologo -norestore -minimized ' \
|
||||||
+ u'-nofirststartwizard ' \
|
+ u'-invisible -nofirststartwizard ' \
|
||||||
+ '-accept="socket,host=localhost,port=2002;urp;"'
|
+ '-accept="socket,host=localhost,port=2002;urp;"'
|
||||||
process = QtCore.QProcess()
|
process = QtCore.QProcess()
|
||||||
process.startDetached(cmd)
|
process.startDetached(cmd)
|
||||||
|
@ -288,7 +288,7 @@ class Song(object):
|
|||||||
osfile.close()
|
osfile.close()
|
||||||
xml = "".join(list)
|
xml = "".join(list)
|
||||||
self.from_opensong_buffer(xml)
|
self.from_opensong_buffer(xml)
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Failed to load opensong xml file')
|
log.exception(u'Failed to load opensong xml file')
|
||||||
finally:
|
finally:
|
||||||
if osfile:
|
if osfile:
|
||||||
@ -394,7 +394,7 @@ class Song(object):
|
|||||||
ccli_file = open(textFileName, 'r')
|
ccli_file = open(textFileName, 'r')
|
||||||
lines = [orgline.rstrip() for orgline in ccli_file]
|
lines = [orgline.rstrip() for orgline in ccli_file]
|
||||||
self.from_ccli_text_buffer(lines)
|
self.from_ccli_text_buffer(lines)
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Failed to load CCLI text file')
|
log.exception(u'Failed to load CCLI text file')
|
||||||
finally:
|
finally:
|
||||||
if ccli_file:
|
if ccli_file:
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
from lxml import objectify
|
from lxml import objectify
|
||||||
|
from lxml.etree import XMLSyntaxError
|
||||||
|
|
||||||
class LyricsXML(object):
|
class LyricsXML(object):
|
||||||
"""
|
"""
|
||||||
@ -73,7 +74,7 @@ class LyricsXML(object):
|
|||||||
})
|
})
|
||||||
self.lyrics.append(language)
|
self.lyrics.append(language)
|
||||||
return True
|
return True
|
||||||
except:
|
except XMLSyntaxError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def extract(self, text):
|
def extract(self, text):
|
||||||
|
@ -85,7 +85,7 @@ class SongUsageDetailForm(QtGui.QDialog, Ui_SongUsageDetailDialog):
|
|||||||
(instance.usagedate,instance.usagetime, instance.title,
|
(instance.usagedate,instance.usagetime, instance.title,
|
||||||
instance.copyright, instance.ccl_number , instance.authors)
|
instance.copyright, instance.ccl_number , instance.authors)
|
||||||
file.write(record)
|
file.write(record)
|
||||||
except:
|
except IOError:
|
||||||
log.exception(u'Failed to write out song usage records')
|
log.exception(u'Failed to write out song usage records')
|
||||||
finally:
|
finally:
|
||||||
if file:
|
if file:
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
|
from sqlalchemy.exceptions import InvalidRequestError
|
||||||
|
|
||||||
from openlp.core.utils import AppLocation
|
from openlp.core.utils import AppLocation
|
||||||
from openlp.plugins.songusage.lib.models import init_models, metadata, \
|
from openlp.plugins.songusage.lib.models import init_models, metadata, \
|
||||||
@ -87,7 +88,7 @@ class SongUsageManager(object):
|
|||||||
self.session.add(songusageitem)
|
self.session.add(songusageitem)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'SongUsage item failed to save')
|
log.exception(u'SongUsage item failed to save')
|
||||||
return False
|
return False
|
||||||
@ -111,7 +112,7 @@ class SongUsageManager(object):
|
|||||||
self.session.delete(songusageitem)
|
self.session.delete(songusageitem)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'SongUsage Item failed to delete')
|
log.exception(u'SongUsage Item failed to delete')
|
||||||
return False
|
return False
|
||||||
@ -126,7 +127,7 @@ class SongUsageManager(object):
|
|||||||
self.session.query(SongUsageItem).delete(synchronize_session=False)
|
self.session.query(SongUsageItem).delete(synchronize_session=False)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Failed to delete all Song Usage items')
|
log.exception(u'Failed to delete all Song Usage items')
|
||||||
return False
|
return False
|
||||||
@ -141,7 +142,8 @@ class SongUsageManager(object):
|
|||||||
.delete(synchronize_session=False)
|
.delete(synchronize_session=False)
|
||||||
self.session.commit()
|
self.session.commit()
|
||||||
return True
|
return True
|
||||||
except:
|
except InvalidRequestError:
|
||||||
self.session.rollback()
|
self.session.rollback()
|
||||||
log.exception(u'Failed to delete all Song Usage items to %s' % date)
|
log.exception(u'Failed to delete all Song Usage items to %s' % date)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user