Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_file/file_intern.h
| Show All 24 Lines | |||||
| #define __FILE_INTERN_H__ | #define __FILE_INTERN_H__ | ||||
| /* internal exports only */ | /* internal exports only */ | ||||
| struct ARegion; | struct ARegion; | ||||
| struct ARegionType; | struct ARegionType; | ||||
| struct FileSelectParams; | struct FileSelectParams; | ||||
| struct SpaceFile; | struct SpaceFile; | ||||
| struct View2D; | |||||
| /* file_ops.c */ | /* file_ops.c */ | ||||
| struct ARegion *file_tools_region(struct ScrArea *sa); | struct ARegion *file_tools_region(struct ScrArea *sa); | ||||
| struct ARegion *file_tool_props_region(struct ScrArea *sa); | |||||
| /* file_draw.c */ | /* file_draw.c */ | ||||
| #define TILE_BORDER_X (UI_UNIT_X / 4) | #define TILE_BORDER_X (UI_UNIT_X / 4) | ||||
| #define TILE_BORDER_Y (UI_UNIT_Y / 4) | #define TILE_BORDER_Y (UI_UNIT_Y / 4) | ||||
| /* ui geometry */ | /* ui geometry */ | ||||
| #define IMASEL_BUTTONS_HEIGHT (UI_UNIT_Y * 2) | #define IMASEL_BUTTONS_HEIGHT (UI_UNIT_Y * 2) | ||||
| #define IMASEL_BUTTONS_MARGIN (UI_UNIT_Y / 6) | #define IMASEL_BUTTONS_MARGIN (UI_UNIT_Y / 6) | ||||
| #define ATTRIBUTE_COLUMN_PADDING (0.5f * UI_UNIT_X) | |||||
| #define SMALL_SIZE_CHECK(_size) ((_size) < 64) /* Related to FileSelectParams.thumbnail_size. */ | #define SMALL_SIZE_CHECK(_size) ((_size) < 64) /* Related to FileSelectParams.thumbnail_size. */ | ||||
| void file_draw_buttons(const bContext *C, ARegion *ar); | |||||
| void file_calc_previews(const bContext *C, ARegion *ar); | void file_calc_previews(const bContext *C, ARegion *ar); | ||||
| void file_draw_list(const bContext *C, ARegion *ar); | void file_draw_list(const bContext *C, ARegion *ar); | ||||
| void file_draw_check(bContext *C); | void file_draw_check(bContext *C); | ||||
| void file_draw_check_cb(bContext *C, void *arg1, void *arg2); | void file_draw_check_cb(bContext *C, void *arg1, void *arg2); | ||||
| bool file_draw_check_exists(SpaceFile *sfile); | bool file_draw_check_exists(SpaceFile *sfile); | ||||
| /* file_ops.h */ | /* file_ops.h */ | ||||
| struct wmOperator; | struct wmOperator; | ||||
| struct wmOperatorType; | struct wmOperatorType; | ||||
| typedef enum WalkSelectDirection { | typedef enum WalkSelectDirection { | ||||
| FILE_SELECT_WALK_UP, | FILE_SELECT_WALK_UP, | ||||
| FILE_SELECT_WALK_DOWN, | FILE_SELECT_WALK_DOWN, | ||||
| FILE_SELECT_WALK_LEFT, | FILE_SELECT_WALK_LEFT, | ||||
| FILE_SELECT_WALK_RIGHT, | FILE_SELECT_WALK_RIGHT, | ||||
| } WalkSelectDirections; | } WalkSelectDirections; | ||||
| void FILE_OT_highlight(struct wmOperatorType *ot); | void FILE_OT_highlight(struct wmOperatorType *ot); | ||||
| void FILE_OT_sort_column_ui_context(struct wmOperatorType *ot); | |||||
| void FILE_OT_select(struct wmOperatorType *ot); | void FILE_OT_select(struct wmOperatorType *ot); | ||||
| void FILE_OT_select_walk(struct wmOperatorType *ot); | void FILE_OT_select_walk(struct wmOperatorType *ot); | ||||
| void FILE_OT_select_all(struct wmOperatorType *ot); | void FILE_OT_select_all(struct wmOperatorType *ot); | ||||
| void FILE_OT_select_box(struct wmOperatorType *ot); | void FILE_OT_select_box(struct wmOperatorType *ot); | ||||
| void FILE_OT_select_bookmark(struct wmOperatorType *ot); | void FILE_OT_select_bookmark(struct wmOperatorType *ot); | ||||
| void FILE_OT_bookmark_add(struct wmOperatorType *ot); | void FILE_OT_bookmark_add(struct wmOperatorType *ot); | ||||
| void FILE_OT_bookmark_delete(struct wmOperatorType *ot); | void FILE_OT_bookmark_delete(struct wmOperatorType *ot); | ||||
| void FILE_OT_bookmark_cleanup(struct wmOperatorType *ot); | void FILE_OT_bookmark_cleanup(struct wmOperatorType *ot); | ||||
| Show All 32 Lines | void file_sfile_to_operator_ex(bContext *C, | ||||
| struct wmOperator *op, | struct wmOperator *op, | ||||
| struct SpaceFile *sfile, | struct SpaceFile *sfile, | ||||
| char *filepath); | char *filepath); | ||||
| void file_sfile_to_operator(bContext *C, struct wmOperator *op, struct SpaceFile *sfile); | void file_sfile_to_operator(bContext *C, struct wmOperator *op, struct SpaceFile *sfile); | ||||
| void file_operator_to_sfile(bContext *C, struct SpaceFile *sfile, struct wmOperator *op); | void file_operator_to_sfile(bContext *C, struct SpaceFile *sfile, struct wmOperator *op); | ||||
| /* filesel.c */ | /* filesel.c */ | ||||
| void fileselect_file_set(SpaceFile *sfile, const int index); | void fileselect_file_set(SpaceFile *sfile, const int index); | ||||
| bool file_attribute_column_type_enabled(const FileSelectParams *params, | |||||
| FileAttributeColumnType column); | |||||
| bool file_attribute_column_header_is_inside(const struct View2D *v2d, | |||||
| const FileLayout *layout, | |||||
| int x, | |||||
| int y); | |||||
| FileAttributeColumnType file_attribute_column_type_find_isect(const View2D *v2d, | |||||
| const FileSelectParams *params, | |||||
| FileLayout *layout, | |||||
| int x); | |||||
| float file_string_width(const char *str); | float file_string_width(const char *str); | ||||
| float file_font_pointsize(void); | float file_font_pointsize(void); | ||||
| int file_select_match(struct SpaceFile *sfile, const char *pattern, char *matched_file); | int file_select_match(struct SpaceFile *sfile, const char *pattern, char *matched_file); | ||||
| int autocomplete_directory(struct bContext *C, char *str, void *arg_v); | int autocomplete_directory(struct bContext *C, char *str, void *arg_v); | ||||
| int autocomplete_file(struct bContext *C, char *str, void *arg_v); | int autocomplete_file(struct bContext *C, char *str, void *arg_v); | ||||
| void file_params_renamefile_activate(struct SpaceFile *sfile, struct FileSelectParams *params); | void file_params_renamefile_activate(struct SpaceFile *sfile, struct FileSelectParams *params); | ||||
| /* file_panels.c */ | /* file_panels.c */ | ||||
| void file_panels_register(struct ARegionType *art); | void file_panels_register(struct ARegionType *art); | ||||
| /* file_utils.c */ | /* file_utils.c */ | ||||
| void file_tile_boundbox(const ARegion *ar, FileLayout *layout, const int file, rcti *r_bounds); | void file_tile_boundbox(const ARegion *ar, FileLayout *layout, const int file, rcti *r_bounds); | ||||
| #endif /* __FILE_INTERN_H__ */ | #endif /* __FILE_INTERN_H__ */ | ||||