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:
authorJulian Eisel <eiseljulian@gmail.com>2019-09-06 02:22:35 +0300
committerJulian Eisel <eiseljulian@gmail.com>2019-09-06 02:31:45 +0300
commit9972d6c3062010bea514c9e382b0a99275d63a89 (patch)
treed142b202d8f7c02b3991e8e6aa9064195bc7ebce /source/blender/editors/include/ED_fileselect.h
parent4c4a8bf588c52e05f868a89938fa09e6f25ba1d8 (diff)
UI: Bring back features for file path button
Adds back auto-completion and auto-creation (inserting a non-existing file-path would create it) for the file path button. The second feature was left out knowingly, but seems there are reasonable use cases for it. We can't add these features to the button in the Python script, we have to call into C. So using a template to do that. Note that this is based on the old file browser code, I've copied over the TODO comment.
Diffstat (limited to 'source/blender/editors/include/ED_fileselect.h')
-rw-r--r--source/blender/editors/include/ED_fileselect.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_fileselect.h b/source/blender/editors/include/ED_fileselect.h
index fd7aada1b9f..96d83dedc0d 100644
--- a/source/blender/editors/include/ED_fileselect.h
+++ b/source/blender/editors/include/ED_fileselect.h
@@ -25,11 +25,13 @@
#define __ED_FILESELECT_H__
struct ARegion;
+struct bScreen;
struct FileSelectParams;
struct ScrArea;
struct SpaceFile;
struct bContext;
struct wmWindowManager;
+struct uiBlock;
#define FILE_LAYOUT_HOR 1
#define FILE_LAYOUT_VER 2
@@ -133,6 +135,11 @@ void ED_file_read_bookmarks(void);
void ED_file_change_dir(struct bContext *C);
+void ED_file_path_button(struct bScreen *screen,
+ const struct SpaceFile *sfile,
+ struct FileSelectParams *params,
+ struct uiBlock *block);
+
/* File menu stuff */
/* FSMenuEntry's without paths indicate separators */