commit/StationPlaylist: josephsl: Style values will be checked when using Studio 5.0x.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Mon, 31 Aug 2015 04:54:43 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/2bc57ec5eaad/
Changeset: 2bc57ec5eaad
Branch: 6.0/tt4ttUserTrackDialMap
User: josephsl
Date: 2015-08-31 04:53:55+00:00
Summary: Style values will be checked when using Studio 5.0x.

Thankfully, studio 5.10 uses same window style, which simplifies style value
check (Studio 5.0x only).

Affected #: 1 file

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 2a3c170..0a41b2d 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -64,8 +64,8 @@ libScanT = None
# Blacklisted versions of Studio where library scanning functionality is
broken.
noLibScanMonitor = []

-# List of known window style values to check for track items.
-knownStyles = [1443991625, 1442938953, 1443987529]
+# List of known window style values to check for track items in Studio 5.0x..
+known50styles = [1442938953, 1443987529]

# Braille and play a sound in response to an alarm or an event.
def messageSound(wavFile, message):
@@ -312,11 +312,10 @@ class AppModule(appModuleHandler.AppModule):
def chooseNVDAObjectOverlayClasses(self, obj, clsList):
role = obj.role
windowStyle = obj.windowStyle
- if windowStyle in knownStyles:
- if obj.windowClassName == "TTntListView.UnicodeClass"
and role == controlTypes.ROLE_LISTITEM and windowStyle == 1443991625:
- clsList.insert(0, SPL510TrackItem)
- elif obj.windowClassName == "TListView" and role in
(controlTypes.ROLE_CHECKBOX, controlTypes.ROLE_LISTITEM) and windowStyle in
(1442938953, 1443987529):
- clsList.insert(0, SPLTrackItem)
+ if obj.windowClassName == "TTntListView.UnicodeClass" and role
== controlTypes.ROLE_LISTITEM and windowStyle == 1443991625:
+ clsList.insert(0, SPL510TrackItem)
+ elif obj.windowClassName == "TListView" and role in
(controlTypes.ROLE_CHECKBOX, controlTypes.ROLE_LISTITEM) and windowStyle in
known50styles:
+ clsList.insert(0, SPLTrackItem)

# Keep an eye on library scans in insert tracks window.
libraryScanning = False

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: Style values will be checked when using Studio 5.0x. - commits-noreply