commit/StationPlaylist: josephsl: Encoder columns (6.0-dev): Initial work for announcing encoder columns.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Wed, 12 Aug 2015 23:03:15 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/3b098809163b/
Changeset: 3b098809163b
Branch: 6.0/encoderColumns
User: josephsl
Date: 2015-08-12 20:24:21+00:00
Summary: Encoder columns (6.0-dev): Initial work for announcing encoder
columns.

The base encoder class has gained two new scripts: announcing encoder position
and label, respectively. This will be extended in subclasses to announce
encoder status and name.

Affected #: 1 file

diff --git a/addon/globalPlugins/SPLStudioUtils/encoders.py
b/addon/globalPlugins/SPLStudioUtils/encoders.py
index 166f245..ed3380b 100755
--- a/addon/globalPlugins/SPLStudioUtils/encoders.py
+++ b/addon/globalPlugins/SPLStudioUtils/encoders.py
@@ -256,6 +256,21 @@ class Encoder(IAccessible):
script_encoderDateTime.__doc__=_("If pressed once, reports the current
time including seconds. If pressed twice, reports the current date")
script_encoderDateTime.category=_("Station Playlist Studio")

+ # Various column announcement scripts.
+ # This base class implements encoder position and stream labels.
+ def script_announceEncoderPosition(self, gesture):
+ ui.message("Position: {pos}".format(pos =
self.IAccessibleChildID))
+
+ def script_announceEncoderLabel(self, gesture):
+ try:
+ streamLabel = self.getStreamLabel()[0]
+ except TypeError:
+ streamLabel = None
+ if streamLabel:
+ ui.message("Label: {label}".format(label = streamLabel))
+ else:
+ ui.message("No stream label")
+

def initOverlayClass(self):
# Load stream labels upon request.
@@ -292,7 +307,10 @@ class Encoder(IAccessible):
"kb:control+f11":"toggleBackgroundEncoderMonitor",
"kb:f12":"streamLabeler",
"kb:control+f12":"streamLabelEraser",
- "kb:NVDA+F12":"encoderDateTime"
+ "kb:NVDA+F12":"encoderDateTime",
+ "kb:control+NVDA+0":"streamLabeler",
+ "kb:control+NVDA+1":"announceEncoderPosition",
+ "kb:control+NVDA+2":"announceEncoderLabel",
}

Repository URL: https://bitbucket.org/nvdaaddonteam/stationplaylist/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.

Other related posts:

  • » commit/StationPlaylist: josephsl: Encoder columns (6.0-dev): Initial work for announcing encoder columns. - commits-noreply