3
6ßL]™  ã               @   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jeƒZeeƒG dd„ deƒƒZdS )z> 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 )Ú	ActionSetz> An action set is a collection of menus, groups, and actions. Tc             C   s.   dt | ƒjt | ƒjf }tjd| |f ƒ |S )z Trait initializer. z%s.%sz$action set %s has no Id - using <%s>)ÚtypeÚ
__module__Ú__name__ÚloggerÚwarn)ÚselfÚid© r   úC/tmp/pip-install-5sebvq2j/envisage/envisage/ui/action/action_set.pyÚ_id_defaultZ   s    zActionSet._id_defaultc             C   s$   t t| ƒjƒ}tjd| |f ƒ |S )z Trait initializer. z&action set %s has no name - using <%s>)r   r   r   r   r   )r   Únamer   r   r   Ú_name_defaultb   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    
