Merge lp:~suutari-olli/openlp/ui-messages-part-1-latest-commit into lp:openlp
- ui-messages-part-1-latest-commit
- Merge into trunk
Status: | Superseded |
---|---|
Proposed branch: | lp:~suutari-olli/openlp/ui-messages-part-1-latest-commit |
Merge into: | lp:openlp |
Diff against target: |
167 lines (+30/-25) 6 files modified
openlp/core/ui/advancedtab.py (+2/-2) openlp/core/ui/exceptiondialog.py (+1/-1) openlp/core/ui/exceptionform.py (+11/-6) openlp/core/ui/mainwindow.py (+13/-13) openlp/plugins/media/lib/mediaitem.py (+1/-1) openlp/plugins/presentations/lib/presentationtab.py (+2/-2) |
To merge this branch: | bzr merge lp:~suutari-olli/openlp/ui-messages-part-1-latest-commit |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Bentley | Needs Fixing | ||
Review via email: mp+302650@code.launchpad.net |
This proposal has been superseded by a proposal from 2016-08-11.
Commit message
Description of the change
- This is the latest commit of the ui-messages-part-1
branch which was merged recently,
for some reason the latest commit which included
the most recent fixes was not merged.
lp:~suutari-olli/openlp/ui-messages-part-1-latest-commit (revision 2656)
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
[SUCCESS] https:/
Azaziah (suutari-olli) wrote : | # |
"- This is the latest commit of the ui-messages-part-1
branch which was merged recently,
for some reason the latest commit which included
the most recent fixes was not merged."
Please stop changing remotes as I am deleting it.
// I removed the changes to remotes in the last commit of the merged branch, but...
I know it is not of your making but I needed to read the code a few times to work out what it was doing! Can we have it a bit more logical please.
// I simplified it.
Needs tests !
//
This was supposed to be merged already in the ui-messages-part-1 branch,
but due to some weird error it was not.
I am unwilling write a new test just to get this last commit merged.
If I must write a new test I'm going to turn this into ui-messages-part-2
and change a lot of other things as well.
Preview Diff
1 | === modified file 'openlp/core/ui/advancedtab.py' | |||
2 | --- openlp/core/ui/advancedtab.py 2016-08-10 18:50:40 +0000 | |||
3 | +++ openlp/core/ui/advancedtab.py 2016-08-11 17:13:08 +0000 | |||
4 | @@ -257,7 +257,7 @@ | |||
5 | 257 | self.data_directory_group_box.setTitle(translate('OpenLP.AdvancedTab', 'Data Location')) | 257 | self.data_directory_group_box.setTitle(translate('OpenLP.AdvancedTab', 'Data Location')) |
6 | 258 | self.recent_label.setText(translate('OpenLP.AdvancedTab', 'Number of recent service files to display:')) | 258 | self.recent_label.setText(translate('OpenLP.AdvancedTab', 'Number of recent service files to display:')) |
7 | 259 | self.media_plugin_check_box.setText(translate('OpenLP.AdvancedTab', | 259 | self.media_plugin_check_box.setText(translate('OpenLP.AdvancedTab', |
9 | 260 | 'Open the last used Library category on startup')) | 260 | 'Open the last used Library tab on startup')) |
10 | 261 | self.double_click_live_check_box.setText(translate('OpenLP.AdvancedTab', | 261 | self.double_click_live_check_box.setText(translate('OpenLP.AdvancedTab', |
11 | 262 | 'Double-click to send items straight to Live')) | 262 | 'Double-click to send items straight to Live')) |
12 | 263 | self.single_click_preview_check_box.setText(translate('OpenLP.AdvancedTab', | 263 | self.single_click_preview_check_box.setText(translate('OpenLP.AdvancedTab', |
13 | @@ -265,7 +265,7 @@ | |||
14 | 265 | self.single_click_service_preview_check_box.setText(translate('OpenLP.AdvancedTab', | 265 | self.single_click_service_preview_check_box.setText(translate('OpenLP.AdvancedTab', |
15 | 266 | 'Preview items when clicked in Service')) | 266 | 'Preview items when clicked in Service')) |
16 | 267 | self.expand_service_item_check_box.setText(translate('OpenLP.AdvancedTab', | 267 | self.expand_service_item_check_box.setText(translate('OpenLP.AdvancedTab', |
18 | 268 | 'Expand new Service items on creation')) | 268 | 'Expand new service items on creation')) |
19 | 269 | self.slide_max_height_label.setText(translate('OpenLP.AdvancedTab', | 269 | self.slide_max_height_label.setText(translate('OpenLP.AdvancedTab', |
20 | 270 | 'Max height for non-text slides\nin slide controller:')) | 270 | 'Max height for non-text slides\nin slide controller:')) |
21 | 271 | self.slide_max_height_combo_box.setItemText(0, translate('OpenLP.AdvancedTab', 'Disabled')) | 271 | self.slide_max_height_combo_box.setItemText(0, translate('OpenLP.AdvancedTab', 'Disabled')) |
22 | 272 | 272 | ||
23 | === modified file 'openlp/core/ui/exceptiondialog.py' | |||
24 | --- openlp/core/ui/exceptiondialog.py 2016-05-10 11:13:41 +0000 | |||
25 | +++ openlp/core/ui/exceptiondialog.py 2016-08-11 17:13:08 +0000 | |||
26 | @@ -106,7 +106,7 @@ | |||
27 | 106 | translate('OpenLP.ExceptionDialog', '{first_part}' | 106 | translate('OpenLP.ExceptionDialog', '{first_part}' |
28 | 107 | '<strong>No email app? </strong> You can <strong>save</strong> this ' | 107 | '<strong>No email app? </strong> You can <strong>save</strong> this ' |
29 | 108 | 'information to a <strong>file</strong> and<br>' | 108 | 'information to a <strong>file</strong> and<br>' |
31 | 109 | 'send it from your <strong>mail on browser</strong> via an <strong>attachement.</strong><br><br>' | 109 | 'send it from your <strong>mail on browser</strong> via an <strong>attachment.</strong><br><br>' |
32 | 110 | '<strong>Thank you<strong> for being part of making OpenLP better!<br>' | 110 | '<strong>Thank you<strong> for being part of making OpenLP better!<br>' |
33 | 111 | ).format(first_part=exception_part1)) | 111 | ).format(first_part=exception_part1)) |
34 | 112 | self.send_report_button.setText(translate('OpenLP.ExceptionDialog', 'Send E-Mail')) | 112 | self.send_report_button.setText(translate('OpenLP.ExceptionDialog', 'Send E-Mail')) |
35 | 113 | 113 | ||
36 | === modified file 'openlp/core/ui/exceptionform.py' | |||
37 | --- openlp/core/ui/exceptionform.py 2016-08-10 18:31:33 +0000 | |||
38 | +++ openlp/core/ui/exceptionform.py 2016-08-11 17:13:08 +0000 | |||
39 | @@ -195,15 +195,20 @@ | |||
40 | 195 | """ | 195 | """ |
41 | 196 | Update the minimum number of characters needed in the description. | 196 | Update the minimum number of characters needed in the description. |
42 | 197 | """ | 197 | """ |
46 | 198 | count = int(20 - len(self.description_text_edit.toPlainText())) | 198 | count = int(len(self.description_text_edit.toPlainText())) |
47 | 199 | if count < 0: | 199 | if count > 19: |
45 | 200 | count = 0 | ||
48 | 201 | self.__button_state(True) | 200 | self.__button_state(True) |
49 | 201 | self.description_word_count.setText( | ||
50 | 202 | translate('OpenLP.ExceptionDialog', '<strong>Thank you for your description!</strong>')) | ||
51 | 203 | elif count == 0: | ||
52 | 204 | self.__button_state(False) | ||
53 | 205 | self.description_word_count.setText( | ||
54 | 206 | translate('OpenLP.ExceptionDialog', '<strong>Tell us what you were doing when this happened.</strong>')) | ||
55 | 202 | else: | 207 | else: |
56 | 203 | self.__button_state(False) | 208 | self.__button_state(False) |
60 | 204 | self.description_word_count.setText( | 209 | self.description_word_count.setText( |
61 | 205 | translate('OpenLP.ExceptionDialog', '{count} characters remaining from the minimum description.' | 210 | translate('OpenLP.ExceptionDialog', '<strong>Please enter a more detailed description of the situation' |
62 | 206 | ).format(count=count)) | 211 | )) |
63 | 207 | 212 | ||
64 | 208 | def on_attach_file_button_clicked(self): | 213 | def on_attach_file_button_clicked(self): |
65 | 209 | """ | 214 | """ |
66 | 210 | 215 | ||
67 | === modified file 'openlp/core/ui/mainwindow.py' | |||
68 | --- openlp/core/ui/mainwindow.py 2016-08-10 18:50:40 +0000 | |||
69 | +++ openlp/core/ui/mainwindow.py 2016-08-11 17:13:08 +0000 | |||
70 | @@ -429,13 +429,13 @@ | |||
71 | 429 | translate('OpenLP.MainWindow', 'Export settings to a *.config file.')) | 429 | translate('OpenLP.MainWindow', 'Export settings to a *.config file.')) |
72 | 430 | self.settings_export_item.setText(translate('OpenLP.MainWindow', 'Settings')) | 430 | self.settings_export_item.setText(translate('OpenLP.MainWindow', 'Settings')) |
73 | 431 | self.settings_import_item.setStatusTip( | 431 | self.settings_import_item.setStatusTip( |
76 | 432 | translate('OpenLP.MainWindow', 'Import OpenLP settings from a *.config file previously exported from ' | 432 | translate('OpenLP.MainWindow', 'Import settings from a *.config file previously exported from ' |
77 | 433 | 'this or an another machine.')) | 433 | 'this or another machine.')) |
78 | 434 | self.settings_import_item.setText(translate('OpenLP.MainWindow', 'Settings')) | 434 | self.settings_import_item.setText(translate('OpenLP.MainWindow', 'Settings')) |
80 | 435 | self.view_projector_manager_item.setText(translate('OPenLP.MainWindow', '&Projectors')) | 435 | self.view_projector_manager_item.setText(translate('OpenLP.MainWindow', '&Projectors')) |
81 | 436 | self.view_projector_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Projectors.')) | 436 | self.view_projector_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Projectors.')) |
82 | 437 | self.view_projector_manager_item.setStatusTip(translate('OpenLP.MainWindow', | 437 | self.view_projector_manager_item.setStatusTip(translate('OpenLP.MainWindow', |
84 | 438 | 'Toggle the visibility of the Projectors.')) | 438 | 'Toggle visibility of the Projectors.')) |
85 | 439 | self.view_media_manager_item.setText(translate('OpenLP.MainWindow', 'L&ibrary')) | 439 | self.view_media_manager_item.setText(translate('OpenLP.MainWindow', 'L&ibrary')) |
86 | 440 | self.view_media_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show the Library.')) | 440 | self.view_media_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show the Library.')) |
87 | 441 | self.view_media_manager_item.setStatusTip(translate('OpenLP.MainWindow', | 441 | self.view_media_manager_item.setStatusTip(translate('OpenLP.MainWindow', |
88 | @@ -443,22 +443,22 @@ | |||
89 | 443 | self.view_theme_manager_item.setText(translate('OpenLP.MainWindow', '&Themes')) | 443 | self.view_theme_manager_item.setText(translate('OpenLP.MainWindow', '&Themes')) |
90 | 444 | self.view_theme_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show themes')) | 444 | self.view_theme_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show themes')) |
91 | 445 | self.view_theme_manager_item.setStatusTip(translate('OpenLP.MainWindow', | 445 | self.view_theme_manager_item.setStatusTip(translate('OpenLP.MainWindow', |
93 | 446 | 'Toggle the visibility of the Themes.')) | 446 | 'Toggle visibility of the Themes.')) |
94 | 447 | self.view_service_manager_item.setText(translate('OpenLP.MainWindow', '&Service')) | 447 | self.view_service_manager_item.setText(translate('OpenLP.MainWindow', '&Service')) |
95 | 448 | self.view_service_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Service.')) | 448 | self.view_service_manager_item.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Service.')) |
96 | 449 | self.view_service_manager_item.setStatusTip(translate('OpenLP.MainWindow', | 449 | self.view_service_manager_item.setStatusTip(translate('OpenLP.MainWindow', |
98 | 450 | 'Toggle the visibility of the Service.')) | 450 | 'Toggle visibility of the Service.')) |
99 | 451 | self.view_preview_panel.setText(translate('OpenLP.MainWindow', '&Preview')) | 451 | self.view_preview_panel.setText(translate('OpenLP.MainWindow', '&Preview')) |
100 | 452 | self.view_preview_panel.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Preview.')) | 452 | self.view_preview_panel.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Preview.')) |
101 | 453 | self.view_preview_panel.setStatusTip( | 453 | self.view_preview_panel.setStatusTip( |
103 | 454 | translate('OpenLP.MainWindow', 'Toggle the visibility of the Preview.')) | 454 | translate('OpenLP.MainWindow', 'Toggle visibility of the Preview.')) |
104 | 455 | self.view_live_panel.setText(translate('OpenLP.MainWindow', 'Li&ve')) | 455 | self.view_live_panel.setText(translate('OpenLP.MainWindow', 'Li&ve')) |
105 | 456 | self.view_live_panel.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Live')) | 456 | self.view_live_panel.setToolTip(translate('OpenLP.MainWindow', 'Hide or show Live')) |
106 | 457 | self.lock_panel.setText(translate('OpenLP.MainWindow', 'L&ock visibility of the panels')) | 457 | self.lock_panel.setText(translate('OpenLP.MainWindow', 'L&ock visibility of the panels')) |
107 | 458 | self.lock_panel.setStatusTip(translate('OpenLP.MainWindow', 'Lock visibility of the panels.')) | 458 | self.lock_panel.setStatusTip(translate('OpenLP.MainWindow', 'Lock visibility of the panels.')) |
109 | 459 | self.view_live_panel.setStatusTip(translate('OpenLP.MainWindow', 'Toggle the visibility of the Live.')) | 459 | self.view_live_panel.setStatusTip(translate('OpenLP.MainWindow', 'Toggle visibility of the Live.')) |
110 | 460 | self.settings_plugin_list_item.setText(translate('OpenLP.MainWindow', '&Manage Plugins')) | 460 | self.settings_plugin_list_item.setText(translate('OpenLP.MainWindow', '&Manage Plugins')) |
112 | 461 | self.settings_plugin_list_item.setStatusTip(translate('OpenLP.MainWindow', 'You can activate or disable plugins' | 461 | self.settings_plugin_list_item.setStatusTip(translate('OpenLP.MainWindow', 'You can enable and disable plugins ' |
113 | 462 | 'from here.')) | 462 | 'from here.')) |
114 | 463 | self.about_item.setText(translate('OpenLP.MainWindow', '&About')) | 463 | self.about_item.setText(translate('OpenLP.MainWindow', '&About')) |
115 | 464 | self.about_item.setStatusTip(translate('OpenLP.MainWindow', 'More information about OpenLP.')) | 464 | self.about_item.setStatusTip(translate('OpenLP.MainWindow', 'More information about OpenLP.')) |
116 | @@ -487,9 +487,9 @@ | |||
117 | 487 | self.update_theme_images.setText(translate('OpenLP.MainWindow', 'Update Theme Images')) | 487 | self.update_theme_images.setText(translate('OpenLP.MainWindow', 'Update Theme Images')) |
118 | 488 | self.update_theme_images.setStatusTip(translate('OpenLP.MainWindow', | 488 | self.update_theme_images.setStatusTip(translate('OpenLP.MainWindow', |
119 | 489 | 'Update the preview images for all themes.')) | 489 | 'Update the preview images for all themes.')) |
123 | 490 | self.mode_default_item.setText(translate('OpenLP.MainWindow', '&Default')) | 490 | self.mode_default_item.setText(translate('OpenLP.MainWindow', '&Show all')) |
124 | 491 | self.mode_default_item.setStatusTip(translate('OpenLP.MainWindow', 'Reset the interface layout back to the ' | 491 | self.mode_default_item.setStatusTip(translate('OpenLP.MainWindow', 'Reset the interface back to the ' |
125 | 492 | 'default settings.')) | 492 | 'default layout and show all the panels.')) |
126 | 493 | self.mode_setup_item.setText(translate('OpenLP.MainWindow', '&Setup')) | 493 | self.mode_setup_item.setText(translate('OpenLP.MainWindow', '&Setup')) |
127 | 494 | self.mode_setup_item.setStatusTip(translate('OpenLP.MainWindow', 'Use layout that focuses on setting' | 494 | self.mode_setup_item.setStatusTip(translate('OpenLP.MainWindow', 'Use layout that focuses on setting' |
128 | 495 | ' up the Service.')) | 495 | ' up the Service.')) |
129 | @@ -954,7 +954,7 @@ | |||
130 | 954 | self, | 954 | self, |
131 | 955 | translate('OpenLP.MainWindow', 'Export Settings File'), | 955 | translate('OpenLP.MainWindow', 'Export Settings File'), |
132 | 956 | '', | 956 | '', |
134 | 957 | translate('OpenLP.MainWindow', 'Exported OpenLP Settings (*.conf)')) | 957 | translate('OpenLP.MainWindow', 'OpenLP Settings (*.conf)')) |
135 | 958 | if not export_file_name: | 958 | if not export_file_name: |
136 | 959 | return | 959 | return |
137 | 960 | # Make sure it's a .conf file. | 960 | # Make sure it's a .conf file. |
138 | 961 | 961 | ||
139 | === modified file 'openlp/plugins/media/lib/mediaitem.py' | |||
140 | --- openlp/plugins/media/lib/mediaitem.py 2016-07-24 20:20:25 +0000 | |||
141 | +++ openlp/plugins/media/lib/mediaitem.py 2016-08-11 17:13:08 +0000 | |||
142 | @@ -133,7 +133,7 @@ | |||
143 | 133 | disable_optical_button_text = True | 133 | disable_optical_button_text = True |
144 | 134 | optical_button_text = translate('MediaPlugin.MediaItem', 'Load CD/DVD') | 134 | optical_button_text = translate('MediaPlugin.MediaItem', 'Load CD/DVD') |
145 | 135 | optical_button_tooltip = translate('MediaPlugin.MediaItem', | 135 | optical_button_tooltip = translate('MediaPlugin.MediaItem', |
147 | 136 | 'CD/DVD Playback is only supported if VLC is installed and enabled.') | 136 | 'CD/DVD playback is only supported if VLC is installed and enabled.') |
148 | 137 | self.load_optical = self.toolbar.add_toolbar_action('load_optical', icon=self.optical_icon, | 137 | self.load_optical = self.toolbar.add_toolbar_action('load_optical', icon=self.optical_icon, |
149 | 138 | text=optical_button_text, | 138 | text=optical_button_text, |
150 | 139 | tooltip=optical_button_tooltip, | 139 | tooltip=optical_button_tooltip, |
151 | 140 | 140 | ||
152 | === modified file 'openlp/plugins/presentations/lib/presentationtab.py' | |||
153 | --- openlp/plugins/presentations/lib/presentationtab.py 2016-07-24 20:20:25 +0000 | |||
154 | +++ openlp/plugins/presentations/lib/presentationtab.py 2016-08-11 17:13:08 +0000 | |||
155 | @@ -125,11 +125,11 @@ | |||
156 | 125 | translate('PresentationPlugin.PresentationTab', 'Allow presentation application to be overridden')) | 125 | translate('PresentationPlugin.PresentationTab', 'Allow presentation application to be overridden')) |
157 | 126 | self.ppt_slide_click_check_box.setText( | 126 | self.ppt_slide_click_check_box.setText( |
158 | 127 | translate('PresentationPlugin.PresentationTab', | 127 | translate('PresentationPlugin.PresentationTab', |
160 | 128 | 'Clicking on current slide advances to the next effect')) | 128 | 'Clicking on the current slide advances to the next effect')) |
161 | 129 | self.ppt_window_check_box.setText( | 129 | self.ppt_window_check_box.setText( |
162 | 130 | translate('PresentationPlugin.PresentationTab', | 130 | translate('PresentationPlugin.PresentationTab', |
163 | 131 | 'Let PowerPoint control the size and monitor of the presentations\n' | 131 | 'Let PowerPoint control the size and monitor of the presentations\n' |
165 | 132 | '(This may fixes PowerPoint scaling issues in Windows 8 and 10)')) | 132 | '(This may fix PowerPoint scaling issues in Windows 8 and 10)')) |
166 | 133 | self.pdf_program_check_box.setText( | 133 | self.pdf_program_check_box.setText( |
167 | 134 | translate('PresentationPlugin.PresentationTab', 'Use given full path for mudraw or ghostscript binary:')) | 134 | translate('PresentationPlugin.PresentationTab', 'Use given full path for mudraw or ghostscript binary:')) |
168 | 135 | 135 |
Please stop changing remotes as I am deleting it.
I know it is not of your making but I needed to read the code a few times to work out what it was doing! Can we have it a bit more logical please.
Needs tests !