Full migration

This commit is contained in:
Tim Bentley 2014-03-17 07:29:29 +00:00
parent 22e9d6d1a9
commit 6c80ba1c7d
1 changed files with 3 additions and 4 deletions

View File

@ -80,7 +80,7 @@ class MediaSlider(QtGui.QSlider):
QtGui.QSlider.mouseReleaseEvent(self, event) QtGui.QSlider.mouseReleaseEvent(self, event)
class MediaController(RegistryProperties): class MediaController(RegistryMixin, OpenLPMixin, RegistryProperties):
""" """
The implementation of the Media Controller. The Media Controller adds an own The implementation of the Media Controller. The Media Controller adds an own
class for every Player. Currently these are QtWebkit, Phonon and Vlc. class for every Player. Currently these are QtWebkit, Phonon and Vlc.
@ -94,12 +94,11 @@ class MediaController(RegistryProperties):
current_media_players is an array of player instances keyed on ControllerType. current_media_players is an array of player instances keyed on ControllerType.
""" """
def __init__(self): def __init__(self, parent=None):
""" """
Constructor Constructor
""" """
Registry().register('media_controller', self) super(MediaController, self).__init__(parent)
Registry().register_function('bootstrap_initialise', self.bootstrap_initialise)
self.media_players = {} self.media_players = {}
self.display_controllers = {} self.display_controllers = {}
self.current_media_players = {} self.current_media_players = {}