Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Reynish <billrey@me.com>2019-09-04 23:09:01 +0300
committerWilliam Reynish <billrey@me.com>2019-09-04 23:09:01 +0300
commit5d442440f8db22bed503a9a3768118c02b4669e6 (patch)
tree7fae8e01c99cbd19586b3e5aad8b6cbad03d2eb4 /release/scripts/startup/bl_ui/space_filebrowser.py
parentfc0b51d516e6fcfa41f0366156e347c59d9aec99 (diff)
File Browser UI: Add Select menu to File Browser
Adding this for consistency with other editors. Seems as if we never had this in the past.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_filebrowser.py')
-rw-r--r--release/scripts/startup/bl_ui/space_filebrowser.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 92eae7a4de9..414e0bf0b95 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -33,6 +33,7 @@ class FILEBROWSER_HT_header(Header):
layout.template_header()
layout.menu("FILEBROWSER_MT_view")
+ layout.menu("FILEBROWSER_MT_select")
# can be None when save/reload with a file selector open
@@ -435,6 +436,22 @@ class FILEBROWSER_MT_view(Menu):
layout.menu("INFO_MT_area")
+class FILEBROWSER_MT_select(Menu):
+ bl_label = "Select"
+
+ def draw(self, context):
+ layout = self.layout
+ st = context.space_data
+
+ layout.operator("file.select_all", text="All").action = 'SELECT'
+ layout.operator("file.select_all", text="None").action = 'DESELECT'
+ layout.operator("file.select_all", text="Inverse").action = 'INVERT'
+
+ layout.separator()
+
+ layout.operator("file.select_box")
+
+
class FILEBROWSER_MT_context_menu(Menu):
bl_label = "Files Context Menu"
@@ -485,6 +502,7 @@ classes = (
FILEBROWSER_PT_directory_path,
FILEBROWSER_PT_options_toggle,
FILEBROWSER_MT_view,
+ FILEBROWSER_MT_select,
FILEBROWSER_MT_context_menu,
)