Changeset 2459
- Timestamp:
- 10/27/08 12:34:27 (8 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
. (modified) (3 props)
-
source/NVDAObjects/IAccessible/excel.py (modified) (4 diffs)
-
user_docs/whats new.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property bzr:revision-info
-
old new 1 timestamp: 2008-10-2 6 18:39:54.019000053 +01002 committer: Peter Vágner <peter.v@datagate.sk>1 timestamp: 2008-10-27 23:32:27.858000040 +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 228 228 2256 peter.v@datagate.sk-20081025172633-327bshns3h24b81f 229 229 2257 peter.v@datagate.sk-20081026173954-w9wtbrgppg3yfdrn 230 2258 mick@kulgan.net-20081027123227-mrqm4dcrbo23amk0
-
- Property bzr:file-ids
-
old new 1 source/locale/ru/LC_MESSAGES/nvda.po 1045@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Flocale%2Fru%2FLC_MESSAGES%2Fnvda.po 1 source/NVDAObjects/IAccessible/excel.py 683@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FNVDAObjects%2FIAccessible%2Fexcel.py 2 user_docs/whats%20new.txt 559@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:user_docs%2Fwhats%20new.txt
-
- Property bzr:revision-info
-
trunk/source/NVDAObjects/IAccessible/excel.py
r2306 r2459 11 11 import win32com.client 12 12 import comtypes.automation 13 import wx 14 import gui 15 import gui.scriptUI 13 16 import IAccessibleHandler 14 17 import controlTypes … … 19 22 20 23 re_dollaredAddress=re.compile(r"^\$?([a-zA-Z]+)\$?([0-9]+)") 24 25 class CellEditDialog(gui.scriptUI.ModalDialog): 26 27 def __init__(self,message,title,default,callback): 28 super(CellEditDialog,self).__init__(callback) 29 self._title=title 30 self._message=message 31 self._default=default 32 33 def onCellTextChar(self,evt): 34 if evt.GetKeyCode() == wx.WXK_RETURN: 35 if evt.AltDown(): 36 i=self._cellText.GetInsertionPoint() 37 self._cellText.Replace(i,i,"\n") 38 else: 39 self.dialog.AddPendingEvent(wx.CommandEvent(wx.wxEVT_COMMAND_BUTTON_CLICKED, wx.ID_OK)) 40 return 41 evt.Skip(True) 42 43 def makeDialog(self): 44 d=wx.Dialog(gui.mainFrame, wx.ID_ANY, title=self._title) 45 mainSizer = wx.BoxSizer(wx.VERTICAL) 46 mainSizer.Add(wx.StaticText(d,wx.ID_ANY, label=self._message)) 47 self._cellText=wx.TextCtrl(d, wx.ID_ANY, size=(300, 200), style=wx.TE_RICH|wx.TE_MULTILINE|wx.TE_PROCESS_ENTER) 48 self._cellText.Bind(wx.EVT_KEY_DOWN, self.onCellTextChar) 49 self._cellText.SetValue(self._default) 50 mainSizer.Add(self._cellText) 51 mainSizer.Add(d.CreateButtonSizer(wx.OK|wx.CANCEL)) 52 d.SetSizer(mainSizer) 53 self._cellText.SetFocus() 54 return d 55 56 def getResponse(self,response): 57 if response!=wx.ID_CANCEL: 58 return self._cellText.GetValue() 59 return self._default 21 60 22 61 class ExcelGrid(IAccessible): … … 96 135 script_moveByCell.__doc__=_("Moves to a cell and speaks its coordinates and content") 97 136 137 def script_editCell(self,keyPress): 138 cell=self.getSelectedRange().Item(1) 139 formulaDialog=CellEditDialog(_("Cell content:"),_("NVDA Excel Cell Editor"),cell.formula,lambda text: setattr(cell,'formula',text)) 140 formulaDialog.run() 141 98 142 def text_reportPresentation(self,offset): 99 143 """Reports the current font name, font size, font attributes of the active cell""" … … 134 178 ("Shift+Control+ExtendedHome","moveByCell"), 135 179 ("Shift+Control+ExtendedEnd","moveByCell"), 180 ("f2","editCell"), 136 181 ]] -
trunk/user_docs/whats new.txt
r2436 r2459 2 2 3 3 Changes since 0.6 P2: 4 *New: As Excel's formula bar is inaccessible to NVDA, provide an NVDA specific dialog box for editing, when the user presses f2 on a cell. 4 5 * change: If the audio output device is set to use the Windows default device (Microsoft Sound Mapper), NVDA will now switch to the new default device for eSpeak and tones when the default device changes. For example, NVDA will switch to a USB audio device if it automatically becomes the default device when it is connected. 5 6 * fix: The last chunk of audio is no longer cut off when using NVDA with eSpeak on a remote desktop server.

NVDA is supported by