|
Blender
V2.93
|
#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_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_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 "ED_fileselect.h"#include "ED_object.h"#include "ED_render.h"#include "ED_screen.h"#include "ED_undo.h"#include "RNA_access.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 | StringCmp |
| struct | _uilist_item |
| struct | uiListLayoutdata |
| 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) |
List Template | |
| static void | uilist_draw_item_default (struct uiList *ui_list, struct bContext *UNUSED(C), struct uiLayout *layout, struct PointerRNA *UNUSED(dataptr), struct PointerRNA *itemptr, int icon, struct PointerRNA *UNUSED(active_dataptr), const char *UNUSED(active_propname), int UNUSED(index), int UNUSED(flt_flag)) |
| static void | uilist_draw_filter_default (struct uiList *ui_list, struct bContext *UNUSED(C), struct uiLayout *layout) |
| static int | cmpstringp (const void *p1, const void *p2) |
| static void | uilist_filter_items_default (struct uiList *ui_list, struct bContext *UNUSED(C), struct PointerRNA *dataptr, const char *propname) |
| static void | uilist_prepare (uiList *ui_list, int len, int activei, int rows, int maxrows, int columns, uiListLayoutdata *layoutdata) |
| static void | uilist_resize_update_cb (bContext *C, void *arg1, void *UNUSED(arg2)) |
| static void * | uilist_item_use_dynamic_tooltip (PointerRNA *itemptr, const char *propname) |
| static char * | uilist_item_tooltip_func (bContext *UNUSED(C), void *argN, const char *tip) |
| void | uiTemplateList (uiLayout *layout, bContext *C, const char *listtype_name, const char *list_id, PointerRNA *dataptr, const char *propname, PointerRNA *active_dataptr, const char *active_propname, const char *item_dyntip_propname, int rows, int maxrows, int layout_type, int columns, bool sort_reverse, bool sort_lock) |
Reports for Last Operator Template | |
| void | uiTemplateReportsBanner (uiLayout *layout, bContext *C) |
| void | uiTemplateInputStatus (uiLayout *layout, struct 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) |
Cache File Template | |
| 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 |
| void | UI_context_active_but_prop_get_templateID (bContext *C, PointerRNA *r_ptr, PropertyRNA **r_prop) |
| static void | template_id_cb (bContext *C, void *arg_litem, void *arg_event) |
| static const char * | template_id_browse_tip (const StructRNA *type) |
| 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 | 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) |
CurveMapping Template | |
| enum | { UICURVE_FUNC_RESET_NEG , UICURVE_FUNC_RESET_POS , UICURVE_FUNC_RESET_VIEW , UICURVE_FUNC_HANDLE_VECTOR , UICURVE_FUNC_HANDLE_AUTO , UICURVE_FUNC_HANDLE_AUTO_ANIM , UICURVE_FUNC_EXTEND_HOZ , UICURVE_FUNC_EXTEND_EXP } |
| static void | curvemap_buttons_zoom_in (bContext *C, void *cumap_v, void *UNUSED(arg)) |
| static void | curvemap_buttons_zoom_out (bContext *C, void *cumap_v, void *UNUSED(unused)) |
| static void | curvemap_buttons_setclip (bContext *UNUSED(C), void *cumap_v, void *UNUSED(arg)) |
| static void | curvemap_buttons_delete (bContext *C, void *cb_v, void *cumap_v) |
| static uiBlock * | curvemap_clipping_func (bContext *C, ARegion *region, void *cumap_v) |
| static void | curvemap_tools_dofunc (bContext *C, void *cumap_v, int event) |
| static uiBlock * | curvemap_tools_func (bContext *C, ARegion *region, CurveMapping *cumap, bool show_extend, int reset_mode) |
| static uiBlock * | curvemap_tools_posslope_func (bContext *C, ARegion *region, void *cumap_v) |
| static uiBlock * | curvemap_tools_negslope_func (bContext *C, ARegion *region, void *cumap_v) |
| static uiBlock * | curvemap_brush_tools_func (bContext *C, ARegion *region, void *cumap_v) |
| static uiBlock * | curvemap_brush_tools_negslope_func (bContext *C, ARegion *region, void *cumap_v) |
| static void | curvemap_buttons_redraw (bContext *C, void *UNUSED(arg1), void *UNUSED(arg2)) |
| static void | curvemap_buttons_update (bContext *C, void *arg1_v, void *cumap_v) |
| static void | curvemap_buttons_reset (bContext *C, void *cb_v, void *cumap_v) |
| static void | curvemap_buttons_layout (uiLayout *layout, PointerRNA *ptr, char labeltype, bool levels, bool brush, bool neg_slope, bool tone, RNAUpdateCb *cb) |
| void | uiTemplateCurveMapping (uiLayout *layout, PointerRNA *ptr, const char *propname, int type, bool levels, bool brush, bool neg_slope, bool tone) |
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 int 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 2756 of file interface_templates.c.
| #define B_STOPANIM 3 |
Definition at line 6545 of file interface_templates.c.
| #define B_STOPCAST 2 |
Definition at line 6544 of file interface_templates.c.
| #define B_STOPCLIP 6 |
Definition at line 6548 of file interface_templates.c.
| #define B_STOPCOMPO 4 |
Definition at line 6546 of file interface_templates.c.
| #define B_STOPFILE 7 |
Definition at line 6549 of file interface_templates.c.
| #define B_STOPOTHER 8 |
Definition at line 6550 of file interface_templates.c.
| #define B_STOPRENDER 1 |
Definition at line 6543 of file interface_templates.c.
| #define B_STOPSEQ 5 |
Definition at line 6547 of file interface_templates.c.
| #define CONSTRAINT_BONE_TYPE_PANEL_PREFIX "BONE_PT_" |
Definition at line 1999 of file interface_templates.c.
| #define CONSTRAINT_TYPE_PANEL_PREFIX "OBJECT_PT_" |
For building the panel UI for constraints.
Definition at line 1998 of file interface_templates.c.
Definition at line 2617 of file interface_templates.c.
Definition at line 2617 of file interface_templates.c.
| #define template_id_context | ( | type | ) | 0 |
Definition at line 829 of file interface_templates.c.
| #define TEMPLATE_SEARCH_TEXTBUT_HEIGHT UI_UNIT_Y |
Definition at line 106 of file interface_templates.c.
| #define TEMPLATE_SEARCH_TEXTBUT_MIN_WIDTH (UI_UNIT_X * 6) |
Definition at line 105 of file interface_templates.c.
| #define WHEEL_SIZE (5 * U.widget_unit) |
Definition at line 5188 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 3034 of file interface_templates.c.
| anonymous enum |
Definition at line 4000 of file interface_templates.c.
| anonymous enum |
| Enumerator | |
|---|---|
| UIPROFILE_FUNC_RESET | |
| UIPROFILE_FUNC_RESET_VIEW | |
Definition at line 4694 of file interface_templates.c.
|
static |
Definition at line 2072 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 5733 of file interface_templates.c.
References BLI_strcasecmp().
Referenced by uilist_filter_items_default().
|
static |
Definition at line 3195 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 3236 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_ColorRamp, RNA_ColorRampElement, 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().
|
static |
Definition at line 3215 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 3059 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 3041 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().
|
static |
Definition at line 3073 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 3095 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_ColorRamp, 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().
|
static |
Definition at line 3225 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 7155 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().
|
static |
Definition at line 2619 of file interface_templates.c.
References ED_object_constraint_active_set().
Referenced by draw_constraint_header().
|
static |
Check if the panel's ID starts with 'BONE', meaning it is a bone constraint.
Definition at line 2004 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 2013 of file interface_templates.c.
References C, constraint_panel_is_bone(), PointerRNA::data, bConstraint::name, 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 4193 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_NEG.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4198 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_POS.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 3889 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 4237 of file interface_templates.c.
References bounds(), CurveMapping::clipr, CurveMapping::cm, CUMA_DO_CLIP, 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_negslope_func(), curvemap_tools_posslope_func(), PointerRNA::data, 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_func_set(), UI_but_funcN_set(), UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_EMBOSS, UI_EMBOSS_NONE, UI_GRAD_H, UI_ITEM_R_EXPAND, UI_LAYOUT_ALIGN_LEFT, UI_LAYOUT_ALIGN_RIGHT, 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().
|
static |
Definition at line 4203 of file interface_templates.c.
References C, CTX_wm_region(), and ED_region_tag_redraw().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4215 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 3882 of file interface_templates.c.
References BKE_curvemapping_changed().
Referenced by curvemap_clipping_func().
|
static |
Definition at line 4208 of file interface_templates.c.
References BKE_curvemapping_changed(), C, NULL, and rna_update_cb().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 3820 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().
|
static |
Definition at line 3837 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 3900 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().
|
static |
Definition at line 4011 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().
|
static |
Definition at line 4054 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_HANDLE_AUTO, UICURVE_FUNC_HANDLE_AUTO_ANIM, UICURVE_FUNC_HANDLE_VECTOR, 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().
|
static |
Definition at line 4188 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_NEG.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4183 of file interface_templates.c.
References C, curvemap_tools_func(), and UICURVE_FUNC_RESET_POS.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4846 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 4871 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, CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, max_ii(), MEM_dupallocN, min_ii(), NULL, PointerRNA::owner_id, CurveProfile::path, CurveProfile::path_len, CurveProfile::preset, PROF_DIRTY_PRESET, PROF_H1_SELECT, PROF_H2_SELECT, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_SELECT, PROF_USE_CLIP, ptr, RNA_CurveProfilePoint, 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(), uiLayoutSetPropSep(), CurveProfilePoint::x, and CurveProfilePoint::y.
Referenced by uiTemplateCurveProfile().
|
static |
Definition at line 4688 of file interface_templates.c.
References C, and CurveProfile_presets_func().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 4863 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().
|
static |
Definition at line 4837 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 4760 of file interface_templates.c.
References C, and CurveProfile_tools_func().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 4856 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 4765 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 4782 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().
|
static |
Definition at line 4827 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().
|
static |
Definition at line 4587 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 4599 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().
|
static |
Definition at line 4699 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 4716 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().
|
static |
Definition at line 2758 of file interface_templates.c.
References B_MATPRV, C, NC_MATERIAL, ND_SHADING_PREVIEW, and WM_event_add_notifier().
Referenced by uiTemplatePreview().
|
static |
Definition at line 6552 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 2624 of file interface_templates.c.
References BKE_constraints_proxylocked_owner(), BKE_pose_channel_active(), constraint_active_func(), CONSTRAINT_DISABLE, CONSTRAINT_PROXY_LOCAL, bConstraint::flag, Object::id, bConstraint::name, NULL, ptr, RNA_Constraint, RNA_pointer_create(), RNA_struct_ui_icon(), TIP_, PointerRNA::type, UI_block_emboss_set(), UI_block_func_set(), UI_block_lock_clear(), UI_block_lock_set(), UI_BTYPE_BUT, UI_EMBOSS, UI_EMBOSS_NONE, UI_EMBOSS_NONE_OR_STATUS, UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), uiItemL(), 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 2034 of file interface_templates.c.
References PointerRNA::data, bConstraint::ui_expand_flag, and UI_panel_custom_data_get().
Referenced by uiTemplateConstraints().
|
static |
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2184 of file interface_templates.c.
References BKE_gpencil_modifierType_panel_id(), and ModifierData::type.
Referenced by uiTemplateGpencilModifiers().
|
static |
Definition at line 5558 of file interface_templates.c.
References C, CTX_wm_window(), wmWindow::eventstate, POINTER_AS_INT, RNA_property_array_length(), RNA_property_boolean_set_index(), uiBut::rnapoin, uiBut::rnaprop, and wmEvent::shift.
Referenced by uiTemplateLayers().
|
static |
Definition at line 390 of file interface_templates.c.
References BKE_id_full_name_ui_prefix_get(), C, MAX_ID_FULL_NAME_UI, NULL, 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 362 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 421 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 493 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 456 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 546 of file interface_templates.c.
References 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(), and UI_TEMPLATE_ID_FILTER_AVAILABLE.
Referenced by template_ID().
|
static |
Definition at line 6968 of file interface_templates.c.
References NULL, and WM_keyconfig_update_tag().
Referenced by uiTemplateKeymapItemProperties().
|
static |
Definition at line 1931 of file interface_templates.c.
References BKE_modifier_type_panel_id(), and ModifierData::type.
Referenced by uiTemplateModifiers().
|
static |
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2058 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 6587 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().
|
static |
Definition at line 3024 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 2045 of file interface_templates.c.
References PointerRNA::data, bConstraint::ui_expand_flag, and UI_panel_custom_data_get().
Referenced by uiTemplateConstraints().
|
static |
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2258 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 158 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 232 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 930 of file interface_templates.c.
References BKE_id_copy_is_allowed(), BKE_lib_id_make_local(), BKE_packedfile_id_check(), BLI_snprintf(), C, CTX_data_main(), PointerRNA::data, ELEM, uiBut::flag, GS, height, id, ID_GR, 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_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_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_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 730 of file interface_templates.c.
References ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU, ID_GD, ID_GR, ID_HA, 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().
|
static |
Definition at line 603 of file interface_templates.c.
References BKE_collection_has_object_recursive(), BKE_collection_object_add_from(), BKE_lib_id_make_local(), BKE_lib_override_library_create_from_id(), BKE_lib_override_library_make_local(), BKE_main_id_clear_newpoins(), 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_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDE_LIBRARY, ID_OB, id_single_user(), id_us_clear_real(), id_us_min(), id_us_plus(), LIB_FAKEUSER, Scene::master_collection, ID::name, NC_WINDOW, NULL, POINTER_AS_INT, TemplateID::prop, TemplateID::ptr, RNA_id_pointer_create(), RNA_LayerObjects, RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_warning, scene, 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_OPEN, UI_ID_OVERRIDE, UI_ID_PIN, and WM_event_add_notifier().
Referenced by template_ID(), and template_id_def_new_but().
|
static |
Definition at line 832 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, BLT_I18NCONTEXT_ID_FREESTYLELINESTYLE, BLT_I18NCONTEXT_ID_GPENCIL, BLT_I18NCONTEXT_ID_HAIR, 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 520 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 348 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 1270 of file interface_templates.c.
References BKE_id_ordered_list(), BLI_freelistN(), uiButTab::but, C, CTX_wm_region(), uiBut::custom_data, PointerRNA::data, uiBut::dragpoin, 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_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 |
Definition at line 6974 of file interface_templates.c.
References PointerRNA::data, NULL, PROP_POINTER, ptr, RNA_OperatorProperties, 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 2487 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 2347 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 1713 of file interface_templates.c.
References height, 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 1723 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 1690 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 1741 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().
|
static |
Definition at line 1657 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 1771 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 1669 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 1817 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 150 of file interface_templates.c.
References TEMPLATE_SEARCH_TEXTBUT_HEIGHT.
Referenced by template_ID(), and template_search_add_button_name().
|
static |
Definition at line 128 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 1260 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 | ||
| ) |
Definition at line 587 of file interface_templates.c.
References C, uiBut::func_argN, NULL, TemplateID::prop, TemplateID::ptr, 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(), new_node_tree_exec(), new_texture_exec(), new_world_exec(), object_unlink_data_exec(), open_init(), sound_open_init(), text_new_exec(), and text_open_init().
Definition at line 3496 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 2334 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 2512 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().
| void UI_template_fix_linking | ( | void | ) |
Definition at line 108 of file interface_templates.c.
Referenced by UI_block_layout_resolve().
|
static |
Definition at line 1343 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().
|
static |
Definition at line 5397 of file interface_templates.c.
References IFACE_, uiItemEnumO_value(), uiItemL(), and uiLayoutRow().
Referenced by uiTemplatePalette().
|
static |
Definition at line 5693 of file interface_templates.c.
References uiList::filter_sort_flag, NULL, RNA_pointer_create(), RNA_UIList, UI_ITEM_R_ICON_ONLY, UI_ITEM_R_TOGGLE, uiItemR(), uiLayoutRow(), UILST_FLT_SORT_LOCK, and UILST_FLT_SORT_REVERSE.
Referenced by uiTemplateList().
|
static |
Definition at line 5662 of file interface_templates.c.
References uiList::layout_type, RNA_NO_INDEX, RNA_struct_name_property(), PointerRNA::type, UI_ITEM_R_NO_BG, uiItemFullR(), uiItemL(), UILST_LAYOUT_COMPACT, UILST_LAYOUT_DEFAULT, and UILST_LAYOUT_GRID.
Referenced by uiTemplateList().
|
static |
Definition at line 5739 of file interface_templates.c.
References BLI_strncpy(), BLI_strncpy_ensure_pad(), cmpstringp(), uiList::dyn_data, filter(), uiList::filter_byname, uiList::filter_flag, uiList::filter_sort_flag, uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, uiListDyn::items_len, uiListDyn::items_shown, len, MAX_IDPROP_NAME, MEM_callocN, MEM_freeN, MEM_mallocN, names, NULL, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_collection_length(), RNA_struct_find_property(), RNA_struct_name_get_alloc(), UILST_FLT_EXCLUDE, UILST_FLT_ITEM, UILST_FLT_SORT_ALPHA, and UILST_FLT_SORT_MASK.
Referenced by uiTemplateList().
|
static |
Definition at line 5948 of file interface_templates.c.
References BLI_sprintfN().
Referenced by uiTemplateList().
|
static |
Definition at line 5936 of file interface_templates.c.
References PointerRNA::data, NULL, PROP_STRING, RNA_property_string_get_alloc(), RNA_property_type(), and RNA_struct_find_property().
Referenced by uiTemplateList().
|
static |
Definition at line 5854 of file interface_templates.c.
References ceil(), CLAMP, double(), uiList::dyn_data, uiListLayoutdata::end_idx, uiList::flag, floor(), uiListDyn::height, len, uiList::list_grip, uiList::list_last_len, uiList::list_scroll, max_ii(), min_ii(), uiListLayoutdata::start_idx, UI_LIST_AUTO_SIZE_THRESHOLD, UILST_SCROLL_TO_ACTIVE_ITEM, uiListDyn::visual_height, uiListDyn::visual_height_min, and uiListLayoutdata::visual_items.
Referenced by uiTemplateList().
|
static |
Definition at line 5917 of file interface_templates.c.
References C, CTX_wm_menu(), KDL::diff(), uiList::dyn_data, ED_region_tag_refresh_ui(), uiList::flag, uiList::list_grip, uiListDyn::resize, uiListDyn::resize_prev, round_fl_to_int(), UI_UNIT_Y, and UILST_SCROLL_TO_ACTIVE_ITEM.
Referenced by uiTemplateList().
| void uiTemplateAnyID | ( | uiLayout * | layout, |
| 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 1584 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 7231 of file interface_templates.c.
References BCONTEXT_CONSTRAINT, C, CTX_wm_space_properties(), PointerRNA::data, file, IFACE_, SpaceProperties::mainb, NULL, PROP_POINTER, ptr, RNA_boolean_get(), RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, UI_TEMPLATE_ID_FILTER_ALL, uiItemDecoratorR(), uiItemO(), uiItemR(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetContextPointer(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateID().
| void uiTemplateColormanagedViewSettings | ( | uiLayout * | layout, |
| bContext * | UNUSEDC, | ||
| PointerRNA * | ptr, | ||
| const char * | propname | ||
| ) |
Definition at line 7109 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(), uiLayoutRow(), and uiTemplateCurveMapping().
| void uiTemplateColorPicker | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| bool | value_slider, | ||
| bool | lock, | ||
| bool | lock_luminosity, | ||
| bool | cubic | ||
| ) |
Definition at line 5191 of file interface_templates.c.
References uiBut::a2, uiButHSVCube::but, col, uiBut::custom_data, uiButHSVCube::gradient_type, len_v3(), 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 node_buts_rgb(), node_composit_buts_colorbalance(), and node_composit_buts_colorbalance_ex().
| void uiTemplateColorRamp | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| bool | expand | ||
| ) |
Definition at line 3418 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_ColorRamp, 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 geo_node_attribute_color_ramp_layout(), node_buts_colorramp(), and panel_draw().
| void uiTemplateColorspaceSettings | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname | ||
| ) |
Definition at line 7094 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 node_composit_buts_movieclip_ex(), uiTemplateImage(), and uiTemplateMovieClip().
| void uiTemplateComponentMenu | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const char * | name | ||
| ) |
Definition at line 7180 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 std_node_socket_draw().
| void uiTemplateConstraintHeader | ( | uiLayout * | layout, |
| PointerRNA * | ptr | ||
| ) |
Definition at line 2725 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_Constraint, RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_set(), and uiLayoutGetBlock().
Check if the constraint panels don't match the data and rebuild the panels if so.
Definition at line 2089 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_Constraint, 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 5525 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 node_composit_buts_cryptomatte(), and 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 4540 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_CurveMapping, 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(), node_buts_curvecol(), node_buts_curvevec(), node_buts_time(), node_composit_buts_huecorrect(), and uiTemplateColormanagedViewSettings().
| void uiTemplateCurveProfile | ( | uiLayout * | layout, |
| 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 5144 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_CurveProfile, 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 7059 of file interface_templates.c.
References ARRAY_SIZE, 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 7358 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 1512 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 2190 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_GpencilModifier, 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 116 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 3646 of file interface_templates.c.
References col, PointerRNA::data, Histogram::height, if(), PROP_POINTER, ptr, RNA_Histogram, 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 3462 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, |
| 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 3573 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 1422 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 1452 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Referenced by 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 1481 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, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| const char * | newop, | ||
| const char * | menu, | ||
| int | filter | ||
| ) |
Version of uiTemplateID using tabs.
Definition at line 1543 of file interface_templates.c.
References C, filter(), NULL, ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Definition at line 6923 of file interface_templates.c.
References C, col, CTX_wm_window(), CTX_wm_workspace(), NULL, WorkSpace::status_text, 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 7028 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, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| PointerRNA * | used_ptr, | ||
| const char * | used_propname, | ||
| int | active_layer | ||
| ) |
Definition at line 5585 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().
| void uiTemplateList | ( | uiLayout * | layout, |
| bContext * | C, | ||
| const char * | listtype_name, | ||
| const char * | list_id, | ||
| PointerRNA * | dataptr, | ||
| const char * | propname, | ||
| PointerRNA * | active_dataptr, | ||
| const char * | active_propname, | ||
| const char * | item_dyntip_propname, | ||
| int | rows, | ||
| int | maxrows, | ||
| int | layout_type, | ||
| int | columns, | ||
| bool | sort_reverse, | ||
| bool | sort_lock | ||
| ) |
Definition at line 5954 of file interface_templates.c.
References BLI_addtail(), BLI_findstring(), BLI_snprintf(), BLI_strncpy(), C, col, uiBut::context, CTX_wm_menu(), CTX_wm_region(), PointerRNA::data, uiListType::draw_filter, uiListType::draw_item, uiList::dyn_data, uiListLayoutdata::end_idx, uiList::filter_flag, uiListType::filter_items, uiList::filter_sort_flag, uiList::flag, _uilist_item::flt_flag, uiListDyn::height, uiListType::idname, _uilist_item::item, uiListDyn::items_filter_flags, uiListDyn::items_filter_neworder, uiListDyn::items_len, uiListDyn::items_shown, uiList::layout_type, len, uiList::list_grip, uiList::list_id, uiList::list_last_activei, uiList::list_scroll, MEM_callocN, MEM_freeN, MEM_mallocN, MEM_SAFE_FREE, NULL, _uilist_item::org_idx, PROP_COLLECTION, PROP_INT, uiListDyn::resize, uiListDyn::resize_prev, RNA_PROP_BEGIN, RNA_PROP_END, RNA_property_collection_length(), RNA_property_int_get(), RNA_property_int_set(), RNA_property_pointer_type(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_ui_icon(), RNA_warning, uiListLayoutdata::start_idx, STREQ, TIP_, type, uiList::type, PointerRNA::type, UI_block_emboss_set(), UI_block_flag_disable(), UI_block_flag_enable(), UI_BLOCK_LIST_ITEM, UI_BTYPE_GRIP, UI_BTYPE_LISTROW, UI_BTYPE_NUM, UI_BTYPE_SCROLL, UI_BTYPE_SEPR, UI_BTYPE_TOGGLE, UI_BUT_DISABLED, UI_but_drawflag_enable(), UI_but_flag_disable(), UI_but_flag_enable(), UI_but_func_set(), UI_but_func_tooltip_set(), UI_BUT_NO_TOOLTIP, UI_BUT_UNDO, UI_EMBOSS, UI_EMBOSS_NONE, UI_icon_from_rnaptr(), ui_layout_list_set_labels_active(), UI_LIST_AUTO_SIZE_THRESHOLD, ARegion::ui_lists, UI_MAX_NAME_STR, UI_UL_DEFAULT_CLASS_NAME, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButI(), uiDefButR_prop(), uiDefIconButBitI(), uiDefIconButI(), uiDefIconTextButR_prop(), uiItemL(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutGetContextStore(), uiLayoutListBox(), uiLayoutOverlap(), uiLayoutRow(), uilist_draw_filter_default(), uilist_draw_item_default(), uilist_filter_items_default(), uilist_item_tooltip_func(), uilist_item_use_dynamic_tooltip(), uilist_prepare(), uilist_resize_update_cb(), UILST_FLT_EXCLUDE, UILST_FLT_ITEM, UILST_FLT_SHOW, UILST_FLT_SORT_LOCK, UILST_FLT_SORT_REVERSE, UILST_LAYOUT_COMPACT, UILST_LAYOUT_DEFAULT, UILST_LAYOUT_GRID, UILST_SCROLL_TO_ACTIVE_ITEM, V2D_SCROLL_WIDTH, uiListDyn::visual_height, uiListLayoutdata::visual_items, and WM_uilisttype_find().
Referenced by draw_socket_list(), and node_composit_buts_file_output_ex().
Definition at line 1937 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_Modifier, 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 7209 of file interface_templates.c.
References uiBut::col, 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 | ||
| ) |
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 2553 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 2567 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 5412 of file interface_templates.c.
References col, 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_Palette, RNA_PaletteColor, 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 | ||
| ) |
This is creating/editing RNA-Paths
Definition at line 1900 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 2767 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_Material, RNA_pointer_create(), RNA_Texture, 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 7327 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 6823 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 6613 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_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_jobs_is_stopped(), WM_jobs_name(), WM_jobs_progress(), and WM_jobs_test().
| void uiTemplateSearch | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| 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 1843 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 1860 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.
Check if the shader effect panels don't match the data and rebuild the panels if so.
Definition at line 2267 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(), RNA_ShaderFx, 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().
| void uiTemplateVectorscope | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname | ||
| ) |
Definition at line 3758 of file interface_templates.c.
References col, PointerRNA::data, if(), PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_Scopes, 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 3696 of file interface_templates.c.
References col, PointerRNA::data, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_Scopes, 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.