Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
0a97788
Move code from core to winAPI
seanbudd Aug 19, 2022
4dda07e
fix ckeckPot
seanbudd Aug 19, 2022
a271d6f
fix announcing charge status
seanbudd Aug 19, 2022
9a9888a
Merge branch 'master' into moveCodeToWinAPI
seanbudd Aug 22, 2022
233e19f
fixup reporting unknown status
seanbudd Aug 22, 2022
3e589b7
initialize batterystate as unknown
seanbudd Aug 22, 2022
59f1543
Merge branch 'master' into moveCodeToWinAPI
seanbudd Aug 24, 2022
54ae3d6
used named constants for seconds
seanbudd Aug 25, 2022
73d0d07
add notes to move to winAPI module
seanbudd Aug 25, 2022
927680b
Create HWNDVal Type
seanbudd Aug 25, 2022
7e7bd3e
simplify window message handling
seanbudd Aug 25, 2022
0cac074
Make display tracking modular and unit testable
seanbudd Aug 25, 2022
5158be2
Make power tracking modular and unit testable
seanbudd Aug 25, 2022
191652a
add unit testing
seanbudd Aug 25, 2022
44fab0c
fixup lint
seanbudd Aug 25, 2022
c4e5940
re-add lost translator comments
seanbudd Aug 25, 2022
5259640
fix up import order
seanbudd Aug 25, 2022
ceb5ae7
Merge branch 'master' into moveCodeToWinAPI
seanbudd Aug 26, 2022
9ef285e
separate handleWindowMessage
seanbudd Aug 26, 2022
e26cafe
don't announce empty battery status speech
seanbudd Aug 26, 2022
a2a80d5
change to _getNewOrientationState
seanbudd Aug 26, 2022
077020f
simplify _getNewOrientationState
seanbudd Aug 27, 2022
ef1da19
finalize unit tests
seanbudd Aug 27, 2022
91c7b96
rename to _getNewOrientationStyle
seanbudd Aug 30, 2022
822440a
change to assertEqual
seanbudd Aug 30, 2022
d543615
initialize orientation state'
seanbudd Aug 30, 2022
1122dcf
remove usagees of deprecated code
seanbudd Aug 30, 2022
ec77e83
Merge branch 'master' into moveCodeToWinAPI
seanbudd Aug 30, 2022
2381c14
address review feedback:
seanbudd Aug 30, 2022
43f72fe
Merge branch 'master' into moveCodeToWinAPI
seanbudd Aug 30, 2022
6fcad2f
rename modules, mark as private
seanbudd Aug 30, 2022
f731680
move SystemMetrics enum
seanbudd Aug 30, 2022
07b56ef
revert changes to winAPI.constants
seanbudd Aug 30, 2022
2048b83
improve deprecation message
seanbudd Aug 30, 2022
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
Prev Previous commit
Next Next commit
add notes to move to winAPI module
  • Loading branch information
seanbudd committed Aug 25, 2022
commit 73d0d07e4144c86de921fe33c9a6daa751872507
9 changes: 9 additions & 0 deletions source/winGDI.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2011-2022 NV Access Limited
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

"""
When working on this file, consider moving to winAPI.
"""

from ctypes import windll, Structure, c_ubyte, c_uint32, c_void_p, c_int, c_float, POINTER, byref, c_ulong
from ctypes.wintypes import LONG, DWORD, WORD, BOOL
from contextlib import contextmanager
Expand Down
6 changes: 4 additions & 2 deletions source/winInputHook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

"""
When working on this file, consider moving to winAPI.
"""

import threading
import comtypes.client
import time
from ctypes import *
from ctypes.wintypes import *
import watchdog
Expand Down
6 changes: 5 additions & 1 deletion source/winKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

"""Functions that wrap Windows API functions from kernel32.dll and advapi32.dll"""
"""
Functions that wrap Windows API functions from kernel32.dll and advapi32.dll.

When working on this file, consider moving to winAPI.
"""

import contextlib
import ctypes
Expand Down
6 changes: 5 additions & 1 deletion source/winUser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

"""Functions that wrap Windows API functions from user32.dll"""
"""
Functions that wrap Windows API functions from user32.dll.

When working on this file, consider moving to winAPI.
"""

import contextlib
from ctypes import *
Expand Down
2 changes: 2 additions & 0 deletions source/winVersion.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"""A module used to record Windows versions.
It is also used to define feature checks such as
making sure NVDA can run on a minimum supported version of Windows.

When working on this file, consider moving to winAPI.
"""

from typing import Optional
Expand Down
14 changes: 8 additions & 6 deletions source/windowUtils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
#windowUtils.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2013 NV Access Limited
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2013 NV Access Limited
# This file is covered by the GNU General Public License.
# See the file COPYING for more details.

"""Utilities for working with windows (HWNDs).
"""
Utilities for working with windows (HWNDs).

When working on this file, consider moving to winAPI.
"""

import ctypes
Expand Down