forked from openlp/openlp
Stage renames
This commit is contained in:
parent
d6274d817a
commit
4bc2c301e2
@ -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
|
||||
|
@ -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
|
||||
"""
|
||||
|
@ -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 = {}
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user