Blender V2.61 - r43446
Defines | Functions

file_intern.h File Reference

Go to the source code of this file.

Defines

#define TILE_BORDER_X   (UI_UNIT_X/4)
#define TILE_BORDER_Y   (UI_UNIT_Y/4)
#define IMASEL_BUTTONS_HEIGHT   (UI_UNIT_Y*2)
#define IMASEL_BUTTONS_MARGIN   (UI_UNIT_Y/6)

Functions

struct ARegionfile_buttons_region (struct ScrArea *sa)
void file_draw_buttons (const bContext *C, ARegion *ar)
void file_calc_previews (const bContext *C, ARegion *ar)
void file_draw_previews (const bContext *C, ARegion *ar)
void file_draw_list (const bContext *C, ARegion *ar)
void file_draw_check_cb (bContext *C, void *arg1, void *arg2)
int file_draw_check_exists (SpaceFile *sfile)
void FILE_OT_highlight (struct wmOperatorType *ot)
void FILE_OT_select (struct wmOperatorType *ot)
void FILE_OT_select_all_toggle (struct wmOperatorType *ot)
void FILE_OT_select_border (struct wmOperatorType *ot)
void FILE_OT_select_bookmark (struct wmOperatorType *ot)
void FILE_OT_bookmark_add (struct wmOperatorType *ot)
void FILE_OT_delete_bookmark (struct wmOperatorType *ot)
void FILE_OT_hidedot (struct wmOperatorType *ot)
void FILE_OT_execute (struct wmOperatorType *ot)
void FILE_OT_cancel (struct wmOperatorType *ot)
void FILE_OT_parent (struct wmOperatorType *ot)
void FILE_OT_directory_new (struct wmOperatorType *ot)
void FILE_OT_filename (struct wmOperatorType *ot)
void FILE_OT_directory (struct wmOperatorType *ot)
void FILE_OT_previous (struct wmOperatorType *ot)
void FILE_OT_next (struct wmOperatorType *ot)
void FILE_OT_refresh (struct wmOperatorType *ot)
void FILE_OT_bookmark_toggle (struct wmOperatorType *ot)
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)
int file_exec (bContext *C, struct wmOperator *exec_op)
int file_cancel_exec (bContext *C, struct wmOperator *unused)
int file_parent_exec (bContext *C, struct wmOperator *unused)
int file_previous_exec (bContext *C, struct wmOperator *unused)
int file_next_exec (bContext *C, struct wmOperator *unused)
int file_filename_exec (bContext *C, struct wmOperator *unused)
int file_directory_exec (bContext *C, struct wmOperator *unused)
int file_directory_new_exec (bContext *C, struct wmOperator *unused)
int file_delete_exec (bContext *C, struct wmOperator *unused)
int file_hilight_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_operator_to_sfile (struct SpaceFile *sfile, struct wmOperator *op)
float file_shorten_string (char *string, float w, int front)
float file_string_width (const char *str)
float file_font_pointsize (void)
void file_change_dir (bContext *C, int checkdir)
int file_select_match (struct SpaceFile *sfile, const char *pattern)
void autocomplete_directory (struct bContext *C, char *str, void *arg_v)
void autocomplete_file (struct bContext *C, char *str, void *arg_v)
void file_panels_register (struct ARegionType *art)

Detailed Description

Definition in file file_intern.h.


Define Documentation

#define IMASEL_BUTTONS_HEIGHT   (UI_UNIT_Y*2)

Definition at line 48 of file file_intern.h.

Referenced by file_draw_buttons().

#define IMASEL_BUTTONS_MARGIN   (UI_UNIT_Y/6)

Definition at line 49 of file file_intern.h.

Referenced by file_draw_buttons().

#define TILE_BORDER_X   (UI_UNIT_X/4)

Definition at line 44 of file file_intern.h.

#define TILE_BORDER_Y   (UI_UNIT_Y/4)

Definition at line 45 of file file_intern.h.


Function Documentation

void autocomplete_directory ( struct bContext C,
char *  str,
void *  arg_v 
)

Referenced by file_draw_buttons().

void autocomplete_file ( struct bContext C,
char *  str,
void *  arg_v 
)

Referenced by file_draw_buttons().

struct ARegion* file_buttons_region ( struct ScrArea sa) [read]
void file_calc_previews ( const bContext C,
ARegion ar 
)
int file_cancel_exec ( bContext C,
struct wmOperator unused 
)

Referenced by FILE_OT_cancel().

void file_change_dir ( bContext C,
int  checkdir 
)
int file_delete_exec ( bContext C,
struct wmOperator unused 
)

Referenced by FILE_OT_delete().

int file_directory_exec ( bContext C,
struct wmOperator unused 
)
int file_directory_new_exec ( bContext C,
struct wmOperator unused 
)
void file_draw_buttons ( const bContext C,
ARegion ar 
)
void file_draw_check_cb ( bContext C,
void *  arg1,
void *  arg2 
)
int file_draw_check_exists ( SpaceFile sfile)
void file_draw_list ( const bContext C,
ARegion ar 
)

Definition at line 444 of file file_draw.c.

