%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f���v�dZdZdZdZdZdZddlmZddlm	Z	ddl
mZdd	lm
Z
Gd
�de	j�Zy)z1Customized support for spellcheck in Thunderbird.z$Id$z
$Revision$z$Date$zCopyright (c) 2014 Igalia, S.L.�LGPL�N)�AXObject)�AXUtilitiesc�F��eZdZ�fd�Zd�Zd�Zd�Zd�Zd�Z�fd�Z	�xZ
S)�
SpellCheckc�,��tt|�|�y�N)�superr�__init__)�self�script�	__class__s  ��J/usr/lib/python3/dist-packages/orca/scripts/apps/Thunderbird/spellcheck.pyrzSpellCheck.__init__&s���
�j�$�(��0�c��|j|jk7rytj�j	�}tj|�sy|jjj�\}}|jjj|�}|D]#}|j|j��s�#yy)NFT)
�source�_changeToEntry�
focus_manager�
getManager�get_locus_of_focusr�is_push_button�_script�	utilities�lastKeyAndModifiers�mnemonicShortcutAccelerator�endswith�upper)r�event�focus�lastKey�mods�keys�keys       r�isAutoFocusEventzSpellCheck.isAutoFocusEvent)s����<�<�4�.�.�.���(�(�*�=�=�?���)�)�%�0�����.�.�B�B�D�
����|�|�%�%�A�A�%�H���	�C��|�|�G�M�M�O�,��	�rc�d�tj|�syd�}tj||�ryy)NFc�Z�tj|�xstj|�Sr	)r�is_page_tab_list�
is_split_pane��xs r�isNonSpellCheckChildz;SpellCheck._isCandidateWindow.<locals>.isNonSpellCheckChild=s$���/�/��2�R�k�6O�6O�PQ�6R�RrT)r�	is_dialogr�find_descendant)r�windowr+s   r�_isCandidateWindowzSpellCheck._isCandidateWindow9s2���$�$�V�,��	S��#�#�F�,@�A��rc�4�d�}tj||�S)Nc�Z�tj|�xrtj|�Sr	)r�is_entry�is_single_liner)s r�isSingleLineEntryz8SpellCheck._findChangeToEntry.<locals>.isSingleLineEntryFs#���'�'��*�L�{�/I�/I�!�/L�Lr�rr-)r�rootr4s   r�_findChangeToEntryzSpellCheck._findChangeToEntryEs��	M��'�'��.?�@�@rc�4�d�}tj||�S)Nc��tj|�xr/dtj|�vxrtj|�S)N�:)r�is_labelr�get_name�
get_relationsr)s r�isErrorz,SpellCheck._findErrorWidget.<locals>.isErrorLsC���'�'��*�6��8�#4�#4�Q�#7�7�6�$�2�2�1�5�5�
6rr5)rr6r>s   r�_findErrorWidgetzSpellCheck._findErrorWidgetKs��	6�
�'�'��g�6�6rc�4�d�}tj||�S)Nc��tj|�sytj|�xstj|�S)NF)r�supports_selectionr�is_list_box�is_listr)s r�isListz/SpellCheck._findSuggestionsList.<locals>.isListTs4���.�.�q�1���*�*�1�-�G��1D�1D�Q�1G�Grr5)rr6rEs   r�_findSuggestionsListzSpellCheck._findSuggestionsListSs��	H�
�'�'��f�5�5rc����tj|�}|jd�}|jd�}|�|�t�|�|�St|�t|�fS)N�posinset�setsize)r�get_attributes_dict�getr
�_getSuggestionIndexAndPosition�int)r�
suggestion�attrs�index�totalrs     �rrLz)SpellCheck._getSuggestionIndexAndPosition[s[����,�,�Z�8���	�	�*�%���	�	�)�$���=�E�M��7�9�*�E�E��5�z�3�u�:�%�%r)�__name__�
__module__�__qualname__rr$r/r7r?rFrL�
__classcell__)rs@rrr$s,���1�� 
�A�7�6�&�&rr)�__doc__�__id__�__version__�__date__�
__copyright__�__license__�orca.focus_managerr�orca.spellcheck�
spellcheck�orca.ax_objectr�orca.ax_utilitiesrr�rr�<module>rbsA��,8�	������1�
���*�$�#�)�>&��&�&�>&r

Zerion Mini Shell 1.0