Blender V5.0
interface_template_operator_property.cc File Reference
#include "BKE_context.hh"
#include "BKE_file_handler.hh"
#include "BKE_idprop.hh"
#include "BKE_screen.hh"
#include "BLI_listbase.h"
#include "BLI_string_utf8.h"
#include "BLT_translation.hh"
#include "DNA_collection_types.h"
#include "ED_undo.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "UI_interface_layout.hh"
#include "interface_intern.hh"

Go to the source code of this file.

Classes

struct  uiTemplateOperatorPropertyPollParam

Functions

static bool ui_layout_operator_buts_poll_property (PointerRNA *, PropertyRNA *prop, void *user_data)
static eAutoPropButsReturn template_operator_property_buts_draw_single (const bContext *C, wmOperator *op, uiLayout *layout, const eButLabelAlign label_align, int layout_flags)
static void template_operator_property_buts_draw_recursive (const bContext *C, wmOperator *op, uiLayout *layout, const eButLabelAlign label_align, int layout_flags, bool *r_has_advanced)
static bool ui_layout_operator_properties_only_booleans (const bContext *C, wmWindowManager *wm, wmOperator *op, int layout_flags)
void uiTemplateOperatorPropertyButs (const bContext *C, uiLayout *layout, wmOperator *op, eButLabelAlign label_align, short flag)
void uiTemplateOperatorRedoProperties (uiLayout *layout, const bContext *C)
static wmOperatorminimal_operator_create (wmOperatorType *ot, PointerRNA *properties)
static void draw_export_controls (bContext *C, uiLayout *layout, const std::string &label, int index, bool valid)
static void draw_export_properties (bContext *C, uiLayout *layout, PointerRNA &exporter_ptr, wmOperator *op, const std::string &filename)
static void draw_exporter_item (uiList *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int)
void uiTemplateCollectionExporters (uiLayout *layout, bContext *C)

Function Documentation

◆ draw_export_controls()

void draw_export_controls ( bContext * C,
uiLayout * layout,
const std::string & label,
int index,
bool valid )
static

◆ draw_export_properties()

◆ draw_exporter_item()

void draw_exporter_item ( uiList * ,
const bContext * ,
uiLayout * layout,
PointerRNA * ,
PointerRNA * itemptr,
int ,
PointerRNA * ,
const char * ,
int ,
int  )
static

◆ minimal_operator_create()

◆ template_operator_property_buts_draw_recursive()

◆ template_operator_property_buts_draw_single()

eAutoPropButsReturn template_operator_property_buts_draw_single ( const bContext * C,
wmOperator * op,
uiLayout * layout,
const eButLabelAlign label_align,
int layout_flags )
static

Definition at line 62 of file interface_template_operator_property.cc.

References uiLayout::block(), But, uiBlock::buttons, C, uiTemplateOperatorPropertyPollParam::C, col, uiLayout::column(), blender::bke::idprop::create_group(), CTX_wm_manager(), CTX_wm_window(), ELEM, uiBlock::flag, uiTemplateOperatorPropertyPollParam::flag, wmOperatorType::flag, wmWindowManager::id, wmOperatorType::idname, IFACE_, blender::wm::InvokeDefault, uiLayout::label(), wmOperator::layout, IDProperty::len, uiLayout::menu(), N_, Num, uiBlock::oldblock, uiLayout::op(), uiTemplateOperatorPropertyPollParam::op, OPTYPE_PRESET, ot, wmOperatorType::poll_property, wmOperatorType::prop, wmOperator::properties, ptr, wmOperator::ptr, RNA_boolean_set(), RNA_pointer_create_discrete(), RNA_string_set(), uiLayout::row(), wmOperatorType::srna, Text, TIP_, wmOperator::type, wmOperatorType::ui, UI_BLOCK_KEEP_OPEN, UI_block_lock_clear(), UI_block_lock_set(), UI_block_set_active_operator(), UI_but_flag_disable(), UI_but_focus_on_enter_event(), UI_but_func_set(), UI_BUT_UNDO, UI_ITEM_NONE, ui_layout_operator_buts_poll_property(), UI_PROP_BUTS_NONE_ADDED, UI_TEMPLATE_OP_PROPS_ALLOW_UNDO_PUSH, UI_TEMPLATE_OP_PROPS_COMPACT, UI_TEMPLATE_OP_PROPS_HIDE_PRESETS, UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT, UI_TEMPLATE_OP_PROPS_SHOW_EMPTY, UI_TEMPLATE_OP_PROPS_SHOW_TITLE, UI_UNIT_X, UI_UNIT_Y, uiDefAutoButsRNA(), uiDefIconTextBut(), uiLayout::use_property_decorate_set(), uiLayout::use_property_split_set(), WM_operator_repeat_check(), WM_operatortype_find(), and WM_operatortype_name().

Referenced by draw_export_properties(), and template_operator_property_buts_draw_recursive().

◆ ui_layout_operator_buts_poll_property()

bool ui_layout_operator_buts_poll_property ( PointerRNA * ,
PropertyRNA * prop,
void * user_data )
static

◆ ui_layout_operator_properties_only_booleans()

◆ uiTemplateCollectionExporters()

◆ uiTemplateOperatorPropertyButs()

void uiTemplateOperatorPropertyButs ( const bContext * C,
uiLayout * layout,
wmOperator * op,
eButLabelAlign label_align,
short flag )

Draw Operator property buttons for redoing execution with different settings. This function does not initialize the layout, functions can be called on the layout before and after.

Definition at line 274 of file interface_template_operator_property.cc.

References C, CTX_wm_manager(), flag, template_operator_property_buts_draw_recursive(), ui_layout_operator_properties_only_booleans(), and UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT.

Referenced by file_panel_operator(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().

◆ uiTemplateOperatorRedoProperties()