Changeset 2509
- Timestamp:
- 11/18/08 05:58:20 (7 weeks ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
. (modified) (3 props)
-
source/NVDAObjects/IAccessible/sysTreeView32.py (modified) (3 diffs)
-
source/speech.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property bzr:revision-info
-
old new 1 timestamp: 2008-11-18 1 3:58:36.805000067 +10002 committer: James Teh <jamie@jantrid.net>1 timestamp: 2008-11-18 16:57:23.318000078 +1100 2 committer: Michael Curran <mick@kulgan.net> 3 3 properties: 4 4 branch-nick: main
-
- Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
-
old new 278 278 2306 jamie@jantrid.net-20081118034716-jk7koc7ahs798gtj 279 279 2307 jamie@jantrid.net-20081118035836-d8yvw3fqtn5g1w1s 280 2308 mick@kulgan.net-20081118055723-kt92pexgf6vuc62d
-
- Property bzr:file-ids
-
old new 1 source/ synthDrivers/_espeak.py 612@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2F_espeak.py2 source/s ynthDrivers/espeak.py 612@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fespeak.py1 source/NVDAObjects/IAccessible/sysTreeView32.py 834@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FNVDAObjects%2FIAccessible%2FsysTreeView32.py 2 source/speech.py 503@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Fspeech.py
-
- Property bzr:revision-info
-
trunk/source/NVDAObjects/IAccessible/sysTreeView32.py
r2505 r2509 7 7 import speech 8 8 from . import IAccessible 9 10 oldLevel=None11 9 12 10 TV_FIRST=0x1100 … … 135 133 info=super(TreeViewItem,self)._get_positionInfo() 136 134 if self.IAccessibleChildID>0: 135 info['level']=self.treeLevel 137 136 hItem=winUser.sendMessage(self.windowHandle,TVM_MAPACCIDTOHTREEITEM,self.IAccessibleChildID,0) 138 137 if not hItem: … … 161 160 if announceContains: 162 161 speech.speakMessage(_("%s items")%self.childCount) 163 164 def event_gainFocus(self):165 global oldLevel166 newLevel=self.treeLevel167 if newLevel!=oldLevel and self is api.getFocusObject():168 speech.speakMessage(_("level %d")%newLevel)169 oldLevel=newLevel170 super(self.__class__,self).event_gainFocus() -
trunk/source/speech.py
r2507 r2509 41 41 REASON_DEBUG=8 42 42 REASON_ONLYCACHE=9 43 oldTreeviewLevel=None 43 44 44 45 … … 552 553 553 554 def getSpeechTextForProperties(reason=REASON_QUERY,**propertyValues): 555 global oldTreeviewLevel 554 556 textList=[] 555 557 if 'name' in propertyValues: … … 585 587 textList.append(_("%s of %s")%(propertyValues['positionInfo_indexInGroup'],propertyValues['positionInfo_similarItemsInGroup'])) 586 588 if 'positionInfo_level' in propertyValues: 587 textList.append(_('level %s')%propertyValues['positionInfo_level']) 589 level=propertyValues.get('positionInfo_level',None) 590 role=propertyValues.get('role',None) 591 if level and role==controlTypes.ROLE_TREEVIEWITEM and level!=oldTreeviewLevel: 592 textList.insert(0,_("level %s")%level) 593 oldTreeviewLevel=level 594 elif level: 595 textList.append(_('level %s')%propertyValues['positionInfo_level']) 588 596 return " ".join([x for x in textList if x]) 589 597

NVDA is supported by