a
    ©ˆcå  ã                   @   sš   d Z ddlZddlmZmZmZmZmZmZ ddl	m
Z
 ddlmZ ddlmZ ddlmZ dd	lmZ dd
lmZ e e¡ZeeƒG dd„ deƒƒZdS )ú> An action set is a collection of menus, groups, and actions. é    N)ÚBoolÚDictÚ	HasTraitsÚListÚStrÚprovides)Úcamel_case_to_wordsé   )ÚAction)ÚGroup)ÚMenu)ÚToolBar)Ú
IActionSetc                   @   sb   e Zd ZdZeZeZeeƒZ	ee
ƒZeeƒZeeƒZedƒZedƒZeeeƒZdd„ Zdd„ ZdS )Ú	ActionSetr   Tc                 C   s.   dt | ƒjt | ƒjf }t d| |f ¡ |S )ú Trait initializer. z%s.%sz$action set %s has no Id - using <%s>)ÚtypeÚ
__module__Ú__name__ÚloggerÚwarning)ÚselfÚid© r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/envisage/ui/action/action_set.pyÚ_id_defaultc   s    zActionSet._id_defaultc                 C   s$   t t| ƒjƒ}t d| |f ¡ |S )r   z&action set %s has no name - using <%s>)r	   r   r   r   r   )r   Únamer   r   r   Ú_name_defaultk   s    zActionSet._name_defaultN)r   r   Ú__qualname__Ú__doc__r   r   r   r   r   Úactionsr   Úgroupsr   Zmenusr   Z	tool_barsr   ZenabledZvisibler   Úaliasesr   r   r   r   r   r   r       s   
r   )r   ÚloggingZ
traits.apir   r   r   r   r   r   Ztraits.util.camel_caser	   Úactionr   Úgroupr   Úmenur   Ztool_barr   Zi_action_setr   Ú	getLoggerr   r   r   r   r   r   r   Ú<module>
   s    
