More Song editing fixes

This commit is contained in:
Tim Bentley 2009-10-24 20:43:16 +01:00
parent 8c86edb0b6
commit 7b85b9c7af
3 changed files with 15 additions and 2 deletions

8
openlp-1to2-converter.py Normal file → Executable file
View File

@ -25,7 +25,13 @@
import sys import sys
import os import os
import sqlite try:
import sqlite
except:
try:
import pysqlite2
except:
print 'No Sqlite2 package available'
import sqlite3 import sqlite3
import re import re
from optparse import OptionParser from optparse import OptionParser

View File

@ -86,6 +86,13 @@ class EventReceiver(QtCore.QObject):
``config_updated`` ``config_updated``
Informs components the config has changed Informs components the config has changed
``edit_song``
Requests the current song on the preview display be loaded for edit
``preview_song``
Tells the song plugin the edit has finished and the song can be previewed
Only available if the edit was triggered by the Preview button.
""" """
global log global log
log = logging.getLogger(u'EventReceiver') log = logging.getLogger(u'EventReceiver')

View File

@ -125,7 +125,7 @@ class SongMediaItem(MediaManagerItem):
QtCore.QObject.connect(Receiver.get_receiver(), QtCore.QObject.connect(Receiver.get_receiver(),
QtCore.SIGNAL(u'edit_song'), self.onEventEditSong) QtCore.SIGNAL(u'edit_song'), self.onEventEditSong)
QtCore.QObject.connect(Receiver.get_receiver(), QtCore.QObject.connect(Receiver.get_receiver(),
QtCore.SIGNAL(u'proview_song'), self.onPreviewClick) QtCore.SIGNAL(u'preview_song'), self.onPreviewClick)
def configUpdated(self): def configUpdated(self):
self.searchAsYouType = str_to_bool( self.searchAsYouType = str_to_bool(