3
7ßL]�  ã               @   s    d Z ddlZG dd„ deƒZdS )z³ Defines the IDockable interface which objects contained in a DockWindow
    DockControl can implement in order to allow themselves to be dragged into
    a different DockWindow.
é    Nc               @   sL   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Z	dd„ Z
dS )Ú	IDockablec             C   s   dS )z[ Should the current DockControl be closed before creating the new
            one.
        T© )Úselfr   r   ú9/tmp/pip-install-5sebvq2j/pyface/pyface/dock/idockable.pyÚdockable_should_close'   s    zIDockable.dockable_should_closec             C   s   dS )z? Returns whether or not it is OK to close the control.
        Fr   )r   Údock_controlÚforcer   r   r   Údockable_close2   s    zIDockable.dockable_closec             C   s$   t dƒ tj|dƒ}|jtjƒ |S )z> Gets a control that can be docked into a DockWindow.
        z>The 'IDockable.dockable_get_control' method must be overriddené   éÿÿÿÿ)ÚprintÚwxZPanelZSetBackgroundColourÚRED)r   ÚparentZpanelr   r   r   Údockable_get_control;   s    zIDockable.dockable_get_controlc             C   s   dS )zI Allows the object to override the default DockControl settings.
        Nr   )r   r   r   r   r   Údockable_init_dockcontrolG   s    z#IDockable.dockable_init_dockcontrolc             C   s   dS )zH Returns the right-click popup menu for a DockControl (if any).
        Nr   )r   r   Úeventr   r   r   Údockable_menuP   s    zIDockable.dockable_menuc             C   s   dS )zÑ Handles the user double-clicking on the DockControl.
            A result of False indicates the event was not handled; all other
            results indicate that the event was handled successfully.
        Fr   )r   r   r   r   r   r   Údockable_dclick[   s    zIDockable.dockable_dclickc             C   s   dS )a   Handles a notebook tab being activated or deactivated.

            'dock_control' is the control being activated or deactivated.

            If 'activated' is True, the control is being activated; otherwise
            the control is being deactivated.
        Nr   )r   r   Z	activatedr   r   r   Údockable_tab_activatedf   s    z IDockable.dockable_tab_activatedc             C   s   dS )zF Handles the dockable being bound to a specified DockControl.
        Nr   )r   r   r   r   r   Údockable_bindt   s    zIDockable.dockable_bindN)Ú__name__Ú
__module__Ú__qualname__r   r	   r   r   r   r   r   r   r   r   r   r   r   !   s   		r   )Ú__doc__r   Úobjectr   r   r   r   r   Ú<module>   s   