
    ai                         S SK JrJr  S SKJr  S SKJr  S SKJr	  Sr
 " S S\5      rS r " S	 S
\5      r " S S\5      r " S S5      r " S S\5      r\\\\4r\S:X  a  S SKJr  \ H  r\" \5        M     gg)    )HeaderPanel)PropertyPanel)anim)pgettext_iface))show_properties_toolToolTOOL_SETTINGS)show_properties_renderRenderSCENE)show_properties_outputOutputOUTPUT)show_properties_view_layerz
View LayerRENDERLAYERS)show_properties_sceneScene
SCENE_DATA)show_properties_worldWorldWORLD)show_properties_collection
CollectionGROUP)show_properties_objectObjectOBJECT_DATA)show_properties_modifiers	ModifiersMODIFIER)show_properties_effectsEffectsSHADERFX)show_properties_particles	Particles	PARTICLES)show_properties_physicsPhysicsPHYSICS)show_properties_constraintsConstraints
CONSTRAINT)show_properties_dataData	MESH_DATA)show_properties_boneBone	BONE_DATA) show_properties_bone_constraintszBone ConstraintsCONSTRAINT_BONE)show_properties_materialMaterialMATERIAL)show_properties_textureTextureTEXTURE)show_properties_stripStripSEQ_SEQUENCER)show_properties_strip_modifierzStrip ModifiersSEQ_STRIP_MODIFIERc                   .    \ rS rSrSr\S 5       rS rSrg)PROPERTIES_HT_header%   
PROPERTIESc                 6   ^  [        U 4S j[         5       5      $ )Nc              3   B   >#    U  H  n[        TUS    5      v   M     g7fr   Ngetattr.0tab_infospaces     ^/home/wildlama/Downloads/blender-5.1.2-linux-x64/5.1/scripts/startup/bl_ui/space_properties.py	<genexpr>4PROPERTIES_HT_header._search_poll.<locals>.<genexpr>*        O875(1+..   )anytabs_attr_infosrM   s   `rN   _search_poll!PROPERTIES_HT_header._search_poll(   s    OOOO    c                    U R                   nUR                  nUR                  nUR                  R                  R
                  nUR                  5         UR                  5         U R                  UR                  5      (       ah  SU-  n[        S[        SUR                  U-  S-
  5      5      nUS:  a%  UR                  5       nXxl        UR                  SS9  UR                  USSSS	9  UR                  5         UR!                  S
SS9  g )N      r   BLANK1)iconsearch_filterVIEWZOOM )r]   textPROPERTIES_PT_options)panelra   )layout
space_dataregionpreferencessystemui_scaletemplate_headerseparator_spacerrV   minmaxwidthrowscale_xlabelproppopover)	selfcontextrd   viewrf   ri   content_size_estlayout_scalero   s	            rN   drawPROPERTIES_HT_header.draw,   s    !!&&--66 !W//00  #X~q#a&,,9I*IQ)N"OPLajjl*		x	(KKoJRKH!42>rX    N)	__name__
__module____qualname____firstlineno__bl_space_typestaticmethodrV   ry   __static_attributes__r{   rX   rN   rB   rB   %   s      MP P?rX   rB   c                 @   ^  [        U 4S j[         5       5      (       + $ )Nc              3   B   >#    U  H  n[        TUS    5      v   M     g7frG   rH   rJ   s     rN   rO   "has_hidden_tabs.<locals>.<genexpr>H   rQ   rR   )allrT   rU   s   `rN   has_hidden_tabsr   G   s    OOOOOrX   c                   ,    \ rS rSrSrSrSrS1rS rSr	g)	PROPERTIES_PT_navigation_barK   rD   NAVIGATION_BARzNavigation BarHIDE_HEADERc                 r   U R                   nUR                  nSUl        SUl        UR                  (       a  UR                  USUSSS9  OUR                  USSS9  UR                  SS9nSUl        S	Ul        S
Ul        S
Ul        UR                  SS9  UR                  SSSS9  [        U5      Ul        g )Ngffffff?ru   tab_search_resultsT)data_highlightproperty_highlight	icon_only)r   alignCENTERNONEg?gffffff?)factorPROPERTIES_PT_visibilityr`   
HORIZONTAL)rc   ra   	direction)rd   re   rp   scale_yr^   prop_tabs_enumro   	alignmentemboss	separatorrs   r   active)rt   ru   rd   rv   subs        rN   ry   !PROPERTIES_PT_navigation_bar.drawQ   s    !!!!i#74 " 
 !!$	T!B jjtj$ 
S!42V$T*
rX   r{   N)
r|   r}   r~   r   r   bl_region_typebl_label
bl_optionsry   r   r{   rX   rN   r   r   K   s     M%NHJ+rX   r   c                   *    \ rS rSrSrSrSrSrS rSr	g)	rb   l   z&Show options for the properties editorrD   HEADEROptionsc                     U R                   nUR                  nUR                  5       nUR                  SS9  UR	                  5       R                  USSS9  g )NzSync with Outlinerra   outliner_syncT)expand)rd   re   columnrq   ro   rr   )rt   ru   rd   rM   cols        rN   ry   PROPERTIES_PT_options.drawr   sH    ""mmo		+	,	uod;rX   r{   N
r|   r}   r~   r   __doc__r   r   r   ry   r   r{   rX   rN   rb   rb   l   s    0 MNH<rX   rb   c                       \ rS rSrSrSrSrSrSrS1r	\
R                  S-
  rS	r \S
 5       r\S 5       rS r\S 5       rSrg)PropertiesAnimationMixin|   zMix-in class for Animation panels.

This class can be used to show a generic 'Animation' panel for IDs shown in
the properties editor. Specific ID types need specific subclasses.

For an example, see DATA_PT_camera_animation in properties_data_camera.py
rD   WINDOWdata	AnimationDEFAULT_CLOSEDr[   r`   c                 |    U R                   (       d   SR                  U 5      5       e[        XR                   S 5      $ )Nz)set _animated_id_context_property on {!r})_animated_id_context_propertyformatrI   )clsru   s     rN   _animated_id%PropertiesAnimationMixin._animated_id   s8    00i2]2d2deh2ii0
 w A A4HHrX   c                 ,    U R                  U5      nUS L$ )N)r   )r   ru   animated_ids      rN   pollPropertiesAnimationMixin.poll   s    &&w/$&&rX   c                     U R                   nUR                  SS9nSUl        SUl        U R	                  XU R                  U5      5        g )NTr   F)rd   r   use_property_splituse_property_decoratedraw_action_and_slot_selectorr   )rt   ru   rd   r   s       rN   ry   PropertiesAnimationMixin.draw   sF    mm$m'!%$)!**79J9J79STrX   c                     U(       dT  U R                  5        Vs/ s H  oDR                  PM     nn[        SR                  U5      5        UR	                  SSS9  g [
        R                  " X#5        g s  snf )Nz_PropertiesAnimationMixin: no animatable data-block, this is a bug in one of these classes: {!r}z.No animatable data-block, please report as bugERRORra   r]   )mror|   printr   rq   r   $draw_action_and_slot_selector_for_id)r   ru   rd   r   c
