From 9ce39de102a28a2269b308b114312d448c8a1b04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Golonka?= Date: Wed, 13 Oct 2021 13:18:09 +0200 Subject: [PATCH 1/4] Remove broken and unused `getPath` from the poedit appModule --- source/appModules/poedit.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/source/appModules/poedit.py b/source/appModules/poedit.py index 3b70d9ecb0d..5c72bf778c3 100644 --- a/source/appModules/poedit.py +++ b/source/appModules/poedit.py @@ -20,30 +20,6 @@ import winUser -def getPath(obj, ancestor): - """Gets the path of the object with respect to its ancestor. - the ancestor is typically the forground object. - - @returns: A list of coordinates relative to the ansestor. - @rtype: L{list} - """ - path = [] - cancel = 0 - if obj == stopObj: return [] - p = obj - while p != stopObj: - counter = 0 - while p.previous: - p = p.previous - counter += 1 - cancel += 1 - # Looks like we have an infinite ancestry, so get out - if cancel == 50: return [-1] - path.append(counter) - p = p.parent - path.reverse() - return path - def fetchObject(obj, path): """Fetch the child object described by path. @returns: requested object if found, or None From dc67b6b94a2c1f74ed72c852acd89d4b9c771d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Golonka?= Date: Wed, 13 Oct 2021 13:20:14 +0200 Subject: [PATCH 2/4] Remove broken and unused `MessageItem` from the Outlook appModule --- source/appModules/outlook.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/source/appModules/outlook.py b/source/appModules/outlook.py index 9b385ae28e4..7f54b49209c 100644 --- a/source/appModules/outlook.py +++ b/source/appModules/outlook.py @@ -256,29 +256,6 @@ def event_gainFocus(self): obj.parent=self.parent eventHandler.executeEvent("gainFocus",obj) -class MessageItem(Window): - - def __init__(self,windowHandle=None,parent=None,msg=None): - if not parent or not msg: - raise ArguementError("__init__ needs windowHandle, parent and msg arguments") - if not windowHandle: - windowHandle=parent.windowHandle - self.msg=msg - self.parent=parent - Window.__init__(self,windowHandle=windowHandle) - - def _get_name(self): - typeID=self.msg.Class - if typeID==40: - return getContactString(self.msg) - elif typeID==43: - return getReceivedMessageString(self.msg) - - def _get_role(self): - return controlTypes.Role.LISTITEM - - def _get_states(self): - return frozenset([controlTypes.State.SELECTED]) class AddressBookEntry(IAccessible): From c39954d1dd5785136b9a5006911b06b0f50f0a2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Golonka?= Date: Wed, 13 Oct 2021 13:22:48 +0200 Subject: [PATCH 3/4] Remove unused `TVItemStruct` from sysTreeView32 --- source/NVDAObjects/IAccessible/sysTreeView32.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/source/NVDAObjects/IAccessible/sysTreeView32.py b/source/NVDAObjects/IAccessible/sysTreeView32.py index 6cb446edf5c..bcf33275f5c 100755 --- a/source/NVDAObjects/IAccessible/sysTreeView32.py +++ b/source/NVDAObjects/IAccessible/sysTreeView32.py @@ -3,10 +3,7 @@ # See the file COPYING for more details. # Copyright (C) 2007-2020 NV Access Limited -from ctypes import * -from ctypes.wintypes import * import api -import winKernel import controlTypes import speech import UIAHandler @@ -36,19 +33,6 @@ TVGN_PARENT=3 TVGN_CHILD=4 -class TVItemStruct(Structure): - _fields_=[ - ('mask',c_uint), - ('hItem',c_void_p), - ('state',c_uint), - ('stateMask',c_uint), - ('pszText',LPWSTR), - ('cchTextMax',c_int), - ('iImage',c_int), - ('iSelectedImage',c_int), - ('cChildren',c_int), - ('lParam',LPARAM), - ] class TreeView(IAccessible): From 5cbd86cfaa73bb87928d797d55b87a5fd3640fc8 Mon Sep 17 00:00:00 2001 From: buddsean Date: Wed, 20 Oct 2021 09:38:27 +1100 Subject: [PATCH 4/4] update changes --- user_docs/en/changes.t2t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user_docs/en/changes.t2t b/user_docs/en/changes.t2t index 7fd01f694d7..c9d7bd2bcda 100644 --- a/user_docs/en/changes.t2t +++ b/user_docs/en/changes.t2t @@ -19,6 +19,8 @@ What's New in NVDA == Changes for Developers == - Note: this is a Add-on API compatibility breaking release. Add-ons will need to be re-tested and have their manifest updated. - ``NVDAObjects.UIA.winConsoleUIA.WinConsoleUIA.isImprovedTextRangeAvailable`` has been removed. Use ``apiLevel`` instead. (#12955, #12660) +- ``TVItemStruct`` has been from ``sysTreeView32``. (#12935) +- ``MessageItem`` has been removed from the Outlook appModule. (#12935) -