Merge lp:~trb143/openlp/bug-943843 into lp:openlp
- bug-943843
- Merge into trunk
Proposed by
Tim Bentley
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 1909 | ||||||||
Proposed branch: | lp:~trb143/openlp/bug-943843 | ||||||||
Merge into: | lp:openlp | ||||||||
Diff against target: |
249 lines (+69/-39) 11 files modified
openlp/core/lib/eventreceiver.py (+3/-0) openlp/core/lib/plugin.py (+9/-0) openlp/plugins/remotes/html/index.html (+6/-6) openlp/plugins/remotes/html/openlp.css (+6/-6) openlp/plugins/remotes/html/openlp.js (+6/-6) openlp/plugins/remotes/html/stage.css (+7/-7) openlp/plugins/remotes/html/stage.html (+6/-6) openlp/plugins/remotes/html/stage.js (+6/-6) openlp/plugins/remotes/lib/httpserver.py (+3/-1) openlp/plugins/remotes/lib/remotetab.py (+9/-1) openlp/plugins/remotes/remoteplugin.py (+8/-0) |
||||||||
To merge this branch: | bzr merge lp:~trb143/openlp/bug-943843 | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Corwin (community) | Approve | ||
Review via email: mp+98089@code.launchpad.net |
This proposal supersedes a proposal from 2012-03-17.
Commit message
Description of the change
A number of fixes .
= Correct copyright headers
= Allow remotes to change IP and Port without restarting
= Make the clock smaller in stage view.
= Stop Alerts posting if the plugin is disabled.
To post a comment you must log in.
Revision history for this message
Jonathan Corwin (j-corwin) wrote : Posted in a previous version of this proposal | # |
review:
Approve
Revision history for this message
Jonathan Corwin (j-corwin) wrote : Posted in a previous version of this proposal | # |
Oops, meant Needs Fixing
review:
Needs Fixing
Revision history for this message
Tim Bentley (trb143) wrote : Posted in a previous version of this proposal | # |
Well that is interesting as they are correct in my editors so cannot fix.
Revision history for this message
Jonathan Corwin (j-corwin) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'openlp/core/lib/eventreceiver.py' | |||
2 | --- openlp/core/lib/eventreceiver.py 2012-01-28 08:07:54 +0000 | |||
3 | +++ openlp/core/lib/eventreceiver.py 2012-03-18 08:20:24 +0000 | |||
4 | @@ -217,6 +217,9 @@ | |||
5 | 217 | Ask the plugin to process an individual service item after it has been | 217 | Ask the plugin to process an individual service item after it has been |
6 | 218 | loaded. | 218 | loaded. |
7 | 219 | 219 | ||
8 | 220 | ``{plugin}_config_updated`` | ||
9 | 221 | The config has changed so tell the plugin about it. | ||
10 | 222 | |||
11 | 220 | ``alerts_text`` | 223 | ``alerts_text`` |
12 | 221 | Displays an alert message. | 224 | Displays an alert message. |
13 | 222 | 225 | ||
14 | 223 | 226 | ||
15 | === modified file 'openlp/core/lib/plugin.py' | |||
16 | --- openlp/core/lib/plugin.py 2011-12-27 10:33:55 +0000 | |||
17 | +++ openlp/core/lib/plugin.py 2012-03-18 08:20:24 +0000 | |||
18 | @@ -173,6 +173,9 @@ | |||
19 | 173 | QtCore.QObject.connect(Receiver.get_receiver(), | 173 | QtCore.QObject.connect(Receiver.get_receiver(), |
20 | 174 | QtCore.SIGNAL(u'%s_add_service_item' % self.name), | 174 | QtCore.SIGNAL(u'%s_add_service_item' % self.name), |
21 | 175 | self.processAddServiceEvent) | 175 | self.processAddServiceEvent) |
22 | 176 | QtCore.QObject.connect(Receiver.get_receiver(), | ||
23 | 177 | QtCore.SIGNAL(u'%s_config_updated' % self.name), | ||
24 | 178 | self.configUpdated) | ||
25 | 176 | 179 | ||
26 | 177 | def checkPreConditions(self): | 180 | def checkPreConditions(self): |
27 | 178 | """ | 181 | """ |
28 | @@ -395,3 +398,9 @@ | |||
29 | 395 | Add html code to htmlbuilder. | 398 | Add html code to htmlbuilder. |
30 | 396 | """ | 399 | """ |
31 | 397 | return u'' | 400 | return u'' |
32 | 401 | |||
33 | 402 | def configUpdated(self): | ||
34 | 403 | """ | ||
35 | 404 | The plugin's config has changed | ||
36 | 405 | """ | ||
37 | 406 | pass | ||
38 | 398 | 407 | ||
39 | === modified file 'openlp/plugins/remotes/html/index.html' | |||
40 | --- openlp/plugins/remotes/html/index.html 2012-03-03 05:13:48 +0000 | |||
41 | +++ openlp/plugins/remotes/html/index.html 2012-03-18 08:20:24 +0000 | |||
42 | @@ -4,12 +4,12 @@ | |||
43 | 4 | ############################################################################### | 4 | ############################################################################### |
44 | 5 | # OpenLP - Open Source Lyrics Projection # | 5 | # OpenLP - Open Source Lyrics Projection # |
45 | 6 | # --------------------------------------------------------------------------- # | 6 | # --------------------------------------------------------------------------- # |
52 | 7 | # Copyright (c) 2008-2011 Raoul Snyman # | 7 | # Copyright (c) 2008-2012 Raoul Snyman # |
53 | 8 | # Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael # | 8 | # Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan # |
54 | 9 | # Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, # | 9 | # Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, # |
55 | 10 | # Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, # | 10 | # Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias # |
56 | 11 | # Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode # | 11 | # Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, # |
57 | 12 | # Woldsund # | 12 | # Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund # |
58 | 13 | # --------------------------------------------------------------------------- # | 13 | # --------------------------------------------------------------------------- # |
59 | 14 | # This program is free software; you can redistribute it and/or modify it # | 14 | # This program is free software; you can redistribute it and/or modify it # |
60 | 15 | # under the terms of the GNU General Public License as published by the Free # | 15 | # under the terms of the GNU General Public License as published by the Free # |
61 | 16 | 16 | ||
62 | === modified file 'openlp/plugins/remotes/html/openlp.css' | |||
63 | --- openlp/plugins/remotes/html/openlp.css 2011-05-24 20:47:05 +0000 | |||
64 | +++ openlp/plugins/remotes/html/openlp.css 2012-03-18 08:20:24 +0000 | |||
65 | @@ -1,12 +1,12 @@ | |||
66 | 1 | /***************************************************************************** | 1 | /***************************************************************************** |
67 | 2 | * OpenLP - Open Source Lyrics Projection * | 2 | * OpenLP - Open Source Lyrics Projection * |
68 | 3 | * ------------------------------------------------------------------------- * | 3 | * ------------------------------------------------------------------------- * |
75 | 4 | * Copyright (c) 2008-2010 Raoul Snyman * | 4 | * Copyright (c) 2008-2012 Raoul Snyman * |
76 | 5 | * Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael * | 5 | * Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan * |
77 | 6 | * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, * | 6 | * Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, * |
78 | 7 | * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, * | 7 | * Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias * |
79 | 8 | * Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode * | 8 | * Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, * |
80 | 9 | * Woldsund * | 9 | * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund * |
81 | 10 | * ------------------------------------------------------------------------- * | 10 | * ------------------------------------------------------------------------- * |
82 | 11 | * This program is free software; you can redistribute it and/or modify it * | 11 | * This program is free software; you can redistribute it and/or modify it * |
83 | 12 | * under the terms of the GNU General Public License as published by the * | 12 | * under the terms of the GNU General Public License as published by the * |
84 | 13 | 13 | ||
85 | === modified file 'openlp/plugins/remotes/html/openlp.js' | |||
86 | --- openlp/plugins/remotes/html/openlp.js 2011-12-23 16:03:37 +0000 | |||
87 | +++ openlp/plugins/remotes/html/openlp.js 2012-03-18 08:20:24 +0000 | |||
88 | @@ -1,12 +1,12 @@ | |||
89 | 1 | /***************************************************************************** | 1 | /***************************************************************************** |
90 | 2 | * OpenLP - Open Source Lyrics Projection * | 2 | * OpenLP - Open Source Lyrics Projection * |
91 | 3 | * ------------------------------------------------------------------------- * | 3 | * ------------------------------------------------------------------------- * |
98 | 4 | * Copyright (c) 2008-2010 Raoul Snyman * | 4 | * Copyright (c) 2008-2012 Raoul Snyman * |
99 | 5 | * Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael * | 5 | * Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan * |
100 | 6 | * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, * | 6 | * Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, * |
101 | 7 | * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, * | 7 | * Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias * |
102 | 8 | * Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode * | 8 | * Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, * |
103 | 9 | * Woldsund * | 9 | * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund * |
104 | 10 | * ------------------------------------------------------------------------- * | 10 | * ------------------------------------------------------------------------- * |
105 | 11 | * This program is free software; you can redistribute it and/or modify it * | 11 | * This program is free software; you can redistribute it and/or modify it * |
106 | 12 | * under the terms of the GNU General Public License as published by the * | 12 | * under the terms of the GNU General Public License as published by the * |
107 | 13 | 13 | ||
108 | === modified file 'openlp/plugins/remotes/html/stage.css' | |||
109 | --- openlp/plugins/remotes/html/stage.css 2011-05-24 20:47:05 +0000 | |||
110 | +++ openlp/plugins/remotes/html/stage.css 2012-03-18 08:20:24 +0000 | |||
111 | @@ -1,12 +1,12 @@ | |||
112 | 1 | /***************************************************************************** | 1 | /***************************************************************************** |
113 | 2 | * OpenLP - Open Source Lyrics Projection * | 2 | * OpenLP - Open Source Lyrics Projection * |
114 | 3 | * ------------------------------------------------------------------------- * | 3 | * ------------------------------------------------------------------------- * |
121 | 4 | * Copyright (c) 2008-2010 Raoul Snyman * | 4 | * Copyright (c) 2008-2012 Raoul Snyman * |
122 | 5 | * Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael * | 5 | * Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan * |
123 | 6 | * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, * | 6 | * Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, * |
124 | 7 | * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, * | 7 | * Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias * |
125 | 8 | * Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode * | 8 | * Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, * |
126 | 9 | * Woldsund * | 9 | * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund * |
127 | 10 | * ------------------------------------------------------------------------- * | 10 | * ------------------------------------------------------------------------- * |
128 | 11 | * This program is free software; you can redistribute it and/or modify it * | 11 | * This program is free software; you can redistribute it and/or modify it * |
129 | 12 | * under the terms of the GNU General Public License as published by the * | 12 | * under the terms of the GNU General Public License as published by the * |
130 | @@ -46,7 +46,7 @@ | |||
131 | 46 | } | 46 | } |
132 | 47 | 47 | ||
133 | 48 | #clock { | 48 | #clock { |
135 | 49 | font-size: 40pt; | 49 | font-size: 30pt; |
136 | 50 | color: yellow; | 50 | color: yellow; |
137 | 51 | text-align: right; | 51 | text-align: right; |
138 | 52 | } | 52 | } |
139 | 53 | 53 | ||
140 | === modified file 'openlp/plugins/remotes/html/stage.html' | |||
141 | --- openlp/plugins/remotes/html/stage.html 2011-05-31 11:25:35 +0000 | |||
142 | +++ openlp/plugins/remotes/html/stage.html 2012-03-18 08:20:24 +0000 | |||
143 | @@ -4,12 +4,12 @@ | |||
144 | 4 | ############################################################################### | 4 | ############################################################################### |
145 | 5 | # OpenLP - Open Source Lyrics Projection # | 5 | # OpenLP - Open Source Lyrics Projection # |
146 | 6 | # --------------------------------------------------------------------------- # | 6 | # --------------------------------------------------------------------------- # |
153 | 7 | # Copyright (c) 2008-2011 Raoul Snyman # | 7 | # Copyright (c) 2008-2012 Raoul Snyman # |
154 | 8 | # Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael # | 8 | # Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan # |
155 | 9 | # Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, # | 9 | # Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, # |
156 | 10 | # Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, # | 10 | # Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias # |
157 | 11 | # Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode # | 11 | # Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, # |
158 | 12 | # Woldsund # | 12 | # Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund # |
159 | 13 | # --------------------------------------------------------------------------- # | 13 | # --------------------------------------------------------------------------- # |
160 | 14 | # This program is free software; you can redistribute it and/or modify it # | 14 | # This program is free software; you can redistribute it and/or modify it # |
161 | 15 | # under the terms of the GNU General Public License as published by the Free # | 15 | # under the terms of the GNU General Public License as published by the Free # |
162 | 16 | 16 | ||
163 | === modified file 'openlp/plugins/remotes/html/stage.js' | |||
164 | --- openlp/plugins/remotes/html/stage.js 2011-11-27 19:39:39 +0000 | |||
165 | +++ openlp/plugins/remotes/html/stage.js 2012-03-18 08:20:24 +0000 | |||
166 | @@ -1,12 +1,12 @@ | |||
167 | 1 | /***************************************************************************** | 1 | /***************************************************************************** |
168 | 2 | * OpenLP - Open Source Lyrics Projection * | 2 | * OpenLP - Open Source Lyrics Projection * |
169 | 3 | * ------------------------------------------------------------------------- * | 3 | * ------------------------------------------------------------------------- * |
176 | 4 | * Copyright (c) 2008-2010 Raoul Snyman * | 4 | * Copyright (c) 2008-2012 Raoul Snyman * |
177 | 5 | * Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael * | 5 | * Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan * |
178 | 6 | * Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, * | 6 | * Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, * |
179 | 7 | * Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, * | 7 | * Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias * |
180 | 8 | * Jeffrey Smith, Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode * | 8 | * Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, * |
181 | 9 | * Woldsund * | 9 | * Maikel Stuivenberg, Martin Thompson, Jon Tibble, Frode Woldsund * |
182 | 10 | * ------------------------------------------------------------------------- * | 10 | * ------------------------------------------------------------------------- * |
183 | 11 | * This program is free software; you can redistribute it and/or modify it * | 11 | * This program is free software; you can redistribute it and/or modify it * |
184 | 12 | * under the terms of the GNU General Public License as published by the * | 12 | * under the terms of the GNU General Public License as published by the * |
185 | 13 | 13 | ||
186 | === modified file 'openlp/plugins/remotes/lib/httpserver.py' | |||
187 | --- openlp/plugins/remotes/lib/httpserver.py 2012-03-15 06:15:21 +0000 | |||
188 | +++ openlp/plugins/remotes/lib/httpserver.py 2012-03-18 08:20:24 +0000 | |||
189 | @@ -427,7 +427,9 @@ | |||
190 | 427 | Send an alert. | 427 | Send an alert. |
191 | 428 | """ | 428 | """ |
192 | 429 | text = json.loads(self.url_params[u'data'][0])[u'request'][u'text'] | 429 | text = json.loads(self.url_params[u'data'][0])[u'request'][u'text'] |
194 | 430 | Receiver.send_message(u'alerts_text', [text]) | 430 | plugin = self.parent.plugin.pluginManager.get_plugin_by_name("alerts") |
195 | 431 | if plugin.status == PluginStatus.Active: | ||
196 | 432 | Receiver.send_message(u'alerts_text', [text]) | ||
197 | 431 | return HttpResponse(json.dumps({u'results': {u'success': True}}), | 433 | return HttpResponse(json.dumps({u'results': {u'success': True}}), |
198 | 432 | {u'Content-Type': u'application/json'}) | 434 | {u'Content-Type': u'application/json'}) |
199 | 433 | 435 | ||
200 | 434 | 436 | ||
201 | === modified file 'openlp/plugins/remotes/lib/remotetab.py' | |||
202 | --- openlp/plugins/remotes/lib/remotetab.py 2012-01-30 17:44:37 +0000 | |||
203 | +++ openlp/plugins/remotes/lib/remotetab.py 2012-03-18 08:20:24 +0000 | |||
204 | @@ -27,7 +27,7 @@ | |||
205 | 27 | 27 | ||
206 | 28 | from PyQt4 import QtCore, QtGui, QtNetwork | 28 | from PyQt4 import QtCore, QtGui, QtNetwork |
207 | 29 | 29 | ||
209 | 30 | from openlp.core.lib import SettingsTab, translate | 30 | from openlp.core.lib import SettingsTab, translate, Receiver |
210 | 31 | 31 | ||
211 | 32 | ZERO_URL = u'0.0.0.0' | 32 | ZERO_URL = u'0.0.0.0' |
212 | 33 | 33 | ||
213 | @@ -160,12 +160,20 @@ | |||
214 | 160 | self.setUrls() | 160 | self.setUrls() |
215 | 161 | 161 | ||
216 | 162 | def save(self): | 162 | def save(self): |
217 | 163 | changed = False | ||
218 | 164 | if QtCore.QSettings().value(self.settingsSection + u'/ip address', | ||
219 | 165 | QtCore.QVariant(ZERO_URL).toString() != self.addressEdit.text() or | ||
220 | 166 | QtCore.QSettings().value(self.settingsSection + u'/port', | ||
221 | 167 | QtCore.QVariant(4316).toInt()[0]) != self.portSpinBox.value()): | ||
222 | 168 | changed = True | ||
223 | 163 | QtCore.QSettings().setValue(self.settingsSection + u'/port', | 169 | QtCore.QSettings().setValue(self.settingsSection + u'/port', |
224 | 164 | QtCore.QVariant(self.portSpinBox.value())) | 170 | QtCore.QVariant(self.portSpinBox.value())) |
225 | 165 | QtCore.QSettings().setValue(self.settingsSection + u'/ip address', | 171 | QtCore.QSettings().setValue(self.settingsSection + u'/ip address', |
226 | 166 | QtCore.QVariant(self.addressEdit.text())) | 172 | QtCore.QVariant(self.addressEdit.text())) |
227 | 167 | QtCore.QSettings().setValue(self.settingsSection + u'/twelve hour', | 173 | QtCore.QSettings().setValue(self.settingsSection + u'/twelve hour', |
228 | 168 | QtCore.QVariant(self.twelveHour)) | 174 | QtCore.QVariant(self.twelveHour)) |
229 | 175 | if changed: | ||
230 | 176 | Receiver.send_message(u'remotes_config_updated') | ||
231 | 169 | 177 | ||
232 | 170 | def onTwelveHourCheckBoxChanged(self, check_state): | 178 | def onTwelveHourCheckBoxChanged(self, check_state): |
233 | 171 | self.twelveHour = False | 179 | self.twelveHour = False |
234 | 172 | 180 | ||
235 | === modified file 'openlp/plugins/remotes/remoteplugin.py' | |||
236 | --- openlp/plugins/remotes/remoteplugin.py 2011-12-27 10:33:55 +0000 | |||
237 | +++ openlp/plugins/remotes/remoteplugin.py 2012-03-18 08:20:24 +0000 | |||
238 | @@ -86,3 +86,11 @@ | |||
239 | 86 | self.textStrings[StringContent.VisibleName] = { | 86 | self.textStrings[StringContent.VisibleName] = { |
240 | 87 | u'title': translate('RemotePlugin', 'Remote', 'container title') | 87 | u'title': translate('RemotePlugin', 'Remote', 'container title') |
241 | 88 | } | 88 | } |
242 | 89 | |||
243 | 90 | def configUpdated(self): | ||
244 | 91 | """ | ||
245 | 92 | Called when Config is changed to restart the server on new address or | ||
246 | 93 | port | ||
247 | 94 | """ | ||
248 | 95 | self.finalise() | ||
249 | 96 | self.initialise() |
In places you've removed Armin Köhler and Mattias Põldaru (line 172/173) and replaced with Armin Köhler and Mattias Põldaru. Could the ö and õ be used throughout?
242: Why another blank line?