2009-06-29 20:23:40 +00:00
|
|
|
|
|
|
|
import bpy
|
|
|
|
|
|
|
|
class FILEBROWSER_HT_header(bpy.types.Header):
|
2009-08-22 08:48:01 +00:00
|
|
|
__space_type__ = 'FILE_BROWSER'
|
2009-06-29 20:23:40 +00:00
|
|
|
|
|
|
|
def draw(self, context):
|
|
|
|
layout = self.layout
|
|
|
|
|
2009-08-21 11:52:20 +00:00
|
|
|
st = context.space_data
|
2009-06-29 20:23:40 +00:00
|
|
|
params = st.params
|
2009-08-21 11:52:20 +00:00
|
|
|
|
2009-08-19 00:55:30 +00:00
|
|
|
layout.template_header(menus=False)
|
2009-07-29 23:12:30 +00:00
|
|
|
|
2009-06-29 20:23:40 +00:00
|
|
|
row = layout.row(align=True)
|
2009-07-17 12:26:40 +00:00
|
|
|
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')
|
2009-07-07 07:25:44 +00:00
|
|
|
|
2009-07-29 23:12:30 +00:00
|
|
|
row = layout.row(align=True)
|
|
|
|
row.itemO("file.directory_new", text="", icon='ICON_NEWFOLDER')
|
|
|
|
|
2009-06-29 20:23:40 +00:00
|
|
|
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="");
|
|
|
|
|
2009-06-30 19:20:45 +00:00
|
|
|
row.active = params.do_filter
|
|
|
|
|
2009-06-29 22:16:48 +00:00
|
|
|
bpy.types.register(FILEBROWSER_HT_header)
|