commit/StationPlaylist: josephsl: Track Tool (6.0-dev): Track Dial for Track Tool and window style improvement.

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

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/eee5ed04bad9/
Changeset: eee5ed04bad9
Branch: 6.0/tt4ttUserTrackDialMap
User: josephsl
Date: 2015-08-31 04:40:03+00:00
Summary: Track Tool (6.0-dev): Track Dial for Track Tool and window style
improvement.

If a custom gesture for toggling Track Dial in Studio is defined, use this
gesture to toggle Track Dial for Track tool also.
When looking at overlay classes, make sure additional window style values are
checked (reinstalling Windows apparanelty changed window style for Stuido 5.0x
track items). The known window style values lives in the app module until it is
decided to move them to the misc services module.

Affected #: 2 files

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 05be334..2a3c170 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -64,6 +64,9 @@ 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]
+
# Braille and play a sound in response to an alarm or an event.
def messageSound(wavFile, message):
nvwave.playWaveFile(wavFile)
@@ -309,10 +312,11 @@ class AppModule(appModuleHandler.AppModule):
def chooseNVDAObjectOverlayClasses(self, obj, clsList):
role = obj.role
windowStyle = obj.windowStyle
- 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 ==
1442938953:
- clsList.insert(0, SPLTrackItem)
+ 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)

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

diff --git a/addon/appModules/tracktool.py b/addon/appModules/tracktool.py
index c1cd08e..d30919a 100755
--- a/addon/appModules/tracktool.py
+++ b/addon/appModules/tracktool.py
@@ -36,6 +36,12 @@ class TrackToolItem(IAccessible):
if self.appModule.TTDial:
self.bindGesture("kb:rightArrow", "nextColumn")
self.bindGesture("kb:leftArrow", "prevColumn")
+ # See if Track Dial toggle for Studio is defined, and if so,
pull it in.
+ import inputCore
+ userGestures = inputCore.manager.userGestureMap._map
+ for gesture in userGestures:
+ if userGestures[gesture][0][2] == "toggleTrackDial":
+ self.bindGesture(gesture, "toggleTrackDial")

# Track Dial for Track Tool.

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: Track Tool (6.0-dev): Track Dial for Track Tool and window style improvement. - commits-noreply