+
    Qi  c                  s$   R t ^ RIHt RtRtRtRtRt^ RIH	t	 ^ RI
t
]
P                  ! R	R
4       ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^ RIHt ^RIHt ]	'       d   ]
P                  ! RR4       ^ RIHt  ! R R]P6                  4      tR# )Custom script for gedit.)annotationsz$Id$z
$Revision$z$Date$z-Copyright (c) 2005-2008 Sun Microsystems Inc.ZLGPL)TYPE_CHECKINGNGtkz3.0)r   )focus_manager)AXObject)AXText)AXUtilities)gtk
SpellCheckAtspiz2.0)r   c                  s   a  ] tR t^3t$ RtR]R&   R R ltR R ltR R	 ltR
 V 3R llt	R V 3R llt
R V 3R lltR V 3R lltR V 3R lltR V 3R lltR V 3R lltRtV ;t# )Scriptr    r
   
spellcheckc                   V ^8  d   QhRR/# )   returnr
    Zformat   "C/usr/lib/python3.14/site-packages/orca/scripts/apps/gedit/script.py__annotate__Script.__annotate__9   s        
      c                s    \        V 4      # )z'Returns the spellcheck for this script.r	   self   &r   get_spellcheckZScript.get_spellcheck9   s     $r   c               r   )r   r   zGtk.Gridr   r   r   r   r   r   >   s     	 	 	r   c                s    \         P                  ! 4       pVP                  ^4       VP                  V P                  P                  4       ^ ^ ^^4       VP                  4        V# )zhReturns a GtkGrid containing the application unique configuration
GUI items for the current application.)r   ZGridZset_border_widthZattachr   get_app_preferences_guiZshow_all)r   Zgrids   & r   r   ZScript.get_app_preferences_gui>   sL     xxzb!DOO;;=q!QJr   c               r   )r   r   zdict[str, bool]r   r   r   r   r   r   I   s     : :/ :r   c                s6    V P                   P                  4       # )z7Returns a dictionary with the app-specific preferences.)r   get_preferences_from_guir   r   r   r   ZScript.get_preferences_from_guiI   s     7799r   c               s(    V ^8  d   QhRRRRRRRR/# )r   eventzAtspi.Event | None	old_focuszAtspi.Accessible | None	new_focusr   boolr   r   r   r   r   r   N   s8     K K!K +K +	K
 
Kr   c                s  < V P                   P                  V4      '       dP   V P                   P                  V4      '       * pV P                  V4       V P                   P                  VR7       R# \        SV `  WV4      # )zVHandles changes of focus of interest. Returns True if this script did all needed work.)include_labelT)r   Zis_suggestions_itemupdate_brailleZpresent_suggestion_list_itemsuperlocus_of_focus_changed)r   r   r   r    r"   	__class__s   &&&& r   r%   ZScript.locus_of_focus_changedN   si     ??..y99 $ C CI NNM	*OO88}8Uw-e	JJr   c                    V ^8  d   QhRRRR/# r   r   zAtspi.Eventr   r!   r   r   r   r   r   r   ^   s     ; ;+ ;$ ;r   c                sx   < VP                   V P                  P                  4       8X  d   R# \        SV `  V4      # )zCCallback for object:active-descendant-changed accessibility events.T)sourcer   get_suggestions_listr$   on_active_descendant_changedr   r   r&      &&r   r+   Z#Script.on_active_descendant_changed^   s1     <<4????AAw3E::r   c               r'   r(   r   r   r   r   r   r   f   s     - -K -D -r   c                s   < \         P                  ! VP                  4      '       d1   V P                  P	                  VP                  VP
                  4       \        SV `  V4      # )z:Callback for object:text-caret-moved accessibility events.)r   Zis_multi_liner)   r   Zset_document_positionZdetail1r$   on_caret_movedr,   r-   r   r.   ZScript.on_caret_movedf   sF     $$U\\22OO11%,,Nw%e,,r   c               r'   r(   r   r   r   r   r   r   n   s      [ T r   c                s  < V P                   P                  4       '       g   \        SV `  V4      # \        P
                  ! VP                  4      pW P                   P                  4       8X  d   V P                   P                  4        R# \        P                  ! VP                  4      pW0P                   P                  4       8w  g   \        P                  ! V4      '       g   R# V P                   P                  4       pV\        P                  ! V4      8w  d   R# \         P"                  ! 4       P%                  WP                  R4       V P'                  VP                  4       R# )z;Callback for object:property-change:accessible-name events.TF)r   Z	is_activer$   on_name_changedr   Zget_namer)   Zget_misspelled_wordpresent_error_detailsZ
get_parentr*   r   Z
is_focusedget_change_to_entryr   Zget_all_textr   get_managerset_locus_of_focusr#   )r   r   ZnameZparententryr&   s   &&   r   r/   ZScript.on_name_changedn   s     ((**7*511  .??6688OO113$$U\\2__99;;;CYCYZ`CaCa3356&&u-- 	!!#66ullERELL)r   c               r'   r(   r   r   r   r   r   r      s     3 3+ 3$ 3r   c                s   < VP                   V P                  P                  4       8X  d#   V P                  P                  4       '       d   R# \        SV `  V4      # )zACallback for object:state-changed:sensitive accessibility events.T)r)   r   r1   Zpresent_completion_messager$   on_sensitive_changedr,   r-   r   r5   ZScript.on_sensitive_changed   sD     <<4??>>@@99;;w+E22r   c               r'   r(   r   r   r   r   r   r      s        r   c                s  < \         SV `  V4       V P                  P                  VP                  4      '       g   V P                  P                  4        R# V P                  P                  4        V P                  P                  4       p\        P                  ! 4       P                  RVR4       V P                  V4       R# )z2Callback for window:activate accessibility events.TNF)r$   on_window_activatedr   Zis_spell_check_windowr)   
deactivater0   r1   r   r2   r3   r#   )r   r   r4   r&   s   && r   r6   ZScript.on_window_activated   s     	#E*44U\\BBOO&&(--/335!!#66tUEJE"r   c               r'   r(   r   r   r   r   r   r      s      ; 4 r   c                sZ   < \         SV `  V4       V P                  P                  4        R# )z4Callback for window:deactivate accessibility events.T)r$   on_window_deactivatedr   r7   r,   r-   r   r8   ZScript.on_window_deactivated   s%     	%e,""$r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__Z__annotations__r   r   r   r%   r+   r.   r/   r5   r6   r8   Z__static_attributes__Z__classcell__)r&   s   @r   r   r   3   se    "  
	:
K K ; ;- - 23 3  r   r   )r9   Z
__future__r   Z__id__Z__version__Z__date__Z__copyright__Z__license__Ztypingr   ZgiZrequire_versionZgi.repositoryr   Zorcar   Zorca.ax_objectr   Zorca.ax_textr   Zorca.ax_utilitiesr   Zorca.scripts.toolkitsr   r   r
   r   r   r   r   r   <module>r:      s{   ,  #?   	   5%     #  ) % "w&#pSZZ pr   