a
    §ˆcñ  ã                   @   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ÚStrÚVetoableÚVetoableEventÚcached_propertyc                   @   sf   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.
    ú/pyface.tasks.i_editor_area_pane.IEditorAreaPanec                 C   s   dS )ú Close the editor.
        N© ©Úselfr   r   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/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   ÚcreateD   s    zIEditor.createc                 C   s   dS )zJ Destroy the toolkit-specific control that represents the editor.
        Nr   r   r   r   r   ÚdestroyI   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                   @   sl   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.
    Fr   zeditor_area.active_editor)Zobservec                 C   s2   | j dur.tƒ  | _}|js.| j | ¡ d| _dS )r   NT)r   r
   r$   Zvetor!   Zremove_editorr%   )r   Úeventr   r   r   r   e   s
    
zMEditor.closec                 C   s   | j d ur| j j| kS dS )NF)r!   Zactive_editorr   r   r   r   Ú_get_is_activer   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&   N   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4