forked from openlp/openlp
Slim mode setting
This commit is contained in:
parent
078adca936
commit
ceb64dd477
@ -771,34 +771,29 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
"""
|
"""
|
||||||
Put OpenLP into "Default" view mode.
|
Put OpenLP into "Default" view mode.
|
||||||
"""
|
"""
|
||||||
settings = QtCore.QSettings()
|
self.setViewMode(True, True, True, True, True, u'default')
|
||||||
settings.setValue(u'%s/view mode' % self.generalSettingsSection,
|
|
||||||
u'default')
|
|
||||||
self.setViewMode(True, True, True, True, True)
|
|
||||||
|
|
||||||
def onModeSetupItemClicked(self):
|
def onModeSetupItemClicked(self):
|
||||||
"""
|
"""
|
||||||
Put OpenLP into "Setup" view mode.
|
Put OpenLP into "Setup" view mode.
|
||||||
"""
|
"""
|
||||||
settings = QtCore.QSettings()
|
self.setViewMode(True, True, False, True, False, u'setup')
|
||||||
settings.setValue(u'%s/view mode' % self.generalSettingsSection,
|
|
||||||
u'setup')
|
|
||||||
self.setViewMode(True, True, False, True, False)
|
|
||||||
|
|
||||||
def onModeLiveItemClicked(self):
|
def onModeLiveItemClicked(self):
|
||||||
"""
|
"""
|
||||||
Put OpenLP into "Live" view mode.
|
Put OpenLP into "Live" view mode.
|
||||||
"""
|
"""
|
||||||
settings = QtCore.QSettings()
|
self.setViewMode(False, True, False, False, True, u'live')
|
||||||
settings.setValue(u'%s/view mode' % self.generalSettingsSection,
|
|
||||||
u'live')
|
|
||||||
self.setViewMode(False, True, False, False, True)
|
|
||||||
|
|
||||||
def setViewMode(self, media=True, service=True, theme=True, preview=True,
|
def setViewMode(self, media=True, service=True, theme=True, preview=True,
|
||||||
live=True):
|
live=True, mode=u''):
|
||||||
"""
|
"""
|
||||||
Set OpenLP to a different view mode.
|
Set OpenLP to a different view mode.
|
||||||
"""
|
"""
|
||||||
|
if mode:
|
||||||
|
settings = QtCore.QSettings()
|
||||||
|
settings.setValue(u'%s/view mode' % self.generalSettingsSection,
|
||||||
|
mode)
|
||||||
self.MediaManagerDock.setVisible(media)
|
self.MediaManagerDock.setVisible(media)
|
||||||
self.ServiceManagerDock.setVisible(service)
|
self.ServiceManagerDock.setVisible(service)
|
||||||
self.ThemeManagerDock.setVisible(theme)
|
self.ThemeManagerDock.setVisible(theme)
|
||||||
|
Loading…
Reference in New Issue
Block a user