diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-11-04 16:24:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-04 17:33:50 +0300 |
commit | b566adec5255a0d463dd7d16bc7acbb5d6fdbbaf (patch) | |
tree | 047ea0a4e6d8acf69624e900ccb9983083dfd9ec /source/blender/editors/space_file/file_intern.h | |
parent | e43b6e2f9725edd8cbe1ca8538c8a2bbdf1b45cd (diff) |
File Selector, support filepath dropping
This adds support for dropping a filepath on an open file-selector to set that path.
Diffstat (limited to 'source/blender/editors/space_file/file_intern.h')
-rw-r--r-- | source/blender/editors/space_file/file_intern.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/file_intern.h b/source/blender/editors/space_file/file_intern.h index baafefab1f6..71e38f72a7a 100644 --- a/source/blender/editors/space_file/file_intern.h +++ b/source/blender/editors/space_file/file_intern.h @@ -93,6 +93,7 @@ void FILE_OT_filenum(struct wmOperatorType *ot); void FILE_OT_delete(struct wmOperatorType *ot); void FILE_OT_rename(struct wmOperatorType *ot); void FILE_OT_smoothscroll(struct wmOperatorType *ot); +void FILE_OT_filepath_drop(struct wmOperatorType *ot); int file_exec(bContext *C, struct wmOperator *exec_op); int file_cancel_exec(bContext *C, struct wmOperator *unused); @@ -107,7 +108,9 @@ void file_filename_enter_handle(bContext *C, void *arg_unused, void *arg_but); int file_highlight_set(struct SpaceFile *sfile, struct ARegion *ar, int mx, int my); -void file_sfile_to_operator(struct wmOperator *op, struct SpaceFile *sfile, char *filepath); +void file_sfile_filepath_set(struct SpaceFile *sfile, const char *filepath); +void file_sfile_to_operator_ex(struct wmOperator *op, struct SpaceFile *sfile, char *filepath); +void file_sfile_to_operator(struct wmOperator *op, struct SpaceFile *sfile); void file_operator_to_sfile(struct SpaceFile *sfile, struct wmOperator *op); |