%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f����dZdZdZdZdZdZddlZejdd	�dd
lm	Z	ddl
mZddlm
Z
ddlmcmcmZddlmZddlmZddlmZdd
lmZddlmZddlmZddlmZGd�dej@�Z y)zCustom script for pidgin.z$Id$z
$Revision$z$Date$z#Copyright (c) 2010 Joanmarie Diggs.�LGPL�N�Atspiz2.0)r)�AXObject)�AXTable)�AXUtilities�)�Chat��	Utilities��SpeechGeneratorc���eZdZ�fd�Zd�Zd�Zd�Z�fd�Zd�Zd�Z	d�Z
d	�Z�fd
�Z�fd�Z
�fd�Z�fd
�Z�fd�Z�fd�Z�xZS)�Scriptc���tjjtjjtjjtjj
tjjtjjtjjgg|_t�|�)|�y)z�Creates a new script for the given application.

        Arguments:
        - app: the application to create a script for.
        N)r�Role�
TREE_TABLE�SCROLL_PANE�FILLER�PAGE_TAB�
PAGE_TAB_LIST�FRAME�_buddyListAncestries�super�__init__)�self�app�	__class__s  ��A/usr/lib/python3/dist-packages/orca/scripts/apps/pidgin/script.pyrzScript.__init__/s~���',�j�j�&;�&;�&+�j�j�&<�&<�&+�j�j�&7�&7�&+�j�j�&9�&9�&+�j�j�&>�&>�&+�j�j�&7�&7�&+�j�j�&6�&6�
&8�%9��!�	�����c�.�t||j�S)z)Returns the 'chat' class for this script.)r	r�rs r�getChatzScript.getChatBs���D�$�3�3�4�4rc��t|�S)z.Returns the speech generator for this script. rr!s r�getSpeechGeneratorzScript.getSpeechGeneratorGs���t�$�$rc��t|�S)z&Returns the utilities for this script.r
r!s r�getUtilitieszScript.getUtilitiesLs�����rc���t�|��|jj|jj�y)z�Defines InputEventHandler fields for this script that can be
        called by the key and braille bindings. Here we need to add the
        handlers for chat functionality.
        N)r�setupInputEventHandlers�inputEventHandlers�update�chat)rrs �rr(zScript.setupInputEventHandlersQs.���	��'�)����&�&�t�y�y�'C�'C�Drc�.�|jjS)z=Returns the application-specific keybindings for this script.)r+�keyBindingsr!s r�getAppKeyBindingszScript.getAppKeyBindingsZs���y�y�$�$�$rc�6�|jj�S)z�Return a GtkGrid containing the application unique configuration
        GUI items for the current application. The chat-related options get
        created by the chat module.)r+�getAppPreferencesGUIr!s rr0zScript.getAppPreferencesGUI_s��
�y�y�-�-�/�/rc�6�|jj�S)z7Returns a dictionary with the app-specific preferences.)r+�getPreferencesFromGUIr!s rr2zScript.getPreferencesFromGUIfs���y�y�.�.�0�0rc��tjd�tj|j�rtjd�|jjd��rntjjtjjtjjg}|jj|j|�r�d}tj|jd��}tj |�}|sytj"|j�D]}|tj |�k(s�d}n|r|tj$|jd�}tj |�}|rDt&j(|z}|j*j-||��}	|j/||	�	�yyyyy)
z>Callback for object:children-changed:add accessibility events.zchildren-changed event.zobject:children-changed:addFc�b�tj|�tjjk(S)N)r�get_rolerrr)�xs r�<lambda>z(Script.onChildrenAdded.<locals>.<lambda>�s#���9J�9J�1�9M�QV�Q[�Q[�Qa�Qa�9a�rNT���)�obj�string)�voice)r�clear_cache_nowr�is_table_related�sourcer�type�
startswithrrrrr�	utilities�hasMatchingHierarchy�
find_ancestor�get_name�
iter_children�	get_child�messages�CHAT_NEW_TAB�speechGeneratorr;�speakMessage)
r�event�	rolesList�	nameFound�frame�	frameName�child�	childName�liner;s
          r�onChildrenAddedzScript.onChildrenAddedks���	� � �!:�;��'�'����5��#�#�$=�>�
