%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f2���dZdZdZdZdZdZddlmZddlm	Z	ddl
mcmcm
Z
ddlmZdd	lmZGd
�de
j$�Zy)zCustom script for Eclipse.z$Id$z
$Revision$z$Date$z-Copyright (c) 2010 Informal Informatica LTDA.�LGPL�N)�AXText)�AXUtilitiesc�X��eZdZ�fd�Zd�fd�	Z�fd�Z�fd�Z�fd�Zd�Z�fd�Z	�xZ
S)	�Scriptc�6��t�|�|�gd�|_y)z/Creates a new script for the given application.)�Up�Down�Left�Right�Page_Up�	Page_Down�Home�EndN)�super�__init__�movementKeys)�self�app�	__class__s  ��B/usr/lib/python3/dist-packages/orca/scripts/apps/Eclipse/script.pyrzScript.__init__*s���
�����/���c���t�
|�||�|jj�\}}||jvry|xs|j
}t
j|�ryd}|dvrtj|�\}}}	|	dkD}|r|j|	�n|j|�|j|�y)z�Updates braille and outputs speech for the event.source or the
        otherObj. Overridden here so that we can give more feedback to user.
        NF)�Tab�ISO_Left_Tabr)
r�_presentTextAtNewCaretPosition�	utilities�lastKeyAndModifiersr�sourcer�is_single_liner�get_selected_text�	sayPhrase�sayLine�_saveLastTextPosition)r�event�otherObj�lastKey�mods�obj�hasSelection�text�startOffset�	endOffsetrs          �rrz%Script._presentTextAtNewCaretPosition0s����	��.�u�h�?����:�:�<�
����d�'�'�'���&�%�,�,���%�%�c�*��
���-�-�+1�+C�+C�C�+H�(�D�+�y�$�q�=�L���N�N�3��Y�7��L�L����"�"�3�'rc���tj|j�r/tj�j||j�ytj|j�r\|jj�rB|jj�r(d}tjtj|d�yt�|�9|�y)z)Callback for focus: accessibility events.Nz!ECLIPSE: Ignoring event. In menu.T)r�is_panelr�
focus_manager�
getManager�set_locus_of_focus�is_textr� lastInputEventWasUnmodifiedArrow�inMenu�debug�printMessage�
LEVEL_INFOr�onFocus)rr%�msgrs   �rr9zScript.onFocusRs����
������-��$�$�&�9�9�%����N�����u�|�|�,��~�~�>�>�@��~�~�$�$�&�5�C����u�/�/��d�;��
����rc���|jj|j�rg|jdk(r-|jtj|j�k(ryt�|�!|�|j|j�yy)z�Called whenever text is inserted into an object. Overridden here
        so that we can avoid speaking text when caret moves after new text
        is inserted.

        Arguments:
        - event: the Event
        rN)
r�
isTextArear�detail1�detail2r�get_character_countr�onTextInsertedr$�rr%rs  �rr@zScript.onTextInserteddsm����>�>�$�$�U�\�\�2��}�}��!�e�m�m�v�7Q�7Q�RW�R^�R^�7_�&_���G�"�5�)��&�&�u�|�|�4�3rc�Z��t�|�|�|j|j�y)z�Called whenever text is deleted from an object.  Overridden here
        so that we can avoid speaking text when caret moves after new text
        is deleted.

        Arguments:
        - event: the Event
        N)r�
onTextDeletedr$rrAs  �rrCzScript.onTextDeletedws$���	���e�$��"�"�5�<�<�0rc��|jj|�r&|j|tj|��yy�N)rr<�_saveLastCursorPositionr�get_caret_offset)rr)s  rr$zScript._saveLastTextPosition�s4���>�>�$�$�S�)��(�(��f�.E�.E�c�.J�K�*rc���tj|j�s tj|j�syt�|�|�y)z;Callback for object:selection-changed accessibility events.N)r�
is_focusedr�is_menu_barr�onSelectionChangedrAs  �rrKzScript.onSelectionChanged�s;���
�&�&�u�|�|�4��8O�8O�PU�P\�P\�8]��
��"�5�)rrE)�__name__�
__module__�__qualname__rrr9r@rCr$rK�
__classcell__)rs@rrr(s-���/� (�D�$5�&1�L�*�*rr)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�
orca.debugr6�orca.focus_managerr0�orca.scripts.toolkits.gtk�scripts�toolkits�gtk�orca.ax_textr�orca.ax_utilitiesrr�rr�<module>r_sI��*!�������?�
����*�'�'��)�i*�S�Z�Z�i*r

Zerion Mini Shell 1.0