3
7ßL]à  ã               @   sh   d dl mZ d dlmZmZmZmZmZmZ ddl	m
Z
mZ ddlmZ d dlmZ G dd„ deƒZd	S )
é    )ÚStatusBarManager)ÚCallableÚ	HasTraitsÚInstanceÚListÚStrÚUnicodeé   )ÚMenuBarSchemaÚToolBarSchema)ÚSchemaAddition)Ú
TaskLayoutc               @   sz   e Zd ZdZeZeZee	f ƒZ
eeƒZedƒZeeƒZeeƒZeeƒZeeƒZdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ ZdS )ÚTaska   A collection of pane, menu, tool bar, and status bar factories.

    The central class in the Tasks plugin, a Task is responsible for
    describing a set of user interface elements, as well as mediating between
    its view (a TaskWindow) and an application-specific model.
    z#pyface.tasks.task_window.TaskWindowc             C   s   dS )zC Called after the task has been activated in a TaskWindow.
        N© )Úselfr   r   ú5/tmp/pip-install-5sebvq2j/pyface/pyface/tasks/task.pyÚ	activated8   s    zTask.activatedc             C   s   t ‚dS )zM Create and return the central pane, which must implement ITaskPane.
        N)ÚNotImplementedError)r   r   r   r   Úcreate_central_pane=   s    zTask.create_central_panec             C   s   g S )zµ Create and return the task's dock panes (IDockPane instances).

        This method is called *after* create_central_pane() when the task is
        added to a TaskWindow.
        r   )r   r   r   r   Úcreate_dock_panesB   s    zTask.create_dock_panesc             C   s   dS )a$   Called when the task is about to be activated in a TaskWindow for
        the first time.

        Override this method to perform any initialization that requires the
        Task's panes to be instantiated. Note that this method, when called, is
        called before activated().
        Nr   )r   r   r   r   ÚinitializedJ   s    zTask.initializedc             C   s   dS )z± Called when the task is about to be removed from its TaskWindow.

        Override this method to perform any cleanup before the task's controls
        are destroyed.
        Nr   )r   r   r   r   Úprepare_destroyT   s    zTask.prepare_destroyN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úidr   Únamer   r   Zdefault_layoutr   r   Zextra_dock_pane_factoriesZwindowr
   Zmenu_barr   Z
status_barr   Z	tool_barsr   Zextra_actionsr   r   r   r   r   r   r   r   r   r      s   

r   N)Zpyface.action.apir   Z
traits.apir   r   r   r   r   r   Zaction.schemar
   r   Zaction.schema_additionr   Zpyface.tasks.task_layoutr   r   r   r   r   r   Ú<module>   s
    