forked from nvaccess/nvda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalVars.py
67 lines (62 loc) · 2.1 KB
/
globalVars.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#globalVars.py
#A part of NonVisual Desktop Access (NVDA)
#Copyright (C) 2006-2007 NVDA Contributors <http://www.nvda-project.org/>
#This file is covered by the GNU General Public License.
#See the file COPYING for more details.
"""global variables module
@var foregroundObject: holds the current foreground object. The object for the last foreground event received.
@type foregroundObject: L{NVDAObjects.NVDAObject}
@var focusObject: holds the current focus object
@type focusObject: L{NVDAObjects.NVDAObject}
@var mouseObject: holds the object that is at the position of the mouse pointer
@type mouseObject: L{NVDAObjects.NVDAObject}
@var mouseOldX: the last x coordinate of the mouse pointer before its current position
@type oldMouseX: int
@var mouseOldY: the last y coordinate of the mouse pointer before its current position
@type oldMouseY: int
@var navigatorObject: holds the current navigator object
@type navigatorObject: L{NVDAObjects.NVDAObject}
"""
import argparse
import os
import typing
class DefautAppArgs(argparse.Namespace):
quit: bool = False
check_running: bool = False
logFileName: typing.Optional[os.PathLike] = ""
logLevel: int = 0
configPath: typing.Optional[os.PathLike] = None
language: str = "en"
minimal: bool = False
secure: bool = False
disableAddons: bool = False
debugLogging: bool = False
noLogging: bool = False
changeScreenReaderFlag: bool = True
install: bool = False
installSilent: bool = False
createPortable: bool = False
createPortableSilent: bool = False
portablePath: typing.Optional[os.PathLike] = None
launcher: bool = False
enableStartOnLogon: typing.Optional[bool] = None
copyPortableConfig: bool = False
easeOfAccess: bool = False
startTime=0
desktopObject=None
foregroundObject=None
focusObject=None
focusAncestors=[]
focusDifferenceLevel=None
mouseObject=None
mouseOldX=None
mouseOldY=None
navigatorObject=None
reviewPosition=None
reviewPositionObj=None
lastProgressValue=0
appArgs = DefautAppArgs()
unknownAppArgs: typing.List[str] = []
settingsRing = None
speechDictionaryProcessing=True
exitCode=0