�:�:� � �!>�?����1�1����*�*����)�)�+�I��~�~�2�2�5�<�<��K�"�	� �.�.�u�|�|�/a�c��$�-�-�e�4�	� ��%�3�3�E�L�L�A��E� �H�$5�$5�e�$<�<�$(�	����$�.�.�u�|�|�R�@�E� (� 1� 1�%� 8�I� �'�4�4�y�@�� $� 4� 4� :� :�u�T� :� R���)�)�$�e�)�<�!��%L�	@rc�p��|jj|j�ryt�|�|�y)zhCalled whenever a property on an object changes.

        Arguments:
        - event: the Event
        N)r+�
isInBuddyListr>r�
onNameChanged�rrKrs  �rrVzScript.onNameChanged��+����9�9�"�"�5�<�<�0��
���e�$rc�p��|jj|j�ryt�|�|�y)zgCalled whenever text is deleted from an object.

        Arguments:
        - event: the Event
        N)r+rUr>r�
onTextDeletedrWs  �rrZzScript.onTextDeleted�rXrc�\��|jj|�ryt�|�
|�y)z+Called whenever text is added to an object.N)r+�presentInsertedTextr�onTextInsertedrWs  �rr]zScript.onTextInserted�s'����9�9�(�(��/��
���u�%rc�p��|jj|j�ryt�|�|�y)z�Called whenever an object's value changes.  Currently, the
        value changes for non-focused objects are ignored.

        Arguments:
        - event: the Event
        N)r+rUr>r�onValueChangedrWs  �rr_zScript.onValueChanged�s+����9�9�"�"�5�<�<�0��
���u�%rc���tjs7d}tjtj|d�t
�|�|�yd}tjtj|d�tj|j�d}tjtj|d�t
�|�|�y)z/Called whenever a toplevel window is activated.z(PIDGIN: Hack for missing events disabledTNz(PIDGIN: Starting hack for missing eventsz3PIDGIN: Hack to work around missing events complete)
�settings�enableSadPidginHack�debug�printMessage�
LEVEL_INFOr�onWindowActivatedr�find_all_page_tabsr>)rrK�msgrs   �rrfzScript.onWindowActivated�s�����+�+�<�C����u�/�/��d�;��G�%�e�,��8��
���5�+�+�S�$�7�
	�&�&�u�|�|�4�C��
���5�+�+�S�$�7�
��!�%�(rc����|j}|jj|�r)tj|�}|j|d��yt�|�|�y)z@Callback for object:state-changed:expanded accessibility events.T)�alreadyFocusedN)r>r+rUr�get_next_sibling�
presentObjectr�onExpandedChanged)rrKr9rs   �rrmzScript.onExpandedChanged�sS����l�l���9�9�"�"�3�'��+�+�C�0�C����s�4��8��
��!�%�(r)�__name__�
__module__�__qualname__rr"r$r&r(r.r0r2rSrVrZr]r_rfrm�
__classcell__)rs@rrr-sU����&5�
%�
�
E�%�
0�1�
&=�P
%�
%�&�&�)�*
)�
)rr)!�__doc__�__id__�__version__�__date__�
__copyright__�__license__�gi�require_version�
gi.repositoryr�
orca.debugrc�
orca.messagesrG�orca.scripts.toolkits.gtk�scripts�toolkits�gtk�
orca.settingsra�orca.ax_objectr�
orca.ax_tabler�orca.ax_utilitiesrr+r	�script_utilitiesr�speech_generatorr
r�rr�<module>r�sn��* �������5�
���	�����7�E�"��� �'�'� �#�!�)��'�-�r)�S�Z�Z�r)r

Zerion Mini Shell 1.0