%PDF- %PDF-
Direktori : /usr/lib/python3/dist-packages/orca/scripts/apps/evolution/__pycache__/ |
Current File : //usr/lib/python3/dist-packages/orca/scripts/apps/evolution/__pycache__/script.cpython-312.pyc |
� g f� � �� � d Z dZdZdZdZdZddlmZ ddlm Z ddl mc mc m Z ddlmc mc mZ ddlmZ ddlmZ dd lmZ d dlmZ d dlmZ d d lmZ G d� dej8 e 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 �^ � � e Zd Z� fd�Zd� Zd� Zd� Zd� Zd� Z� fd�Z d� Z d � Zd � Zd� Z � xZS )�Scriptc � �� t j � j d� �$t j � j dd� 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.pyr zScript.__init__4 sM �� � �&�&�(�3�3�N�C�K��'�'�)�4�4�^�U�K� �����!&��� c � � t | � S �Nr �r s r �getBrailleGeneratorzScript.getBrailleGeneratorA s � ���%�%r c � � t | � S r r r s r �getSpeechGeneratorzScript.getSpeechGeneratorD s � ��t�$�$r c � � t | � S r r r s r �getUtilitieszScript.getUtilitiesG s � ����r c �� � |j j d� r t j |j � ry| j j |j � }t j |� 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.isActivatableEventJ sV � � �:�:� � ��*�{�/B�/B�5�<�<�/P�����.�.�u�|�|�<���$�$�V�,��r c � � 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� �r r- s r �#stopSpeechOnActiveDescendantChangedz*Script.stopSpeechOnActiveDescendantChanged] s � � r c �� �� |j s(d}t j t j |d� y| j j |j � r�t j |j � rVd}t j t j |d� t j � j ||j � yd}t j t j |d� t j � j ||j � yt j � j � }t j |� r]t j |t j � }|�7||j k7 r(d}t j t j |d� yt j"