1 #Copyright (C) 2008 Codethink Ltd
2 #copyright: Copyright (c) 2005, 2007 IBM Corporation
4 #This library is free software; you can redistribute it and/or
5 #modify it under the terms of the GNU Lesser General Public
6 #License version 2 as published by the Free Software Foundation.
8 #This program is distributed in the hope that it will be useful,
9 #but WITHOUT ANY WARRANTY; without even the implied warranty of
10 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 #GNU General Public License for more details.
12 #You should have received a copy of the GNU Lesser General Public License
13 #along with this program; if not, write to the Free Software
14 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 #Portions of this code originally licensed and copyright (c) 2005, 2007
17 #IBM Corporation under the BSD license, available at
18 #U{http://www.opensource.org/licenses/bsd-license.php}
20 #authors: Peter Parente, Mark Doffman
22 # Constants used in the Component interface to get screen coordinates
26 # Constants used to synthesize mouse events
42 # events that clear cached properties
43 CACHE_EVENTS = ['object:property-change:accessible-name',
44 'object:property-change:accessible-description',
45 'object:property-change:accessible-role',
46 'object:property-change:accessible-parent']
50 # Dictionary used to correct the bug of not being able to register for all the
51 # subevents given only an AT-SPI event class (i.e. first part of the event
52 # name) keys are event names having subevents and values are the subevents
53 # under the key event; handlers *can* be registered for events not in this tree
56 ['terminal:line-changed',
57 'terminal:columncount-changed',
58 'terminal:linecount-changed',
59 'terminal:application-changed',
60 'terminal:charwidth-changed'
63 ['document:load-complete',
65 'document:load-stopped',
66 'document:content-changed',
67 'document:attributes-changed'
70 ['object:property-change',
71 'object:bounds-changed',
72 'object:link-selected',
73 'object:state-changed',
74 'object:children-changed',
75 'object:visible-data-changed',
76 'object:selection-changed',
77 'object:model-changed',
78 'object:active-descendant-changed',
79 'object:row-inserted',
80 'object:row-reordered',
82 'object:column-inserted',
83 'object:column-reordered',
84 'object:column-deleted',
85 'object:text-bounds-changed',
86 'object:text-selection-changed',
87 'object:text-changed',
88 'object:text-attributes-changed',
89 'object:text-caret-moved',
90 'object:attributes-changed'],
91 'object:text-changed' :
92 ['object:text-changed:insert',
93 'object:text-changed:delete'],
94 'object:property-change' :
95 ['object:property-change:accessible-parent',
96 'object:property-change:accessible-name',
97 'object:property-change:accessible-description',
98 'object:property-change:accessible-value',
99 'object:property-change:accessible-role',
100 'object:property-change:accessible-table-caption',
101 'object:property-change:accessible-table-column-description',
102 'object:property-change:accessible-table-column-header',
103 'object:property-change:accessible-table-row-description',
104 'object:property-change:accessible-table-row-header',
105 'object:property-change:accessible-table-summary'],
106 'object:children-changed' :
107 ['object:children-changed:add',
108 'object:children-changed:remove'],
109 'object:state-changed' :
110 ['object:state-changed:'],
129 'window:desktop-create',
130 'window:desktop-destroy',
144 from Accessibility import *