Blender V2.61 - r43446
Functions

filesel.c File Reference

#include <string.h>
#include <stdio.h>
#include <math.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/times.h>
#include <dirent.h>
#include "DNA_space_types.h"
#include "DNA_screen_types.h"
#include "DNA_userdef_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_linklist.h"
#include "BLI_dynstr.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "BLF_api.h"
#include "ED_fileselect.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "file_intern.h"
#include "filelist.h"
#include <fnmatch.h>

Go to the source code of this file.

Functions

FileSelectParamsED_fileselect_get_params (struct SpaceFile *sfile)
short ED_fileselect_set_params (SpaceFile *sfile)
void ED_fileselect_reset_params (SpaceFile *sfile)
int ED_fileselect_layout_numfiles (FileLayout *layout, struct ARegion *ar)
static int is_inside (int x, int y, int cols, int rows)
FileSelection ED_fileselect_layout_offset_rect (FileLayout *layout, const rcti *rect)
int ED_fileselect_layout_offset (FileLayout *layout, int x, int y)
void ED_fileselect_layout_tilepos (FileLayout *layout, int tile, int *x, int *y)
float file_shorten_string (char *string, float w, int front)
float file_string_width (const char *str)
float file_font_pointsize (void)
static void column_widths (struct FileList *files, struct FileLayout *layout)
void ED_fileselect_init_layout (struct SpaceFile *sfile, struct ARegion *ar)
FileLayoutED_fileselect_get_layout (struct SpaceFile *sfile, struct ARegion *ar)
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 *UNUSED(arg_v))
void autocomplete_file (struct bContext *C, char *str, void *UNUSED(arg_v))
void ED_fileselect_clear (struct bContext *C, struct SpaceFile *sfile)
void ED_fileselect_exit (struct bContext *C, struct SpaceFile *sfile)

Detailed Description

Definition in file filesel.c.


Function Documentation

void autocomplete_directory ( struct bContext C,
char *  str,
void *  UNUSEDarg_v 
)
void autocomplete_file ( struct bContext C,
char *  str,
void *  UNUSEDarg_v 
)
static void column_widths ( struct FileList files,
struct FileLayout layout 
) [static]
void ED_fileselect_clear ( struct bContext C,
struct SpaceFile sfile 
)
void ED_fileselect_exit ( struct bContext C,
struct SpaceFile sfile 
)
FileLayout* ED_fileselect_get_layout ( struct SpaceFile sfile,
struct ARegion ar 
)

Definition at line 552 of file filesel.c.

References ED_fileselect_init_layout(), and SpaceFile::layout.

Referenced by file_draw_list(), and file_main_area_draw().

FileSelectParams* ED_fileselect_get_params ( struct SpaceFile sfile) [read]
void ED_fileselect_init_layout ( struct SpaceFile sfile,
struct ARegion ar 
)
int ED_fileselect_layout_numfiles ( FileLayout layout,
struct ARegion ar 
)
int ED_fileselect_layout_offset ( FileLayout layout,
int  x,
int  y 
)
FileSelection ED_fileselect_layout_offset_rect ( FileLayout layout,
const rcti rect 
)
void ED_fileselect_layout_tilepos ( FileLayout layout,
int  tile,
int *  x,
int *  y 
)
void ED_fileselect_reset_params ( SpaceFile sfile)
short ED_fileselect_set_params ( SpaceFile sfile)
void file_change_dir ( bContext C,
int  checkdir 
)
float file_font_pointsize ( void  )
int file_select_match ( struct SpaceFile sfile,
const char *  pattern 
)
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)
static int is_inside ( int  x,
int  y,
int  cols,
int  rows 
) [static]

Definition at line 281 of file filesel.c.

Referenced by ED_fileselect_layout_offset_rect().