a
    ¦ˆc&
  ã                   @   s0   d Z ddlmZmZmZmZ G dd„ deƒZdS )z3 Abstract base class for all action manager items. é    )ÚBoolÚ	HasTraitsÚInstanceÚStrc                   @   s>   e Zd ZdZeƒ ZedƒZedƒZ	edƒZ
dd„ Zdd„ ZdS )	ÚActionManagerItemaÍ   Abstract base class for all action manager items.

    An action manager item represents a contribution to a shared UI resource
    such as a menu bar, menu or tool bar.

    Action manager items know how to add themselves to menu bars, menus and
    tool bars.  In a tool bar a contribution item is represented as a tool or a
    separator.  In a menu bar a contribution item is a menu, and in a menu
    a contribution item is a menu item or separator.

    zpyface.action.api.GroupTc                 C   s
   t ƒ ‚dS )aE   Adds the item to a menu.

        Parameters
        ----------
        parent : toolkit control
            The parent of the new menu item control.
        menu : toolkit menu
            The menu to add the action item to.
        controller : ActionController instance or None
            The controller to use.
        N©ÚNotImplementedError)ÚselfÚparentÚmenuÚ
controller© r   úd/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/action/action_manager_item.pyÚadd_to_menu/   s    zActionManagerItem.add_to_menuc                 C   s
   t ƒ ‚dS )aú   Adds the item to a tool bar.

        Parameters
        ----------
        parent : toolkit control
            The parent of the new menu item control.
        tool_bar : toolkit toolbar
            The toolbar to add the action item to.
        image_cache : ImageCache instance
            The image cache for resized images.
        controller : ActionController instance or None
            The controller to use.
        show_labels : bool
            Should the toolbar item show a label.
        Nr   )r	   r
   Ztool_barZimage_cacher   r   r   r   Úadd_to_toolbar=   s    z ActionManagerItem.add_to_toolbarN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úidr   r
   r   ZenabledZvisibler   r   r   r   r   r   r      s   r   N)r   Z
traits.apir   r   r   r   r   r   r   r   r   Ú<module>   s   