forked from openlp/openlp
Fix up Presentations so Impress works!
This commit is contained in:
parent
ca919b74c3
commit
1ef543253c
@ -519,7 +519,7 @@ class Renderer(object):
|
||||
self.footerFont = QtGui.QFont(self._theme.font_footer_name,
|
||||
int(self._theme.font_footer_proportion), # size
|
||||
int(footer_weight), # weight
|
||||
self._theme.font_footer_italics)# italic
|
||||
self._theme.font_footer_italics) # italic
|
||||
self.footerFont.setPixelSize(int(self._theme.font_footer_proportion))
|
||||
main_weight = 50
|
||||
if self._theme.font_main_weight == u'Bold':
|
||||
|
@ -88,13 +88,13 @@ class ServiceItem(object):
|
||||
The render method is what renders the frames for the screen.
|
||||
"""
|
||||
log.debug(u'Render called')
|
||||
if self.theme == None:
|
||||
self.RenderManager.set_override_theme(None)
|
||||
else:
|
||||
self.RenderManager.set_override_theme(self.theme)
|
||||
log.debug(u'Formatting slides')
|
||||
self.frames = []
|
||||
if self.service_item_type == ServiceType.Text:
|
||||
log.debug(u'Formatting slides')
|
||||
if self.theme == None:
|
||||
self.RenderManager.set_override_theme(None)
|
||||
else:
|
||||
self.RenderManager.set_override_theme(self.theme)
|
||||
for slide in self.service_frames:
|
||||
formated = self.RenderManager.format_slide(slide[u'raw_slide'])
|
||||
for format in formated:
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -184,14 +184,14 @@ class BiblesTab(SettingsTab):
|
||||
check_state = self.NewChaptersCheckBox.checkState()
|
||||
self.show_new_chapters = False
|
||||
# we have a set value convert to True/False
|
||||
if check_state == 2:
|
||||
if check_state == QtCore.Qt.Checked:
|
||||
self.show_new_chapters = True
|
||||
|
||||
def onBibleSearchCheckBoxChanged(self):
|
||||
check_state = self.BibleSearchCheckBox.checkState()
|
||||
self.bible_search = False
|
||||
# we have a set value convert to True/False
|
||||
if check_state == 2:
|
||||
if check_state == QtCore.Qt.Checked:
|
||||
self.bible_search = True
|
||||
|
||||
def load(self):
|
||||
|
@ -23,7 +23,7 @@
|
||||
###############################################################################
|
||||
|
||||
from impresscontroller import ImpressController
|
||||
from powerpointcontroller import PowerpointController
|
||||
#from powerpointcontroller import PowerpointController
|
||||
from messagelistener import MessageListener
|
||||
from mediaitem import PresentationMediaItem
|
||||
from presentationtab import PresentationTab
|
||||
|
@ -21,8 +21,10 @@
|
||||
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
||||
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
||||
###############################################################################
|
||||
|
||||
from win32com.client import Dispatch
|
||||
try:
|
||||
from win32com.client import Dispatch
|
||||
except:
|
||||
pass
|
||||
|
||||
# PPT API documentation:
|
||||
# http://msdn.microsoft.com/en-us/library/aa269321(office.10).aspx
|
||||
|
@ -30,7 +30,12 @@ from PyQt4 import QtCore, QtGui
|
||||
|
||||
from openlp.core.lib import Plugin, MediaManagerItem
|
||||
from openlp.plugins.presentations.lib import PresentationMediaItem, PresentationTab, \
|
||||
ImpressController, PowerpointController
|
||||
ImpressController
|
||||
try:
|
||||
from openlp.plugins.presentations.lib import PowerpointController
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
class PresentationPlugin(Plugin):
|
||||
|
||||
@ -72,7 +77,7 @@ class PresentationPlugin(Plugin):
|
||||
"""
|
||||
log.debug('check_pre_conditions')
|
||||
#Lets see if Impress is required (Default is Not wanted)
|
||||
if int(self.config.get_config(u'Impress', 0)) == QtCore.Qt.Checked:
|
||||
if int(self.config.get_config(u'Impress', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
||||
try:
|
||||
#Check to see if we have uno installed
|
||||
import uno
|
||||
@ -80,8 +85,8 @@ class PresentationPlugin(Plugin):
|
||||
self.registerControllers(u'Impress', openoffice)
|
||||
except:
|
||||
log.error(u'Reason : %s', sys.exc_info())
|
||||
#Lets see if Impress is required (Default is Not wanted)
|
||||
if int(self.config.get_config(u'Powerpoint', 0)) == QtCore.Qt.Checked:
|
||||
#Lets see if Powerpoint is required (Default is Not wanted)
|
||||
if int(self.config.get_config(u'Powerpoint', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
||||
try:
|
||||
#Check to see if we are Win32
|
||||
from win32com.client import Dispatch
|
||||
@ -89,8 +94,8 @@ class PresentationPlugin(Plugin):
|
||||
self.registerControllers(u'Powerpoint', powerpoint)
|
||||
except:
|
||||
log.error(u'Reason : %s', sys.exc_info())
|
||||
#Lets see if Impress is required (Default is Not wanted)
|
||||
if int(self.config.get_config(u'Powerpoint Viewer', 0)) == QtCore.Qt.Checked:
|
||||
#Lets see if Powerpoint Viewer is required (Default is Not wanted)
|
||||
if int(self.config.get_config(u'Powerpoint Viewer', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
||||
try:
|
||||
#Check to see if we are Win32
|
||||
from win32com.client import Dispatch
|
||||
|
@ -42,7 +42,7 @@ class RemotesPlugin(Plugin):
|
||||
"""
|
||||
log.debug('check_pre_conditions')
|
||||
#Lets see if Remote is required
|
||||
if int(self.config.get_config(u'startup', 0)) == 2:
|
||||
if int(self.config.get_config(u'startup', 0)) == QtCore.Qt.Checked:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
Loading…
Reference in New Issue
Block a user