~stomato463/+junk/nvdajp

« back to all changes in this revision

Viewing changes to source/appModules/sndrec32.py

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4185 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4211.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#appModules/sndrec32.py
 
2
#A part of NonVisual Desktop Access (NVDA)
 
3
#Copyright (C) 2010 Peter Vagner <peter.v@datagate.sk>
 
4
#This file is covered by the GNU General Public License.
 
5
#See the file COPYING for more details.
 
6
 
 
7
import appModuleHandler
 
8
import controlTypes
 
9
 
 
10
mainWindowButtonNames={
 
11
        205:_("Rewind"),
 
12
        206:_("Fast forward"),
 
13
        207:_("Play"),
 
14
        208:_("Stop"),
 
15
        209:_("Record")
 
16
}
 
17
 
 
18
class AppModule(appModuleHandler.AppModule):
 
19
 
 
20
        def event_NVDAObject_init(self, obj):
 
21
                if obj.role == controlTypes.ROLE_BUTTON: 
 
22
                        try:
 
23
                                obj.name=mainWindowButtonNames[obj.windowControlID]
 
24
                        except KeyError:
 
25
                                pass