forked from openlp/openlp
Implemented feature, cleaned pep8 errors
This commit is contained in:
parent
17d9bf0adc
commit
26e8dde0ea
@ -50,8 +50,9 @@ class AdvancedTab(SettingsTab):
|
||||
self.data_exists = False
|
||||
self.icon_path = ':/system/system_settings.png'
|
||||
self.autoscroll_map = [None, {'dist': -1, 'pos': 0}, {'dist': -1, 'pos': 1}, {'dist': -1, 'pos': 2},
|
||||
{'dist':0, 'pos':0}, {'dist':0, 'pos':1}, {'dist':0, 'pos':2}, {'dist':0, 'pos':3},
|
||||
{'dist':1, 'pos':0}, {'dist':1, 'pos':1}, {'dist':1, 'pos':2}, {'dist':1, 'pos':3}]
|
||||
{'dist': 0, 'pos': 0}, {'dist': 0, 'pos': 1}, {'dist': 0, 'pos': 2},
|
||||
{'dist': 0, 'pos': 3}, {'dist': 1, 'pos': 0}, {'dist': 1, 'pos': 1},
|
||||
{'dist': 1, 'pos': 2}, {'dist': 1, 'pos': 3}]
|
||||
advanced_translated = translate('OpenLP.AdvancedTab', 'Advanced')
|
||||
super(AdvancedTab, self).__init__(parent, 'Advanced', advanced_translated)
|
||||
|
||||
@ -300,17 +301,28 @@ class AdvancedTab(SettingsTab):
|
||||
self.autoscroll_label.setText(translate('OpenLP.AdvancedTab',
|
||||
'When changing slides:'))
|
||||
self.autoscroll_combo_box.setItemText(0, translate('OpenLP.AdvancedTab', 'Do not auto-scroll'))
|
||||
self.autoscroll_combo_box.setItemText(1, translate('OpenLP.AdvancedTab', 'Auto-scroll the previous slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(2, translate('OpenLP.AdvancedTab', 'Auto-scroll the previous slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(3, translate('OpenLP.AdvancedTab', 'Auto-scroll the previous slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(4, translate('OpenLP.AdvancedTab', 'Auto-scroll the current slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(5, translate('OpenLP.AdvancedTab', 'Auto-scroll the current slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(6, translate('OpenLP.AdvancedTab', 'Auto-scroll the current slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(7, translate('OpenLP.AdvancedTab', 'Auto-scroll the current slide to bottom'))
|
||||
self.autoscroll_combo_box.setItemText(8, translate('OpenLP.AdvancedTab', 'Auto-scroll the next slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(9, translate('OpenLP.AdvancedTab', 'Auto-scroll the next slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(10, translate('OpenLP.AdvancedTab', 'Auto-scroll the next slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(11, translate('OpenLP.AdvancedTab', 'Auto-scroll the next slide to bottom'))
|
||||
self.autoscroll_combo_box.setItemText(1, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the previous slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(2, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the previous slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(3, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the previous slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(4, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the current slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(5, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the current slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(6, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the current slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(7, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the current slide to bottom'))
|
||||
self.autoscroll_combo_box.setItemText(8, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the next slide into view'))
|
||||
self.autoscroll_combo_box.setItemText(9, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the next slide to top'))
|
||||
self.autoscroll_combo_box.setItemText(10, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the next slide to middle'))
|
||||
self.autoscroll_combo_box.setItemText(11, translate('OpenLP.AdvancedTab',
|
||||
'Auto-scroll the next slide to bottom'))
|
||||
self.enable_auto_close_check_box.setText(translate('OpenLP.AdvancedTab',
|
||||
'Enable application exit confirmation'))
|
||||
self.service_name_group_box.setTitle(translate('OpenLP.AdvancedTab', 'Default Service Name'))
|
||||
|
Loading…
Reference in New Issue
Block a user