3
7ßL]_  ã               @   sX   d dl mZmZmZmZmZmZmZmZm	Z	m
Z
mZ G dd„ deƒZG dd„ deƒZdS )é    )ÚAnyÚBoolÚEventÚ	HasTraitsÚ	InterfaceÚInstanceÚPropertyÚUnicodeÚVetoableÚVetoableEventÚcached_propertyc               @   sT   e Zd ZdZeZeZeZeZ	e
ZedƒZe
Ze
ZeZeZdd„ Zdd„ Zdd„ Zd	S )
ÚIEditorzD The base interface for all panes (central and dock) in a Task.
    z/pyface.tasks.i_editor_area_pane.IEditorAreaPanec             C   s   dS )z Close the editor.
        N© )Úselfr   r   ú9/tmp/pip-install-5sebvq2j/pyface/pyface/tasks/i_editor.pyÚclose-   s    zIEditor.closec             C   s   dS )z] Create and set the toolkit-specific control that represents the
            editor.
        Nr   )r   Úparentr   r   r   Úcreate1   s    zIEditor.createc             C   s   dS )zJ Destroy the toolkit-specific control that represents the editor.
        Nr   )r   r   r   r   Údestroy6   s    zIEditor.destroyN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   ÚnameÚtooltipr   ÚcontrolÚobjr   Údirtyr   Úeditor_areaÚ	is_activeÚ	has_focusr   Úclosingr   Úclosedr   r   r   r   r   r   r   r      s   r   c               @   s`   e Zd ZdZeZeZeZeZ	e
dƒZedƒZee
dd�Ze
dƒZeZeZdd„ Zedd	„ ƒZd
S )ÚMEditorzH Mixin containing common code for toolkit-specific implementations.
    Fz/pyface.tasks.i_editor_area_pane.IEditorAreaPanezeditor_area.active_editor)Z
depends_onc             C   s2   | j dk	r.tƒ  | _}|js.| jj| ƒ d| _dS )z Close the editor.
        NT)r   r
   r!   Zvetor   Zremove_editorr"   )r   Úeventr   r   r   r   S   s
    
zMEditor.closec             C   s   | j d k	r| j j| kS dS )NF)r   Zactive_editor)r   r   r   r   Ú_get_is_active`   s    
zMEditor._get_is_activeN)r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r    r   r!   r   r"   r   r   r%   r   r   r   r   r#   ;   s   r#   N)Z
traits.apir   r   r   r   r   r   r   r	   r
   r   r   r   r#   r   r   r   r   Ú<module>   s   45