41
41
struct ARegion *file_buttons_region(struct ScrArea *sa);
44
#define TILE_BORDER_X (UI_UNIT_X/4)
45
#define TILE_BORDER_Y (UI_UNIT_Y/4)
44
#define TILE_BORDER_X (UI_UNIT_X / 4)
45
#define TILE_BORDER_Y (UI_UNIT_Y / 4)
48
#define IMASEL_BUTTONS_HEIGHT (UI_UNIT_Y*2)
49
#define IMASEL_BUTTONS_MARGIN (UI_UNIT_Y/6)
48
#define IMASEL_BUTTONS_HEIGHT (UI_UNIT_Y * 2)
49
#define IMASEL_BUTTONS_MARGIN (UI_UNIT_Y / 6)
51
51
void file_draw_buttons(const bContext *C, ARegion *ar);
52
52
void file_calc_previews(const bContext *C, ARegion *ar);
66
66
void FILE_OT_select_bookmark(struct wmOperatorType *ot);
67
67
void FILE_OT_bookmark_add(struct wmOperatorType *ot);
68
68
void FILE_OT_delete_bookmark(struct wmOperatorType *ot);
69
void FILE_OT_reset_recent(wmOperatorType *ot);
69
70
void FILE_OT_hidedot(struct wmOperatorType *ot);
70
71
void FILE_OT_execute(struct wmOperatorType *ot);
71
72
void FILE_OT_cancel(struct wmOperatorType *ot);
88
89
int file_next_exec(bContext *C, struct wmOperator *unused);
89
90
int file_filename_exec(bContext *C, struct wmOperator *unused);
90
91
int file_directory_exec(bContext *C, struct wmOperator *unused);
91
int file_directory_new_exec(bContext *C,struct wmOperator *unused);
92
int file_directory_new_exec(bContext *C, struct wmOperator *unused);
92
93
int file_delete_exec(bContext *C, struct wmOperator *unused);
94
int file_hilight_set(struct SpaceFile *sfile, struct ARegion *ar, int mx, int my);
95
int file_highlight_set(struct SpaceFile *sfile, struct ARegion *ar, int mx, int my);
96
97
void file_sfile_to_operator(struct wmOperator *op, struct SpaceFile *sfile, char *filepath);
97
98
void file_operator_to_sfile(struct SpaceFile *sfile, struct wmOperator *op);
101
float file_shorten_string(char* string, float w, int front);
102
float file_string_width(const char* str);
102
float file_shorten_string(char *string, float w, int front);
103
float file_string_width(const char *str);
104
105
float file_font_pointsize(void);
105
106
void file_change_dir(bContext *C, int checkdir);
106
int file_select_match(struct SpaceFile *sfile, const char *pattern);
107
int file_select_match(struct SpaceFile *sfile, const char *pattern, char *matched_file);
107
108
void autocomplete_directory(struct bContext *C, char *str, void *arg_v);
108
109
void autocomplete_file(struct bContext *C, char *str, void *arg_v);