class_lists         rN   r   6PropertiesAnimationMixin.draw_action_and_slot_selector   sa    .1ggi8i**iJ8 228&2DFLLNU\L]11&F 9s   A3r{   N)r|   r}   r~   r   r   r   r   
bl_contextr   r   r   bl_orderr   classmethodr   r   ry   r   r   r{   rX   rN   r   r   |   s     !MNJH"#J%%)H$&!TI I ' 'U G GrX   r   c                   *    \ rS rSrSrSrSrSrS rSr	g)	r      z2Choose visibility of tabs in the properties editorrD   r   
Visibilityc                    UR                   nU R                  nSUl        UR                  SS9nUR	                  SS9  [
         H>  u  pVnUR                  SS9nUR	                  [        U5      US9  UR                  X%SS9  M@     g )NFTr   zVisible Tabsr   r   r`   )	re   rd   r   r   rq   rT   ro   iface_rr   )	rt   ru   rM   rd   r   rr   namer]   ro   s	            rN   ry   PROPERTIES_PT_visibility.draw   s    ""',$mm$m'		~	& /D'''%CII6$<dI3HHUrH* !0rX   r{   Nr   r{   rX   rN   r   r      s    < MNH
+rX   r   __main__)register_classN)	bpy.typesr   r   rna_prop_uir   bl_uir   bpy.app.translationsr   r   rT   rB   r   r   rb   r   r   classesr|   	bpy.utilsr   r   r{   rX   rN   <module>r      s   
 $ % 
0?6 ?DP+5 +B<E < 1G 1Gh+u +(  	 z(s  rX   