57 return (sfile && sfile->
op);
76 const char *hide[] = {
"filepath",
"files",
"directory",
"filename"};
103 strcpy(pt->
idname,
"FILE_PT_operator");
104 strcpy(pt->
label,
N_(
"Operator"));
128 uiItemO(row, title, ICON_NONE,
"FILE_OT_execute");
139 PointerRNA params_rna_ptr, *but_extra_rna_ptr;
142 const bool windows_layout =
172 TIP_(overwrite_alert ?
N_(
"File name, overwrite existing") :
N_(
"File name")));
192 if (overwrite_alert) {
201 if (windows_layout) {
217 strcpy(pt->
idname,
"FILE_PT_execution_buttons");
218 strcpy(pt->
label,
N_(
"Execute Buttons"));
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, const size_t maxncpy) ATTR_NONNULL()
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
struct FileSelectParams * ED_fileselect_get_active_params(const struct SpaceFile *sfile)
Read Guarded memory(de)allocation.
StructRNA RNA_FileSelectParams
uiBlock * uiLayoutGetBlock(uiLayout *layout)
void uiTemplateOperatorPropertyButs(const struct bContext *C, uiLayout *layout, struct wmOperator *op, eButLabelAlign label_align, short flag)
void uiLayoutSetOperatorContext(uiLayout *layout, int opcontext)
void uiLayoutSetFixedSize(uiLayout *layout, bool fixed_size)
void uiLayoutSetScaleY(uiLayout *layout, float scale)
void uiLayoutSetActiveDefault(uiLayout *layout, bool active_default)
bool UI_but_is_utf8(const uiBut *but)
void uiLayoutSetScaleX(uiLayout *layout, float scale)
@ UI_BUT_LABEL_ALIGN_NONE
struct PointerRNA * UI_but_extra_operator_icon_add(uiBut *but, const char *opname, short opcontext, int icon)
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 uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
@ UI_TEMPLATE_OP_PROPS_SHOW_EMPTY
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 UI_but_flag_enable(uiBut *but, int flag)
bool UI_but_flag_is_set(uiBut *but, int flag)
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 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))
void file_tool_props_region_panels_register(ARegionType *art)
static void file_panel_operator(const bContext *C, Panel *panel)
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
const char * WM_operatortype_name(struct wmOperatorType *ot, struct PointerRNA *properties)