Merge lp:~suutari-olli/openlp/click-slide-to-go-live-from-blank into lp:openlp
Status: | Superseded |
---|---|
Proposed branch: | lp:~suutari-olli/openlp/click-slide-to-go-live-from-blank |
Merge into: | lp:openlp |
Diff against target: |
235 lines (+137/-2) 4 files modified
openlp/core/common/settings.py (+1/-0) openlp/core/ui/generaltab.py (+7/-0) openlp/core/ui/slidecontroller.py (+32/-2) tests/functional/openlp_core_ui/test_slidecontroller.py (+97/-0) |
To merge this branch: | bzr merge lp:~suutari-olli/openlp/click-slide-to-go-live-from-blank |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tomas Groth | 2016-03-15 | Needs Fixing on 2016-03-15 | |
Review via email:
|
This proposal has been superseded by a proposal from 2016-04-01.
Description of the change
This branch introduces the functionality of unblanking
display from Blank to Black/Theme/Desktop for:
a) Clicking slide in “Live panel”
b) Next/Previous shortcuts (Green arrows)
c) Go to verse x.
d) When starting automatic playback (To end or Loop)
Also added “Unblank display when changing slide in Live” to advanced
options tab for disabling/enabling this behavior for a-c.
Additionally this branch also includes fix for bug
https:/
Do note that this branch does not fix this for Escape item blanking,
creating yet an another Escape exclusive bug.
The only reason Escape item has been a good alternative for other
blank to methods is the functionality of resuming Live by clicking
slides and the fact it worked in single screen scenarios.
I can’t see any reason why it should not be removed after this branch
is merged since the single screen issue was already fixed earlier.
Test coverage is not yet increased.
If it must be done, what has to be tested?
-------
lp:~suutari-olli/openlp/click-slide-to-go-live-from-blank (revision 2630)
[←[1;32mSUCCESS
[←[1;32mSUCCESS
[←[1;32mSUCCESS
[←[1;32mSUCCESS
[←[1;32mSUCCESS
[←[1;32mSUCCESS
[←[1;31mFAILURE
- 2632. By Azaziah on 2016-03-15
-
In this merge:
- Moved setting for controlling unblanking behaviour to General options tab.
- Removed it from advanced tab
- Changed default setting to "no"
- Looped playback (once or to end) is now linked to this setting
- Unblanking slides on click -.- no longer unblanks display when sending new items live if
"Unblank display when sending new item to live" is not enabled. -.-
- Doubleclicking preview -.- ^^
- Improved some commentsTo do:
Test(s)?
Azaziah (suutari-olli) wrote : | # |
Hi Tomas and thank you for your comments!
"Unblank display when adding new item" also exists in the general tab. You should probably move yours to be under the exiting one to keep similar settings in the same place. Currently your code doesn't honor the "Unblank display when adding new item
# Done and Done, now also honoring double clicking preview
Also the new setting should be "false" as default, this is new behavior, so users should enabled it if they want it.
# Done
# Currently this is default behavior for Escape item and probably easier
to use than our current blank to modes. I think this and some other settings
should eventually be changed to be more user friendly by default.
Tomas Groth (tomasgroth) wrote : | # |
Looks good now. As you mention in one of your source-comments the previous slide is shortly visible when display is unblanked. Don't know if it can be helped.
Added a comment to the code below.
Besides that, you need tests :)
Azaziah (suutari-olli) wrote : | # |
Thanks again,
if by previous slide being shortly visible you mean it happens once you change slide inside the Live Panel
and the transition effect is applied, yes that can be changed. I've heard people complaining there's no transition effects when unblanking or changing items so maybe it should be left as it is since it would mean loosing effects.
If you were talking about this happening on song edit:
Think it would be possible but would require quite a effort,
maybe we can let it pass for the time being, it's still mostly fixed.
I really suck at writing tests, is one enough for a rookie?
I also replied to the code comment.
- 2633. By Azaziah on 2016-04-01
-
Added 3 tests for replacing Live item from service manager while display is blanked. (One for each)
- 2634. By Azaziah on 2016-04-01
-
Merged to trunk (1.4.2016)
- 2635. By Azaziah on 2016-04-01
-
- Fixed issue where PPT/Impress is not unblanked on "Previous/Next" (Green arrows).
- 2636. By Azaziah on 2016-04-03
-
Changed Live to live (lowercaps) for controlling this setting to match other settings.
- 2637. By Azaziah on 2016-04-10
-
Merged trunk on 11.4.2016
- 2638. By Azaziah on 2016-04-12
-
Merged trunk on 13.4.16
- 2639. By Azaziah on 2016-04-13
-
Changed spelling of live back to Live (Capitalized) on settings.
- 2640. By Azaziah on 2016-04-17
-
- Fixed bug 1462420 - Double clicking Preview adds item to Service countless times
(Added hidden setting for controlling this, it is set to True once double clicking
has added item to Service and gets reset to False once new item is sent to preview. - 2641. By Azaziah on 2016-04-17
-
Fixed bug 1462420 (Double click on the preview duplicated the element in the service manger)
- Added a hidden setting for controlling this behaviour.
It is reset if any item is sent to preview from library.
Sending the same item to service multiple times is still possible by using the "Add icon" - 2642. By Azaziah on 2016-04-17
-
Turned the new setting into question.
- 2643. By Azaziah on 2016-04-17
-
Made a better fix for fixing bug where display is unblanked on editing current live item.
This now sets a hidden setting to true while processing Live item and then changes it back to false.
Display is thus not unblanked at all during the process. (Old fix showed the edited slide for a small time)Downside: All the new tests were based on the old method and thus they were removed.
- 2644. By Azaziah on 2016-04-17
-
Made a better fix for fixing bug where display is unblanked on editing current live item.
This now sets a hidden setting to true while processing Live item and then changes it back to false.
Display is thus not unblanked at all during the process. (Old fix showed the edited slide for a small time)Downside: All the new tests were based on the old method and thus they were removed.
- 2645. By Azaziah on 2016-04-17
-
- Removed _ from end of one setting name.
- Fixed ident on replace_service_ manager - 2646. By Azaziah on 2016-04-20
-
- Added two tests for checking if doubleclicking preview should add item to service or send it to live.
- 2647. By Azaziah on 2016-04-20
-
Noticed I had removed one test from end of the file, added it back.
- 2648. By Azaziah on 2016-04-27
-
Added this to program startup code, should replace_
service_ manager_ item ever crash the program. Settings(
).setValue( 'core/is live item edited and replaced', False) - 2649. By Azaziah on 2016-06-13
-
merged trunk on 14.6.16
- 2650. By Azaziah on 2016-06-26
-
- Turned the two new hidden settings into registry flags
- 2651. By Azaziah on 2016-06-26
-
Comment cleanup / Improvements
- 2652. By Azaziah on 2016-06-26
-
- Merged trunk on 27.6.16
- 2653. By Azaziah on 2016-07-14
-
- Tried to make the new text work with the registry changes but failed.
> Test is broken, do not merge! - 2654. By Azaziah on 2016-07-14
-
Merged trunk on 14.7.16
- 2655. By Azaziah on 2016-07-14
-
pep8 fixes, test still broken.
- 2656. By Azaziah on 2016-07-16
-
Fixed the tests.
- 2657. By Azaziah on 2016-07-16
-
- Reduced comments
- Removed unrequired reg_value from test. - 2658. By Azaziah on 2016-07-17
-
- Fixed the issue where items sent to Preview from Service may cause tracebacks.
- 2659. By Azaziah on 2016-07-17
-
- Moved the 2nd new registry flag from one init to an another init which also has the 1st
- 2660. By Azaziah on 2016-07-17
-
- Moved them to another init since something broke
- 2661. By Azaziah on 2016-07-17
-
- removed one unrequired if statement.
- 2662. By Azaziah on 2016-07-31
-
- Merged trunk on 31.7.16
- 2663. By Azaziah on 2016-08-09
-
- Merged trunk on 10/8/16.
- 2664. By Azaziah on 2016-08-10
-
- Merged trunk and resolved conflict that was created by ui-messages-part-1 branch.
Just tested a bit.
You have introduced the "Click live slide to unblank" setting, but a "Unblank display when adding new item" also exists in the general tab. You should probably move yours to be under the exiting one to keep similar settings in the same place. Currently your code doesn't honor the "Unblank display when adding new item", which it will have to do. As it is now the item goes live no matter if the setting is enabled or not.
Also the new setting should be "false" as default, this is new behavior, so users should enabled it if they want it.
Also added a code-comment below.