Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[blender.git] / release / ui / space_filebrowser.py
1
2 import bpy
3
4
5 class FILEBROWSER_HT_header(bpy.types.Header):
6         __space_type__ = "FILE_BROWSER"
7
8         def draw(self, context):
9                 st = context.space_data
10                 layout = self.layout
11                 
12                 params = st.params 
13                 layout.template_header(menus=False)
14                 
15                 row = layout.row(align=True)
16                 row.itemO("file.parent", text="", icon='ICON_FILE_PARENT')
17                 row.itemO("file.refresh", text="", icon='ICON_FILE_REFRESH')
18                 row.itemO("file.previous", text="", icon='ICON_PREV_KEYFRAME')
19                 row.itemO("file.next", text="", icon='ICON_NEXT_KEYFRAME')
20                 
21                 row = layout.row(align=True)
22                 row.itemO("file.directory_new", text="", icon='ICON_NEWFOLDER')
23                 
24                 layout.itemR(params, "display", expand=True, text="")
25                 layout.itemR(params, "sort", expand=True, text="")
26                 
27                 layout.itemR(params, "hide_dot")
28                 layout.itemR(params, "do_filter")
29                 
30                 row = layout.row(align=True)
31                 row.itemR(params, "filter_folder", text="");
32                 row.itemR(params, "filter_blender", text="");
33                 row.itemR(params, "filter_image", text="");
34                 row.itemR(params, "filter_movie", text="");
35                 row.itemR(params, "filter_script", text="");
36                 row.itemR(params, "filter_font", text="");
37                 row.itemR(params, "filter_sound", text="");
38                 row.itemR(params, "filter_text", text="");
39
40                 row.active = params.do_filter
41
42                 
43 bpy.types.register(FILEBROWSER_HT_header)