forked from bartvdbraak/blender
43 lines
1.3 KiB
Python
43 lines
1.3 KiB
Python
|
|
import bpy
|
|
|
|
class FILEBROWSER_HT_header(bpy.types.Header):
|
|
__space_type__ = 'FILE_BROWSER'
|
|
|
|
def draw(self, context):
|
|
layout = self.layout
|
|
|
|
st = context.space_data
|
|
params = st.params
|
|
|
|
layout.template_header(menus=False)
|
|
|
|
row = layout.row(align=True)
|
|
row.itemO("file.parent", text="", icon='ICON_FILE_PARENT')
|
|
row.itemO("file.refresh", text="", icon='ICON_FILE_REFRESH')
|
|
row.itemO("file.previous", text="", icon='ICON_PREV_KEYFRAME')
|
|
row.itemO("file.next", text="", icon='ICON_NEXT_KEYFRAME')
|
|
|
|
row = layout.row(align=True)
|
|
row.itemO("file.directory_new", text="", icon='ICON_NEWFOLDER')
|
|
|
|
layout.itemR(params, "display", expand=True, text="")
|
|
layout.itemR(params, "sort", expand=True, text="")
|
|
|
|
layout.itemR(params, "hide_dot")
|
|
layout.itemR(params, "do_filter")
|
|
|
|
row = layout.row(align=True)
|
|
row.itemR(params, "filter_folder", text="");
|
|
row.itemR(params, "filter_blender", text="");
|
|
row.itemR(params, "filter_image", text="");
|
|
row.itemR(params, "filter_movie", text="");
|
|
row.itemR(params, "filter_script", text="");
|
|
row.itemR(params, "filter_font", text="");
|
|
row.itemR(params, "filter_sound", text="");
|
|
row.itemR(params, "filter_text", text="");
|
|
|
|
row.active = params.do_filter
|
|
|
|
bpy.types.register(FILEBROWSER_HT_header)
|