Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions source/NVDAObjects/IAccessible/sysTreeView32.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):

Expand Down
23 changes: 0 additions & 23 deletions source/appModules/outlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down
24 changes: 0 additions & 24 deletions source/appModules/poedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions user_docs/en/changes.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -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)
-


Expand Down