forked from bartvdbraak/blender
239b78c637
- WM_operator_pystring can now be used with an operator type and properties (rather then a wmOperator instance) - removed menus from file selector
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
|
|
import bpy
|
|
|
|
|
|
class FILEBROWSER_HT_header(bpy.types.Header):
|
|
__space_type__ = "FILE_BROWSER"
|
|
|
|
def draw(self, context):
|
|
st = context.space_data
|
|
layout = self.layout
|
|
|
|
params = st.params
|
|
layout.template_header()
|
|
|
|
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)
|