Merge lp:~raoul-snyman/openlp/slidecontroller into lp:openlp

Proposed by Raoul Snyman
Status: Merged
Merged at revision: not available
Proposed branch: lp:~raoul-snyman/openlp/slidecontroller
Merge into: lp:openlp
Diff against target: None lines
To merge this branch: bzr merge lp:~raoul-snyman/openlp/slidecontroller
Reviewer Review Type Date Requested Status
Tim Bentley Approve
Review via email: mp+7736@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

Just changed the key press events to a more intuitive set:

1. Up goes to the previous slide
2. Down goes to the next slide
3. Page Up goes to the first slide
4. Page Down goes to the next slide

Revision history for this message
Raoul Snyman (raoul-snyman) wrote :

I mean, Page Down goes to the *last* slide

Revision history for this message
Martin Thompson (mjthompson) wrote :

On Sun, Jun 21, 2009 at 07:50:16PM -0000 or thereabouts, Raoul Snyman wrote:
> Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/slidecontroller into lp:openlp.
>
> Requested reviews:
> openlp.org Core (openlp-core)
>
> Just changed the key press events to a more intuitive set:
>
> 1. Up goes to the previous slide
> 2. Down goes to the next slide
> 3. Page Up goes to the first slide
> 4. Page Down goes to the next slide

Shouldn't Home and End go to the first/last slides? Page up/down should move by a "screenfull of slides" (if we can establish that?)

Martin

--
<email address hidden>
  Don't act paranoid - it only attracts Their attention.

Revision history for this message
Tim Bentley (trb143) wrote :

Approved.
Page Up / Down could be done but the maths would be complex.

Slides per window would be needed.
Also were in the window was the slide. The view can scroll

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/core/ui/slidecontroller.py'
2--- openlp/core/ui/slidecontroller.py 2009-06-21 16:26:33 +0000
3+++ openlp/core/ui/slidecontroller.py 2009-06-21 19:41:01 +0000
4@@ -104,11 +104,17 @@
5 def keyPressEvent(self, event):
6 if type(event) == QtGui.QKeyEvent:
7 #here accept the event and do something
8- if event.key() == QtCore.Qt.Key_PageUp:
9+ if event.key() == QtCore.Qt.Key_Up:
10 self.parent.onSlideSelectedPrevious()
11 event.accept()
12+ elif event.key() == QtCore.Qt.Key_Down:
13+ self.parent.onSlideSelectedNext()
14+ event.accept()
15+ elif event.key() == QtCore.Qt.Key_PageUp:
16+ self.parent.onSlideSelectedFirst()
17+ event.accept()
18 elif event.key() == QtCore.Qt.Key_PageDown:
19- self.parent.onSlideSelectedNext()
20+ self.parent.onSlideSelectedLast()
21 event.accept()
22 event.ignore()
23 else: