25#include "RNA_prototypes.hh"
44 return (sfile && sfile->
op);
70 const char *hide[] = {
"filepath",
"files",
"directory",
"filename"};
72 bool hidden_override[
ARRAY_SIZE(hide)] = {
false};
77 hidden_override[i] =
true;
87 if (prop && hidden_override[i]) {
126 uiItemO(row, title, ICON_NONE,
"FILE_OT_execute");
140 const bool windows_layout =
168 overwrite_alert ?
TIP_(
"File name, overwrite existing") :
TIP_(
"File name"));
188 if (overwrite_alert) {
197 if (windows_layout) {
244 "asset.bundle_install",
245 "asset_library_reference",
246 "Copy Bundle to Asset Library...",
252 uiItemO(row,
"", ICON_FILE_REFRESH,
"ASSET_OT_library_refresh");
bScreen * CTX_wm_screen(const bContext *C)
SpaceFile * CTX_wm_space_file(const bContext *C)
bContext * CTX_copy(const bContext *C)
void CTX_free(bContext *C)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define STRNCPY(dst, src)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
FileSelectParams * ED_fileselect_get_active_params(const SpaceFile *sfile)
bool ED_fileselect_is_asset_browser(const SpaceFile *sfile)
FileAssetSelectParams * ED_fileselect_get_asset_params(const SpaceFile *sfile)
Read Guarded memory(de)allocation.
@ UI_TEMPLATE_OP_PROPS_SHOW_EMPTY
void uiLayoutSetFixedSize(uiLayout *layout, bool fixed_size)
void uiItemMenuEnumO(uiLayout *layout, const bContext *C, const char *opname, const char *propname, const char *name, int icon)
void uiLayoutSetScaleY(uiLayout *layout, float scale)
void UI_panel_drawname_set(Panel *panel, blender::StringRef name)
void uiLayoutSetActiveDefault(uiLayout *layout, bool active_default)
uiBlock * uiLayoutGetBlock(uiLayout *layout)
bool UI_but_is_utf8(const uiBut *but)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
void uiLayoutSetScaleX(uiLayout *layout, float scale)
void uiItemS(uiLayout *layout)
@ UI_BUT_LABEL_ALIGN_NONE
PointerRNA * UI_but_extra_operator_icon_add(uiBut *but, const char *opname, wmOperatorCallContext opcontext, int icon)
void uiTemplateOperatorPropertyButs(const bContext *C, uiLayout *layout, wmOperator *op, eButLabelAlign label_align, short flag)
void UI_block_func_set(uiBlock *block, uiButHandleFunc func, void *arg1, void *arg2)
void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void UI_but_func_complete_set(uiBut *but, uiButCompleteFunc func, void *arg)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
uiBut * uiDefButR(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, PointerRNA *ptr, const char *propname, int index, float min, float max, const char *tip)
void UI_but_funcN_set(uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2, uiButArgNFree func_argN_free_fn=MEM_freeN, uiButArgNCopy func_argN_copy_fn=MEM_dupallocN)
void UI_but_flag_enable(uiBut *but, int flag)
void uiItemR(uiLayout *layout, PointerRNA *ptr, const char *propname, eUI_Item_Flag flag, const char *name, int icon)
bool UI_but_flag_is_set(uiBut *but, int flag)
int autocomplete_file(bContext *C, char *str, void *arg_v)
void file_filename_enter_handle(bContext *C, void *arg_unused, void *arg_but)
bool file_draw_check_exists(SpaceFile *sfile)
void file_draw_check_cb(bContext *C, void *arg1, void *arg2)
static bool file_panel_operator_poll(const bContext *C, PanelType *)
static bool file_panel_asset_browsing_poll(const bContext *C, PanelType *)
static void file_panel_execution_execute_button(uiLayout *layout, const char *title)
static void file_panel_execution_cancel_button(uiLayout *layout)
void file_execute_region_panels_register(ARegionType *art)
static void file_panel_execution_buttons_draw(const bContext *C, Panel *panel)
static void file_panel_operator_header(const bContext *C, Panel *panel)
static void file_panel_asset_catalog_buttons_draw(const bContext *C, Panel *panel)
void file_tool_props_region_panels_register(ARegionType *art)
static void file_panel_operator(const bContext *C, Panel *panel)
void file_tools_region_panels_register(ARegionType *art)
blender::asset_system::AssetLibrary * filelist_asset_library(FileList *filelist)
void *(* MEM_callocN)(size_t len, const char *str)
void file_create_asset_catalog_tree_view_in_layout(asset_system::AssetLibrary *asset_library, uiLayout *layout, SpaceFile *space_file, FileAssetSelectParams *params)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
int RNA_property_flag(PropertyRNA *prop)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void(* draw)(const bContext *C, Panel *panel)
char idname[BKE_ST_MAXNAME]
bool(* poll)(const bContext *C, PanelType *pt)
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
void(* draw_header)(const bContext *C, Panel *panel)
struct wmOperatorType * type
bool WM_operator_name_poll(bContext *C, const char *opstring)
std::string WM_operatortype_name(wmOperatorType *ot, PointerRNA *properties)