Coverage Report - orca.orca_state

ModuleCoverage %
orca.orca_state
100%
1
# Orca
2
#
3
# Copyright 2006 Sun Microsystems Inc.
4
#
5
# This library is free software; you can redistribute it and/or
6
# modify it under the terms of the GNU Library General Public
7
# License as published by the Free Software Foundation; either
8
# version 2 of the License, or (at your option) any later version.
9
#
10
# This library is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
# Library General Public License for more details.
14
#
15
# You should have received a copy of the GNU Library General Public
16
# License along with this library; if not, write to the
17
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
# Boston, MA 02111-1307, USA.
19
20
"""Holds state that is shared among many modules.
21 1
"""
22
23 1
__id__        = "$Id: orca_state.py 2558 2007-07-27 18:48:34Z richb $"
24 1
__version__   = "$Revision: 2558 $"
25 1
__date__      = "$Date: 2007-07-27 14:48:34 -0400 (Fri, 27 Jul 2007) $"
26 1
__copyright__ = "Copyright (c) 2005-2006 Sun Microsystems Inc."
27 1
__license__   = "LGPL"
28
29
# NOTE: resist the temptation to do any imports here.  They can
30
# easily cause circular imports.
31
#
32
33
# The Accessible that has visual focus.
34
#
35 1
locusOfFocus = None
36
37
# The currently active window.
38
#
39 1
activeWindow = None
40
41
# The currently active script.
42
#
43 1
activeScript = None
44
45
# The "click" count. Used to determine if the user has double or triple
46
# "clicked" a key.
47
#
48 1
clickCount = 0
49
50
# Used to capture keys to redefine key bindings by the user.
51
#
52 1
capturingKeys   = False
53 1
lastCapturedKey = None
54
55
# The last non-modifier key event received.
56
#
57 1
lastNonModifierKeyEvent = None
58
59
# The InputEvent instance representing the last input event.  This is
60
# set each time a mouse, keyboard or braille event is received.
61
#
62 1
lastInputEvent = None
63
64
# The last timestamp from a device event. Used to set focus for the Orca
65
# configuration GUI.
66
#
67 1
lastInputEventTimestamp = 0
68
69
# Records the last time a key was echoed.
70
#
71 1
lastKeyEchoTime = None
72
73
# The time that the last "No focus" event occured.
74
#
75 1
noFocusTimestamp = 0.0
76
77
# The last word spoken.
78
#
79 1
lastWord = ""
80
81
# The last searchQuery
82
#
83 1
searchQuery = None
84
85
# Whether we should use the pronunciation dictionary to help speak 
86
# certain words. This will be True everywhere except when focus is 
87
# in the Pronunciation Dictionary in the Orca Preferences dialog.
88
#
89 1
usePronunciationDictionary = True