Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/file_intern.h
| Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
| void file_filename_enter_handle(bContext *C, void *arg_unused, void *arg_but); | void file_filename_enter_handle(bContext *C, void *arg_unused, void *arg_but); | ||||
| int file_highlight_set(struct SpaceFile *sfile, struct ARegion *region, int mx, int my); | int file_highlight_set(struct SpaceFile *sfile, struct ARegion *region, int mx, int my); | ||||
| /** | /** | ||||
| * Use to set the file selector path from some arbitrary source. | * Use to set the file selector path from some arbitrary source. | ||||
| */ | */ | ||||
| void file_sfile_filepath_set(struct SpaceFile *sfile, const char *filepath); | void file_sfile_filepath_set(struct SpaceFile *sfile, const char *filepath); | ||||
| void file_sfile_to_operator_ex(struct Main *bmain, | void file_sfile_to_operator_ex(struct bContext *C, | ||||
| struct Main *bmain, | |||||
| struct wmOperator *op, | struct wmOperator *op, | ||||
| struct SpaceFile *sfile, | struct SpaceFile *sfile, | ||||
| char *filepath); | char *filepath); | ||||
| void file_sfile_to_operator(struct Main *bmain, struct wmOperator *op, struct SpaceFile *sfile); | void file_sfile_to_operator(struct bContext *C, | ||||
| struct Main *bmain, | |||||
| struct wmOperator *op, | |||||
| struct SpaceFile *sfile); | |||||
| void file_operator_to_sfile(struct Main *bmain, struct SpaceFile *sfile, struct wmOperator *op); | void file_operator_to_sfile(struct Main *bmain, struct SpaceFile *sfile, struct wmOperator *op); | ||||
| /* space_file.c */ | /* space_file.c */ | ||||
| extern const char *file_context_dir[]; /* doc access */ | extern const char *file_context_dir[]; /* doc access */ | ||||
| /* filesel.c */ | /* filesel.c */ | ||||
| void fileselect_refresh_params(struct SpaceFile *sfile); | void fileselect_refresh_params(struct SpaceFile *sfile); | ||||
| /** | /** | ||||
| * Sets #FileSelectParams.file (name of selected file) | * Sets #FileSelectParams.file (name of selected file) | ||||
| */ | */ | ||||
| void fileselect_file_set(SpaceFile *sfile, int index); | void fileselect_file_set(struct bContext *C, SpaceFile *sfile, int index); | ||||
| bool file_attribute_column_type_enabled(const FileSelectParams *params, | bool file_attribute_column_type_enabled(const FileSelectParams *params, | ||||
| FileAttributeColumnType column); | FileAttributeColumnType column); | ||||
| /** | /** | ||||
| * Check if the region coordinate defined by \a x and \a y are inside the column header. | * Check if the region coordinate defined by \a x and \a y are inside the column header. | ||||
| */ | */ | ||||
| bool file_attribute_column_header_is_inside(const struct View2D *v2d, | bool file_attribute_column_header_is_inside(const struct View2D *v2d, | ||||
| const FileLayout *layout, | const FileLayout *layout, | ||||
| int x, | int x, | ||||
| ▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines | |||||