commit/StationPlaylist: josephsl: Track Tally (6.0-dev): Announcement format change.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Tue, 23 Jun 2015 18:29:47 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/6687947cb47c/
Changeset: 6687947cb47c
Branch: 6.0/trackTally
User: josephsl
Date: 2015-06-22 04:52:46+00:00
Summary: Track Tally (6.0-dev): Announcement format change.

Affected #: 1 file

diff --git a/addon/appModules/splstudio/__init__.py
b/addon/appModules/splstudio/__init__.py
index 4017d35..2edebf0 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -1251,8 +1251,12 @@ class AppModule(appModuleHandler.AppModule):
if focus.role == controlTypes.ROLE_LIST:
ui.message("No tracks were added, cannot perform track
time analysis")
return
- self._analysisMarker = focus.IAccessibleChildID-1
- ui.message("Track time analysis activated")
+ if scriptHandler.getLastScriptRepeatCount() == 0:
+ self._analysisMarker = focus.IAccessibleChildID-1
+ ui.message("Track time analysis activated")
+ else:
+ self._analysisMarker = None
+ ui.message("Track time analysis deactivated")

def script_trackTimeAnalysis(self, gesture):
if self._analysisMarker is None:
@@ -1266,12 +1270,11 @@ class AppModule(appModuleHandler.AppModule):
analysisBegin = min(self._analysisMarker, trackPos)
analysisEnd = max(self._analysisMarker, trackPos)
analysisRange = analysisEnd-analysisBegin+1
- ui.message("Tracks:
{numberOfSelectedTracks}".format(numberOfSelectedTracks = analysisRange))
totalLength = 0
for track in xrange(analysisBegin, analysisEnd+1):
filename = statusAPI(track, 211, ret=True)
totalLength+=statusAPI(filename, 30, ret=True)
- ui.message(self.announceTime(totalLength))
+ ui.message("Tracks: {numberOfSelectedTracks}, totaling
{totalTime}".format(numberOfSelectedTracks = analysisRange, totalTime =
self._ms2time(totalLength)))

def script_layerHelp(self, gesture):
# Translators: The title for SPL Assistant help dialog.

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 Tally (6.0-dev): Announcement format change. - commits-noreply