References FileSelectParams::active_file, COLUMN_DATE, COLUMN_MODE1, COLUMN_MODE2, COLUMN_MODE3, COLUMN_NAME, COLUMN_OWNER, COLUMN_SIZE, COLUMN_TIME, FileLayout::column_widths, FileLayout::columns, CTX_wm_space_file(), View2D::cur, direntry::date, FileSelectParams::display, draw_background(), draw_dividers(), draw_tile(), ED_fileselect_get_layout(), ED_fileselect_get_params(), ED_fileselect_layout_numfiles(), ED_fileselect_layout_offset(), ED_fileselect_layout_tilepos(), EDITING_FILE, file_draw_icon(), file_draw_preview(), file_draw_string(), FILE_IMGDISPLAY, FILE_LAYOUT_HOR, FILE_LONGDISPLAY, FILE_SHORTDISPLAY, filelist_file(), filelist_geticon(), filelist_getimage(), filelist_numfiles(), SpaceFile::files, files, FileLayout::flag, direntry::flags, get_file_icon(), HILITED_FILE, i, ICON_DEFAULT_HEIGHT_SCALE, ICON_DEFAULT_WIDTH_SCALE, if(), IMAGEFILE, SpaceFile::layout, direntry::mode1, direntry::mode2, direntry::mode3, direntry::owner, SpaceFile::params, direntry::path, direntry::relname, renamebutton_cb(), FileSelectParams::renameedit, FileLayout::rows, SELECTED_FILE, direntry::selflag, direntry::size, TEX, FileLayout::textheight, TH_BACK, TH_HILITE, TH_TEXT, FileLayout::tile_border_y, FileLayout::tile_h, FileLayout::tile_w, direntry::time, View2D::tot, direntry::type, UI_BUT_NO_UTF8, UI_CNR_NONE, UI_EMBOSS, UI_STYLE_TEXT_CENTER, UI_STYLE_TEXT_LEFT, UI_ThemeColor4(), UI_UNIT_Y, uiBeginBlock(), uiButActiveOnly(), uiButSetFlag(), uiButSetRenameFunc(), uiDefBut(), uiDrawBlock(), uiEndBlock(), uiSetRoundBox(), ARegion::v2d, rctf::xmin, and rctf::ymax.

Referenced by file_main_area_draw().

void file_draw_previews ( const bContext C,
ARegion ar 
)
int file_exec ( bContext C,
struct wmOperator exec_op 
)
int file_filename_exec ( bContext C,
struct wmOperator unused 
)

Referenced by do_file_buttons().

float file_font_pointsize ( void  )
int file_hilight_set ( struct SpaceFile sfile,
struct ARegion ar,
int  mx,
int  my 
)
int file_next_exec ( bContext C,
struct wmOperator unused 
)

Referenced by FILE_OT_next().

void file_operator_to_sfile ( struct SpaceFile sfile,
struct wmOperator op 
)
void FILE_OT_bookmark_add ( struct wmOperatorType ot)
void FILE_OT_bookmark_toggle ( struct wmOperatorType ot)
void FILE_OT_cancel ( struct wmOperatorType ot)
void FILE_OT_delete ( struct wmOperatorType ot)
void FILE_OT_delete_bookmark ( struct wmOperatorType ot)
void FILE_OT_directory ( struct wmOperatorType ot)
void FILE_OT_directory_new ( struct wmOperatorType ot)
void FILE_OT_execute ( struct wmOperatorType ot)
void FILE_OT_filename ( struct wmOperatorType ot)
void FILE_OT_filenum ( struct wmOperatorType ot)
void FILE_OT_hidedot ( struct wmOperatorType ot)
void FILE_OT_highlight ( struct wmOperatorType ot)
void FILE_OT_next ( struct wmOperatorType ot)
void FILE_OT_parent ( struct wmOperatorType ot)
void FILE_OT_previous ( struct wmOperatorType ot)
void FILE_OT_refresh ( struct wmOperatorType ot)
void FILE_OT_rename ( struct wmOperatorType ot)
void FILE_OT_select ( struct wmOperatorType ot)
void FILE_OT_select_all_toggle ( struct wmOperatorType ot)
void FILE_OT_select_bookmark ( struct wmOperatorType ot)
void FILE_OT_select_border ( struct wmOperatorType ot)
void FILE_OT_smoothscroll ( struct wmOperatorType ot)
void file_panels_register ( struct ARegionType art)
int file_parent_exec ( bContext C,
struct wmOperator unused 
)

Referenced by FILE_OT_parent().

int file_previous_exec ( bContext C,
struct wmOperator unused 
)

Referenced by FILE_OT_previous().

int file_select_match ( struct SpaceFile sfile,
const char *  pattern 
)
void file_sfile_to_operator ( struct wmOperator op,
struct SpaceFile sfile,
char *  filepath 
)
float file_shorten_string ( char *  string,
float  w,
int  front 
)

Definition at line 363 of file filesel.c.

References BLI_strncpy(), FILE_MAX, file_string_width(), and strlen().

Referenced by file_draw_string().

float file_string_width ( const char *  str)