OSDN Git Service

Added a basic appmodule for the windows sound recorder (sndrec32.exe) which just...
authorPeter Vágner <peter.v@datagate.sk>
Sun, 3 Oct 2010 16:27:04 +0000 (18:27 +0200)
committerPeter Vágner <peter.v@datagate.sk>
Sun, 3 Oct 2010 16:27:04 +0000 (18:27 +0200)
source/appModules/sndrec32.py [new file with mode: 0644]

diff --git a/source/appModules/sndrec32.py b/source/appModules/sndrec32.py
new file mode 100644 (file)
index 0000000..7c56459
--- /dev/null
@@ -0,0 +1,25 @@
+#appModules/sndrec32.py\r
+#A part of NonVisual Desktop Access (NVDA)\r
+#Copyright (C) 2010 Peter Vagner <peter.v@datagate.sk>\r
+#This file is covered by the GNU General Public License.\r
+#See the file COPYING for more details.\r
+\r
+import _default\r
+import controlTypes\r
+\r
+mainWindowButtonNames={\r
+       205:_("Rewind"),\r
+       206:_("Forward"),\r
+       207:_("Play"),\r
+       208:_("Stop"),\r
+       209:_("Record")\r
+}\r
+\r
+class AppModule(_default.AppModule):\r
+\r
+       def chooseNVDAObjectOverlayClasses(self, obj, clsList):\r
+               if obj.role == controlTypes.ROLE_WINDOW: \r
+                       return\r
+               elif obj.role == controlTypes.ROLE_BUTTON: \r
+                       if obj.windowControlID in mainWindowButtonNames.keys():\r
+                               obj.name=mainWindowButtonNames[obj.windowControlID]\r