forked from openlp/openlp
More Song editing fixes
This commit is contained in:
parent
8c86edb0b6
commit
7b85b9c7af
6
openlp-1to2-converter.py
Normal file → Executable file
6
openlp-1to2-converter.py
Normal file → Executable file
@ -25,7 +25,13 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
import sqlite
|
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
|
||||||
|
@ -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')
|
||||||
|
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user