
    Je                     V    d Z ddlZddlmZ  ej                  e      Z G d de      Zy)zOutline explorer editor proxy.    N)OutlineExplorerProxyc                   v     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                  | j
                         d | _        d| _        y )NF)	superr   __init___editorfnamesig_cursor_position_changedconnectinfois_tree_updated)selfeditorr
   	__class__s      G/usr/lib/python3/dist-packages/spyder/plugins/outlineexplorer/editor.pyr   z#OutlineExplorerProxyEditor.__init__   sO    ($8:
**22,,	. 	  %    c                     t         j                  dt        |        d| j                          | j                  j                  |       || _        d| _        y )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#   sK    &r$xj	$**F	
 	..33D9	$r   c                 8    | j                   j                          y N)sig_start_outline_spinnerr   r   s    r   emit_request_in_progressz3OutlineExplorerProxyEditor.emit_request_in_progress+   s    &&++-r   c                 6    | j                   j                         S r   )r	   	is_pythonr   s    r   r!   z$OutlineExplorerProxyEditor.is_python.   s    ||%%''r   c                 6    | j                   j                         S r   )r	   is_python_or_ipythonr   s    r   r#   z/OutlineExplorerProxyEditor.is_python_or_ipython1   s    ||0022r   c                 6    | j                   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                 l    | j                   j                          | j                   j                          y r   )r	   
clearFocussetFocusr   s    r   
give_focusz%OutlineExplorerProxyEditor.give_focus:   s"    !r   c                 6    | j                   j                         S r   )r	   get_cursor_line_numberr   s    r   r/   z1OutlineExplorerProxyEditor.get_cursor_line_number>   s    ||2244r   c                 6    | j                   j                         S r   )r	   get_line_countr   s    r   r1   z)OutlineExplorerProxyEditor.get_line_countA   s    ||**,,r   c                 6    | j                   j                         S r   )r	   parentr   s    r   r3   z!OutlineExplorerProxyEditor.parentD   s    ||""$$r   c                 6    | j                   j                         S )zGet outline explorer data list.)r	   outlineexplorer_data_listr   s    r   r5   z4OutlineExplorerProxyEditor.outlineexplorer_data_listG   s    ||5577r   c                 8    | j                   j                          y)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      sX    %%.(3.% 5-%8' & &r   r   )__doc__logging"spyder.plugins.outlineexplorer.apir   	getLoggerr:   r   r    r   r   <module>rD      s6    %  D 
		8	$>&!5 >&r   