commit/StationPlaylist: josephsl: Track columns explorer (7.0-dev): New label, new config key added.

  • From: commits-noreply@xxxxxxxxxxxxx
  • To: nvda-addons-commits@xxxxxxxxxxxxx
  • Date: Sat, 16 Jan 2016 23:45:47 -0000

1 new commit in StationPlaylist:

https://bitbucket.org/nvdaaddonteam/stationplaylist/commits/227a293aa633/
Changeset:   227a293aa633
Branch:      7.0/orangeTrackInfoBoard
User:        josephsl
Date:        2016-01-16 23:45:05+00:00
Summary:     Track columns explorer (7.0-dev): New label, new config key added.

Project Orange is now Track Columns Explorer (suggested by Roger Stewart). A 
new key to configure this routine has been added under general section (this 
will be a global setting).

Affected #:  2 files

diff --git a/addon/appModules/splstudio/__init__.py 
b/addon/appModules/splstudio/__init__.py
index d55ddac..3f226f0 100755
--- a/addon/appModules/splstudio/__init__.py
+++ b/addon/appModules/splstudio/__init__.py
@@ -1638,12 +1638,12 @@ class AppModule(appModuleHandler.AppModule):
 
        def script_columnExplorer(self, gesture):
                if gesture.displayName.isdigit():
+                       columnPos = int(gesture.displayName)-1
                        focus = api.getFocusObject()
                        if not isinstance(focus, SPLTrackItem):
                                ui.message("Not a track")
                        else:
-                               columns = ("Artist", "Title", "Duration", 
"Intro", "Category", "Filename", "Year", "Album", "Genre", "Time Scheduled")
-                               
focus.announceColumnContent(focus._indexOf(columns[int(gesture.displayName)-1]))
+                               
focus.announceColumnContent(focus._indexOf(splconfig.SPLConfig["General"]["ExploreColumns"][columnPos]))
 
        def script_layerHelp(self, gesture):
                compatibility = 
splconfig.SPLConfig["Advanced"]["CompatibilityLayer"]

diff --git a/addon/appModules/splstudio/splconfig.py 
b/addon/appModules/splstudio/splconfig.py
index 13a30d6..d1136bc 100755
--- a/addon/appModules/splstudio/splconfig.py
+++ b/addon/appModules/splstudio/splconfig.py
@@ -68,6 +68,7 @@ LibraryScanAnnounce = option("off", "ending", "progress", 
"numbers", default="of
 TrackDial = boolean(default=false)
 MetadataReminder = option("off", "startup", "instant", default="off")
 TimeHourAnnounce = boolean(default=false)
+ExploreColumns = 
string_list(default=list("Artist","Title","Duration","Intro","Category","Filename","Year","Album","Genre","Time
 Scheduled"))
 [IntroOutroAlarms]
 SayEndOfTrack = boolean(default=true)
 EndOfTrackTime = integer(min=1, max=59, default=5)

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 columns explorer (7.0-dev): New label, new config key added. - commits-noreply