
    G@d                     Z    d Z ddlZddlmZ  ej        e          Z G d de          ZdS )zOutline explorer editor proxy.    N)OutlineExplorerProxyc                   |     e Zd Z fdZd Zd Zd Zd Zd Zd Z	d Z
d	 Zd
 Zd Zd Zd Zed             Z xZS )OutlineExplorerProxyEditorc                     t          t          |                                            || _        || _        |j                            | j                   d | _        d| _        d S )NF)	superr   __init___editorfnamesig_cursor_position_changedconnectinfois_tree_updated)selfeditorr
   	__class__s      Elib/python3.11/site-packages/spyder/plugins/outlineexplorer/editor.pyr   z#OutlineExplorerProxyEditor.__init__   sh    ($//88:::
*22,	. 	. 	. 	  %    c                     t                               dt          |            d| j                    | j                            |           || _        d| _        d S )NzUpdating info for proxy z	 of file F)loggerdebugidr
   !sig_outline_explorer_data_changedemitr   r   )r   r   s     r   update_outline_infoz.OutlineExplorerProxyEditor.update_outline_info#   sa    Fr$xxFF$*FF	
 	
 	
 	.33D999	$r   c                 8    | j                                          d S N)sig_start_outline_spinnerr   r   s    r   emit_request_in_progressz3OutlineExplorerProxyEditor.emit_request_in_progress+   s    &++-----r   c                 4    | j                                         S r   )r	   	is_pythonr   s    r   r!   z$OutlineExplorerProxyEditor.is_python.   s    |%%'''r   c                 4    | j                                         S r   )r	   is_python_or_ipythonr   s    r   r#   z/OutlineExplorerProxyEditor.is_python_or_ipython1   s    |00222r   c                 4    | j                                         S r   )r	   get_document_idr   s    r   get_idz!OutlineExplorerProxyEditor.get_id4   s    |++---r   c                     | j         j        S r   )r	   languager   s    r   get_languagez'OutlineExplorerProxyEditor.get_language7   s    |$$r   c                 j    | j                                          | j                                          d S r   )r	   
clearFocussetFocusr   s    r   
give_focusz%OutlineExplorerProxyEditor.give_focus:   s0    !!!r   c                 4    | j                                         S r   )r	   get_cursor_line_numberr   s    r   r/   z1OutlineExplorerProxyEditor.get_cursor_line_number>   s    |22444r   c                 4    | j                                         S r   )r	   get_line_countr   s    r   r1   z)OutlineExplorerProxyEditor.get_line_countA   s    |**,,,r   c                 4    | j                                         S r   )r	   parentr   s    r   r3   z!OutlineExplorerProxyEditor.parentD   s    |""$$$r   c                 4    | j                                         S )zGet outline explorer data list.)r	   outlineexplorer_data_listr   s    r   r5   z4OutlineExplorerProxyEditor.outlineexplorer_data_listG   s    |55777r   c                 8    | j                                          dS )zRequest current editor symbols.N)r	   request_symbolsr   s    r   r7   z*OutlineExplorerProxyEditor.request_symbolsK   s    $$&&&&&r   c                     | j         j        S )z)Check if the associated editor is cloned.)r	   	is_clonedr   s    r   r9   z$OutlineExplorerProxyEditor.is_clonedO   s     |%%r   )__name__
__module____qualname__r   r   r   r!   r#   r&   r)   r-   r/   r1   r3   r5   r7   propertyr9   __classcell__)r   s   @r   r   r      s       % % % % %% % %. . .( ( (3 3 3. . .% % %     5 5 5- - -% % %8 8 8' ' ' & & X& & & & &r   r   )__doc__logging"spyder.plugins.outlineexplorer.apir   	getLoggerr:   r   r    r   r   <module>rD      sv    % $  D C C C C C 
	8	$	$>& >& >& >& >&!5 >& >& >& >& >&r   