forked from openlp/openlp
Fix names before Raoul sees them
This commit is contained in:
parent
b16a8cc452
commit
4695d711f8
@ -76,18 +76,16 @@ class GeneralTab(SettingsTab):
|
||||
self.ShowSplashCheckBox.setObjectName(u'ShowSplashCheckBox')
|
||||
self.StartupLayout.addWidget(self.ShowSplashCheckBox)
|
||||
self.GeneralLeftLayout.addWidget(self.StartupGroupBox)
|
||||
|
||||
self.SettingsGroupBox = QtGui.QGroupBox(self.GeneralLeftWidget)
|
||||
self.SettingsGroupBox.setObjectName(u'SettingsGroupBox')
|
||||
self.SettingsLayout = QtGui.QVBoxLayout(self.SettingsGroupBox)
|
||||
self.SettingsLayout.setSpacing(8)
|
||||
self.SettingsLayout.setMargin(8)
|
||||
self.SettingsLayout.setObjectName(u'SettingsLayout')
|
||||
self.SaveCheckOOSCheckBox = QtGui.QCheckBox(self.SettingsGroupBox)
|
||||
self.SaveCheckOOSCheckBox.setObjectName(u'SaveCheckOOSCheckBox')
|
||||
self.SettingsLayout.addWidget(self.SaveCheckOOSCheckBox)
|
||||
self.SaveCheckServiceCheckBox = QtGui.QCheckBox(self.SettingsGroupBox)
|
||||
self.SaveCheckServiceCheckBox.setObjectName(u'SaveCheckServiceCheckBox')
|
||||
self.SettingsLayout.addWidget(self.SaveCheckServiceCheckBox)
|
||||
self.GeneralLeftLayout.addWidget(self.SettingsGroupBox)
|
||||
|
||||
self.GeneralLeftSpacer = QtGui.QSpacerItem(20, 40,
|
||||
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
|
||||
self.GeneralLeftLayout.addItem(self.GeneralLeftSpacer)
|
||||
@ -136,8 +134,8 @@ class GeneralTab(SettingsTab):
|
||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onAutoOpenCheckBoxChanged)
|
||||
QtCore.QObject.connect(self.ShowSplashCheckBox,
|
||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onShowSplashCheckBoxChanged)
|
||||
QtCore.QObject.connect(self.SaveCheckOOSCheckBox,
|
||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onSaveCheckOOSCheckBox)
|
||||
QtCore.QObject.connect(self.SaveCheckServiceCheckBox,
|
||||
QtCore.SIGNAL(u'stateChanged(int)'), self.onSaveCheckServiceCheckBox)
|
||||
QtCore.QObject.connect(self.NumberEdit,
|
||||
QtCore.SIGNAL(u'editingFinished()'), self.onNumberEditLostFocus)
|
||||
QtCore.QObject.connect(self.UsernameEdit,
|
||||
@ -153,7 +151,7 @@ class GeneralTab(SettingsTab):
|
||||
self.AutoOpenCheckBox.setText(self.trUtf8(u'Automatically open the last service'))
|
||||
self.ShowSplashCheckBox.setText(self.trUtf8(u'Show the splash screen'))
|
||||
self.SettingsGroupBox.setTitle(self.trUtf8(u'Application Settings'))
|
||||
self.SaveCheckOOSCheckBox.setText(self.trUtf8(u'Prompt to save Sevice before starting New'))
|
||||
self.SaveCheckServiceCheckBox.setText(self.trUtf8(u'Prompt to save Sevice before starting New'))
|
||||
self.CCLIGroupBox.setTitle(self.trUtf8(u'CCLI Details'))
|
||||
self.NumberLabel.setText(self.trUtf8(u'CCLI Number:'))
|
||||
self.UsernameLabel.setText(self.trUtf8(u'SongSelect Username:'))
|
||||
@ -171,8 +169,8 @@ class GeneralTab(SettingsTab):
|
||||
def onWarningCheckBoxChanged(self, value):
|
||||
self.Warning = (value == QtCore.Qt.Checked)
|
||||
|
||||
def onSaveCheckOOSCheckBox(self, value):
|
||||
self.PromptSaveOOS = (value == QtCore.Qt.Checked)
|
||||
def onSaveCheckServiceCheckBox(self, value):
|
||||
self.PromptSaveService = (value == QtCore.Qt.Checked)
|
||||
|
||||
def onNumberEditLostFocus(self):
|
||||
self.CCLNumber = self.NumberEdit.displayText()
|
||||
@ -194,11 +192,11 @@ class GeneralTab(SettingsTab):
|
||||
self.Warning = str_to_bool(self.config.get_config(u'Blank Warning', u'False'))
|
||||
self.AutoOpen = str_to_bool(self.config.get_config(u'Auto Open', u'False'))
|
||||
self.ShowSplash = str_to_bool(self.config.get_config(u'show splash', u'True'))
|
||||
self.PromptSaveOOS = str_to_bool(self.config.get_config(u'prompt save oos', u'False'))
|
||||
self.PromptSaveService = str_to_bool(self.config.get_config(u'prompt save service', u'False'))
|
||||
self.CCLNumber = unicode(self.config.get_config(u'CCL Number', u'XXX'))
|
||||
self.Username = unicode(self.config.get_config(u'User Name', u''))
|
||||
self.Password = unicode(self.config.get_config(u'Password', u''))
|
||||
self.SaveCheckOOSCheckBox.setChecked(self.PromptSaveOOS)
|
||||
self.SaveCheckServiceCheckBox.setChecked(self.PromptSaveService)
|
||||
# Set a few things up
|
||||
self.MonitorComboBox.setCurrentIndex(self.MonitorNumber)
|
||||
self.WarningCheckBox.setChecked(self.Warning)
|
||||
@ -213,7 +211,7 @@ class GeneralTab(SettingsTab):
|
||||
self.config.set_config(u'Blank Warning', self.Warning)
|
||||
self.config.set_config(u'Auto Open', self.AutoOpen)
|
||||
self.config.set_config(u'show splash', self.ShowSplash)
|
||||
self.config.set_config(u'prompt save oos', self.PromptSaveOOS)
|
||||
self.config.set_config(u'prompt save service', self.PromptSaveService)
|
||||
self.config.set_config(u'CCL Number', self.CCLNumber)
|
||||
self.config.set_config(u'User Name', self.Username)
|
||||
self.config.set_config(u'Password', self.Password)
|
||||
|
@ -360,7 +360,8 @@ class ServiceManager(QtGui.QWidget):
|
||||
Clear the list to create a new service
|
||||
"""
|
||||
if self.parent.serviceNotSaved and \
|
||||
str_to_bool(PluginConfig(u'General').get_config(u'prompt save oos', u'False')):
|
||||
str_to_bool(PluginConfig(u'General').
|
||||
get_config(u'prompt save service', u'False')):
|
||||
ret = QtGui.QMessageBox.question(None,
|
||||
self.trUtf8(u'Save Changes to Service?'),
|
||||
self.trUtf8(u'Your service is unsaved, do you want to save those '
|
||||
|
Loading…
Reference in New Issue
Block a user