Stage renames

This commit is contained in:
Tim Bentley 2013-02-21 21:18:26 +00:00
parent d6274d817a
commit 4bc2c301e2
5 changed files with 7 additions and 7 deletions

View File

@ -136,8 +136,8 @@ class OpenLP(QtGui.QApplication):
self.processEvents()
# start the main app window
self.main_window = MainWindow()
Registry().execute(u'bootstrap_stage_1')
Registry().execute(u'bootstrap_stage_2')
Registry().execute(u'bootstrap_initialise')
Registry().execute(u'bootstrap_post_set_up')
self.main_window.show()
if show_splash:
# now kill the splashscreen

View File

@ -54,13 +54,13 @@ class PluginManager(object):
"""
log.info(u'Plugin manager Initialising')
Registry().register(u'plugin_manager', self)
Registry().register_function(u'bootstrap_stage_1', self.bootstrap_stage_1)
Registry().register_function(u'bootstrap_initialise', self.bootstrap_initialise)
self.base_path = os.path.abspath(AppLocation.get_directory(AppLocation.PluginsDir))
log.debug(u'Base path %s ', self.base_path)
self.plugins = []
log.info(u'Plugin manager Initialised')
def bootstrap_stage_1(self):
def bootstrap_initialise(self):
"""
Bootstrap all the plugin manager functions
"""

View File

@ -99,7 +99,7 @@ class MediaController(object):
"""
self.mainWindow = parent
Registry().register(u'media_controller', self)
Registry().register_function(u'bootstrap_stage_1', self.check_available_media_players)
Registry().register_function(u'bootstrap_initialise', self.check_available_media_players)
self.mediaPlayers = {}
self.displayControllers = {}
self.currentMediaPlayer = {}

View File

@ -50,7 +50,7 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
Initialise the settings form
"""
Registry().register(u'settings_form', self)
Registry().register_function(u'bootstrap_stage_2', self.post_set_up)
Registry().register_function(u'bootstrap_post_set_up', self.post_set_up)
QtGui.QDialog.__init__(self, parent)
self.setupUi(self)
# General tab

View File

@ -60,7 +60,7 @@ class ThemeManager(QtGui.QWidget):
"""
QtGui.QWidget.__init__(self, parent)
Registry().register(u'theme_manager', self)
Registry().register_function(u'bootstrap_stage_1', self.load_first_time_themes)
Registry().register_function(u'bootstrap_initialise', self.load_first_time_themes)
self.settingsSection = u'themes'
self.themeForm = ThemeForm(self)
self.fileRenameForm = FileRenameForm()