This commit is contained in:
Jonathan Corwin 2010-04-21 21:26:18 +01:00
commit 68685d1be5
4 changed files with 6 additions and 8 deletions

View File

@ -671,7 +671,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
def serviceChanged(self, reset=False, serviceName=None): def serviceChanged(self, reset=False, serviceName=None):
""" """
Hook to change the main window title when the service chmainwindow.pyanges Hook to change the main window title when the service changes
``reset`` ``reset``
Shows if the service has been cleared or saved Shows if the service has been cleared or saved

View File

@ -26,7 +26,6 @@
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
from openlp.core.lib import SettingsTab, str_to_bool from openlp.core.lib import SettingsTab, str_to_bool
from openlp.plugins.alerts.lib.models import AlertItem
class AlertsTab(SettingsTab): class AlertsTab(SettingsTab):
""" """

View File

@ -29,22 +29,19 @@
# http://www.oooforum.org/forum/viewtopic.phtml?t=14409 # http://www.oooforum.org/forum/viewtopic.phtml?t=14409
# http://wiki.services.openoffice.org/wiki/Python # http://wiki.services.openoffice.org/wiki/Python
import re
import os import os
import time import re
from PyQt4 import QtCore
from songimport import SongImport from songimport import SongImport
from oooimport import OooImport from oooimport import OooImport
if os.name == u'nt': if os.name == u'nt':
from win32com.client import Dispatch
BOLD = 150.0 BOLD = 150.0
ITALIC = 2 ITALIC = 2
PAGE_BEFORE = 4 PAGE_BEFORE = 4
PAGE_AFTER = 5 PAGE_AFTER = 5
PAGE_BOTH = 6 PAGE_BOTH = 6
else: else:
import uno
from com.sun.star.awt.FontWeight import BOLD from com.sun.star.awt.FontWeight import BOLD
from com.sun.star.awt.FontSlant import ITALIC from com.sun.star.awt.FontSlant import ITALIC
from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH from com.sun.star.style.BreakType import PAGE_BEFORE, PAGE_AFTER, PAGE_BOTH

View File

@ -24,7 +24,9 @@
############################################################################### ###############################################################################
import string import string
from PyQt4 import QtGui, QtCore
from PyQt4 import QtGui
from openlp.core.lib import SongXMLBuilder from openlp.core.lib import SongXMLBuilder
from openlp.plugins.songs.lib.models import Song, Author, Topic, Book from openlp.plugins.songs.lib.models import Song, Author, Topic, Book