24 #include "RNA_prototypes.h"
44 return (sfile && sfile->
op);
69 const char *hide[] = {
"filepath",
"files",
"directory",
"filename"};
96 strcpy(pt->
idname,
"FILE_PT_operator");
97 strcpy(pt->
label,
N_(
"Operator"));
121 uiItemO(row, title, ICON_NONE,
"FILE_OT_execute");
132 PointerRNA params_rna_ptr, *but_extra_rna_ptr;
135 const bool windows_layout =
165 TIP_(overwrite_alert ?
N_(
"File name, overwrite existing") :
N_(
"File name")));
185 if (overwrite_alert) {
194 if (windows_layout) {
210 strcpy(pt->
idname,
"FILE_PT_execution_buttons");
211 strcpy(pt->
label,
N_(
"Execute Buttons"));
234 uiItemR(row, ¶ms_ptr,
"asset_library_ref", 0,
"", ICON_NONE);
241 "asset.bundle_install",
243 "Copy Bundle to Asset Library...",
249 uiItemO(row,
"", ICON_FILE_REFRESH,
"ASSET_OT_library_refresh");
262 strcpy(pt->
idname,
"FILE_PT_asset_catalog_buttons");
263 strcpy(pt->
label,
N_(
"Asset Catalogs"));
struct AssetLibrary AssetLibrary
bContext * CTX_copy(const bContext *C)
void CTX_free(bContext *C)
struct bScreen * CTX_wm_screen(const bContext *C)
struct SpaceFile * CTX_wm_space_file(const bContext *C)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
struct FileAssetSelectParams * ED_fileselect_get_asset_params(const struct SpaceFile *sfile)
bool ED_fileselect_is_asset_browser(const struct SpaceFile *sfile)
struct FileSelectParams * ED_fileselect_get_active_params(const struct SpaceFile *sfile)
Read Guarded memory(de)allocation.
uiBlock * uiLayoutGetBlock(uiLayout *layout)
void uiTemplateOperatorPropertyButs(const struct bContext *C, uiLayout *layout, struct wmOperator *op, eButLabelAlign label_align, short flag)
uiLayout * uiLayoutColumn(uiLayout *layout, bool align)
void uiLayoutSetFixedSize(uiLayout *layout, bool fixed_size)
void uiLayoutSetScaleY(uiLayout *layout, float scale)
void uiItemMenuEnumO(uiLayout *layout, struct bContext *C, const char *opname, const char *propname, const char *name, int icon)
void uiLayoutSetActiveDefault(uiLayout *layout, bool active_default)
bool UI_but_is_utf8(const uiBut *but)
void uiLayoutSetScaleX(uiLayout *layout, float scale)
@ UI_TEMPLATE_OP_PROPS_SHOW_EMPTY
void uiItemS(uiLayout *layout)
@ UI_BUT_LABEL_ALIGN_NONE
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
uiBut * uiDefButR(uiBlock *block, int type, int retval, const char *str, int x, int y, short width, short height, struct PointerRNA *ptr, const char *propname, int index, float min, float max, float a1, float a2, const char *tip)
void UI_block_func_set(uiBlock *block, uiButHandleFunc func, void *arg1, void *arg2)
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
struct PointerRNA * UI_but_extra_operator_icon_add(uiBut *but, const char *opname, wmOperatorCallContext opcontext, int icon)
void UI_but_func_complete_set(uiBut *but, uiButCompleteFunc func, void *arg)
void UI_but_funcN_set(uiBut *but, uiButHandleNFunc funcN, void *argN, void *arg2)
void uiLayoutSetOperatorContext(uiLayout *layout, wmOperatorCallContext opcontext)
void UI_but_flag_enable(uiBut *but, int flag)
bool UI_but_flag_is_set(uiBut *but, int flag)
void file_create_asset_catalog_tree_view_in_layout(::AssetLibrary *asset_library, uiLayout *layout, SpaceFile *space_file, FileAssetSelectParams *params)
int autocomplete_file(struct 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_asset_browsing_poll(const bContext *C, PanelType *UNUSED(pt))
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 bool file_panel_operator_poll(const bContext *C, PanelType *UNUSED(pt))
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)
AssetLibrary * filelist_asset_library(FileList *filelist)
void *(* MEM_callocN)(size_t len, const char *str)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void(* draw)(const struct bContext *C, struct Panel *panel)
bool(* poll)(const struct bContext *C, struct PanelType *pt)
void(* draw_header)(const struct bContext *C, struct Panel *panel)
char idname[BKE_ST_MAXNAME]
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
struct wmOperatorType * type
bool WM_operator_name_poll(bContext *C, const char *opstring)
const char * WM_operatortype_name(struct wmOperatorType *ot, struct PointerRNA *properties)