forked from openlp/openlp
Merge from trunk
This commit is contained in:
commit
cda8cceb7a
@ -505,7 +505,7 @@ class Renderer(object):
|
|||||||
self.mainFont.setPixelSize(self._theme.font_main_proportion)
|
self.mainFont.setPixelSize(self._theme.font_main_proportion)
|
||||||
|
|
||||||
def _get_extent_and_render(self, line, footer, tlcorner=(0, 0), draw=False,
|
def _get_extent_and_render(self, line, footer, tlcorner=(0, 0), draw=False,
|
||||||
color=None, outline_size=None, outline_color=None):
|
color=None, outline_size=0, outline_color=None):
|
||||||
"""
|
"""
|
||||||
Find bounding box of text - as render_single_line. If draw is set,
|
Find bounding box of text - as render_single_line. If draw is set,
|
||||||
actually draw the text to the current DC as well return width and
|
actually draw the text to the current DC as well return width and
|
||||||
@ -544,21 +544,23 @@ class Renderer(object):
|
|||||||
else:
|
else:
|
||||||
pen = QtGui.QColor(color)
|
pen = QtGui.QColor(color)
|
||||||
x, y = tlcorner
|
x, y = tlcorner
|
||||||
if outline_size:
|
if self._theme.display_outline:
|
||||||
path = QtGui.QPainterPath()
|
path = QtGui.QPainterPath()
|
||||||
path.addText(QtCore.QPointF(x, y + metrics.ascent()), font, line)
|
path.addText(QtCore.QPointF(x, y + metrics.ascent()), font, line)
|
||||||
self.painter.setBrush(self.painter.pen().brush())
|
self.painter.setBrush(self.painter.pen().brush())
|
||||||
self.painter.setPen(QtGui.QPen(QtGui.QColor(outline_color), outline_size))
|
self.painter.setPen(QtGui.QPen(
|
||||||
|
QtGui.QColor(self._theme.display_outline_color), outline_size))
|
||||||
self.painter.drawPath(path)
|
self.painter.drawPath(path)
|
||||||
self.painter.setPen(pen)
|
self.painter.setPen(pen)
|
||||||
self.painter.drawText(x, y + metrics.ascent(), line)
|
self.painter.drawText(x, y + metrics.ascent(), line)
|
||||||
if self._theme.display_slideTransition:
|
if self._theme.display_slideTransition:
|
||||||
# Print 2nd image with 70% weight
|
# Print 2nd image with 70% weight
|
||||||
if outline_size:
|
if self._theme.display_outline:
|
||||||
path = QtGui.QPainterPath()
|
path = QtGui.QPainterPath()
|
||||||
path.addText(QtCore.QPointF(x, y + metrics.ascent()), font, line)
|
path.addText(QtCore.QPointF(x, y + metrics.ascent()), font, line)
|
||||||
self.painter2.setBrush(self.painter2.pen().brush())
|
self.painter2.setBrush(self.painter2.pen().brush())
|
||||||
self.painter2.setPen(QtGui.QPen(QtGui.QColor(outline_color), outline_size))
|
self.painter2.setPen(QtGui.QPen(
|
||||||
|
QtGui.QColor(self._theme.display_outline_color), outline_size))
|
||||||
self.painter2.drawPath(path)
|
self.painter2.drawPath(path)
|
||||||
self.painter2.setFont(font)
|
self.painter2.setFont(font)
|
||||||
self.painter2.setPen(pen)
|
self.painter2.setPen(pen)
|
||||||
|
@ -146,13 +146,21 @@ class Ui_AboutDialog(object):
|
|||||||
' Jon "Meths" Tibble\n'
|
' Jon "Meths" Tibble\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Contributors\n'
|
'Contributors\n'
|
||||||
|
' Meinert "m2j" Jordan\n'
|
||||||
' Christian "crichter" Richter\n'
|
' Christian "crichter" Richter\n'
|
||||||
' Maikel Stuivenberg\n'
|
' Maikel Stuivenberg\n'
|
||||||
' Carsten "catini" Tingaard\n'
|
' Carsten "catini" Tingaard\n'
|
||||||
'\n'
|
'\n'
|
||||||
'Testers\n'
|
'Testers\n'
|
||||||
' Wesley "wrst" Stout\n'
|
' Philip "Phill" Ridout\n'
|
||||||
' Philip "Phill" Ridout'
|
' Wesley "wrst" Stout (lead)\n'
|
||||||
|
'\n'
|
||||||
|
'Packagers\n'
|
||||||
|
' Thomas "tabthorpe" Abthorpe (FreeBSD)\n'
|
||||||
|
' Tim "TRB143" Bentley (Fedora)\n'
|
||||||
|
' Michael "cocooncrash" Gorven (Ubuntu)\n'
|
||||||
|
' Matthias "matthub" Hub (Mac OS X)\n'
|
||||||
|
' Raoul "superfly" Snyman (Windows)\n'
|
||||||
))
|
))
|
||||||
self.AboutNotebook.setTabText(
|
self.AboutNotebook.setTabText(
|
||||||
self.AboutNotebook.indexOf(self.CreditsTab),
|
self.AboutNotebook.indexOf(self.CreditsTab),
|
||||||
|
@ -148,7 +148,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.ServiceManagerList.setHeaderHidden(True)
|
self.ServiceManagerList.setHeaderHidden(True)
|
||||||
self.ServiceManagerList.setExpandsOnDoubleClick(False)
|
self.ServiceManagerList.setExpandsOnDoubleClick(False)
|
||||||
self.ServiceManagerList.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
|
self.ServiceManagerList.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
|
||||||
self.ServiceManagerList.customContextMenuRequested.connect(self.contextMenu)
|
QtCore.QObject.connect(self.ServiceManagerList,
|
||||||
|
QtCore.SIGNAL('customContextMenuRequested(QPoint)'), self.contextMenu)
|
||||||
self.ServiceManagerList.setObjectName(u'ServiceManagerList')
|
self.ServiceManagerList.setObjectName(u'ServiceManagerList')
|
||||||
# enable drop
|
# enable drop
|
||||||
self.ServiceManagerList.__class__.dragEnterEvent = self.dragEnterEvent
|
self.ServiceManagerList.__class__.dragEnterEvent = self.dragEnterEvent
|
||||||
|
@ -253,6 +253,8 @@ class BibleMediaItem(MediaManagerItem):
|
|||||||
QtCore.QObject.connect(Receiver.get_receiver(),
|
QtCore.QObject.connect(Receiver.get_receiver(),
|
||||||
QtCore.SIGNAL(u'config_updated'), self.configUpdated)
|
QtCore.SIGNAL(u'config_updated'), self.configUpdated)
|
||||||
# Other stuff
|
# Other stuff
|
||||||
|
QtCore.QObject.connect(self.QuickSearchEdit,
|
||||||
|
QtCore.SIGNAL(u'returnPressed()'), self.onQuickSearchButton)
|
||||||
QtCore.QObject.connect(Receiver.get_receiver(),
|
QtCore.QObject.connect(Receiver.get_receiver(),
|
||||||
QtCore.SIGNAL(u'bible_showprogress'), self.onSearchProgressShow)
|
QtCore.SIGNAL(u'bible_showprogress'), self.onSearchProgressShow)
|
||||||
QtCore.QObject.connect(Receiver.get_receiver(),
|
QtCore.QObject.connect(Receiver.get_receiver(),
|
||||||
|
@ -57,6 +57,8 @@ class PresentationPlugin(Plugin):
|
|||||||
for controller in self.controllers:
|
for controller in self.controllers:
|
||||||
if self.controllers[controller].enabled:
|
if self.controllers[controller].enabled:
|
||||||
presentation_types.append({u'%s' % controller : self.controllers[controller].supports})
|
presentation_types.append({u'%s' % controller : self.controllers[controller].supports})
|
||||||
|
self.controllers[controller].start_process()
|
||||||
|
|
||||||
Receiver.send_message(
|
Receiver.send_message(
|
||||||
u'presentation types', presentation_types)
|
u'presentation types', presentation_types)
|
||||||
|
|
||||||
@ -104,8 +106,6 @@ class PresentationPlugin(Plugin):
|
|||||||
for controller_class in controller_classes:
|
for controller_class in controller_classes:
|
||||||
controller = controller_class(self)
|
controller = controller_class(self)
|
||||||
self.registerControllers(controller)
|
self.registerControllers(controller)
|
||||||
if controller.enabled:
|
|
||||||
controller.start_process()
|
|
||||||
if self.controllers:
|
if self.controllers:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
@ -5,6 +5,6 @@ GenericName=Church lyrics projection
|
|||||||
Exec=openlp
|
Exec=openlp
|
||||||
Icon=openlp
|
Icon=openlp
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
Terminal=False
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=AudioVideo
|
Categories=AudioVideo;
|
||||||
|
Loading…
Reference in New Issue
Block a user