commit/StationPlaylist: josephsl: Stream labels are now announced

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sat, 07 Mar 2015 21:55:39 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/be9520fb2a82/
Changeset:   be9520fb2a82
Branch:      5.0/encodersPackage
User:        josephsl
Date:        2015-03-07 21:55:16+00:00
Summary:     Stream labels are now announced

Affected #:  1 file

diff --git a/addon/globalPlugins/SPLStudioUtils/encoders.py 
b/addon/globalPlugins/SPLStudioUtils/encoders.py
index 393a51d..5a038e9 100755
--- a/addon/globalPlugins/SPLStudioUtils/encoders.py
+++ b/addon/globalPlugins/SPLStudioUtils/encoders.py
@@ -187,8 +187,7 @@ class Encoder(IAccessible):
        script_encoderDateTime.category=_("Station Playlist Studio")
 
 
-       """def reportFocus(self):
-               import globalPlugins
+       def reportFocus(self):
                streamLabel = self.getStreamLabel()
                # Speak the stream label if it exists.
                if streamLabel is not None:
@@ -196,7 +195,7 @@ class Encoder(IAccessible):
                                self.name = "(" + streamLabel + ") " + self.name
                        except TypeError:
                                pass
-               super(globalPlugins.SPLStudioUtils.SAMEncoderWindow, 
self).reportFocus()"""
+               super(Encoder, self).reportFocus()
 
 
        __gestures={
@@ -313,7 +312,7 @@ class SAMEncoder(Encoder):
                try:
                        self.backgroundMonitor = 
SAMBackgroundMonitor[self.IAccessibleChildID]
                except KeyError:
-                       pass #self.backgroundMonitor = False
+                       pass
 
        def getStreamLabel(self):
                if str(self.IAccessibleChildID) in SAMStreamLabels:
@@ -321,17 +320,6 @@ class SAMEncoder(Encoder):
                return None
 
 
-       def reportFocus(self):
-               streamLabel = self.getStreamLabel()
-               # Speak the stream label if it exists.
-               if streamLabel is not None:
-                       try:
-                               self.name = "(" + streamLabel + ") " + self.name
-                       except TypeError:
-                               pass
-               super(SAMEncoder, self).reportFocus()
-
-
        __gestures={
                "kb:f9":"connect",
                "kb:f10":"disconnect"
@@ -426,7 +414,7 @@ class SPLEncoder(Encoder):
                try:
                        self.backgroundMonitor = 
SPLBackgroundMonitor[self.IAccessibleChildID]
                except KeyError:
-                       pass #self.backgroundMonitor = False
+                       pass
 
        def getStreamLabel(self):
                if str(self.IAccessibleChildID) in SPLStreamLabels:

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: Stream labels are now announced - commits-noreply