tabs to spaces, remove trailing white space. (apart of pep8)
[blender-staging.git] / release / scripts / ui / space_filebrowser.py
1
2 import bpy
3
4 class FILEBROWSER_HT_header(bpy.types.Header):
5     bl_space_type = 'FILE_BROWSER'
6
7     def draw(self, context):
8         layout = self.layout
9
10         st = context.space_data
11         params = st.params
12
13         layout.template_header(menus=False)
14
15         row = layout.row()
16         row.itemS()
17
18         row = layout.row(align=True)
19         row.itemO("file.previous", text="", icon='ICON_BACK')
20         row.itemO("file.next", text="", icon='ICON_FORWARD')
21         row.itemO("file.parent", text="", icon='ICON_FILE_PARENT')
22         row.itemO("file.refresh", text="", icon='ICON_FILE_REFRESH')
23
24         row = layout.row()
25         row.itemS()
26
27         row = layout.row(align=True)
28         row.itemO("file.directory_new", text="", icon='ICON_NEWFOLDER')
29
30         layout.itemR(params, "display", expand=True, text="")
31         layout.itemR(params, "sort", expand=True, text="")
32
33         layout.itemR(params, "hide_dot", text="Hide Invisible")
34         layout.itemR(params, "do_filter", text="", icon='ICON_FILTER')
35
36         row = layout.row(align=True)
37         row.active = params.do_filter
38
39         row.itemR(params, "filter_folder", text="");
40         row.itemR(params, "filter_blender", text="");
41         row.itemR(params, "filter_image", text="");
42         row.itemR(params, "filter_movie", text="");
43         row.itemR(params, "filter_script", text="");
44         row.itemR(params, "filter_font", text="");
45         row.itemR(params, "filter_sound", text="");
46         row.itemR(params, "filter_text", text="");
47
48 bpy.types.register(FILEBROWSER_HT_header)