forked from openlp/openlp
Rename methods to better indicate function
This commit is contained in:
parent
b225a96d09
commit
8de0de9921
@ -559,10 +559,10 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.toggleThemeManager)
|
||||
QtCore.QObject.connect(self.ViewPreviewPanel,
|
||||
QtCore.SIGNAL(u'toggled(bool)'),
|
||||
self.togglePreviewPanel)
|
||||
self.setPreviewPanelVisibility)
|
||||
QtCore.QObject.connect(self.ViewLivePanel,
|
||||
QtCore.SIGNAL(u'toggled(bool)'),
|
||||
self.toggleLivePanel)
|
||||
self.setLivePanelVisibility)
|
||||
QtCore.QObject.connect(self.MediaManagerDock,
|
||||
QtCore.SIGNAL(u'visibilityChanged(bool)'),
|
||||
self.ViewMediaManagerItem.setChecked)
|
||||
@ -753,8 +753,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.MediaManagerDock.setVisible(True)
|
||||
self.ServiceManagerDock.setVisible(True)
|
||||
self.ThemeManagerDock.setVisible(True)
|
||||
self.togglePreviewPanel(True)
|
||||
self.toggleLivePanel(True)
|
||||
self.setPreviewPanelVisibility(True)
|
||||
self.setLivePanelVisibility(True)
|
||||
|
||||
def onModeSetupItemClicked(self):
|
||||
"""
|
||||
@ -763,8 +763,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.MediaManagerDock.setVisible(True)
|
||||
self.ServiceManagerDock.setVisible(True)
|
||||
self.ThemeManagerDock.setVisible(False)
|
||||
self.togglePreviewPanel(True)
|
||||
self.toggleLivePanel(False)
|
||||
self.setPreviewPanelVisibility(True)
|
||||
self.setLivePanelVisibility(False)
|
||||
|
||||
def onModeLiveItemClicked(self):
|
||||
"""
|
||||
@ -773,8 +773,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.MediaManagerDock.setVisible(False)
|
||||
self.ServiceManagerDock.setVisible(True)
|
||||
self.ThemeManagerDock.setVisible(False)
|
||||
self.togglePreviewPanel(False)
|
||||
self.toggleLivePanel(True)
|
||||
self.setPreviewPanelVisibility(False)
|
||||
self.setLivePanelVisibility(True)
|
||||
|
||||
def screenChanged(self):
|
||||
"""
|
||||
@ -868,7 +868,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
if self.ThemeManagerDock.isVisible() != visible:
|
||||
self.ThemeManagerDock.setVisible(visible)
|
||||
|
||||
def togglePreviewPanel(self, visible):
|
||||
def setPreviewPanelVisibility(self, visible):
|
||||
"""
|
||||
Sets the visibility of the preview panel including saving the setting
|
||||
and updating the menu.
|
||||
@ -882,7 +882,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
||||
self.settingsmanager.set_preview_visibility(visible)
|
||||
self.ViewPreviewPanel.setChecked(visible)
|
||||
|
||||
def toggleLivePanel(self, visible):
|
||||
def setLivePanelVisibility(self, visible):
|
||||
"""
|
||||
Sets the visibility of the live panel including saving the setting and
|
||||
updating the menu.
|
||||
|
Loading…
Reference in New Issue
Block a user