Blender
V3.3
|
#include <ctype.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_brush_types.h"
#include "DNA_cachefile_types.h"
#include "DNA_collection_types.h"
#include "DNA_constraint_types.h"
#include "DNA_curveprofile_types.h"
#include "DNA_gpencil_modifier_types.h"
#include "DNA_node_types.h"
#include "DNA_object_force_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_shader_fx_types.h"
#include "DNA_texture_types.h"
#include "BLI_alloca.h"
#include "BLI_fnmatch.h"
#include "BLI_listbase.h"
#include "BLI_math.h"
#include "BLI_path_util.h"
#include "BLI_rect.h"
#include "BLI_string.h"
#include "BLI_string_search.h"
#include "BLI_timecode.h"
#include "BLI_utildefines.h"
#include "BLF_api.h"
#include "BLT_translation.h"
#include "BKE_action.h"
#include "BKE_blender_version.h"
#include "BKE_blendfile.h"
#include "BKE_cachefile.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_constraint.h"
#include "BKE_context.h"
#include "BKE_curveprofile.h"
#include "BKE_global.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_idprop.h"
#include "BKE_idtype.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_lib_override.h"
#include "BKE_linestyle.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_packedFile.h"
#include "BKE_particle.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_screen.h"
#include "BKE_shader_fx.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "DEG_depsgraph_query.h"
#include "ED_fileselect.h"
#include "ED_info.h"
#include "ED_object.h"
#include "ED_render.h"
#include "ED_screen.h"
#include "ED_undo.h"
#include "RE_engine.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BLO_readfile.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "UI_view2d.h"
#include "interface_intern.h"
#include "PIL_time.h"
#include "DNA_light_types.h"
#include "DNA_material_types.h"
#include "DNA_world_types.h"
Go to the source code of this file.
Classes | |
struct | TemplateID |
struct | TemplateSearch |
struct | uiTemplateOperatorPropertyPollParam |
struct | RNAUpdateCb |
struct | IconViewMenuArgs |
struct | ProgressTooltip_Store |
struct | ComponentMenuArgs |
Macros | |
#define | TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH (UI_UNIT_X * 6) |
#define | TEMPLATE_SEARCH_TEXTBUT_HEIGHT UI_UNIT_Y |
Functions | |
void | UI_template_fix_linking (void) |
Header Template | |
void | uiTemplateHeader (uiLayout *layout, bContext *C) |
Search Menu Helpers | |
static int | template_search_textbut_width (PointerRNA *ptr, PropertyRNA *name_prop) |
static int | template_search_textbut_height (void) |
static void | template_add_button_search_menu (const bContext *C, uiLayout *layout, uiBlock *block, PointerRNA *ptr, PropertyRNA *prop, uiBlockCreateFunc block_func, void *block_argN, const char *const tip, const bool use_previews, const bool editable, const bool live_icon) |
static uiBlock * | template_common_search_menu (const bContext *C, ARegion *region, uiButSearchUpdateFn search_update_fn, void *search_arg, uiButHandleFunc search_exec_fn, void *active_item, uiButSearchTooltipFn item_tooltip_fn, const int preview_rows, const int preview_cols, float scale) |
ID Chooser Template | |
void | uiTemplateAnyID (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *proptypename, const char *text) |
RNA Path Builder Template | |
void | uiTemplatePathBuilder (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *UNUSED(root_ptr), const char *text) |
Modifiers Template | |
Template for building the panel layout for the active object's modifiers. | |
static void | modifier_panel_id (void *md_link, char *r_name) |
void | uiTemplateModifiers (uiLayout *UNUSED(layout), bContext *C) |
Grease Pencil Modifiers Template | |
static void | gpencil_modifier_panel_id (void *md_link, char *r_name) |
void | uiTemplateGpencilModifiers (uiLayout *UNUSED(layout), bContext *C) |
ShaderFx Template | |
Template for building the panel layout for the active object's grease pencil shader effects. | |
static void | shaderfx_panel_id (void *fx_v, char *r_idname) |
void | uiTemplateShaderFx (uiLayout *UNUSED(layout), bContext *C) |
Icon Template | |
void | uiTemplateIcon (uiLayout *layout, int icon_value, float icon_scale) |
Histogram Template | |
void | uiTemplateHistogram (uiLayout *layout, PointerRNA *ptr, const char *propname) |
Waveform Template | |
void | uiTemplateWaveform (uiLayout *layout, PointerRNA *ptr, const char *propname) |
Vector-Scope Template | |
void | uiTemplateVectorscope (uiLayout *layout, PointerRNA *ptr, const char *propname) |
Layer Buttons Template | |
static void | handle_layer_buttons (bContext *C, void *arg1, void *arg2) |
void | uiTemplateLayers (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *used_ptr, const char *used_propname, int active_layer) |
Reports for Last Operator Template | |
void | uiTemplateReportsBanner (uiLayout *layout, bContext *C) |
void | uiTemplateInputStatus (uiLayout *layout, struct bContext *C) |
void | uiTemplateStatusInfo (uiLayout *layout, bContext *C) |
Keymap Template | |
static void | keymap_item_modified (bContext *UNUSED(C), void *kmi_p, void *UNUSED(unused)) |
static void | template_keymap_item_properties (uiLayout *layout, const char *title, PointerRNA *ptr) |
void | uiTemplateKeymapItemProperties (uiLayout *layout, PointerRNA *ptr) |
Event Icon Template | |
bool | uiTemplateEventFromKeymapItem (struct uiLayout *layout, const char *text, const struct wmKeyMapItem *kmi, bool text_fallback) |
Color Management Template | |
void | uiTemplateColorspaceSettings (uiLayout *layout, PointerRNA *ptr, const char *propname) |
void | uiTemplateColormanagedViewSettings (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr, const char *propname) |
Node Socket Icon Template | |
void | uiTemplateNodeSocket (uiLayout *layout, bContext *UNUSED(C), float color[4]) |
Cache File Template | |
void | uiTemplateCacheFileVelocity (uiLayout *layout, PointerRNA *fileptr) |
void | uiTemplateCacheFileProcedural (uiLayout *layout, const bContext *C, PointerRNA *fileptr) |
void | uiTemplateCacheFileTimeSettings (uiLayout *layout, PointerRNA *fileptr) |
static void | cache_file_layer_item (uiList *UNUSED(ui_list), bContext *UNUSED(C), uiLayout *layout, PointerRNA *UNUSED(dataptr), PointerRNA *itemptr, int UNUSED(icon), PointerRNA *UNUSED(active_dataptr), const char *UNUSED(active_propname), int UNUSED(index), int UNUSED(flt_flag)) |
uiListType * | UI_UL_cache_file_layers () |
void | uiTemplateCacheFileLayers (uiLayout *layout, const bContext *C, PointerRNA *fileptr) |
bool | uiTemplateCacheFilePointer (PointerRNA *ptr, const char *propname, PointerRNA *r_file_ptr) |
void | uiTemplateCacheFile (uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname) |
Recent Files Template | |
int | uiTemplateRecentFiles (uiLayout *layout, int rows) |
FileSelectParams Path Button Template | |
void | uiTemplateFileSelectPath (uiLayout *layout, bContext *C, FileSelectParams *params) |
ID Template | |
#define | template_id_context(type) 0 |
static void | template_id_cb (bContext *C, void *arg_litem, void *arg_event) |
void | UI_context_active_but_prop_get_templateID (bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop) |
static void | template_id_liboverride_hierarchy_collection_root_find_recursive (Collection *collection, const int parent_level, Collection **r_collection_parent_best, int *r_parent_level_best) |
static void | template_id_liboverride_hierarchy_collections_tag_recursive (Collection *root_collection, ID *target_id, const bool do_parents) |
ID * | ui_template_id_liboverride_hierarchy_make (bContext *C, Main *bmain, ID *owner_id, ID *id, const char **r_undo_push_label) |
static void | template_id_liboverride_hierarchy_make (bContext *C, Main *bmain, TemplateID *template_ui, PointerRNA *idptr, const char **r_undo_push_label) |
static const char * | template_id_browse_tip (const StructRNA *type) |
static void | template_id_workspace_pin_extra_icon (const TemplateID *template_ui, uiBut *but) |
static uiBut * | template_id_def_new_but (uiBlock *block, const ID *id, const TemplateID *template_ui, StructRNA *type, const char *const newop, const bool editable, const bool id_open, const bool use_tab_but, int but_height) |
static void | template_ID (const bContext *C, uiLayout *layout, TemplateID *template_ui, StructRNA *type, int flag, const char *newop, const char *openop, const char *unlinkop, const char *text, const bool live_icon, const bool hide_buttons) |
ID * | UI_context_active_but_get_tab_ID (bContext *C) |
static void | template_ID_tabs (const bContext *C, uiLayout *layout, TemplateID *template, StructRNA *type, int flag, const char *newop, const char *menu) |
static void | ui_template_id (uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, const char *menu, const char *text, int flag, int prv_rows, int prv_cols, int filter, bool use_tabs, float scale, const bool live_icon, const bool hide_buttons) |
void | uiTemplateID (uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter, const bool live_icon, const char *text) |
void | uiTemplateIDBrowse (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int filter, const char *text) |
void | uiTemplateIDPreview (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *openop, const char *unlinkop, int rows, int cols, int filter, const bool hide_buttons) |
void | uiTemplateGpencilColorPreview (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, int rows, int cols, float scale, int filter) |
void | uiTemplateIDTabs (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, const char *newop, const char *menu, int filter) |
Constraints Template | |
Template for building the panel layout for the active object or bone's constraints. | |
#define | CONSTRAINT_TYPE_PANEL_PREFIX "OBJECT_PT_" |
#define | CONSTRAINT_BONE_TYPE_PANEL_PREFIX "BONE_PT_" |
static bool | constraint_panel_is_bone (Panel *panel) |
static void | constraint_reorder (bContext *C, Panel *panel, int new_index) |
static short | get_constraint_expand_flag (const bContext *UNUSED(C), Panel *panel) |
static void | set_constraint_expand_flag (const bContext *UNUSED(C), Panel *panel, short expand_flag) |
static void | object_constraint_panel_id (void *md_link, char *r_name) |
static void | bone_constraint_panel_id (void *md_link, char *r_name) |
void | uiTemplateConstraints (uiLayout *UNUSED(layout), bContext *C, bool use_bone_constraints) |
Constraint Header Template | |
#define | ERROR_LIBDATA_MESSAGE TIP_("Can't edit external library data") |
#define | ERROR_LIBDATA_MESSAGE TIP_("Can't edit external library data") |
static void | constraint_active_func (bContext *UNUSED(C), void *ob_v, void *con_v) |
static void | constraint_ops_extra_draw (bContext *C, uiLayout *layout, void *con_v) |
static void | draw_constraint_header (uiLayout *layout, Object *ob, bConstraint *con) |
void | uiTemplateConstraintHeader (uiLayout *layout, PointerRNA *ptr) |
Preview Template | |
#define | B_MATPRV 1 |
static void | do_preview_buttons (bContext *C, void *arg, int event) |
void | uiTemplatePreview (uiLayout *layout, bContext *C, ID *id, bool show_buttons, ID *parent, MTex *slot, const char *preview_id) |
ColorPicker Template | |
#define | WHEEL_SIZE (5 * U.widget_unit) |
void | uiTemplateColorPicker (uiLayout *layout, PointerRNA *ptr, const char *propname, bool value_slider, bool lock, bool lock_luminosity, bool cubic) |
static void | ui_template_palette_menu (bContext *UNUSED(C), uiLayout *layout, void *UNUSED(but_p)) |
void | uiTemplatePalette (uiLayout *layout, PointerRNA *ptr, const char *propname, bool UNUSED(colors)) |
void | uiTemplateCryptoPicker (uiLayout *layout, PointerRNA *ptr, const char *propname, int icon) |
Running Jobs Template | |
#define | B_STOPRENDER 1 |
#define | B_STOPCAST 2 |
#define | B_STOPANIM 3 |
#define | B_STOPCOMPO 4 |
#define | B_STOPSEQ 5 |
#define | B_STOPCLIP 6 |
#define | B_STOPFILE 7 |
#define | B_STOPOTHER 8 |
static void | do_running_jobs (bContext *C, void *UNUSED(arg), int event) |
static char * | progress_tooltip_func (bContext *UNUSED(C), void *argN, const char *UNUSED(tip)) |
void | uiTemplateRunningJobs (uiLayout *layout, bContext *C) |
ColorRamp Template | |
enum | { CB_FUNC_FLIP , CB_FUNC_DISTRIBUTE_LR , CB_FUNC_DISTRIBUTE_EVENLY , CB_FUNC_RESET } |
typedef struct RNAUpdateCb | RNAUpdateCb |
static void | rna_update_cb (bContext *C, void *arg_cb, void *UNUSED(arg)) |
static void | colorband_flip_cb (bContext *C, ColorBand *coba) |
static void | colorband_distribute_cb (bContext *C, ColorBand *coba, bool evenly) |
static void | colorband_tools_dofunc (bContext *C, void *coba_v, int event) |
static uiBlock * | colorband_tools_func (bContext *C, ARegion *region, void *coba_v) |
static void | colorband_add_cb (bContext *C, void *cb_v, void *coba_v) |
static void | colorband_del_cb (bContext *C, void *cb_v, void *coba_v) |
static void | colorband_update_cb (bContext *UNUSED(C), void *bt_v, void *coba_v) |
static void | colorband_buttons_layout (uiLayout *layout, uiBlock *block, ColorBand *coba, const rctf *butr, RNAUpdateCb *cb, int expand) |
void | uiTemplateColorRamp (uiLayout *layout, PointerRNA *ptr, const char *propname, bool expand) |
Search Callbacks | |
typedef struct TemplateID | TemplateID |
static void | template_ID_set_property_exec_fn (bContext *C, void *arg_template, void *item) |
static bool | id_search_allows_id (TemplateID *template_ui, const int flag, ID *id, const char *query) |
static bool | id_search_add (const bContext *C, TemplateID *template_ui, uiSearchItems *items, ID *id) |
static void | id_search_cb (const bContext *C, void *arg_template, const char *str, uiSearchItems *items, const bool UNUSED(is_first)) |
static void | id_search_cb_tagged (const bContext *C, void *arg_template, const char *str, uiSearchItems *items) |
static void | id_search_cb_objects_from_scene (const bContext *C, void *arg_template, const char *str, uiSearchItems *items, const bool UNUSED(is_first)) |
static ARegion * | template_ID_search_menu_item_tooltip (bContext *C, ARegion *region, const rcti *item_rect, void *arg, void *active) |
static uiBlock * | id_search_menu (bContext *C, ARegion *region, void *arg_litem) |
Search Template | |
typedef struct TemplateSearch | TemplateSearch |
static void | template_search_exec_fn (bContext *C, void *arg_template, void *item) |
static uiBlock * | template_search_menu (bContext *C, ARegion *region, void *arg_template) |
static void | template_search_add_button_searchmenu (const bContext *C, uiLayout *layout, uiBlock *block, TemplateSearch *template_search, const bool editable, const bool live_icon) |
static void | template_search_add_button_name (uiBlock *block, PointerRNA *active_ptr, const StructRNA *type) |
static void | template_search_add_button_operator (uiBlock *block, const char *const operator_name, const wmOperatorCallContext opcontext, const int icon, const bool editable) |
static void | template_search_buttons (const bContext *C, uiLayout *layout, TemplateSearch *template_search, const char *newop, const char *unlinkop) |
static PropertyRNA * | template_search_get_searchprop (PointerRNA *targetptr, PropertyRNA *targetprop, PointerRNA *searchptr, const char *const searchpropname) |
static TemplateSearch * | template_search_setup (PointerRNA *ptr, const char *const propname, PointerRNA *searchptr, const char *const searchpropname) |
void | uiTemplateSearch (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop) |
void | uiTemplateSearchPreview (uiLayout *layout, bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop, const int rows, const int cols) |
Operator Property Buttons Template | |
typedef struct uiTemplateOperatorPropertyPollParam | uiTemplateOperatorPropertyPollParam |
static bool | ui_layout_operator_buts_poll_property (struct PointerRNA *UNUSED(ptr), struct 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) |
Icon viewer Template | |
typedef struct IconViewMenuArgs | IconViewMenuArgs |
static uiBlock * | ui_icon_view_menu_cb (bContext *C, ARegion *region, void *arg_litem) |
void | uiTemplateIconView (uiLayout *layout, PointerRNA *ptr, const char *propname, bool show_labels, float icon_scale, float icon_scale_popup) |
Component Menu | |
typedef struct ComponentMenuArgs | ComponentMenuArgs |
static uiBlock * | component_menu (bContext *C, ARegion *region, void *args_v) |
void | uiTemplateComponentMenu (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *name) |
#define B_MATPRV 1 |
Definition at line 3082 of file interface_templates.c.
#define B_STOPANIM 3 |
Definition at line 5988 of file interface_templates.c.
#define B_STOPCAST 2 |
Definition at line 5987 of file interface_templates.c.
#define B_STOPCLIP 6 |
Definition at line 5991 of file interface_templates.c.
#define B_STOPCOMPO 4 |
Definition at line 5989 of file interface_templates.c.
#define B_STOPFILE 7 |
Definition at line 5992 of file interface_templates.c.
#define B_STOPOTHER 8 |
Definition at line 5993 of file interface_templates.c.
#define B_STOPRENDER 1 |
Definition at line 5986 of file interface_templates.c.
#define B_STOPSEQ 5 |
Definition at line 5990 of file interface_templates.c.
#define CONSTRAINT_BONE_TYPE_PANEL_PREFIX "BONE_PT_" |
Definition at line 2324 of file interface_templates.c.
#define CONSTRAINT_TYPE_PANEL_PREFIX "OBJECT_PT_" |
For building the panel UI for constraints.
Definition at line 2323 of file interface_templates.c.
Definition at line 2929 of file interface_templates.c.
Definition at line 2929 of file interface_templates.c.
Definition at line 1150 of file interface_templates.c.
Definition at line 101 of file interface_templates.c.
Definition at line 100 of file interface_templates.c.
#define WHEEL_SIZE (5 * U.widget_unit) |
Definition at line 5517 of file interface_templates.c.
typedef struct ComponentMenuArgs ComponentMenuArgs |
typedef struct IconViewMenuArgs IconViewMenuArgs |
typedef struct RNAUpdateCb RNAUpdateCb |
typedef struct TemplateID TemplateID |
typedef struct TemplateSearch TemplateSearch |
anonymous enum |
Enumerator | |
---|---|
CB_FUNC_FLIP | |
CB_FUNC_DISTRIBUTE_LR | |
CB_FUNC_DISTRIBUTE_EVENLY | |
CB_FUNC_RESET |
Definition at line 3360 of file interface_templates.c.
anonymous enum |
Definition at line 4320 of file interface_templates.c.
anonymous enum |
Enumerator | |
---|---|
UIPROFILE_FUNC_RESET | |
UIPROFILE_FUNC_RESET_VIEW |
Definition at line 5027 of file interface_templates.c.
Definition at line 2397 of file interface_templates.c.
References BKE_constraint_typeinfo_from_type(), CONSTRAINT_BONE_TYPE_PANEL_PREFIX, NULL, bConstraintTypeInfo::structName, and bConstraint::type.
Referenced by uiTemplateConstraints().
|
static |
Definition at line 6895 of file interface_templates.c.
References UI_ITEM_R_NO_BG, uiItemR(), and uiLayoutRow().
Referenced by UI_UL_cache_file_layers().
Definition at line 3521 of file interface_templates.c.
References BKE_colorband_element_add(), C, ColorBand::cur, ColorBand::data, ED_undo_push(), NULL, pos, CBData::pos, rna_update_cb(), and ColorBand::tot.
Referenced by colorband_buttons_layout().
|
static |
Definition at line 3562 of file interface_templates.c.
References BLI_rctf_size_x(), uiBlock::buttons, COLBAND_BLEND_HSL, COLBAND_BLEND_HSV, ColorBand::color_mode, colorband_add_cb(), colorband_del_cb(), colorband_tools_func(), colorband_update_cb(), ColorBand::cur, ColorBand::data, PointerRNA::data, ELEM, IFACE_, LISTBASE_FOREACH_BACKWARD, MAX2, MEM_dupallocN, NULL, PointerRNA::owner_id, RNAUpdateCb::ptr, ptr, RNA_pointer_create(), RNA_property_identifier(), rna_update_cb(), blender::io::alembic::split(), STREQ, TIP_, ColorBand::tot, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_COLORBAND, UI_BTYPE_NUM, UI_but_func_set(), UI_but_funcN_set(), UI_but_number_step_size_set(), UI_EMBOSS, UI_EMBOSS_NONE, UI_ITEM_R_SLIDER, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconBlockBut(), uiDefIconTextBut(), uiItemR(), uiLayoutRow(), uiLayoutSplit(), rctf::xmin, and rctf::ymin.
Referenced by uiTemplateColorRamp().
Definition at line 3541 of file interface_templates.c.
References BKE_colorband_element_remove(), C, ColorBand::cur, ED_undo_push(), NULL, and rna_update_cb().
Referenced by colorband_buttons_layout().
Definition at line 3385 of file interface_templates.c.
References Freestyle::a, C, ColorBand::data, ED_undo_push(), pos, CBData::pos, and ColorBand::tot.
Referenced by colorband_tools_dofunc().
Definition at line 3367 of file interface_templates.c.
References Freestyle::a, C, ColorBand::cur, ColorBand::data, ED_undo_push(), MAXCOLORBAND, CBData::pos, and ColorBand::tot.
Referenced by colorband_tools_dofunc().
Definition at line 3399 of file interface_templates.c.
References BKE_colorband_init(), C, CB_FUNC_DISTRIBUTE_EVENLY, CB_FUNC_DISTRIBUTE_LR, CB_FUNC_FLIP, CB_FUNC_RESET, colorband_distribute_cb(), colorband_flip_cb(), CTX_wm_region(), ED_region_tag_redraw(), and ED_undo_push().
Referenced by colorband_tools_func().
Definition at line 3421 of file interface_templates.c.
References C, CB_FUNC_DISTRIBUTE_EVENLY, CB_FUNC_DISTRIBUTE_LR, CB_FUNC_FLIP, CB_FUNC_RESET, colorband_tools_dofunc(), IFACE_, NULL, RNA_pointer_create(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_func_butmenu_set(), UI_block_layout(), UI_block_layout_set_current(), UI_BTYPE_BUT_MENU, UI_DIR_DOWN, UI_EMBOSS_PULLDOWN, UI_LAYOUT_MENU, UI_LAYOUT_VERTICAL, UI_MENU_PADDING, UI_MENU_WIDTH_MIN, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiItemO(), and uiLayoutSetContextPointer().
Referenced by colorband_buttons_layout().
Definition at line 3551 of file interface_templates.c.
References BKE_colorband_update_sort(), ColorBand::cur, ColorBand::data, PointerRNA::data, and uiBut::rnapoin.
Referenced by colorband_buttons_layout().
Definition at line 6720 of file interface_templates.c.
References C, ComponentMenuArgs::propname, ComponentMenuArgs::ptr, UI_block_begin(), UI_block_bounds_set_normal(), UI_block_direction_set(), UI_block_flag_enable(), UI_BLOCK_KEEP_OPEN, UI_block_layout(), UI_DIR_DOWN, UI_EMBOSS, UI_ITEM_R_EXPAND, UI_LAYOUT_PANEL, UI_LAYOUT_VERTICAL, UI_style_get(), UI_UNIT_X, UI_UNIT_Y, uiItemR(), and uiLayoutColumn().
Referenced by uiTemplateComponentMenu().
Definition at line 2931 of file interface_templates.c.
References ED_object_constraint_active_set().
Referenced by draw_constraint_header().
Definition at line 2936 of file interface_templates.c.
References BLI_listbase_count(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, C, CTX_IFACE_, ED_object_active_context(), ED_object_constraint_list_from_constraint(), Object::id, IFACE_, bConstraint::next, NULL, bConstraint::prev, ptr, RNA_int_set(), RNA_pointer_create(), UI_block_flag_enable(), UI_BLOCK_IS_FLIP, uiItemFullO(), uiItemO(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutSetContextPointer(), uiLayoutSetEnabled(), uiLayoutSetOperatorContext(), uiLayoutSetUnitsX(), and WM_OP_INVOKE_DEFAULT.
Referenced by draw_constraint_header().
Check if the panel's ID starts with 'BONE', meaning it is a bone constraint.
Definition at line 2329 of file interface_templates.c.
References Panel::panelname.
Referenced by constraint_reorder().
Move a constraint to the index it's moved to after a drag and drop.
Definition at line 2338 of file interface_templates.c.
References C, constraint_panel_is_bone(), PointerRNA::data, bConstraint::name, NULL, ot, RNA_enum_set(), RNA_int_set(), RNA_string_set(), UI_panel_custom_data_get(), WM_OP_INVOKE_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by uiTemplateConstraints().
Definition at line 4468 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_NEG.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4473 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_POS.
Referenced by curvemap_buttons_layout().
Definition at line 4209 of file interface_templates.c.
References BKE_curvemap_remove(), BKE_curvemapping_changed(), C, CurveMapping::cm, CurveMapping::cur, NULL, rna_update_cb(), and SELECT.
Referenced by curvemap_buttons_layout().
|
static |
labeltype | Used for defining which curve-channels to show. |
Definition at line 4527 of file interface_templates.c.
References bounds(), CurveMapping::clipr, CurveMapping::cm, CUMA_DO_CLIP, CUMA_HANDLE_AUTO_ANIM, CUMA_HANDLE_VECTOR, CUMA_SELECT, CurveMapping::cur, CurveMap::curve, curvemap_brush_tools_func(), curvemap_brush_tools_negslope_func(), curvemap_buttons_delete(), curvemap_buttons_redraw(), curvemap_buttons_reset(), curvemap_buttons_update(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_clipping_func(), curvemap_tools_handle_auto(), curvemap_tools_handle_auto_clamped(), curvemap_tools_handle_vector(), curvemap_tools_negslope_func(), curvemap_tools_posslope_func(), PointerRNA::data, uiBut::drawflag, ELEM, uiBut::flag, CurveMapPoint::flag, CurveMapping::flag, uiButCurveMapping::gradient_type, IFACE_, max_ii(), MEM_dupallocN, NULL, ptr, rna_update_cb(), size(), blender::io::alembic::split(), TIP_, CurveMap::totpoint, UI_block_emboss_set(), UI_block_funcN_set(), UI_BTYPE_BUT, UI_BTYPE_CURVE, UI_BTYPE_NUM, UI_BTYPE_ROW, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_func_set(), UI_but_funcN_set(), UI_BUT_ICON_LEFT, UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_EMBOSS, UI_GRAD_H, UI_ITEM_R_EXPAND, UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_ALIGN_RIGHT, UI_SELECT_DRAW, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButF(), uiDefButI(), uiDefIconBlockBut(), uiDefIconBut(), uiItemR(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetWidth(), uiLayoutRow(), uiLayoutSetAlignment(), uiLayoutSplit(), CurveMapPoint::x, and CurveMapPoint::y.
Referenced by uiTemplateCurveMapping().
Definition at line 4493 of file interface_templates.c.
References C, CTX_wm_region(), and ED_region_tag_redraw().
Referenced by curvemap_buttons_layout().
Definition at line 4505 of file interface_templates.c.
References Freestyle::a, BKE_curvemap_reset(), BKE_curvemapping_changed(), BKE_curvemapping_set_black_white(), CurveMapping::black, C, CurveMapping::clipr, CurveMapping::cm, CM_TOT, CURVE_PRESET_LINE, CURVEMAP_SLOPE_POSITIVE, NULL, CurveMapping::preset, rna_update_cb(), and CurveMapping::white.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4202 of file interface_templates.c.
References BKE_curvemapping_changed().
Referenced by curvemap_clipping_func().
Definition at line 4498 of file interface_templates.c.
References BKE_curvemapping_changed(), C, NULL, and rna_update_cb().
Referenced by curvemap_buttons_layout().
Definition at line 4140 of file interface_templates.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CurveMapping::clipr, CTX_wm_region(), CurveMapping::curr, ED_region_tag_redraw(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
Definition at line 4157 of file interface_templates.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CurveMapping::clipr, CTX_wm_region(), CUMA_DO_CLIP, CurveMapping::curr, ED_region_tag_redraw(), CurveMapping::flag, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
Definition at line 4220 of file interface_templates.c.
References C, CurveMapping::clipr, CUMA_DO_CLIP, curvemap_buttons_setclip(), CurveMapping::flag, IFACE_, NULL, UI_block_align_begin(), UI_block_begin(), UI_block_bounds_set_normal(), UI_block_direction_set(), UI_block_flag_enable(), UI_BLOCK_KEEP_OPEN, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_CHECKBOX, UI_BTYPE_NUM, UI_but_func_set(), UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, uiDefButBitI(), uiDefButF(), width, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
Definition at line 4331 of file interface_templates.c.
References BKE_curvemap_handle_set(), BKE_curvemap_reset(), BKE_curvemapping_changed(), BKE_curvemapping_reset_view(), C, CurveMapping::clipr, CurveMapping::cm, CTX_wm_region(), CUMA_EXTEND_EXTRAPOLATE, CurveMapping::cur, CURVEMAP_SLOPE_NEGATIVE, CURVEMAP_SLOPE_POSITIVE, ED_region_tag_redraw(), ED_undo_push(), CurveMapping::flag, HD_AUTO, HD_AUTO_ANIM, HD_VECT, CurveMapping::preset, UICURVE_FUNC_EXTEND_EXP, UICURVE_FUNC_EXTEND_HOZ, UICURVE_FUNC_HANDLE_AUTO, UICURVE_FUNC_HANDLE_AUTO_ANIM, UICURVE_FUNC_HANDLE_VECTOR, UICURVE_FUNC_RESET_NEG, UICURVE_FUNC_RESET_POS, and UICURVE_FUNC_RESET_VIEW.
Referenced by curvemap_tools_func(), curvemap_tools_handle_auto(), curvemap_tools_handle_auto_clamped(), and curvemap_tools_handle_vector().
|
static |
Definition at line 4374 of file interface_templates.c.
References C, curvemap_tools_dofunc(), IFACE_, NULL, UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_func_butmenu_set(), UI_BTYPE_BUT_MENU, UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, UICURVE_FUNC_EXTEND_EXP, UICURVE_FUNC_EXTEND_HOZ, UICURVE_FUNC_RESET_VIEW, and uiDefIconTextBut().
Referenced by curvemap_brush_tools_func(), curvemap_brush_tools_negslope_func(), curvemap_tools_negslope_func(), and curvemap_tools_posslope_func().
Definition at line 4483 of file interface_templates.c.
References C, curvemap_tools_dofunc(), and UICURVE_FUNC_HANDLE_AUTO.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4488 of file interface_templates.c.
References C, curvemap_tools_dofunc(), and UICURVE_FUNC_HANDLE_AUTO_ANIM.
Referenced by curvemap_buttons_layout().
Definition at line 4478 of file interface_templates.c.
References C, curvemap_tools_dofunc(), and UICURVE_FUNC_HANDLE_VECTOR.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4463 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_NEG.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4458 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_POS.
Referenced by curvemap_buttons_layout().
Definition at line 5179 of file interface_templates.c.
References BKE_curveprofile_remove_by_flag(), BKE_curveprofile_update(), C, NULL, PROF_UPDATE_NONE, rna_update_cb(), and SELECT.
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5204 of file interface_templates.c.
References bounds(), CurveProfile::clip_rect, CurveProfile_buttons_delete(), CurveProfile_buttons_presets(), CurveProfile_buttons_reset(), CurveProfile_buttons_reverse(), CurveProfile_buttons_tools(), CurveProfile_buttons_update(), CurveProfile_buttons_zoom_in(), CurveProfile_buttons_zoom_out(), CurveProfile_clipping_toggle(), PointerRNA::data, ELEM, CurveProfilePoint::flag, CurveProfile::flag, max_ii(), MEM_dupallocN, min_ii(), NULL, PointerRNA::owner_id, CurveProfile::path, CurveProfile::path_len, point, CurveProfile::preset, PROF_DIRTY_PRESET, PROF_H1_SELECT, PROF_H2_SELECT, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_SELECT, PROF_USE_CLIP, ptr, RNA_NO_INDEX, RNA_pointer_create(), RNA_struct_find_property(), rna_update_cb(), TIP_, UI_block_emboss_set(), UI_block_funcN_set(), UI_BTYPE_BUT, UI_BTYPE_CURVEPROFILE, UI_BTYPE_NUM, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_func_set(), UI_but_funcN_set(), UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_EMBOSS, UI_ITEM_R_EXPAND, UI_ITEM_R_ICON_ONLY, UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_ALIGN_RIGHT, UI_UNIT_X, UI_UNIT_Y, uiDefBlockBut(), uiDefBut(), uiDefButF(), uiDefIconBlockBut(), uiDefIconBut(), uiDefIconTextBut(), uiItemFullR(), uiItemR(), uiLayoutGetBlock(), uiLayoutGetWidth(), uiLayoutRow(), uiLayoutSetAlignment(), and uiLayoutSetPropSep().
Referenced by uiTemplateCurveProfile().
|
static |
Definition at line 5021 of file interface_templates.c.
References C, and CurveProfile_presets_func().
Referenced by CurveProfile_buttons_layout().
Definition at line 5196 of file interface_templates.c.
References BKE_curveprofile_reset(), BKE_curveprofile_update(), C, NULL, PROF_UPDATE_NONE, and rna_update_cb().
Referenced by CurveProfile_buttons_layout().
Definition at line 5170 of file interface_templates.c.
References BKE_curveprofile_reverse(), BKE_curveprofile_update(), C, NULL, PROF_UPDATE_NONE, and rna_update_cb().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5093 of file interface_templates.c.
References C, and CurveProfile_tools_func().
Referenced by CurveProfile_buttons_layout().
Definition at line 5189 of file interface_templates.c.
References BKE_curveprofile_update(), C, NULL, PROF_UPDATE_CLIP, PROF_UPDATE_REMOVE_DOUBLES, and rna_update_cb().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5098 of file interface_templates.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CurveProfile::clip_rect, CTX_wm_region(), ED_region_tag_redraw(), CurveProfile::view_rect, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5115 of file interface_templates.c.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CurveProfile::clip_rect, CTX_wm_region(), ED_region_tag_redraw(), CurveProfile::flag, PROF_USE_CLIP, CurveProfile::view_rect, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CurveProfile_buttons_layout().
Definition at line 5160 of file interface_templates.c.
References BKE_curveprofile_update(), C, CurveProfile::flag, NULL, PROF_UPDATE_NONE, PROF_USE_CLIP, and rna_update_cb().
Referenced by CurveProfile_buttons_layout().
Definition at line 4920 of file interface_templates.c.
References BKE_curveprofile_reset(), BKE_curveprofile_update(), C, CTX_wm_region(), ED_region_tag_redraw(), ED_undo_push(), CurveProfile::preset, and PROF_UPDATE_NONE.
Referenced by CurveProfile_presets_func().
|
static |
Definition at line 4932 of file interface_templates.c.
References C, CurveProfile_presets_dofunc(), IFACE_, NULL, PROF_PRESET_CORNICE, PROF_PRESET_CROWN, PROF_PRESET_LINE, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_func_butmenu_set(), UI_BTYPE_BUT_MENU, UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by CurveProfile_buttons_presets().
Definition at line 5032 of file interface_templates.c.
References BKE_curveprofile_reset(), BKE_curveprofile_reset_view(), BKE_curveprofile_update(), C, CTX_wm_region(), ED_region_tag_redraw(), ED_undo_push(), PROF_UPDATE_NONE, UIPROFILE_FUNC_RESET, and UIPROFILE_FUNC_RESET_VIEW.
Referenced by CurveProfile_tools_func().
|
static |
Definition at line 5049 of file interface_templates.c.
References C, CurveProfile_tools_dofunc(), IFACE_, NULL, UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_func_butmenu_set(), UI_BTYPE_BUT_MENU, UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), UIPROFILE_FUNC_RESET, and UIPROFILE_FUNC_RESET_VIEW.
Referenced by CurveProfile_buttons_tools().
Definition at line 3084 of file interface_templates.c.
References B_MATPRV, C, NC_MATERIAL, ND_SHADING_PREVIEW, and WM_event_add_notifier().
Referenced by uiTemplatePreview().
Definition at line 5995 of file interface_templates.c.
References B_STOPANIM, B_STOPCAST, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, C, CTX_data_scene(), CTX_wm_manager(), CTX_wm_screen(), G, NULL, WM_jobs_stop(), WM_OP_INVOKE_SCREEN, and WM_operator_name_call().
Referenced by uiTemplateRunningJobs().
|
static |
Definition at line 3004 of file interface_templates.c.
References constraint_active_func(), CONSTRAINT_DISABLE, constraint_ops_extra_draw(), bConstraint::flag, Object::id, uiBlock::panel, ptr, RNA_pointer_create(), RNA_struct_ui_icon(), PointerRNA::type, UI_block_emboss_set(), UI_block_func_set(), UI_block_lock_clear(), UI_EMBOSS, UI_EMBOSS_NONE, UI_panel_context_pointer_set(), uiItemL(), uiItemMenuF(), uiItemO(), uiItemR(), uiItemS(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetContextPointer(), uiLayoutSetEmboss(), uiLayoutSetOperatorContext(), uiLayoutSetRedAlert(), and WM_OP_INVOKE_DEFAULT.
Referenced by uiTemplateConstraintHeader().
Get the expand flag from the active constraint to use for the panel.
Definition at line 2359 of file interface_templates.c.
References PointerRNA::data, bConstraint::ui_expand_flag, and UI_panel_custom_data_get().
Referenced by uiTemplateConstraints().
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2506 of file interface_templates.c.
References BKE_gpencil_modifierType_panel_id(), and ModifierData::type.
Referenced by uiTemplateGpencilModifiers().
Definition at line 5886 of file interface_templates.c.
References C, CTX_wm_window(), wmWindow::eventstate, KM_SHIFT, wmEvent::modifier, POINTER_AS_INT, RNA_property_array_length(), RNA_property_boolean_set_index(), uiBut::rnapoin, and uiBut::rnaprop.
Referenced by uiTemplateLayers().
|
static |
Definition at line 385 of file interface_templates.c.
References BKE_id_full_name_ui_prefix_get(), C, ID_IS_LINKED, MAX_ID_FULL_NAME_UI, TemplateID::preview, UI_BUT_HAS_SEP_CHAR, UI_icon_from_library(), ui_id_icon_get(), UI_search_item_add(), and UI_SEP_CHAR.
Referenced by id_search_cb(), and id_search_cb_tagged().
|
static |
Definition at line 357 of file interface_templates.c.
References id, ID::name, PointerRNA::owner_id, TemplateID::prop, PROP_ID_SELF_CHECK, PROP_POINTER, TemplateID::ptr, ptr, query, RNA_id_pointer_create(), RNA_property_pointer_poll(), RNA_property_type(), and USER_HIDE_DOT.
Referenced by id_search_cb(), and id_search_cb_tagged().
|
static |
Definition at line 416 of file interface_templates.c.
References BLI_string_search_add(), BLI_string_search_free(), BLI_string_search_new(), BLI_string_search_query(), C, id, id_search_add(), id_search_allows_id(), TemplateID::idlb, LISTBASE_FOREACH, MEM_freeN, ID::name, TemplateID::prop, RNA_property_flag(), and str.
Referenced by id_search_menu().
|
static |
A version of 'id_search_cb' that lists scene objects.
Definition at line 488 of file interface_templates.c.
References BKE_main_id_flag_listbase(), C, CTX_data_scene(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, GS, ID_SCE, id_search_cb_tagged(), TemplateID::idlb, LIB_TAG_DOIT, ID::name, NULL, PointerRNA::owner_id, TemplateID::ptr, scene, and str.
Referenced by id_search_menu().
|
static |
Use id tags for filtering.
Definition at line 451 of file interface_templates.c.
References BLI_string_search_add(), BLI_string_search_free(), BLI_string_search_new(), BLI_string_search_query(), C, id, id_search_add(), id_search_allows_id(), TemplateID::idlb, LIB_TAG_DOIT, LISTBASE_FOREACH, MEM_freeN, ID::name, TemplateID::prop, RNA_property_flag(), str, and ID::tag.
Referenced by id_search_cb_objects_from_scene().
Definition at line 541 of file interface_templates.c.
References bool, C, PointerRNA::data, TemplateID::filter, ID_OB, id_search_cb(), id_search_cb_objects_from_scene(), TemplateID::idcode, TemplateID::prop, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, RNA_property_pointer_get(), TemplateID::scale, template_common_search_menu(), template_ID_search_menu_item_tooltip(), template_ID_set_property_exec_fn(), UI_TEMPLATE_ID_FILTER_AVAILABLE, and void.
Referenced by template_ID().
Definition at line 6536 of file interface_templates.c.
References NULL, and WM_keyconfig_update_tag().
Referenced by uiTemplateKeymapItemProperties().
Definition at line 2256 of file interface_templates.c.
References BKE_modifier_type_panel_id(), and ModifierData::type.
Referenced by uiTemplateModifiers().
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2383 of file interface_templates.c.
References BKE_constraint_typeinfo_from_type(), CONSTRAINT_TYPE_PANEL_PREFIX, NULL, bConstraintTypeInfo::structName, and bConstraint::type.
Referenced by uiTemplateConstraints().
|
static |
Definition at line 6030 of file interface_templates.c.
References BLI_sprintfN(), BLI_timecode_string_from_time_simple(), double(), ProgressTooltip_Store::owner, PIL_check_seconds_timer(), ProgressTooltip_Store::wm, WM_jobs_progress(), and WM_jobs_starttime().
Referenced by uiTemplateRunningJobs().
Definition at line 3350 of file interface_templates.c.
References C, RNAUpdateCb::prop, RNAUpdateCb::ptr, and RNA_property_update().
Referenced by colorband_add_cb(), colorband_buttons_layout(), colorband_del_cb(), curvemap_buttons_delete(), curvemap_buttons_layout(), curvemap_buttons_reset(), curvemap_buttons_update(), CurveProfile_buttons_delete(), CurveProfile_buttons_layout(), CurveProfile_buttons_reset(), CurveProfile_buttons_reverse(), CurveProfile_buttons_update(), and CurveProfile_clipping_toggle().
|
static |
Save the expand flag for the panel and sub-panels to the constraint.
Definition at line 2370 of file interface_templates.c.
References PointerRNA::data, bConstraint::ui_expand_flag, and UI_panel_custom_data_get().
Referenced by uiTemplateConstraints().
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2578 of file interface_templates.c.
References BKE_shaderfxType_panel_id(), and ShaderFxData::type.
Referenced by uiTemplateShaderFx().
|
static |
Add a block button for the search menu for templateID and templateSearch.
Definition at line 153 of file interface_templates.c.
References C, col, CTX_wm_region(), PointerRNA::data, GS, height, id, ID_SCR, ID::name, NULL, PointerRNA::owner_id, ptr, ARegion::regiontype, RGN_TYPE_TOOL_HEADER, RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_struct_is_ID(), RNA_struct_ui_icon(), type, PointerRNA::type, UI_BUT_DISABLED, UI_but_drag_set_id(), UI_but_drawflag_enable(), UI_but_flag_enable(), UI_BUT_ICON_LEFT, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, ui_id_icon_get(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), uiLayoutColumn(), uiLayoutRow(), and width.
Referenced by template_ID(), and template_search_add_button_searchmenu().
|
static |
Definition at line 227 of file interface_templates.c.
References C, CTX_wm_window(), uiBut::flag, NULL, UI_block_begin(), UI_block_bounds_set_normal(), UI_block_direction_set(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_SEARCH_MENU, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_LABEL, UI_but_focus_on_enter_event(), UI_but_func_search_set(), UI_but_func_search_set_tooltip(), UI_BUT_UNDO, UI_DIR_DOWN, UI_EMBOSS, ui_searchbox_create_generic(), UI_searchbox_size_x(), UI_searchbox_size_y(), UI_UNIT_Y, uiDefBut(), uiDefSearchBut(), and w().
Referenced by id_search_menu(), and template_search_menu().
|
static |
Definition at line 1251 of file interface_templates.c.
References BKE_id_copy_is_allowed(), BKE_idtype_idcode_is_localizable, BKE_packedfile_id_check(), BLI_snprintf_rlen(), C, PointerRNA::data, ELEM, uiBut::flag, GS, height, id, ID_GR, ID_IS_ASSET, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_OB, ID_REAL_USERS, ID_SCE, ID_SCR, id_search_menu(), ID_TE, ID_WS, TemplateID::idcode, IFACE_, ID::lib, LIB_TAG_INDIRECT, MEM_dupallocN, ID::name, NULL, OB_MODE_EDIT, uiBut::opptr, PointerRNA::owner_id, POINTER_FROM_INT, TemplateID::preview, TemplateID::prop, PROP_NEVER_NULL, PROP_NEVER_UNLINK, TemplateID::ptr, RNA_int_set(), RNA_property_editable(), RNA_property_flag(), RNA_property_pointer_get(), RNA_string_set(), RNA_struct_find_property(), RNA_struct_ui_description(), ID::tag, template_add_button_search_menu(), template_id_browse_tip(), template_id_cb(), template_id_def_new_but(), template_id_workspace_pin_extra_icon(), template_search_textbut_height(), template_search_textbut_width(), TIP_, type, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), UI_BTYPE_BUT, UI_BTYPE_ICON_TOGGLE, UI_BTYPE_ICON_TOGGLE_N, UI_BTYPE_TEXT, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_funcN_set(), UI_but_operator_ptr_get(), UI_BUT_REDALERT, UI_BUT_UNDO, UI_ID_ADD_NEW, UI_ID_ALONE, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_LOCAL, UI_ID_NOP, UI_ID_OPEN, UI_ID_OVERRIDE, UI_ID_PREVIEWS, UI_ID_RENAME, UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButR(), uiDefIconBut(), uiDefIconButO(), uiDefIconButR(), uiDefIconTextBut(), uiDefIconTextButO(), uiItemL_respect_property_split(), uiLayoutGetBlock(), uiLayoutSetContextPointer(), uiTemplateTextureShow(), w(), width, WM_OP_INVOKE_DEFAULT, and WM_OP_INVOKE_REGION_WIN.
Referenced by ui_template_id().
|
static |
Definition at line 1031 of file interface_templates.c.
References ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD, ID_GR, ID_IM, ID_IP, ID_KE, ID_LA, ID_LI, ID_LP, ID_LS, ID_LT, ID_MA, ID_MB, ID_MC, ID_ME, ID_MSK, ID_NT, ID_OB, ID_PA, ID_PAL, ID_PC, ID_PT, ID_SCE, ID_SCR, ID_SIM, ID_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WM, ID_WO, ID_WS, N_, RNA_type_to_ID_code(), and type.
Referenced by template_ID().
Definition at line 909 of file interface_templates.c.
References BKE_id_newptr_and_tag_clear(), BKE_lib_id_make_local(), BKE_lib_override_library_make_local(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_window(), PointerRNA::data, DEG_relations_tag_update(), ED_object_single_user(), ED_undo_push(), ID::flag, GS, id, id_fake_user_clear(), ID_IS_OVERRIDE_LIBRARY, ID_OB, id_single_user(), id_us_clear_real(), id_us_min(), id_us_plus(), KM_SHIFT, LIB_FAKEUSER, ID::name, NC_WINDOW, NULL, POINTER_AS_INT, TemplateID::prop, TemplateID::ptr, RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_warning, scene, template_id_liboverride_hierarchy_make(), PointerRNA::type, UI_ID_ADD_NEW, UI_ID_ALONE, UI_ID_AUTO_NAME, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_FAKE_USER, UI_ID_LOCAL, UI_ID_NOP, UI_ID_OPEN, UI_ID_OVERRIDE, UI_ID_PIN, and WM_event_add_notifier().
Referenced by template_ID(), template_id_def_new_but(), and UI_context_active_but_prop_get_templateID().
|
static |
Definition at line 1153 of file interface_templates.c.
References BLT_I18N_MSGID_MULTI_CTXT, BLT_I18NCONTEXT_DEFAULT, BLT_I18NCONTEXT_ID_ACTION, BLT_I18NCONTEXT_ID_ARMATURE, BLT_I18NCONTEXT_ID_BRUSH, BLT_I18NCONTEXT_ID_CAMERA, BLT_I18NCONTEXT_ID_CURVE_LEGACY, BLT_I18NCONTEXT_ID_CURVES, BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE, BLT_I18NCONTEXT_ID_GPENCIL, BLT_I18NCONTEXT_ID_IMAGE, BLT_I18NCONTEXT_ID_LATTICE, BLT_I18NCONTEXT_ID_LIGHT, BLT_I18NCONTEXT_ID_LIGHTPROBE, BLT_I18NCONTEXT_ID_MATERIAL, BLT_I18NCONTEXT_ID_MESH, BLT_I18NCONTEXT_ID_METABALL, BLT_I18NCONTEXT_ID_NODETREE, BLT_I18NCONTEXT_ID_OBJECT, BLT_I18NCONTEXT_ID_PARTICLESETTINGS, BLT_I18NCONTEXT_ID_POINTCLOUD, BLT_I18NCONTEXT_ID_SCENE, BLT_I18NCONTEXT_ID_SCREEN, BLT_I18NCONTEXT_ID_SIMULATION, BLT_I18NCONTEXT_ID_SOUND, BLT_I18NCONTEXT_ID_SPEAKER, BLT_I18NCONTEXT_ID_TEXT, BLT_I18NCONTEXT_ID_TEXTURE, BLT_I18NCONTEXT_ID_VOLUME, BLT_I18NCONTEXT_ID_WORKSPACE, BLT_I18NCONTEXT_ID_WORLD, CTX_IFACE_, ID::lib, MEM_dupallocN, NULL, PointerRNA::owner_id, POINTER_FROM_INT, TemplateID::ptr, template_id_cb(), template_id_context, type, UI_BTYPE_BUT, UI_BTYPE_TAB, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_funcN_set(), UI_ID_ADD_NEW, UI_UNIT_X, uiDefIconTextBut(), uiDefIconTextButO(), UNUSED_VARS, w(), and WM_OP_INVOKE_DEFAULT.
Referenced by template_ID(), and template_ID_tabs().
|
static |
Definition at line 600 of file interface_templates.c.
References ListBase::first, Collection::id, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID::lib, NULL, and Collection::parents.
Referenced by ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 624 of file interface_templates.c.
References BKE_collection_has_collection(), BKE_collection_has_object_recursive(), Collection::children, ListBase::first, GS, Collection::id, ID_GR, ID_IS_LINKED, ID_OB, ID::lib, LIB_TAG_DOIT, Node::name, ID::name, NULL, Collection::parents, and ID::tag.
Referenced by ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 880 of file interface_templates.c.
References C, PointerRNA::data, id, ID_IS_LINKED, ID::name, NULL, PointerRNA::owner_id, TemplateID::ptr, RNA_id_pointer_create(), RNA_warning, and ui_template_id_liboverride_hierarchy_make().
Referenced by template_id_cb().
|
static |
Definition at line 515 of file interface_templates.c.
References blender::compositor::active, BLI_snprintf(), C, uiSearchItemTooltipData::description, Library::filepath, uiSearchItemTooltipData::hint, Library::id, ID_IS_LINKED, ID::lib, uiSearchItemTooltipData::name, ID::name, TemplateID::prop, TemplateID::ptr, RNA_property_pointer_type(), RNA_struct_ui_name(), TIP_, type, and UI_tooltip_create_from_search_item_generic().
Referenced by id_search_menu().
|
static |
Definition at line 343 of file interface_templates.c.
References C, NULL, TemplateID::prop, TemplateID::ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), and RNA_property_update().
Referenced by id_search_menu(), and template_ID_tabs().
|
static |
Definition at line 1612 of file interface_templates.c.
References BKE_id_ordered_list(), BLI_freelistN(), uiButTab::but, C, CTX_wm_region(), uiBut::custom_data, PointerRNA::data, id, LISTBASE_FOREACH, MEM_dupallocN, uiButTab::menu, ID::name, NULL, RNA_property_editable(), RNA_property_pointer_get(), template_id_def_new_but(), template_ID_set_property_exec_fn(), type, PointerRNA::type, UI_BTYPE_TAB, ui_but_align_opposite_to_area_align_get(), UI_but_drag_set_id(), UI_but_drawflag_enable(), UI_but_funcN_set(), UI_fontstyle_string_width(), UI_ID_ADD_NEW, UI_ID_OPEN, UI_style_get_dpi(), UI_UNIT_X, UI_UNIT_Y, uiDefButR_prop(), uiLayoutGetBlock(), uiStyle::widget, and WM_menutype_find().
Referenced by ui_template_id().
|
static |
Add a superimposed extra icon to but, for workspace pinning. Rather ugly special handling, but this is really a special case at this point, nothing worth generalizing.
Definition at line 1122 of file interface_templates.c.
References PointerRNA::data, WorkSpace::flags, ID_SCE, TemplateID::idcode, TemplateID::ptr, PointerRNA::type, UI_but_extra_operator_icon_add(), WM_OP_INVOKE_DEFAULT, WM_window_get_active_workspace(), and WORKSPACE_USE_PIN_SCENE.
Referenced by template_ID().
|
static |
Definition at line 6542 of file interface_templates.c.
References PointerRNA::data, NULL, PROP_POINTER, ptr, RNA_property_is_set(), RNA_property_pointer_get(), RNA_property_type(), RNA_property_ui_name(), RNA_STRUCT_BEGIN_SKIP_RNA_TYPE, RNA_STRUCT_END, RNA_struct_is_a(), uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, UI_block_emboss_set(), UI_BTYPE_BUT, UI_EMBOSS, UI_EMBOSS_NONE, UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), uiItemFullR(), uiItemL(), uiItemS(), uiLayoutBox(), uiLayoutColumnFlow(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), and WM_OP_EXEC_DEFAULT.
Referenced by uiTemplateKeymapItemProperties().
|
static |
Definition at line 2804 of file interface_templates.c.
References C, wmOperatorType::flag, LISTBASE_FOREACH, wmOperator::macro, OPTYPE_MACRO, template_operator_property_buts_draw_single(), wmOperator::type, and UI_PROP_BUTS_ANY_FAILED_CHECK.
Referenced by uiTemplateOperatorPropertyButs(), and uiTemplateOperatorRedoProperties().
|
static |
Definition at line 2664 of file interface_templates.c.
References uiBlock::buttons, C, col, CTX_wm_manager(), CTX_wm_window(), uiBlock::flag, wmOperator::flag, wmOperatorType::flag, wmWindowManager::id, wmOperatorType::idname, IDP_GROUP, IDP_New(), IFACE_, wmOperator::layout, IDProperty::len, LISTBASE_FOREACH, NULL, uiBlock::oldblock, OPTYPE_PRESET, ot, wmOperatorType::poll_property, wmOperatorType::prop, wmOperator::properties, wmOperator::ptr, ptr, RNA_boolean_set(), RNA_pointer_create(), RNA_string_set(), wmOperatorType::srna, TIP_, wmOperator::type, wmOperatorType::ui, UI_BLOCK_KEEP_OPEN, UI_block_lock_clear(), UI_block_lock_set(), UI_BTYPE_BUT, UI_BTYPE_TEXT, UI_but_flag_disable(), UI_but_focus_on_enter_event(), UI_but_func_set(), UI_BUT_UNDO, ui_layout_operator_buts_poll_property(), uiBlock::ui_operator, UI_PROP_BUTS_NONE_ADDED, UI_TEMPLATE_OP_PROPS_COMPACT, 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(), uiItemFullO_ptr(), uiItemL(), uiItemM(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), user_data, WM_OP_INVOKE_DEFAULT, WM_operator_repeat_check(), WM_operatortype_find(), and WM_operatortype_name().
Referenced by template_operator_property_buts_draw_recursive().
|
static |
Definition at line 2044 of file interface_templates.c.
References PointerRNA::data, height, NULL, RNA_struct_name_property(), template_search_textbut_height(), template_search_textbut_width(), type, uiDefAutoButR(), and width.
Referenced by template_search_buttons().
|
static |
Definition at line 2059 of file interface_templates.c.
References NULL, UI_BTYPE_BUT, UI_BUT_DISABLED, UI_but_drawflag_enable(), UI_UNIT_X, UI_UNIT_Y, and uiDefIconButO().
Referenced by template_search_buttons().
|
static |
Definition at line 2021 of file interface_templates.c.
References C, MEM_dupallocN, RNA_property_ui_description(), TemplateSearch::search_data, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, template_add_button_search_menu(), template_search_menu(), and TemplateSearch::use_previews.
Referenced by template_search_buttons().
|
static |
Definition at line 2077 of file interface_templates.c.
References C, RNA_property_editable(), RNA_property_pointer_get(), RNA_property_pointer_type(), TemplateSearch::search_data, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, template_search_add_button_name(), template_search_add_button_operator(), template_search_add_button_searchmenu(), type, PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), uiLayoutGetBlock(), uiLayoutRow(), WM_OP_INVOKE_DEFAULT, and WM_OP_INVOKE_REGION_WIN.
Referenced by uiTemplateSearch(), and uiTemplateSearchPreview().
Definition at line 1988 of file interface_templates.c.
References C, NULL, RNA_pointer_create(), RNA_property_pointer_set(), RNA_property_pointer_type(), RNA_property_update(), TemplateSearch::search_data, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, and type.
Referenced by template_search_menu().
|
static |
Definition at line 2107 of file interface_templates.c.
References PointerRNA::data, NULL, PROP_COLLECTION, RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, and PointerRNA::type.
Referenced by template_search_setup().
Definition at line 2000 of file interface_templates.c.
References C, PointerRNA::data, NULL, TemplateSearch::preview_cols, TemplateSearch::preview_rows, RNA_property_pointer_get(), TemplateSearch::search_data, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, template_common_search_menu(), template_search_exec_fn(), and ui_rna_collection_search_update_fn().
Referenced by template_search_add_button_searchmenu().
|
static |
Definition at line 2153 of file interface_templates.c.
References MEM_callocN, NULL, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, TemplateSearch::search_data, uiRNACollectionSearch::search_prop, uiRNACollectionSearch::search_ptr, uiRNACollectionSearch::target_prop, uiRNACollectionSearch::target_ptr, template_search_get_searchprop(), and PointerRNA::type.
Referenced by uiTemplateSearch(), and uiTemplateSearchPreview().
|
static |
Definition at line 145 of file interface_templates.c.
References TEMPLATE_SEARCH_TEXTBUT_HEIGHT.
Referenced by template_ID(), and template_search_add_button_name().
|
static |
Definition at line 123 of file interface_templates.c.
References BLI_assert, CLAMPIS, MEM_freeN, PROP_STRING, ptr, RNA_property_string_get_alloc(), RNA_property_type(), str, TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH, UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_MAX_DRAW_STR, and UI_UNIT_X.
Referenced by template_ID(), and template_search_add_button_name().
Definition at line 1602 of file interface_templates.c.
References C, uiBut::custom_data, NULL, uiBut::type, UI_BTYPE_TAB, and UI_context_active_but_get().
Referenced by workspace_context_get().
void UI_context_active_but_prop_get_templateID | ( | bContext * | C, |
PointerRNA * | r_ptr, | ||
PropertyRNA ** | r_prop | ||
) |
This is for browsing and editing the ID-blocks used.
Definition at line 584 of file interface_templates.c.
References C, uiBut::func_argN, uiBut::funcN, NULL, TemplateID::prop, TemplateID::ptr, template_id_cb(), and UI_context_active_but_get().
Referenced by action_new_exec(), cachefile_init(), font_ui_template_init(), font_unlink_exec(), image_new_init(), image_new_invoke(), image_open_init(), image_open_invoke(), lib_id_fake_user_toggle_exec(), lib_id_unlink_exec(), new_material_exec(), blender::ed::space_node::new_node_tree_exec(), new_texture_exec(), new_world_exec(), object_unlink_data_exec(), open_init(), override_idtemplate_ids_get(), sound_open_init(), text_new_exec(), and text_open_init().
Definition at line 3819 of file interface_templates.c.
References Freestyle::a, C, free(), EnumPropertyItem::icon, IconViewMenuArgs::icon_scale, EnumPropertyItem::identifier, MEM_freeN, NULL, IconViewMenuArgs::prop, IconViewMenuArgs::ptr, RNA_property_enum_items(), IconViewMenuArgs::show_labels, UI_block_begin(), UI_block_bounds_set_normal(), UI_block_direction_set(), UI_block_flag_enable(), UI_BLOCK_LOOP, UI_BLOCK_NO_FLIP, UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), UI_BTYPE_ROW, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_DIR_DOWN, UI_EMBOSS_PULLDOWN, UI_HAS_ICON, UI_UNIT_X, uiDefIconButR_prop(), uiDefIconTextButR_prop(), EnumPropertyItem::value, w(), x, and y.
Referenced by uiTemplateIconView().
|
static |
Definition at line 2651 of file interface_templates.c.
References OP_PROP_TAG_ADVANCED, params, RNA_property_tags(), UI_TEMPLATE_OP_PROPS_HIDE_ADVANCED, and user_data.
Referenced by template_operator_property_buts_draw_single(), and ui_layout_operator_properties_only_booleans().
|
static |
Definition at line 2829 of file interface_templates.c.
References C, wmOperator::flag, wmOperatorType::flag, wmWindowManager::id, LISTBASE_FOREACH, wmOperator::macro, OPTYPE_MACRO, wmOperatorType::poll_property, PROP_BOOLEAN, PROP_HIDDEN, wmOperator::properties, ptr, RNA_pointer_create(), RNA_property_flag(), RNA_property_type(), RNA_STRUCT_BEGIN, RNA_STRUCT_END, wmOperatorType::srna, wmOperator::type, ui_layout_operator_buts_poll_property(), and user_data.
Referenced by uiTemplateOperatorPropertyButs().
Definition at line 103 of file interface_templates.c.
Referenced by UI_block_layout_resolve().
|
static |
Definition at line 1685 of file interface_templates.c.
References C, CTX_data_main(), TemplateID::filter, filter(), TemplateID::idcode, TemplateID::idlb, MEM_callocN, MEM_freeN, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, ptr, RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_type_to_ID_code(), RNA_warning, TemplateID::scale, template_ID(), template_ID_tabs(), type, PointerRNA::type, UI_ID_ADD_NEW, UI_ID_OPEN, UI_ID_PIN, uiLayoutRow(), and which_libbase().
Referenced by uiTemplateGpencilColorPreview(), uiTemplateID(), uiTemplateIDBrowse(), uiTemplateIDPreview(), and uiTemplateIDTabs().
ID* ui_template_id_liboverride_hierarchy_make | ( | bContext * | C, |
Main * | bmain, | ||
ID * | owner_id, | ||
ID * | id, | ||
const char ** | r_undo_push_label | ||
) |
Definition at line 661 of file interface_templates.c.
References BKE_collection_has_collection(), BKE_collection_has_object_recursive(), BKE_lib_override_library_create(), BKE_lib_override_library_get(), BKE_lib_override_library_id_reset(), BKE_scene_collections_object_remove(), C, Main::collections, CTX_data_active_object(), CTX_data_collection(), CTX_data_scene(), CTX_data_view_layer(), IDOverrideLibrary::flag, GS, id, Collection::id, Object::id, ID_AR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD, ID_GR, ID_IM, ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY_HIERARCHY, ID_IS_OVERRIDE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, ID_LA, ID_LT, ID_MA, ID_MB, ID_ME, ID_NT, ID_OB, ID_PA, ID_PT, ID_SPK, ID_TE, ID_VO, ID_WO, IDOVERRIDE_LIBRARY_FLAG_SYSTEM_DEFINED, Object::instance_collection, ID::lib, LIB_TAG_DOIT, LISTBASE_FOREACH, NA_ADDED, NA_REMOVED, ID::name, NC_ID, NC_SPACE, NC_WM, ND_DATACHANGED, ND_LIB_OVERRIDE_CHANGED, ND_SPACE_OUTLINER, ND_SPACE_VIEW3D, NULL, ID::override_library, RNA_warning, scene, ID::tag, template_id_liboverride_hierarchy_collection_root_find_recursive(), template_id_liboverride_hierarchy_collections_tag_recursive(), and WM_event_add_notifier().
Referenced by override_idtemplate_make_exec(), and template_id_liboverride_hierarchy_make().
|
static |
Definition at line 5725 of file interface_templates.c.
References IFACE_, uiItemEnumO_value(), uiItemL(), and uiLayoutRow().
Referenced by uiTemplatePalette().
uiListType* UI_UL_cache_file_layers | ( | void | ) |
Definition at line 6911 of file interface_templates.c.
References BLI_strncpy(), cache_file_layer_item(), uiListType::draw_item, uiListType::idname, and MEM_callocN.
Referenced by ED_uilisttypes_ui().
void uiTemplateAnyID | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | proptypename, | ||
const char * | text | ||
) |
This is for selecting the type of ID-block to use, and then from the relevant type choosing the block to use.
propname | property identifier for property that ID-pointer gets stored to. |
proptypename | property identifier for property used to determine the type of ID-pointer that can be used. |
Definition at line 1915 of file interface_templates.c.
References IFACE_, PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, blender::io::alembic::split(), PointerRNA::type, UI_ITEM_R_ICON_ONLY, UI_LAYOUT_ALIGN_EXPAND, UI_LAYOUT_ALIGN_LEFT, uiItemFullR(), uiItemL(), uiLayoutRow(), uiLayoutSetAlignment(), and uiLayoutSplit().
Referenced by graph_panel_driverVar__singleProp().
void uiTemplateCacheFile | ( | uiLayout * | layout, |
const bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 6982 of file interface_templates.c.
References BCONTEXT_CONSTRAINT, C, CTX_wm_space_properties(), PointerRNA::data, file, IFACE_, SpaceProperties::mainb, NULL, ptr, UI_TEMPLATE_ID_FILTER_ALL, uiItemO(), uiItemR(), uiLayoutRow(), uiLayoutSetContextPointer(), uiLayoutSetPropSep(), uiTemplateCacheFilePointer(), and uiTemplateID().
void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
const bContext * | C, | ||
PointerRNA * | fileptr | ||
) |
Definition at line 6921 of file interface_templates.c.
References BLI_listbase_count(), C, col, PointerRNA::data, file, RNA_pointer_is_null(), UI_TEMPLATE_LIST_FLAG_NONE, uiItemO(), uiItemS_ex(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetContextPointer(), UILST_LAYOUT_DEFAULT, and uiTemplateList().
bool uiTemplateCacheFilePointer | ( | struct PointerRNA * | ptr, |
const char * | propname, | ||
struct PointerRNA * | r_file_ptr | ||
) |
Lookup the CacheFile PointerRNA of the given pointer and return it in the output parameter. Returns true if ptr
has a RNACacheFile, false otherwise. If false, the output parameter is not initialized.
Definition at line 6960 of file interface_templates.c.
References PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), and PointerRNA::type.
Referenced by override_layers_panel_draw(), render_procedural_panel_draw(), time_panel_draw(), uiTemplateCacheFile(), and velocity_panel_draw().
void uiTemplateCacheFileProcedural | ( | uiLayout * | layout, |
const bContext * | C, | ||
PointerRNA * | fileptr | ||
) |
Definition at line 6809 of file interface_templates.c.
References BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), C, CACHEFILE_TYPE_ALEMBIC, CTX_data_depsgraph_pointer(), CTX_data_engine_type(), CTX_data_scene(), PointerRNA::data, DEG_get_evaluated_id(), CacheFile::id, NULL, RE_engine_supports_alembic_procedural(), RNA_boolean_get(), RNA_pointer_is_null(), scene, TIP_, uiItemL(), uiItemR(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetEnabled().
void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
struct PointerRNA * | fileptr | ||
) |
Draw the time related properties of the CacheFile.
Definition at line 6867 of file interface_templates.c.
References IFACE_, NULL, RNA_boolean_get(), RNA_pointer_is_null(), uiItemDecoratorR(), uiItemR(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetPropDecorate().
Referenced by time_panel_draw().
void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
struct PointerRNA * | fileptr | ||
) |
Draw the velocity related properties of the CacheFile.
Definition at line 6796 of file interface_templates.c.
References NULL, RNA_pointer_is_null(), uiItemR(), and uiLayoutSetContextPointer().
Referenced by velocity_panel_draw().
void uiTemplateColormanagedViewSettings | ( | uiLayout * | layout, |
bContext * | UNUSEDC, | ||
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 6677 of file interface_templates.c.
References col, COLORMANAGE_VIEW_USE_CURVES, PointerRNA::data, ColorManagedViewSettings::flag, IFACE_, NULL, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, uiItemR(), uiLayoutColumn(), and uiTemplateCurveMapping().
void uiTemplateColorPicker | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | value_slider, | ||
bool | lock, | ||
bool | lock_luminosity, | ||
bool | cubic | ||
) |
This template now follows User Preference for type - name is not correct anymore.
Definition at line 5519 of file interface_templates.c.
References uiBut::a2, uiButHSVCube::but, col, color, uiBut::custom_data, uiButHSVCube::gradient_type, len_v3(), lock, ColorPicker::luminosity_lock_value, NULL, ptr, RNA_property_float_get_array(), RNA_property_float_ui_range(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, ui_block_colorpicker_create(), UI_BTYPE_HSVCIRCLE, UI_BTYPE_HSVCUBE, UI_DPI_FAC, UI_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_SV, UI_GRAD_V_ALT, uiDefButR_prop(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), ColorPicker::use_color_cubic, ColorPicker::use_color_lock, ColorPicker::use_luminosity_lock, USER_CP_CIRCLE_HSL, USER_CP_CIRCLE_HSV, USER_CP_SQUARE_HS, USER_CP_SQUARE_HV, USER_CP_SQUARE_SV, and WHEEL_SIZE.
Referenced by blender::nodes::node_fn_input_color_cc::fn_node_input_color_layout(), blender::ed::space_node::node_buts_rgb(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), and blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex().
void uiTemplateColorRamp | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | expand | ||
) |
Definition at line 3744 of file interface_templates.c.
References colorband_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), UI_UNIT_X, uiLayoutAbsoluteBlock(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::ed::space_node::node_buts_colorramp(), and panel_draw().
void uiTemplateColorspaceSettings | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 6662 of file interface_templates.c.
References IFACE_, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, and uiItemR().
Referenced by blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), uiTemplateImage(), and uiTemplateMovieClip().
void uiTemplateComponentMenu | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | name | ||
) |
Definition at line 6745 of file interface_templates.c.
References BLI_strncpy(), component_menu(), MEM_callocN, ComponentMenuArgs::propname, ComponentMenuArgs::ptr, ptr, RNA_struct_find_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, UI_block_align_begin(), UI_block_align_end(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), and uiLayoutGetBlock().
Referenced by blender::ed::space_node::std_node_socket_draw().
void uiTemplateConstraintHeader | ( | uiLayout * | layout, |
PointerRNA * | ptr | ||
) |
Definition at line 3051 of file interface_templates.c.
References PointerRNA::data, draw_constraint_header(), ERROR_LIBDATA_MESSAGE, GS, Object::id, ID_IS_LINKED, ID_OB, if(), ID::name, PointerRNA::owner_id, ptr, RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_set(), and uiLayoutGetBlock().
Definition at line 2411 of file interface_templates.c.
References BLI_assert, bone_constraint_panel_id(), C, CONSTRAINT_IK_TEMP, constraint_reorder(), CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_NULL, constraints, Object::constraints, CTX_wm_region(), data, bConstraint::data, ED_object_active_context(), ED_object_pose_constraint_list(), ListBase::first, PanelType::flag, get_constraint_expand_flag(), PanelType::get_list_data_expand_flag, Object::id, LISTBASE_FOREACH, MAX_NAME, MEM_mallocN, bConstraint::next, Panel::next, NULL, object_constraint_panel_id(), PANEL_TYPE_INSTANCED, ARegion::panels, PanelType::reorder, RNA_pointer_create(), set_constraint_expand_flag(), PanelType::set_list_data_expand_flag, bConstraint::type, Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
void uiTemplateCryptoPicker | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
int | icon | ||
) |
Definition at line 5853 of file interface_templates.c.
References ptr, RNA_property_ui_description(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, PointerRNA::type, UI_BTYPE_BUT, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextButO(), uiLayoutGetBlock(), and WM_OP_INVOKE_DEFAULT.
Referenced by blender::ed::space_node::node_composit_buts_cryptomatte(), and blender::ed::space_node::node_composit_buts_cryptomatte_legacy().
void uiTemplateCurveMapping | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
int | type, | ||
bool | levels, | ||
bool | brush, | ||
bool | neg_slope, | ||
bool | tone | ||
) |
Definition at line 4873 of file interface_templates.c.
References curvemap_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, type, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by falloff_panel_draw(), gpencil_interpolate_seq_ui(), gpencil_modifier_curve_panel_draw(), blender::ed::space_node::node_buts_curvecol(), blender::ed::space_node::node_buts_curvefloat(), blender::ed::space_node::node_buts_curvevec(), blender::nodes::node_composite_curves_cc::node_buts_curvevec(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_composit_buts_huecorrect(), and uiTemplateColormanagedViewSettings().
void uiTemplateCurveProfile | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Template for a path creation widget intended for custom bevel profiles. This section is quite similar to uiTemplateCurveMapping, but with reduced complexity.
Definition at line 5473 of file interface_templates.c.
References CurveProfile_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_LINKED, MEM_callocN, MEM_freeN, PointerRNA::owner_id, RNAUpdateCb::prop, PROP_POINTER, RNAUpdateCb::ptr, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_clear(), UI_block_lock_set(), and uiLayoutGetBlock().
Referenced by edbm_bevel_ui(), and profile_panel_draw().
bool uiTemplateEventFromKeymapItem | ( | struct uiLayout * | layout, |
const char * | text, | ||
const struct wmKeyMapItem * | kmi, | ||
bool | text_fallback | ||
) |
Definition at line 6627 of file interface_templates.c.
References ARRAY_SIZE, BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_TIP_, wmKeyMapItem::type, UI_icon_from_keymap_item(), uiItemL(), and WM_key_event_string().
Referenced by WM_window_modal_keymap_status_draw().
void uiTemplateFileSelectPath | ( | uiLayout * | layout, |
bContext * | C, | ||
FileSelectParams * | params | ||
) |
Definition at line 7078 of file interface_templates.c.
References C, CTX_wm_screen(), CTX_wm_space_file(), ED_file_path_button(), params, and uiLayoutGetBlock().
void uiTemplateGpencilColorPreview | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
int | rows, | ||
int | cols, | ||
float | scale, | ||
int | filter | ||
) |
Definition at line 1854 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, and ui_template_id().
Definition at line 2512 of file interface_templates.c.
References BKE_gpencil_modifier_get_info(), BLI_assert, C, CTX_wm_region(), ED_object_active_context(), ListBase::first, PanelType::flag, gpencil_modifier_panel_id(), Object::greasepencil_modifiers, Object::id, LISTBASE_FOREACH, MAX_NAME, MEM_mallocN, GpencilModifierData::next, Panel::next, NULL, PANEL_TYPE_INSTANCED, GpencilModifierTypeInfo::panelRegister, ARegion::panels, RNA_pointer_create(), GpencilModifierData::type, Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
Definition at line 111 of file interface_templates.c.
References C, ED_area_header_switchbutton(), and uiLayoutAbsoluteBlock().
void uiTemplateHistogram | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 3966 of file interface_templates.c.
References col, PointerRNA::data, Histogram::height, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_HISTOGRAM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), and uiLayoutGetBlock().
icon_scale | Scale of the icon, 1x == button height. |
Definition at line 3785 of file interface_templates.c.
References NULL, UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and uiLayoutAbsoluteBlock().
void uiTemplateIconView | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | show_labels, | ||
float | icon_scale, | ||
float | icon_scale_popup | ||
) |
icon_scale | Scale of the icon, 1x == button height. |
Definition at line 3893 of file interface_templates.c.
References uiBlock::evil_C, IconViewMenuArgs::icon_scale, MEM_callocN, MEM_freeN, NULL, IconViewMenuArgs::prop, PROP_ENUM, IconViewMenuArgs::ptr, ptr, RNA_enum_icon_from_value(), RNA_property_editable(), RNA_property_enum_get(), RNA_property_enum_items(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, IconViewMenuArgs::show_labels, PointerRNA::type, UI_BTYPE_LABEL, UI_BUT_ICON_PREVIEW, ui_def_but_icon(), UI_HAS_ICON, ui_icon_view_menu_cb(), UI_UNIT_X, UI_UNIT_Y, uiDefBlockButN(), uiDefIconBut(), and uiLayoutAbsoluteBlock().
void uiTemplateID | ( | uiLayout * | layout, |
const bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | openop, | ||
const char * | unlinkop, | ||
int | filter, | ||
const bool | live_icon, | ||
const char * | text | ||
) |
Definition at line 1764 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, and ui_template_id().
Referenced by uiTemplateCacheFile().
void uiTemplateIDBrowse | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | openop, | ||
const char * | unlinkop, | ||
int | filter, | ||
const char * | text | ||
) |
Definition at line 1794 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Referenced by blender::ed::space_node::node_draw_buttons_group().
void uiTemplateIDPreview | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | openop, | ||
const char * | unlinkop, | ||
int | rows, | ||
int | cols, | ||
int | filter, | ||
const bool | hide_buttons | ||
) |
Definition at line 1823 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, UI_ID_RENAME, and ui_template_id().
void uiTemplateIDTabs | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
const char * | newop, | ||
const char * | menu, | ||
int | filter | ||
) |
Version of uiTemplateID using tabs.
Definition at line 1882 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Definition at line 6371 of file interface_templates.c.
References C, col, CTX_wm_window(), CTX_wm_workspace(), NULL, WorkSpace::status_text, TIP_, UI_LAYOUT_ALIGN_LEFT, uiItemL(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetAlignment(), WM_window_cursor_keymap_status_get(), and WM_window_modal_keymap_status_draw().
void uiTemplateKeymapItemProperties | ( | uiLayout * | layout, |
PointerRNA * | ptr | ||
) |
Definition at line 6596 of file interface_templates.c.
References uiBlock::buttons, PointerRNA::data, keymap_item_modified(), ListBase::last, uiBut::next, NULL, ptr, RNA_pointer_get(), uiBut::rnaprop, template_keymap_item_properties(), UI_but_flag_enable(), UI_but_func_set(), UI_BUT_UPDATE_DELAY, uiLayoutGetBlock(), and WM_operator_properties_sanitize().
void uiTemplateLayers | ( | uiLayout * | layout, |
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | used_ptr, | ||
const char * | used_propname, | ||
int | active_layer | ||
) |
Definition at line 5909 of file interface_templates.c.
References col, handle_layer_buttons(), NULL, POINTER_FROM_INT, ptr, RNA_property_array_length(), RNA_property_boolean_get_index(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, uiBut::type, PointerRNA::type, UI_BTYPE_TOGGLE, UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiLayoutColumn(), uiLayoutGetBlock(), and uiLayoutRow().
Definition at line 2262 of file interface_templates.c.
References BKE_modifier_get_info(), BLI_assert, C, CTX_wm_region(), ED_object_active_context(), ListBase::first, PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, MEM_mallocN, modifier_panel_id(), Object::modifiers, ModifierData::next, Panel::next, NULL, PANEL_TYPE_INSTANCED, ModifierTypeInfo::panelRegister, ARegion::panels, RNA_pointer_create(), ModifierData::type, Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
Definition at line 6774 of file interface_templates.c.
References uiBut::col, color, NULL, rgba_float_to_uchar(), UI_block_align_begin(), UI_block_align_end(), UI_BTYPE_NODE_SOCKET, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), and uiLayoutGetBlock().
void uiTemplateOperatorPropertyButs | ( | const bContext * | C, |
uiLayout * | layout, | ||
wmOperator * | op, | ||
eButLabelAlign | label_align, | ||
short | flag | ||
) |
Definition at line 2865 of file interface_templates.c.
References C, CTX_wm_manager(), NULL, template_operator_property_buts_draw_recursive(), ui_layout_operator_properties_only_booleans(), and UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT.
Definition at line 2879 of file interface_templates.c.
References C, ED_undo_operator_repeat_cb_evt(), IFACE_, NULL, uiBlock::panel, wmOperator::ptr, template_operator_property_buts_draw_recursive(), wmOperator::type, UI_block_func_handle_set(), UI_BUT_LABEL_ALIGN_NONE, UI_TEMPLATE_OP_PROPS_SHOW_TITLE, uiItemFullO(), uiItemO(), uiLayoutGetBlock(), WM_OP_INVOKE_DEFAULT, WM_operator_last_redo(), WM_operator_repeat_check(), and WM_operatortype_name().
void uiTemplatePalette | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
bool | UNUSEDcolors | ||
) |
Definition at line 5740 of file interface_templates.c.
References col, color, Palette::colors, PointerRNA::data, ListBase::first, Palette::id, uiButColor::is_pallete_color, LISTBASE_FOREACH, MAX2, NULL, uiBut::opptr, uiButColor::palette_color_index, ptr, RNA_enum_set(), RNA_pointer_create(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_BTYPE_BUT, UI_BTYPE_COLOR, UI_but_operator_ptr_get(), ui_template_palette_menu(), UI_UNIT_X, UI_UNIT_Y, uiDefButR(), uiDefIconButO(), uiDefIconMenuBut(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetWidth(), uiLayoutRow(), and WM_OP_INVOKE_DEFAULT.
void uiTemplatePathBuilder | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname, | ||
PointerRNA * | UNUSEDroot_ptr, | ||
const char * | text | ||
) |
Definition at line 2225 of file interface_templates.c.
References PROP_STRING, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, uiItemR(), and uiLayoutRow().
void uiTemplatePreview | ( | uiLayout * | layout, |
bContext * | C, | ||
ID * | id, | ||
bool | show_buttons, | ||
ID * | parent, | ||
MTex * | slot, | ||
const char * | preview_id | ||
) |
Definition at line 3093 of file interface_templates.c.
References B_MATPRV, BKE_idtype_idcode_to_name(), BKE_scene_uses_blender_eevee(), BLI_addtail(), BLI_findstring(), BLI_snprintf(), BLI_strncpy(), BLT_I18NCONTEXT_ID_LIGHT, C, col, CTX_data_scene(), CTX_IFACE_, CTX_wm_region(), do_preview_buttons(), ED_preview_draw(), ELEM, GS, uiPreview::height, id, Material::id, ID_LA, ID_LS, ID_MA, ID_TE, ID_WO, IFACE_, MEM_callocN, ID::name, NULL, uiPreview::preview_id, RNA_pointer_create(), RNA_warning, tex, TEX_PR_BOTH, TEX_PR_OTHER, TEX_PR_TEXTURE, UI_block_func_handle_set(), UI_BTYPE_EXTRA, UI_BTYPE_GRIP, UI_BTYPE_ROW, UI_but_func_drawextra_set(), UI_ITEM_R_EXPAND, UI_MAX_NAME_STR, ARegion::ui_previews, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconButS(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetKeepAspect(), and uiLayoutSetScaleX().
int uiTemplateRecentFiles | ( | uiLayout * | layout, |
int | rows | ||
) |
Definition at line 7047 of file interface_templates.c.
References BLI_path_basename(), BLO_has_bfile_extension(), G, LISTBASE_FOREACH_INDEX, NULL, ptr, RNA_boolean_set(), RNA_string_set(), uiItemFullO(), and WM_OP_INVOKE_DEFAULT.
Definition at line 6271 of file interface_templates.c.
References BKE_reports_last_displayable(), BLF_width(), C, uiBut::col, CTX_wm_reports(), wmTimer::customdata, if(), Report::len, max_ii(), Report::message, min_ii(), NULL, ReportList::reporttimer, SPACE_INFO, TIP_, Report::type, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_DPI_FAC, UI_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_icon_colorid_from_report_type(), UI_icon_from_report_type(), UI_style_get(), UI_text_colorid_from_report_type(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButO(), uiDefIconButO(), uiFontStyle::uifont_id, uiLayoutAbsolute(), uiLayoutGetBlock(), uiStyle::widgetlabel, width, ReportTimerInfo::widthfac, and WM_OP_INVOKE_REGION_WIN.
Definition at line 6056 of file interface_templates.c.
References blender::compositor::active, blender::compositor::area(), B_STOPANIM, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, BLI_snprintf(), uiButProgressbar::but, C, CTX_data_main(), CTX_wm_area(), CTX_wm_manager(), do_running_jobs(), ED_screen_animation_no_scrub(), G, IFACE_, wmWindowManager::is_interface_locked, LISTBASE_FOREACH, MEM_freeN, MEM_mallocN, NULL, ProgressTooltip_Store::owner, uiButProgressbar::progress, progress_tooltip_func(), scene, Main::scenes, SPACE_NODE, TIP_, UI_block_func_handle_set(), UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_LABEL, UI_BTYPE_PROGRESS_BAR, UI_but_func_tooltip_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), ProgressTooltip_Store::wm, WM_JOB_TYPE_ANY, WM_JOB_TYPE_CLIP_BUILD_PROXY, WM_JOB_TYPE_CLIP_PREFETCH, WM_JOB_TYPE_CLIP_SOLVE_CAMERA, WM_JOB_TYPE_CLIP_TRACK_MARKERS, WM_JOB_TYPE_COMPOSITE, WM_JOB_TYPE_DPAINT_BAKE, WM_JOB_TYPE_FILESEL_READDIR, WM_JOB_TYPE_OBJECT_BAKE, WM_JOB_TYPE_OBJECT_BAKE_TEXTURE, WM_JOB_TYPE_OBJECT_SIM_FLUID, WM_JOB_TYPE_OBJECT_SIM_OCEAN, WM_JOB_TYPE_POINTCACHE, WM_JOB_TYPE_RENDER, WM_JOB_TYPE_SEQ_BUILD_PREVIEW, WM_JOB_TYPE_SEQ_BUILD_PROXY, WM_JOB_TYPE_SEQ_DRAW_THUMBNAIL, WM_jobs_is_stopped(), WM_jobs_name(), WM_jobs_progress(), and WM_jobs_test().
void uiTemplateSearch | ( | uiLayout * | layout, |
struct bContext * | C, | ||
struct PointerRNA * | ptr, | ||
const char * | propname, | ||
struct PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | newop, | ||
const char * | unlinkop | ||
) |
Search menu to pick an item from a collection. A version of uiTemplateID that works for non-ID types.
Definition at line 2175 of file interface_templates.c.
References C, MEM_freeN, NULL, ptr, template_search_buttons(), and template_search_setup().
void uiTemplateSearchPreview | ( | uiLayout * | layout, |
bContext * | C, | ||
PointerRNA * | ptr, | ||
const char * | propname, | ||
PointerRNA * | searchptr, | ||
const char * | searchpropname, | ||
const char * | newop, | ||
const char * | unlinkop, | ||
const int | rows, | ||
const int | cols | ||
) |
Definition at line 2192 of file interface_templates.c.
References C, MEM_freeN, NULL, TemplateSearch::preview_cols, TemplateSearch::preview_rows, ptr, template_search_buttons(), template_search_setup(), and TemplateSearch::use_previews.
Definition at line 2584 of file interface_templates.c.
References BKE_shaderfx_get_info(), BLI_assert, C, CTX_wm_region(), ED_object_active_context(), ListBase::first, PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, MEM_mallocN, Panel::next, ShaderFxData::next, NULL, PANEL_TYPE_INSTANCED, ShaderFxTypeInfo::panelRegister, ARegion::panels, RNA_pointer_create(), Object::shader_fx, shaderfx_panel_id(), Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
Definition at line 6410 of file interface_templates.c.
References BKE_blender_version_blendfile_string_from_values(), BLF_width(), C, uiBut::col, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_info_statusbar_string(), ED_info_statusbar_string_ex(), Main::has_forward_compatibility_issues, max_ii(), NULL, scene, SNPRINTF, SPACE_INFO, STATUSBAR_SHOW_VERSION, TH_INFO_WARNING, TH_INFO_WARNING_TEXT, TIP_, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_DPI_FAC, UI_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_style_get(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiFontStyle::uifont_id, uiItemL(), uiLayoutAbsolute(), uiLayoutGetBlock(), Main::versionfile, uiStyle::widgetlabel, and width.
void uiTemplateVectorscope | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 4078 of file interface_templates.c.
References col, PointerRNA::data, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_VECTORSCOPE, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), uiLayoutGetBlock(), and Scopes::vecscope_height.
void uiTemplateWaveform | ( | uiLayout * | layout, |
PointerRNA * | ptr, | ||
const char * | propname | ||
) |
Definition at line 4016 of file interface_templates.c.
References col, PointerRNA::data, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_is_a(), PointerRNA::type, UI_BTYPE_GRIP, UI_BTYPE_WAVEFORM, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconButI(), uiLayoutColumn(), uiLayoutGetBlock(), and Scopes::wavefrm_height.