Blender V2.61 - r43446
|
Go to the source code of this file.
Definition in file file_intern.h.
#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.
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().
Definition at line 1239 of file file_ops.c.
References ARegion::alignment, BLI_insertlinkafter(), ListBase::first, ARegion::flag, MEM_callocN(), ARegion::next, NULL, ScrArea::regionbase, ARegion::regiontype, RGN_ALIGN_LEFT, RGN_FLAG_HIDDEN, RGN_TYPE_CHANNELS, and RGN_TYPE_HEADER.
Referenced by file_bookmark_toggle_exec().
Definition at line 315 of file file_draw.c.
References CTX_wm_space_file(), ED_fileselect_init_layout(), FileLayout::height, SpaceFile::layout, UI_view2d_totRect_set(), ARegion::v2d, V2D_SCROLL_HEIGHT, and FileLayout::width.
Referenced by file_main_area_draw().
int file_cancel_exec | ( | bContext * | C, |
struct wmOperator * | unused | ||
) |
Referenced by FILE_OT_cancel().
void file_change_dir | ( | bContext * | C, |
int | checkdir | ||
) |
Definition at line 560 of file filesel.c.
References BLI_is_dir(), BLI_strncpy(), CTX_wm_space_file(), FileSelectParams::dir, ED_fileselect_clear(), filelist_dir(), filelist_setdir(), SpaceFile::files, folderlist_clear_next(), folderlist_free(), folderlist_pushdir(), SpaceFile::folders_next, SpaceFile::folders_prev, and SpaceFile::params.
Referenced by bookmark_select_exec(), file_directory_exec(), file_next_exec(), file_parent_exec(), file_previous_exec(), and file_select_do().
int file_delete_exec | ( | bContext * | C, |
struct wmOperator * | unused | ||
) |
Referenced by FILE_OT_delete().
int file_directory_exec | ( | bContext * | C, |
struct wmOperator * | unused | ||
) |
Referenced by do_file_buttons(), file_directory_invoke(), and FILE_OT_directory().
int file_directory_new_exec | ( | bContext * | C, |
struct wmOperator * | unused | ||
) |
Definition at line 1020 of file file_ops.c.
References BKE_report(), BLI_dir_create_recursive(), BLI_exists(), BLI_strncpy(), CTX_wm_manager(), CTX_wm_space_file(), CTX_wm_window(), FileSelectParams::dir, ED_fileselect_clear(), FILE_MAX, FILE_MAXFILE, NC_SPACE, ND_SPACE_FILE_LIST, new_folder_path(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceFile::params, direntry::path, wmOperator::ptr, FileSelectParams::renamefile, wmOperator::reports, RNA_string_get(), RNA_struct_find_property(), RPT_ERROR, RPT_WARNING, SpaceFile::scroll_offset, SpaceFile::smoothscroll_timer, TIMER1, WM_event_add_notifier(), and WM_event_add_timer().
Referenced by FILE_OT_directory_new().
Definition at line 107 of file file_draw.c.
References autocomplete_directory(), autocomplete_file(), B_FS_FILENAME, BLI_snprintf(), BUT, CTX_wm_area(), CTX_wm_space_file(), FileSelectParams::dir, do_file_buttons(), ED_fileselect_get_params(), FileSelectParams::file, FILE_DIRSEL_ONLY, file_draw_check_cb(), file_draw_check_exists(), FILE_MAX, FILE_MAXFILE, ARegion::flag, FileSelectParams::flag, IFACE_, IMASEL_BUTTONS_HEIGHT, IMASEL_BUTTONS_MARGIN, MAX2, N_, ARegion::next, NULL, SpaceFile::params, ARegion::regiontype, RGN_FLAG_HIDDEN, RGN_TYPE_CHANNELS, RNA_int_set(), TEX, TIP_, FileSelectParams::title, UI_BUT_NO_UTF8, UI_BUT_REDALERT, UI_EMBOSS, UI_GetStringWidth(), UI_UNIT_X, UI_UNIT_Y, uiBeginBlock(), uiBlockBeginAlign(), uiBlockEndAlign(), uiBlockSetFunc(), uiBlockSetHandleFunc(), uiButGetOperatorPtrRNA(), uiButSetCompleteFunc(), uiButSetFlag(), uiDefBut(), uiDefButO(), uiDefButTextO(), uiDefIconButO(), uiDrawBlock(), uiEndBlock(), ARegion::winx, ARegion::winy, and WM_OP_EXEC_REGION_WIN.
Referenced by file_ui_area_draw().
void file_draw_check_cb | ( | bContext * | C, |
void * | arg1, | ||
void * | arg2 | ||
) |
Referenced by file_draw_buttons(), file_filenum_exec(), file_panel_operator(), and file_select().
int file_draw_check_exists | ( | SpaceFile * | sfile | ) |
Definition at line 711 of file file_ops.c.
References BLI_is_file(), BLI_join_dirfile(), FileSelectParams::dir, FALSE, FileSelectParams::file, FILE_MAX, SpaceFile::op, SpaceFile::params, wmOperator::ptr, RNA_boolean_get(), RNA_struct_find_property(), and TRUE.
Referenced by file_draw_buttons().
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().
int file_exec | ( | bContext * | C, |
struct wmOperator * | exec_op | ||
) |
Definition at line 729 of file file_ops.c.
References BLENDER_BOOKMARK_FILE, BLENDER_USER_CONFIG, BLI_exists(), BLI_get_folder_create(), BLI_make_file_string(), CHECK_ALL, CTX_wm_space_file(), FileSelectParams::dir, EVT_FILESELECT_EXEC, FILE_MAX, file_sfile_to_operator(), filelist_is_selected(), filelist_numfiles(), SpaceFile::files, FS_CATEGORY_RECENT, fsmenu_get(), fsmenu_insert_entry(), fsmenu_write_file(), G, i, NULL, SpaceFile::op, OPERATOR_CANCELLED, OPERATOR_FINISHED, SpaceFile::params, wmOperator::ptr, RNA_boolean_get(), and WM_event_fileselect_event().
Referenced by FILE_OT_execute().
int file_filename_exec | ( | bContext * | C, |
struct wmOperator * | unused | ||
) |
Referenced by do_file_buttons().
float file_font_pointsize | ( | void | ) |
Definition at line 418 of file filesel.c.
References BLF_height(), uiFontStyle::points, UI_DPI_FAC, UI_GetStyle(), uiFontStyle::uifont_id, uiStyleFontSet(), and uiStyle::widget.
Referenced by ED_fileselect_init_layout().
Definition at line 516 of file file_ops.c.
References FileSelectParams::active_file, BLI_in_rcti(), ED_fileselect_get_params(), ED_fileselect_layout_offset(), filelist_numfiles(), SpaceFile::files, SpaceFile::layout, View2D::mask, NULL, View2D::tot, UI_view2d_region_to_view(), ARegion::v2d, ARegion::winrct, rcti::xmin, rctf::xmin, rctf::ymax, and rcti::ymin.
Referenced by file_highlight_invoke(), and file_main_area_draw().
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 | ||
) |
Definition at line 665 of file file_ops.c.
References BLI_path_abs(), BLI_split_dirfile(), FileSelectParams::dir, FileSelectParams::file, FILE_MAX, G, SpaceFile::params, wmOperator::ptr, RNA_property_string_get(), and RNA_struct_find_property().
Referenced by file_draw_check_cb().
void FILE_OT_bookmark_add | ( | struct wmOperatorType * | ot | ) |
Definition at line 469 of file file_ops.c.
References bookmark_add_exec(), wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_bookmark_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 1277 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_bookmark_toggle_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_cancel | ( | struct wmOperatorType * | ot | ) |
Definition at line 598 of file file_ops.c.
References wmOperatorType::description, wmOperatorType::exec, file_cancel_exec(), file_operator_poll(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_delete | ( | struct wmOperatorType * | ot | ) |
Definition at line 1413 of file file_ops.c.
References wmOperatorType::description, wmOperatorType::exec, file_delete_exec(), file_delete_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, and WM_operator_confirm().
Referenced by file_operatortypes().
void FILE_OT_delete_bookmark | ( | struct wmOperatorType * | ot | ) |
Definition at line 502 of file file_ops.c.
References bookmark_delete_exec(), wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by file_operatortypes().
void FILE_OT_directory | ( | struct wmOperatorType * | ot | ) |
Definition at line 1188 of file file_ops.c.
References wmOperatorType::description, wmOperatorType::exec, file_directory_exec(), file_directory_invoke(), file_directory_poll(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_directory_new | ( | struct wmOperatorType * | ot | ) |
Definition at line 1071 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_directory_new_exec(), FILE_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_string_dir_path(), wmOperatorType::srna, and WM_operator_confirm().
Referenced by file_operatortypes().
void FILE_OT_execute | ( | struct wmOperatorType * | ot | ) |
Definition at line 768 of file file_ops.c.
References wmOperatorType::description, wmOperatorType::exec, file_exec(), file_operator_poll(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by file_operatortypes().
void FILE_OT_filename | ( | struct wmOperatorType * | ot | ) |
void FILE_OT_filenum | ( | struct wmOperatorType * | ot | ) |
Definition at line 1307 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_filenum_exec(), wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by file_operatortypes().
void FILE_OT_hidedot | ( | struct wmOperatorType * | ot | ) |
Definition at line 1227 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_hidedot_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_highlight | ( | struct wmOperatorType * | ot | ) |
Definition at line 564 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), file_highlight_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_next | ( | struct wmOperatorType * | ot | ) |
Definition at line 857 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_next_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_parent | ( | struct wmOperatorType * | ot | ) |
Definition at line 801 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_parent_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_previous | ( | struct wmOperatorType * | ot | ) |
Definition at line 826 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_previous_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_refresh | ( | struct wmOperatorType * | ot | ) |
Definition at line 1201 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_refresh_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_rename | ( | struct wmOperatorType * | ot | ) |
Definition at line 1361 of file file_ops.c.
References wmOperatorType::description, wmOperatorType::exec, file_rename_exec(), file_rename_poll(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_select | ( | struct wmOperatorType * | ot | ) |
Definition at line 352 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), file_select_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, wmOperatorType::poll, RNA_def_boolean(), and wmOperatorType::srna.
Referenced by file_operatortypes().
void FILE_OT_select_all_toggle | ( | struct wmOperatorType * | ot | ) |
Definition at line 399 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_select_all_exec(), wmOperatorType::idname, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void FILE_OT_select_bookmark | ( | struct wmOperatorType * | ot | ) |
Definition at line 436 of file file_ops.c.
References bookmark_select_exec(), wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, wmOperatorType::poll, RNA_def_string(), and wmOperatorType::srna.
Referenced by file_operatortypes().
void FILE_OT_select_border | ( | struct wmOperatorType * | ot | ) |
Definition at line 301 of file file_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_file_active(), wmOperatorType::exec, file_border_select_exec(), file_border_select_modal(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, wmOperatorType::poll, WM_border_select_cancel(), WM_border_select_invoke(), and WM_operator_properties_gesture_border().
Referenced by file_operatortypes().
void FILE_OT_smoothscroll | ( | struct wmOperatorType * | ot | ) |
Definition at line 983 of file file_ops.c.
References wmOperatorType::description, ED_operator_file_active(), file_smoothscroll_invoke(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, and wmOperatorType::poll.
Referenced by file_operatortypes().
void file_panels_register | ( | struct ARegionType * | art | ) |
Definition at line 202 of file file_panels.c.
References BLI_addtail(), PanelType::draw, PanelType::draw_header, file_panel_bookmarks(), file_panel_operator(), file_panel_operator_header(), file_panel_operator_poll(), file_panel_recent(), file_panel_system(), PanelType::idname, PanelType::label, MEM_callocN(), ARegionType::paneltypes, and PanelType::poll.
Referenced by ED_spacetype_file().
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 | ||
) |
Definition at line 582 of file filesel.c.
References filelist_file(), filelist_numfiles(), SpaceFile::files, i, direntry::relname, SELECTED_FILE, and direntry::selflag.
Referenced by file_filename_exec().
void file_sfile_to_operator | ( | struct wmOperator * | op, |
struct SpaceFile * | sfile, | ||
char * | filepath | ||
) |
Definition at line 611 of file file_ops.c.
References BLI_join_dirfile(), BLI_path_rel(), CHECK_DIRS, CHECK_FILES, FileSelectParams::dir, FileSelectParams::file, FILE_MAX, filelist_file(), filelist_is_selected(), filelist_numfiles(), SpaceFile::files, G, i, SpaceFile::params, wmOperator::ptr, direntry::relname, RNA_boolean_get(), RNA_property_collection_add(), RNA_property_collection_clear(), RNA_string_set(), and RNA_struct_find_property().
Referenced by file_draw_check_cb(), and file_exec().
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 | ) |
Definition at line 411 of file filesel.c.
References BLF_width(), UI_GetStyle(), uiFontStyle::uifont_id, uiStyleFontSet(), and uiStyle::widget.
Referenced by column_widths(), and file_shorten_string().