Blender V4.5
buttons_ops.cc File Reference
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_userdef_types.h"
#include "BLI_fileops.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "BKE_appdir.hh"
#include "BKE_context.hh"
#include "BKE_library.hh"
#include "BKE_main.hh"
#include "BKE_path_templates.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "ED_screen.hh"
#include "ED_undo.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "buttons_intern.hh"

Go to the source code of this file.

Classes

struct  FileBrowseOp

Functions

Start / Clear Search Filter Operators
Note
Almost a duplicate of the file browser operator FILE_OT_start_filter.
static wmOperatorStatus buttons_start_filter_exec (bContext *C, wmOperator *)
void BUTTONS_OT_start_filter (wmOperatorType *ot)
static wmOperatorStatus buttons_clear_filter_exec (bContext *C, wmOperator *)
void BUTTONS_OT_clear_filter (wmOperatorType *ot)
Pin ID Operator
static wmOperatorStatus toggle_pin_exec (bContext *C, wmOperator *)
void BUTTONS_OT_toggle_pin (wmOperatorType *ot)
Context Menu Operator
static wmOperatorStatus context_menu_invoke (bContext *C, wmOperator *, const wmEvent *)
void BUTTONS_OT_context_menu (wmOperatorType *ot)
File Browse Operator
static bool file_browse_operator_relative_paths_supported (wmOperator *op)
static wmOperatorStatus file_browse_exec (bContext *C, wmOperator *op)
static void file_browse_cancel (bContext *, wmOperator *op)
static wmOperatorStatus file_browse_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool file_browse_poll_property (const bContext *, wmOperator *op, const PropertyRNA *prop)
void BUTTONS_OT_file_browse (wmOperatorType *ot)
void BUTTONS_OT_directory_browse (wmOperatorType *ot)

Function Documentation

◆ buttons_clear_filter_exec()

◆ BUTTONS_OT_clear_filter()

◆ BUTTONS_OT_context_menu()

◆ BUTTONS_OT_directory_browse()

◆ BUTTONS_OT_file_browse()

◆ BUTTONS_OT_start_filter()

◆ BUTTONS_OT_toggle_pin()

◆ buttons_start_filter_exec()

◆ context_menu_invoke()

◆ file_browse_cancel()

void file_browse_cancel ( bContext * ,
wmOperator * op )
static

◆ file_browse_exec()

◆ file_browse_invoke()

wmOperatorStatus file_browse_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

Definition at line 284 of file buttons_ops.cc.

References ARRAY_SIZE, BKE_appdir_folder_default_or_root(), BKE_appdir_font_folder_default(), BKE_build_template_variables_for_prop(), BKE_path_apply_template(), BKE_report(), BKE_report_path_template_errors(), BKE_reportf(), BLI_assert, BLI_path_is_rel(), BLI_path_slash_ensure(), BLI_path_slash_rfind(), BLI_strdup(), C, CTX_wm_space_file(), wmOperator::customdata, PointerRNA::data, file_browse_invoke(), FILE_IMGDISPLAY, FILE_MAX, FILE_SORT_ALPHA, filter, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), FileBrowseOp::is_undo, FileBrowseOp::is_userdef, KM_ALT, KM_SHIFT, MEM_freeN(), wmEvent::modifier, SpaceFile::op, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, FileBrowseOp::prop, PROP_PATH_OUTPUT, PROP_PATH_SUPPORTS_TEMPLATES, FileBrowseOp::ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_set(), RNA_enum_set(), RNA_property_boolean_set(), RNA_property_editable_info(), RNA_property_flag(), RNA_property_identifier(), RNA_property_is_set(), RNA_property_string_get_alloc(), RNA_property_string_path_filter(), RNA_string_set(), RNA_struct_find_property(), RPT_ERROR, STR_ELEM, STRNCPY(), U, UI_context_active_but_prop_get_filebrowser(), UNLIKELY, USER_RELPATHS, WM_event_add_fileselect(), WM_OP_EXEC_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().

Referenced by BUTTONS_OT_directory_browse(), BUTTONS_OT_file_browse(), and file_browse_invoke().

◆ file_browse_operator_relative_paths_supported()

◆ file_browse_poll_property()

◆ toggle_pin_exec()