Rename methods to better indicate function

This commit is contained in:
Jon Tibble 2010-07-06 22:23:09 +01:00
parent b225a96d09
commit 8de0de9921

View File

@ -559,10 +559,10 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.toggleThemeManager) self.toggleThemeManager)
QtCore.QObject.connect(self.ViewPreviewPanel, QtCore.QObject.connect(self.ViewPreviewPanel,
QtCore.SIGNAL(u'toggled(bool)'), QtCore.SIGNAL(u'toggled(bool)'),
self.togglePreviewPanel) self.setPreviewPanelVisibility)
QtCore.QObject.connect(self.ViewLivePanel, QtCore.QObject.connect(self.ViewLivePanel,
QtCore.SIGNAL(u'toggled(bool)'), QtCore.SIGNAL(u'toggled(bool)'),
self.toggleLivePanel) self.setLivePanelVisibility)
QtCore.QObject.connect(self.MediaManagerDock, QtCore.QObject.connect(self.MediaManagerDock,
QtCore.SIGNAL(u'visibilityChanged(bool)'), QtCore.SIGNAL(u'visibilityChanged(bool)'),
self.ViewMediaManagerItem.setChecked) self.ViewMediaManagerItem.setChecked)
@ -753,8 +753,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.MediaManagerDock.setVisible(True) self.MediaManagerDock.setVisible(True)
self.ServiceManagerDock.setVisible(True) self.ServiceManagerDock.setVisible(True)
self.ThemeManagerDock.setVisible(True) self.ThemeManagerDock.setVisible(True)
self.togglePreviewPanel(True) self.setPreviewPanelVisibility(True)
self.toggleLivePanel(True) self.setLivePanelVisibility(True)
def onModeSetupItemClicked(self): def onModeSetupItemClicked(self):
""" """
@ -763,8 +763,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.MediaManagerDock.setVisible(True) self.MediaManagerDock.setVisible(True)
self.ServiceManagerDock.setVisible(True) self.ServiceManagerDock.setVisible(True)
self.ThemeManagerDock.setVisible(False) self.ThemeManagerDock.setVisible(False)
self.togglePreviewPanel(True) self.setPreviewPanelVisibility(True)
self.toggleLivePanel(False) self.setLivePanelVisibility(False)
def onModeLiveItemClicked(self): def onModeLiveItemClicked(self):
""" """
@ -773,8 +773,8 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.MediaManagerDock.setVisible(False) self.MediaManagerDock.setVisible(False)
self.ServiceManagerDock.setVisible(True) self.ServiceManagerDock.setVisible(True)
self.ThemeManagerDock.setVisible(False) self.ThemeManagerDock.setVisible(False)
self.togglePreviewPanel(False) self.setPreviewPanelVisibility(False)
self.toggleLivePanel(True) self.setLivePanelVisibility(True)
def screenChanged(self): def screenChanged(self):
""" """
@ -868,7 +868,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
if self.ThemeManagerDock.isVisible() != visible: if self.ThemeManagerDock.isVisible() != visible:
self.ThemeManagerDock.setVisible(visible) self.ThemeManagerDock.setVisible(visible)
def togglePreviewPanel(self, visible): def setPreviewPanelVisibility(self, visible):
""" """
Sets the visibility of the preview panel including saving the setting Sets the visibility of the preview panel including saving the setting
and updating the menu. and updating the menu.
@ -882,7 +882,7 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
self.settingsmanager.set_preview_visibility(visible) self.settingsmanager.set_preview_visibility(visible)
self.ViewPreviewPanel.setChecked(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 Sets the visibility of the live panel including saving the setting and
updating the menu. updating the menu.