|
Blender V4.3
|
#include <algorithm>#include <cctype>#include <cstddef>#include <cstdlib>#include <cstring>#include <fmt/format.h>#include "MEM_guardedalloc.h"#include "DNA_anim_types.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_types.h"#include "DNA_scene_types.h"#include "DNA_shader_fx_types.h"#include "DNA_texture_types.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_math_color.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_string_ref.hh"#include "BLI_string_utils.hh"#include "BLI_time.h"#include "BLI_timecode.h"#include "BLI_utildefines.h"#include "BLF_api.hh"#include "BLT_translation.hh"#include "BKE_anim_data.hh"#include "BKE_blender_version.h"#include "BKE_blendfile.hh"#include "BKE_colorband.hh"#include "BKE_colortools.hh"#include "BKE_constraint.h"#include "BKE_context.hh"#include "BKE_curveprofile.h"#include "BKE_file_handler.hh"#include "BKE_global.hh"#include "BKE_idprop.hh"#include "BKE_idtype.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_lib_override.hh"#include "BKE_linestyle.h"#include "BKE_main.hh"#include "BKE_modifier.hh"#include "BKE_packedFile.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_screen.hh"#include "BKE_shader_fx.h"#include "BKE_workspace.hh"#include "BLO_readfile.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "DEG_depsgraph_query.hh"#include "ED_fileselect.hh"#include "ED_id_management.hh"#include "ED_info.hh"#include "ED_object.hh"#include "ED_render.hh"#include "ED_screen.hh"#include "ED_screen_types.hh"#include "ED_undo.hh"#include "IMB_imbuf.hh"#include "IMB_imbuf_types.hh"#include "IMB_metadata.hh"#include "IMB_thumbs.hh"#include "RE_engine.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "WM_api.hh"#include "WM_types.hh"#include "UI_interface.hh"#include "UI_interface_icons.hh"#include "UI_string_search.hh"#include "interface_intern.hh"#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 * 4) |
| #define | TEMPLATE_SEARCH_TEXTBUT_HEIGHT UI_UNIT_Y |
Functions | |
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 () |
| 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, uiButArgNFree func_argN_free_fn=MEM_freeN, uiButArgNCopy func_argN_copy_fn=MEM_dupallocN) |
| 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) |
Search Callbacks | |
| 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) |
| 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) |
| static ARegion * | template_ID_search_menu_item_tooltip (bContext *C, ARegion *region, const rcti *item_rect, void *, void *active) |
| static uiBlock * | id_search_menu (bContext *C, ARegion *region, void *arg_litem) |
ID Chooser Template | |
| void | uiTemplateAnyID (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *proptypename, const char *text) |
Search Template | |
| 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, const char *text) |
| static PropertyRNA * | template_search_get_searchprop (PointerRNA *targetptr, PropertyRNA *targetprop, PointerRNA *searchptr, const char *const searchpropname) |
| static bool | template_search_setup (TemplateSearch &template_search, PointerRNA *ptr, const char *const propname, PointerRNA *searchptr, const char *const searchpropname) |
| void | uiTemplateSearch (uiLayout *layout, const bContext *C, PointerRNA *ptr, const char *propname, PointerRNA *searchptr, const char *searchpropname, const char *newop, const char *unlinkop, const char *text) |
| 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, const char *text) |
RNA Path Builder Template | |
| void | uiTemplatePathBuilder (uiLayout *layout, PointerRNA *ptr, const char *propname, PointerRNA *, 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 *, 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 *, bContext *C) |
Operator Property Buttons Template | |
| static bool | ui_layout_operator_buts_poll_property (PointerRNA *, PropertyRNA *prop, void *user_data) |
| static eAutoPropButsReturn | template_operator_property_buts_draw_single (const bContext *C, wmOperator *op, uiLayout *layout, const eButLabelAlign label_align, int layout_flags) |
| static void | template_operator_property_buts_draw_recursive (const bContext *C, wmOperator *op, uiLayout *layout, const eButLabelAlign label_align, int layout_flags, bool *r_has_advanced) |
| static bool | ui_layout_operator_properties_only_booleans (const bContext *C, wmWindowManager *wm, wmOperator *op, int layout_flags) |
| void | uiTemplateOperatorPropertyButs (const bContext *C, uiLayout *layout, wmOperator *op, eButLabelAlign label_align, short flag) |
| void | uiTemplateOperatorRedoProperties (uiLayout *layout, const bContext *C) |
| static wmOperator * | minimal_operator_create (wmOperatorType *ot, PointerRNA *properties) |
| static void | draw_export_controls (bContext *C, uiLayout *layout, const std::string &label, int index, bool valid) |
| static void | draw_export_properties (bContext *C, uiLayout *layout, wmOperator *op, const std::string &filename) |
| static void | draw_exporter_item (uiList *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| void | uiTemplateCollectionExporters (uiLayout *layout, bContext *C) |
ColorRamp Template | |
| static void | rna_update_cb (bContext &C, const RNAUpdateCb &cb) |
| static void | rna_update_cb (bContext *C, void *arg_cb, void *) |
| static void | colorband_flip (bContext *C, ColorBand *coba) |
| static void | colorband_distribute (bContext *C, ColorBand *coba, bool evenly) |
| static uiBlock * | colorband_tools_fn (bContext *C, ARegion *region, void *cb_v) |
| static void | colorband_add (bContext &C, const RNAUpdateCb &cb, ColorBand &coba) |
| static void | colorband_update_cb (bContext *, void *bt_v, void *coba_v) |
| static void | colorband_buttons_layout (uiLayout *layout, uiBlock *block, ColorBand *coba, const rctf *butr, const RNAUpdateCb &cb, int expand) |
| void | uiTemplateColorRamp (uiLayout *layout, PointerRNA *ptr, const char *propname, bool expand) |
Icon Template | |
| void | uiTemplateIcon (uiLayout *layout, int icon_value, float icon_scale) |
Icon viewer Template | |
| 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) |
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) |
Curve Profile Template | |
| static uiBlock * | curve_profile_presets_fn (bContext *C, ARegion *region, void *cb_v) |
| static uiBlock * | curve_profile_tools_fn (bContext *C, ARegion *region, void *cb_v) |
| static bool | curve_profile_can_zoom_in (CurveProfile *profile) |
| static bool | curve_profile_can_zoom_out (CurveProfile *profile) |
| static void | curve_profile_zoom_in (bContext *C, CurveProfile *profile) |
| static void | curve_profile_zoom_out (bContext *C, CurveProfile *profile) |
| static void | CurveProfile_buttons_layout (uiLayout *layout, PointerRNA *ptr, const RNAUpdateCb &cb) |
| void | uiTemplateCurveProfile (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) |
| static bool | uiTemplateInputStatusAzone (uiLayout *layout, const AZone *az, const ARegion *region) |
| void | uiTemplateInputStatus (uiLayout *layout, bContext *C) |
| static std::string | ui_template_status_tooltip (bContext *C, void *, const char *) |
| void | uiTemplateStatusInfo (uiLayout *layout, bContext *C) |
Keymap Template | |
| static void | keymap_item_modified (bContext *, void *kmi_p, void *) |
| static void | template_keymap_item_properties (uiLayout *layout, const char *title, PointerRNA *ptr) |
| void | uiTemplateKeymapItemProperties (uiLayout *layout, PointerRNA *ptr) |
Event Icon Template | |
| static const wmKeyMapItem * | keymap_item_from_enum_item (const wmKeyMap *keymap, const EnumPropertyItem *item) |
| static bool | keymap_item_can_collapse (const wmKeyMapItem *kmi_a, const wmKeyMapItem *kmi_b) |
| int | uiTemplateStatusBarModalItem (uiLayout *layout, const wmKeyMap *keymap, const EnumPropertyItem *item) |
| bool | uiTemplateEventFromKeymapItem (uiLayout *layout, const char *text, const wmKeyMapItem *kmi, bool text_fallback) |
Color Management Template | |
| void | uiTemplateColorspaceSettings (uiLayout *layout, PointerRNA *ptr, const char *propname) |
| void | uiTemplateColormanagedViewSettings (uiLayout *layout, bContext *, PointerRNA *ptr, const char *propname) |
Component Menu | |
| static uiBlock * | component_menu (bContext *C, ARegion *region, void *args_v) |
| void | uiTemplateComponentMenu (uiLayout *layout, PointerRNA *ptr, const char *propname, const char *name) |
Node Socket Icon Template | |
| void | uiTemplateNodeSocket (uiLayout *layout, bContext *, const 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 *, const bContext *, uiLayout *layout, PointerRNA *, PointerRNA *itemptr, int, PointerRNA *, const char *, int, int) |
| 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 | |
| static void | uiTemplateRecentFiles_tooltip_func (bContext &, uiTooltipData &tip, void *argN) |
| 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 (const 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_id, 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 | uiTemplateAction (uiLayout *layout, const bContext *C, ID *id, const char *newop, const char *unlinkop, 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 *, Panel *panel) |
| static void | set_constraint_expand_flag (const bContext *, Panel *panel, short expand_flag) |
| static void | object_constraint_panel_id (void *md_link, char *r_idname) |
| static void | bone_constraint_panel_id (void *md_link, char *r_idname) |
| void | uiTemplateConstraints (uiLayout *, bContext *C, bool use_bone_constraints) |
Constraint Header Template | |
| #define | ERROR_LIBDATA_MESSAGE N_("Can't edit external library data") |
| #define | ERROR_LIBDATA_MESSAGE N_("Can't edit external library data") |
| static void | constraint_active_func (bContext *, 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) |
CurveMapping Template | |
| #define | CURVE_ZOOM_MAX (1.0f / 25.0f) |
| static bool | curvemap_can_zoom_out (CurveMapping *cumap) |
| static bool | curvemap_can_zoom_in (CurveMapping *cumap) |
| static void | curvemap_buttons_zoom_in (bContext *C, CurveMapping *cumap) |
| static void | curvemap_buttons_zoom_out (bContext *C, CurveMapping *cumap) |
| static uiBlock * | curvemap_clipping_func (bContext *C, ARegion *region, void *cumap_v) |
| static uiBlock * | curvemap_tools_func (bContext *C, ARegion *region, RNAUpdateCb &cb, bool show_extend, int reset_mode) |
| static uiBlock * | curvemap_tools_posslope_func (bContext *C, ARegion *region, void *cb_v) |
| static uiBlock * | curvemap_tools_negslope_func (bContext *C, ARegion *region, void *cb_v) |
| static uiBlock * | curvemap_brush_tools_func (bContext *C, ARegion *region, void *cb_v) |
| static uiBlock * | curvemap_brush_tools_negslope_func (bContext *C, ARegion *region, void *cb_v) |
| static void | curvemap_buttons_redraw (bContext &C) |
| static void | curvemap_buttons_layout (uiLayout *layout, PointerRNA *ptr, char labeltype, bool levels, bool brush, bool neg_slope, bool tone, const RNAUpdateCb &cb) |
| void | uiTemplateCurveMapping (uiLayout *layout, PointerRNA *ptr, const char *propname, int type, bool levels, bool brush, bool neg_slope, bool tone) |
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 *, uiLayout *layout, void *) |
| void | uiTemplatePalette (uiLayout *layout, PointerRNA *ptr, const char *propname, bool) |
| 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 *, int event) |
| static std::string | progress_tooltip_func (bContext *, void *argN, const char *) |
| void | uiTemplateRunningJobs (uiLayout *layout, bContext *C) |
| #define B_MATPRV 1 |
Definition at line 3340 of file interface_templates.cc.
Referenced by do_preview_buttons(), and uiTemplatePreview().
| #define B_STOPANIM 3 |
Definition at line 6074 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPCAST 2 |
Definition at line 6073 of file interface_templates.cc.
Referenced by do_running_jobs().
| #define B_STOPCLIP 6 |
Definition at line 6077 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPCOMPO 4 |
Definition at line 6075 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPFILE 7 |
Definition at line 6078 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPOTHER 8 |
Definition at line 6079 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPRENDER 1 |
Definition at line 6072 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define B_STOPSEQ 5 |
Definition at line 6076 of file interface_templates.cc.
Referenced by do_running_jobs(), and uiTemplateRunningJobs().
| #define CONSTRAINT_BONE_TYPE_PANEL_PREFIX "BONE_PT_" |
Definition at line 2499 of file interface_templates.cc.
Referenced by bone_constraint_panel_id().
| #define CONSTRAINT_TYPE_PANEL_PREFIX "OBJECT_PT_" |
For building the panel UI for constraints.
Definition at line 2498 of file interface_templates.cc.
Referenced by object_constraint_panel_id().
| #define CURVE_ZOOM_MAX (1.0f / 25.0f) |
Definition at line 4325 of file interface_templates.cc.
Referenced by curve_profile_can_zoom_in(), and curvemap_can_zoom_in().
Definition at line 2673 of file interface_templates.cc.
Referenced by uiTemplateColorRamp(), uiTemplateConstraintHeader(), uiTemplateCurveMapping(), and uiTemplateCurveProfile().
Definition at line 2673 of file interface_templates.cc.
| #define template_id_context | ( | type | ) | 0 |
Definition at line 1213 of file interface_templates.cc.
Referenced by template_id_def_new_but().
Definition at line 114 of file interface_templates.cc.
Referenced by template_search_textbut_height().
Definition at line 113 of file interface_templates.cc.
Referenced by template_search_textbut_width().
| #define WHEEL_SIZE (5 * U.widget_unit) |
Definition at line 5625 of file interface_templates.cc.
Referenced by uiTemplateColorPicker().
|
static |
Definition at line 2570 of file interface_templates.cc.
References BKE_constraint_typeinfo_from_type(), BKE_ST_MAXNAME, BLI_string_join, CONSTRAINT_BONE_TYPE_PANEL_PREFIX, bConstraintTypeInfo::struct_name, and bConstraint::type.
Referenced by uiTemplateConstraints().
|
static |
Definition at line 7319 of file interface_templates.cc.
References UI_ITEM_R_NO_BG, uiItemR(), and uiLayoutRow().
Referenced by UI_UL_cache_file_layers().
|
static |
Definition at line 3756 of file interface_templates.cc.
References BKE_colorband_element_add(), ColorBand::cur, ColorBand::data, ED_undo_push(), CBData::pos, pos, rna_update_cb(), and ColorBand::tot.
Referenced by colorband_buttons_layout().
|
static |
Definition at line 3786 of file interface_templates.cc.
References BKE_colorband_element_remove(), BLI_rctf_size_x(), but_func_argN_copy(), but_func_argN_free(), uiBlock::buttons, COLBAND_BLEND_HSL, COLBAND_BLEND_HSV, ColorBand::color_mode, colorband_add(), colorband_tools_fn(), colorband_update_cb(), ColorBand::cur, ColorBand::data, PointerRNA::data, ELEM, IFACE_, LISTBASE_FOREACH_BACKWARD, PointerRNA::owner_id, RNAUpdateCb::prop, ptr, RNAUpdateCb::ptr, RNA_pointer_create(), RNA_property_identifier(), rna_update_cb(), uiBut::rnapoin, uiBut::rnaprop, 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_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 3620 of file interface_templates.cc.
References ColorBand::data, ED_undo_push(), CBData::pos, pos, and ColorBand::tot.
Referenced by colorband_tools_fn().
Definition at line 3602 of file interface_templates.cc.
References ColorBand::cur, ColorBand::data, ED_undo_push(), MAXCOLORBAND, CBData::pos, and ColorBand::tot.
Referenced by colorband_tools_fn().
Definition at line 3634 of file interface_templates.cc.
References BKE_colorband_init(), colorband_distribute(), colorband_flip(), CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), IFACE_, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_layout(), UI_block_layout_set_current(), UI_BTYPE_BUT_MENU, UI_but_func_set(), 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(), uiItemS(), and uiLayoutSetContextPointer().
Referenced by colorband_buttons_layout().
|
static |
Definition at line 3775 of file interface_templates.cc.
References BKE_colorband_update_sort(), ColorBand::cur, ColorBand::data, PointerRNA::data, and uiBut::rnapoin.
Referenced by colorband_buttons_layout().
Definition at line 7136 of file interface_templates.cc.
References 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 3191 of file interface_templates.cc.
References blender::ed::object::constraint_active_set().
Referenced by draw_constraint_header().
Definition at line 3197 of file interface_templates.cc.
References BLI_listbase_count(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, blender::ed::object::constraint_list_from_constraint(), blender::ed::object::context_active_object(), CTX_IFACE_, Object::id, IFACE_, bConstraint::next, bConstraint::prev, ptr, RNA_int_set(), RNA_pointer_create(), UI_ITEM_NONE, uiItemFullO(), uiItemO(), uiItemS(), uiLayoutColumn(), uiLayoutSetContextPointer(), uiLayoutSetEnabled(), uiLayoutSetOperatorContext(), uiLayoutSetUnitsX(), and WM_OP_INVOKE_DEFAULT.
Referenced by draw_constraint_header().
|
static |
Check if the panel's ID starts with 'BONE', meaning it is a bone constraint.
Definition at line 2504 of file interface_templates.cc.
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 2513 of file interface_templates.cc.
References 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().
|
static |
Definition at line 5207 of file interface_templates.cc.
References BLI_rctf_size_x(), and CURVE_ZOOM_MAX.
Referenced by curve_profile_zoom_in(), and CurveProfile_buttons_layout().
|
static |
Definition at line 5213 of file interface_templates.cc.
References BLI_rctf_size_x().
Referenced by curve_profile_zoom_out(), and CurveProfile_buttons_layout().
Definition at line 5104 of file interface_templates.cc.
References BKE_curveprofile_reset(), BKE_curveprofile_update(), CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), IFACE_, PROF_PRESET_CORNICE, PROF_PRESET_CROWN, PROF_PRESET_LINE, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_UPDATE_NONE, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_BTYPE_BUT_MENU, UI_but_func_set(), UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by CurveProfile_buttons_layout().
Definition at line 5150 of file interface_templates.cc.
References BKE_curveprofile_reset(), BKE_curveprofile_reset_view(), BKE_curveprofile_update(), CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), IFACE_, PROF_UPDATE_NONE, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_BTYPE_BUT_MENU, UI_but_func_set(), UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5218 of file interface_templates.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), CTX_wm_region(), curve_profile_can_zoom_in(), and ED_region_tag_redraw().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 5232 of file interface_templates.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), CTX_wm_region(), curve_profile_can_zoom_out(), ED_region_tag_redraw(), and PROF_USE_CLIP.
Referenced by CurveProfile_buttons_layout().
Definition at line 4604 of file interface_templates.cc.
References CURVEMAP_SLOPE_POSITIVE, and curvemap_tools_func().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4610 of file interface_templates.cc.
References CURVEMAP_SLOPE_POSITIVE, and curvemap_tools_func().
Referenced by curvemap_buttons_layout().
|
static |
| labeltype | Used for defining which curve-channels to show. |
Definition at line 4626 of file interface_templates.cc.
References BKE_curvemap_handle_set(), BKE_curvemap_remove(), BKE_curvemap_reset(), BKE_curvemapping_changed(), BKE_curvemapping_set_black_white(), CurveMapping::black, BLT_I18NCONTEXT_COLOR, bounds(), but_func_argN_copy(), but_func_argN_free(), CurveMapping::clipr, CurveMapping::cm, CM_TOT, CTX_IFACE_, CUMA_DO_CLIP, CUMA_HANDLE_AUTO_ANIM, CUMA_HANDLE_VECTOR, CUMA_SELECT, CUMA_USE_WRAPPING, CurveMapping::cur, CurveMap::curve, CURVE_PRESET_LINE, CURVE_TONE_FILMLIKE, curvemap_brush_tools_func(), curvemap_brush_tools_negslope_func(), curvemap_buttons_redraw(), curvemap_buttons_zoom_in(), curvemap_buttons_zoom_out(), curvemap_can_zoom_in(), curvemap_can_zoom_out(), curvemap_clipping_func(), CURVEMAP_SLOPE_POSITIVE, curvemap_tools_negslope_func(), curvemap_tools_posslope_func(), PointerRNA::data, uiBut::drawflag, ELEM, CurveMapping::flag, CurveMapPoint::flag, uiBut::flag, uiButCurveMapping::gradient_type, HD_AUTO, HD_AUTO_ANIM, HD_VECT, IFACE_, max_ii(), CurveMapping::preset, ptr, rna_update_cb(), SELECT, TIP_, CurveMapping::tone, CurveMap::totpoint, UI_block_emboss_set(), UI_block_funcN_set(), UI_BTYPE_BUT, UI_BTYPE_CURVE, UI_BTYPE_NUM, UI_BTYPE_ROW, UI_but_disable(), 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_GRAD_H, UI_GRAD_NONE, 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(), CurveMapping::white, CurveMapPoint::x, and CurveMapPoint::y.
Referenced by uiTemplateCurveMapping().
|
static |
Definition at line 4616 of file interface_templates.cc.
References CTX_wm_region(), and ED_region_tag_redraw().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4337 of file interface_templates.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), CTX_wm_region(), CurveMapping::curr, curvemap_can_zoom_in(), ED_region_tag_redraw(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4351 of file interface_templates.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), CurveMapping::clipr, CTX_wm_region(), CUMA_DO_CLIP, CurveMapping::curr, curvemap_can_zoom_out(), ED_region_tag_redraw(), CurveMapping::flag, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4332 of file interface_templates.cc.
References BLI_rctf_size_x(), CurveMapping::clipr, CurveMapping::curr, and CURVE_ZOOM_MAX.
Referenced by curvemap_buttons_layout(), and curvemap_buttons_zoom_in().
|
static |
Definition at line 4327 of file interface_templates.cc.
References BLI_rctf_size_x(), CurveMapping::clipr, and CurveMapping::curr.
Referenced by curvemap_buttons_layout(), and curvemap_buttons_zoom_out().
Definition at line 4395 of file interface_templates.cc.
References BKE_curvemapping_changed(), CurveMapping::clipr, CUMA_DO_CLIP, CurveMapping::flag, IFACE_, 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(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4484 of file interface_templates.cc.
References BKE_curvemap_reset(), BKE_curvemapping_changed(), BKE_curvemapping_reset_view(), CurveMapping::clipr, CurveMapping::cm, CTX_wm_region(), CUMA_EXTEND_EXTRAPOLATE, CUMA_USE_WRAPPING, CurveMapping::cur, PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), CurveMapping::flag, IFACE_, CurveMapping::preset, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_BTYPE_BUT_MENU, UI_but_func_set(), UI_DIR_DOWN, UI_EMBOSS, UI_UNIT_X, UI_UNIT_Y, 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 4598 of file interface_templates.cc.
References CURVEMAP_SLOPE_NEGATIVE, and curvemap_tools_func().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 4592 of file interface_templates.cc.
References CURVEMAP_SLOPE_POSITIVE, and curvemap_tools_func().
Referenced by curvemap_buttons_layout().
|
static |
Definition at line 5274 of file interface_templates.cc.
References BKE_curveprofile_remove_by_flag(), BKE_curveprofile_reset(), BKE_curveprofile_reverse(), BKE_curveprofile_update(), bounds(), but_func_argN_copy(), but_func_argN_free(), curve_profile_can_zoom_in(), curve_profile_can_zoom_out(), curve_profile_presets_fn(), curve_profile_tools_fn(), curve_profile_zoom_in(), curve_profile_zoom_out(), PointerRNA::data, ELEM, uiBut::flag, IFACE_, max_ii(), min_ii(), PointerRNA::owner_id, PROF_DIRTY_PRESET, PROF_H1_SELECT, PROF_H2_SELECT, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_SELECT, PROF_UPDATE_CLIP, PROF_UPDATE_NONE, PROF_UPDATE_REMOVE_DOUBLES, PROF_USE_CLIP, ptr, RNA_NO_INDEX, RNA_pointer_create(), RNA_struct_find_property(), rna_update_cb(), SELECT, TIP_, UI_block_emboss_set(), UI_block_funcN_set(), UI_BTYPE_BUT, UI_BTYPE_CURVEPROFILE, UI_BTYPE_NUM, UI_but_disable(), 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_NONE, 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(), and CurveProfilePoint::x.
Referenced by uiTemplateCurveProfile().
Definition at line 3342 of file interface_templates.cc.
References B_MATPRV, NC_MATERIAL, ND_SHADING_PREVIEW, and WM_event_add_notifier().
Referenced by uiTemplatePreview().
Definition at line 6081 of file interface_templates.cc.
References B_STOPANIM, B_STOPCAST, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, CTX_data_scene(), CTX_wm_manager(), CTX_wm_screen(), G, WM_jobs_stop_all_from_owner(), WM_OP_INVOKE_SCREEN, and WM_operator_name_call().
Referenced by uiTemplateRunningJobs().
|
static |
Definition at line 3263 of file interface_templates.cc.
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_ITEM_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().
|
static |
Definition at line 3058 of file interface_templates.cc.
References label, UI_EMBOSS_NONE, uiItemIntO(), uiItemL(), uiItemPopoverPanel(), uiLayoutRow(), and uiLayoutSetEmboss().
Referenced by uiTemplateCollectionExporters().
|
static |
Definition at line 3070 of file interface_templates.cc.
References col, wmOperator::ptr, RNA_NO_INDEX, RNA_struct_find_property(), template_operator_property_buts_draw_single(), UI_BUT_LABEL_ALIGN_NONE, UI_ITEM_NONE, UI_TEMPLATE_OP_PROPS_HIDE_PRESETS, uiItemFullR(), uiLayoutColumn(), uiLayoutSetPropDecorate(), and uiLayoutSetPropSep().
Referenced by uiTemplateCollectionExporters().
|
static |
Definition at line 3089 of file interface_templates.cc.
References UI_EMBOSS_NONE, UI_ITEM_NONE, uiItemR(), uiLayoutRow(), and uiLayoutSetEmboss().
Referenced by uiTemplateCollectionExporters().
Get the expand flag from the active constraint to use for the panel.
Definition at line 2534 of file interface_templates.cc.
References PointerRNA::data, bConstraint::ui_expand_flag, and UI_panel_custom_data_get().
Referenced by uiTemplateConstraints().
|
static |
Definition at line 5972 of file interface_templates.cc.
References 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 401 of file interface_templates.cc.
References BKE_id_full_name_ui_prefix_get(), 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 374 of file interface_templates.cc.
References flag, PointerRNA::owner_id, TemplateID::prop, PROP_ID_SELF_CHECK, PROP_POINTER, ptr, TemplateID::ptr, 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 433 of file interface_templates.cc.
References blender::string_search::StringSearch< T >::add(), flag, id_search_add(), id_search_allows_id(), TemplateID::idlb, LISTBASE_FOREACH, TemplateID::prop, blender::string_search::StringSearch< T >::query(), RNA_property_flag(), and str.
Referenced by id_search_menu().
|
static |
A version of 'id_search_cb' that lists scene objects.
Definition at line 498 of file interface_templates.cc.
References BKE_main_id_flag_listbase(), CTX_data_scene(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, GS, ID_SCE, id_search_cb_tagged(), ID_TAG_DOIT, TemplateID::idlb, ID::name, PointerRNA::owner_id, TemplateID::ptr, and str.
Referenced by id_search_menu().
|
static |
Use id tags for filtering.
Definition at line 464 of file interface_templates.cc.
References blender::string_search::StringSearch< T >::add(), blender::string_search::All, flag, id_search_add(), id_search_allows_id(), ID_TAG_DOIT, TemplateID::idlb, LISTBASE_FOREACH, TemplateID::prop, RNA_property_flag(), and str.
Referenced by id_search_cb_objects_from_scene().
Definition at line 533 of file interface_templates.cc.
References 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 6944 of file interface_templates.cc.
References wmKeyMapItem::alt, wmKeyMapItem::ctrl, wmKeyMapItem::oskey, and wmKeyMapItem::shift.
Referenced by uiTemplateStatusBarModalItem().
|
static |
Definition at line 6927 of file interface_templates.cc.
References ListBase::first, wmKeyMap::items, and EnumPropertyItem::value.
Referenced by uiTemplateStatusBarModalItem().
|
static |
Definition at line 6835 of file interface_templates.cc.
References WM_keyconfig_update_tag().
Referenced by uiTemplateKeymapItemProperties().
|
static |
Definition at line 3041 of file interface_templates.cc.
References PointerRNA::data, wmOperator::idname, wmOperatorType::idname, ot, wmOperator::properties, wmOperator::ptr, wmOperatorType::rna_ext, ExtensionRNA::srna, STRNCPY, and wmOperator::type.
Referenced by uiTemplateCollectionExporters().
|
static |
Definition at line 2431 of file interface_templates.cc.
References BKE_modifier_type_panel_id(), and ModifierData::type.
Referenced by uiTemplateModifiers().
|
static |
Function with void * argument for uiListPanelIDFromDataFunc.
Definition at line 2558 of file interface_templates.cc.
References BKE_constraint_typeinfo_from_type(), BKE_ST_MAXNAME, BLI_string_join, CONSTRAINT_TYPE_PANEL_PREFIX, bConstraintTypeInfo::struct_name, and bConstraint::type.
Referenced by uiTemplateConstraints().
|
static |
Definition at line 6116 of file interface_templates.cc.
References BLI_time_now_seconds(), BLI_timecode_string_from_time_simple(), double(), ProgressTooltip_Store::owner, ProgressTooltip_Store::wm, WM_jobs_progress(), and WM_jobs_starttime().
Referenced by uiTemplateRunningJobs().
|
static |
Definition at line 3588 of file interface_templates.cc.
References RNAUpdateCb::prop, RNAUpdateCb::ptr, and RNA_property_update().
Referenced by colorband_add(), colorband_buttons_layout(), colorband_tools_fn(), curve_profile_presets_fn(), curve_profile_tools_fn(), curvemap_buttons_layout(), curvemap_tools_func(), CurveProfile_buttons_layout(), and rna_update_cb().
|
static |
Definition at line 3596 of file interface_templates.cc.
References rna_update_cb().
|
static |
Save the expand flag for the panel and sub-panels to the constraint.
Definition at line 2545 of file interface_templates.cc.
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 2685 of file interface_templates.cc.
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 162 of file interface_templates.cc.
References col, CTX_wm_region(), PointerRNA::data, GS, ID_IS_EDITABLE, ID_SCR, PointerRNA::owner_id, ptr, RGN_TYPE_TOOL_HEADER, RNA_property_pointer_get(), RNA_property_pointer_type(), RNA_struct_is_ID(), RNA_struct_ui_icon(), 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(), and uiLayoutRow().
Referenced by template_ID(), and template_search_add_button_searchmenu().
|
static |
Definition at line 260 of file interface_templates.cc.
References CTX_wm_window(), uiBut::flag, int, 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_search_preview_grid_size_set(), 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 1319 of file interface_templates.cc.
References BKE_id_copy_is_allowed(), BKE_idtype_idcode_is_localizable, BKE_packedfile_id_check(), but_func_argN_copy(), but_func_argN_free(), CTX_data_main(), PointerRNA::data, ED_id_rename(), ELEM, flag, uiBut::flag, GS, ID_GR, ID_IS_ASSET, ID_IS_EDITABLE, ID_IS_LINKED, ID_IS_OVERRIDE_LIBRARY, ID_OB, ID_REAL_USERS, ID_SCE, ID_SCR, id_search_menu(), ID_TAG_INDIRECT, ID_TE, ID_WS, TemplateID::idcode, IFACE_, NA_RENAME, ID::name, NC_ID, 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(), SNPRINTF_RLEN, 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_, 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_disable(), UI_but_flag_enable(), UI_but_func_rename_full_set(), UI_but_funcN_set(), UI_but_operator_ptr_ensure(), UI_BUT_REDALERT, UI_BUT_UNDO, UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, 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(), WM_main_add_notifier(), WM_OP_INVOKE_DEFAULT, and WM_OP_INVOKE_REGION_WIN.
Referenced by ui_template_id(), and uiTemplateAction().
|
static |
Definition at line 1094 of file interface_templates.cc.
References ID_AC, ID_AR, ID_BR, ID_CA, ID_CF, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, ID_GP, 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_SO, ID_SPK, ID_TE, ID_TXT, ID_VF, ID_VO, ID_WM, ID_WO, ID_WS, N_, and RNA_type_to_ID_code().
Referenced by template_ID().
|
static |
Definition at line 967 of file interface_templates.cc.
References BKE_id_newptr_and_tag_clear(), BKE_lib_id_make_local(), BKE_lib_override_library_make_local(), CTX_data_main(), CTX_data_scene(), CTX_wm_window(), PointerRNA::data, DEG_relations_tag_update(), ED_undo_push(), GS, id_fake_user_clear(), ID_FLAG_FAKEUSER, ID_IS_OVERRIDE_LIBRARY, ID_OB, id_single_user(), id_us_clear_real(), id_us_min(), id_us_plus(), KM_SHIFT, LIB_ID_MAKELOCAL_ASSET_DATA_CLEAR, NC_SPACE, NC_WINDOW, ND_SPACE_OUTLINER, blender::ed::object::object_single_user_make(), POINTER_AS_INT, TemplateID::prop, TemplateID::ptr, RNA_property_pointer_get(), RNA_property_pointer_set(), RNA_property_update(), RNA_warning, 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, UI_ID_RENAME, 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 1216 of file interface_templates.cc.
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_MASK, BLT_I18NCONTEXT_ID_MATERIAL, BLT_I18NCONTEXT_ID_MESH, BLT_I18NCONTEXT_ID_METABALL, BLT_I18NCONTEXT_ID_NODETREE, BLT_I18NCONTEXT_ID_OBJECT, BLT_I18NCONTEXT_ID_PAINTCURVE, BLT_I18NCONTEXT_ID_PALETTE, BLT_I18NCONTEXT_ID_PARTICLESETTINGS, BLT_I18NCONTEXT_ID_POINTCLOUD, BLT_I18NCONTEXT_ID_SCENE, BLT_I18NCONTEXT_ID_SCREEN, 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, but_func_argN_copy(), but_func_argN_free(), CTX_IFACE_, ID_IS_EDITABLE, PointerRNA::owner_id, POINTER_FROM_INT, TemplateID::ptr, template_id_cb(), template_id_context, UI_BTYPE_BUT, UI_BTYPE_TAB, UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_funcN_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, 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 589 of file interface_templates.cc.
References ID_IS_LINKED, ID_IS_OVERRIDABLE_LIBRARY, ID_IS_OVERRIDE_LIBRARY_REAL, and template_id_liboverride_hierarchy_collection_root_find_recursive().
Referenced by template_id_liboverride_hierarchy_collection_root_find_recursive(), and ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 616 of file interface_templates.cc.
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_TAG_DOIT, ID::lib, ID::name, Node::name, CollectionChild::next, Collection_Runtime::parents, Collection::runtime, ID::tag, and template_id_liboverride_hierarchy_collections_tag_recursive().
Referenced by template_id_liboverride_hierarchy_collections_tag_recursive(), and ui_template_id_liboverride_hierarchy_make().
|
static |
Definition at line 938 of file interface_templates.cc.
References PointerRNA::data, ID_IS_LINKED, PointerRNA::owner_id, TemplateID::ptr, RNA_id_pointer_create(), RPT_ERROR, ui_template_id_liboverride_hierarchy_make(), and WM_reportf().
Referenced by template_id_cb().
|
static |
Definition at line 525 of file interface_templates.cc.
References UI_tooltip_create_from_search_item_generic().
Referenced by id_search_menu().
|
static |
Definition at line 362 of file interface_templates.cc.
References 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 1725 of file interface_templates.cc.
References BKE_id_ordered_list(), but_func_argN_copy(), but_func_argN_free(), CTX_wm_region(), uiBut::custom_data, PointerRNA::data, flag, TemplateID::idlb, uiButTab::menu, uiBlock::name, TemplateID::prop, TemplateID::ptr, RNA_property_editable(), RNA_property_pointer_get(), template_id_def_new_but(), template_ID_set_property_exec_fn(), 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 1185 of file interface_templates.cc.
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 6842 of file interface_templates.cc.
References PointerRNA::data, 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, template_keymap_item_properties(), PointerRNA::type, UI_block_emboss_set(), UI_BTYPE_BUT, UI_EMBOSS, UI_EMBOSS_NONE, UI_ITEM_NONE, UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), uiItemFullR(), uiItemL(), uiItemS(), uiLayoutBox(), uiLayoutColumnFlow(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), and WM_OP_EXEC_DEFAULT.
Referenced by template_keymap_item_properties(), and uiTemplateKeymapItemProperties().
|
static |
Definition at line 2914 of file interface_templates.cc.
References wmOperatorType::flag, LISTBASE_FOREACH, wmOperator::macro, OPTYPE_MACRO, template_operator_property_buts_draw_recursive(), template_operator_property_buts_draw_single(), wmOperator::type, and UI_PROP_BUTS_ANY_FAILED_CHECK.
Referenced by template_operator_property_buts_draw_recursive(), uiTemplateOperatorPropertyButs(), and uiTemplateOperatorRedoProperties().
|
static |
Definition at line 2771 of file interface_templates.cc.
References uiBlock::buttons, C, uiTemplateOperatorPropertyPollParam::C, col, blender::bke::idprop::create_group(), CTX_wm_manager(), CTX_wm_window(), ELEM, uiBlock::flag, wmOperator::flag, wmOperatorType::flag, wmWindowManager::id, wmOperatorType::idname, IFACE_, wmOperator::layout, IDProperty::len, LISTBASE_FOREACH, N_, uiBlock::oldblock, OPTYPE_PRESET, ot, wmOperatorType::poll_property, wmOperatorType::prop, wmOperator::properties, ptr, wmOperator::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_block_set_active_operator(), UI_BTYPE_BUT, UI_BTYPE_NUM, UI_BTYPE_TEXT, UI_but_flag_disable(), UI_but_focus_on_enter_event(), UI_but_func_set(), UI_BUT_UNDO, UI_ITEM_NONE, ui_layout_operator_buts_poll_property(), UI_PROP_BUTS_NONE_ADDED, UI_TEMPLATE_OP_PROPS_COMPACT, UI_TEMPLATE_OP_PROPS_HIDE_PRESETS, UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT, UI_TEMPLATE_OP_PROPS_SHOW_EMPTY, UI_TEMPLATE_OP_PROPS_SHOW_TITLE, UI_UNIT_X, UI_UNIT_Y, uiDefAutoButsRNA(), uiDefIconTextBut(), uiItemFullO_ptr(), uiItemL(), uiItemM(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), WM_OP_INVOKE_DEFAULT, WM_operator_repeat_check(), WM_operatortype_find(), and WM_operatortype_name().
Referenced by draw_export_properties(), and template_operator_property_buts_draw_recursive().
|
static |
Definition at line 2198 of file interface_templates.cc.
References PointerRNA::data, RNA_struct_find_property(), RNA_struct_name_property(), template_search_textbut_height(), template_search_textbut_width(), and uiDefAutoButR().
Referenced by template_search_buttons().
|
static |
Definition at line 2224 of file interface_templates.cc.
References 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 2173 of file interface_templates.cc.
References but_func_argN_copy(), but_func_argN_free(), 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 2242 of file interface_templates.cc.
References RNA_NO_INDEX, 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(), PointerRNA::type, UI_block_align_begin(), UI_block_align_end(), uiItemDecoratorR(), uiItemL_respect_property_split(), uiLayoutGetBlock(), uiLayoutRow(), WM_OP_INVOKE_DEFAULT, and WM_OP_INVOKE_REGION_WIN.
Referenced by uiTemplateSearch(), and uiTemplateSearchPreview().
|
static |
Definition at line 2141 of file interface_templates.cc.
References RNA_pointer_create(), RNA_property_pointer_set(), RNA_property_pointer_type(), RNA_property_update(), TemplateSearch::search_data, uiRNACollectionSearch::target_prop, and uiRNACollectionSearch::target_ptr.
Referenced by template_search_menu().
|
static |
Definition at line 2284 of file interface_templates.cc.
References PointerRNA::data, 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().
|
static |
Definition at line 2152 of file interface_templates.cc.
References PointerRNA::data, 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 2331 of file interface_templates.cc.
References 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 154 of file interface_templates.cc.
References TEMPLATE_SEARCH_TEXTBUT_HEIGHT.
Referenced by template_ID(), and template_search_add_button_name().
|
static |
Definition at line 132 of file interface_templates.cc.
References BLI_assert, 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 1715 of file interface_templates.cc.
References uiBut::custom_data, uiBut::type, UI_BTYPE_TAB, and UI_context_active_but_get().
Referenced by workspace_context_get().
| void UI_context_active_but_prop_get_templateID | ( | const bContext * | C, |
| PointerRNA * | r_ptr, | ||
| PropertyRNA ** | r_prop ) |
For new/open operators.
This is for browsing and editing the ID-blocks used.
Definition at line 573 of file interface_templates.cc.
References uiBut::func_argN, uiBut::funcN, TemplateID::prop, TemplateID::ptr, template_id_cb(), and UI_context_active_but_get().
Referenced by action_new_exec(), action_new_poll(), cachefile_init(), ED_actedit_animdata_from_context(), 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(), blender::ed::object::object_unlink_data_exec(), open_init(), override_idtemplate_ids_get(), sound_open_init(), text_new_exec(), and text_open_init().
Definition at line 4030 of file interface_templates.cc.
References free(), EnumPropertyItem::icon, IconViewMenuArgs::icon_scale, EnumPropertyItem::identifier, MEM_freeN(), 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_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, and w().
Referenced by uiTemplateIconView().
|
static |
Definition at line 2756 of file interface_templates.cc.
References OP_PROP_TAG_ADVANCED, params, RNA_property_tags(), and UI_TEMPLATE_OP_PROPS_HIDE_ADVANCED.
Referenced by template_operator_property_buts_draw_single(), and ui_layout_operator_properties_only_booleans().
|
static |
Definition at line 2939 of file interface_templates.cc.
References C, uiTemplateOperatorPropertyPollParam::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 ui_layout_operator_properties_only_booleans().
Referenced by ui_layout_operator_properties_only_booleans(), and uiTemplateOperatorPropertyButs().
|
static |
Definition at line 1795 of file interface_templates.cc.
References CTX_data_main(), filter(), TemplateID::filter, flag, TemplateID::idcode, TemplateID::idlb, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, ptr, TemplateID::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(), 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 658 of file interface_templates.cc.
References BKE_collection_child_add(), BKE_collection_has_collection(), BKE_collection_has_object_recursive(), BKE_collection_object_add(), BKE_lib_override_library_create(), BKE_lib_override_library_get(), BKE_lib_override_library_id_reset(), BKE_scene_collections_object_remove(), BKE_scene_has_object(), Main::collections, CTX_data_active_object(), CTX_data_collection(), CTX_data_scene(), CTX_data_view_layer(), IDOverrideLibrary::flag, GS, IDOverrideLibrary::hierarchy_root, Collection::id, Object::id, ID_AR, ID_CA, ID_CU_LEGACY, ID_CV, ID_GD_LEGACY, 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_TAG_DOIT, ID_TE, ID_VO, ID_WO, Object::instance_collection, ID::lib, LIBOVERRIDE_FLAG_SYSTEM_DEFINED, 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, ID::override_library, RPT_ERROR, RPT_WARNING, ID::tag, template_id_liboverride_hierarchy_collection_root_find_recursive(), template_id_liboverride_hierarchy_collections_tag_recursive(), WM_event_add_notifier(), and WM_reportf().
Referenced by override_idtemplate_make_exec(), and template_id_liboverride_hierarchy_make().
Definition at line 5818 of file interface_templates.cc.
References IFACE_, uiItemEnumO_value(), uiItemL(), and uiLayoutRow().
Referenced by uiTemplatePalette().
|
static |
Definition at line 6594 of file interface_templates.cc.
References BKE_blender_version_blendfile_string_from_values(), CTX_data_main(), Main::has_forward_compatibility_issues, Main::is_asset_edit_file, RPT_, and Main::versionfile.
Referenced by uiTemplateStatusInfo().
| uiListType * UI_UL_cache_file_layers | ( | ) |
Definition at line 7335 of file interface_templates.cc.
References cache_file_layer_item(), uiListType::draw_item, uiListType::idname, MEM_callocN, and STRNCPY.
Referenced by ED_uilisttypes_ui().
| void uiTemplateAction | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| ID * | id, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| const char * | text ) |
Action selector.
This is a specialization of uiTemplateID, hard-coded to assign Actions to the given ID. Such a specialization is necessary, as the RNA property (id.animation_data.action) does not exist when the ID's adt pointer is nullptr. In that case uiTemplateID will not be able to find the RNA type of that property, which in turn it needs to determine the type of IDs to show.
Definition at line 1902 of file interface_templates.cc.
References BKE_animdata_from_id(), BLI_assert, CTX_data_main(), TemplateID::filter, flag, ID_AC, id_can_have_animdata(), TemplateID::idcode, TemplateID::idlb, TemplateID::prop, PROP_POINTER, TemplateID::prv_cols, TemplateID::prv_rows, TemplateID::ptr, RNA_pointer_create(), RNA_property_type(), RNA_struct_type_find_property(), RNA_warning, TemplateID::scale, template_ID(), UI_ID_ADD_NEW, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, UI_TEMPLATE_ID_FILTER_ALL, uiLayoutRow(), and which_libbase().
| 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 2068 of file interface_templates.cc.
References IFACE_, PROP_ENUM, PROP_POINTER, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, UI_ITEM_NONE, 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 ) |
Draw the main CacheFile properties and operators (file path, scale, etc.), that is those which do not have their own dedicated template functions.
Definition at line 7406 of file interface_templates.cc.
References BCONTEXT_CONSTRAINT, CTX_wm_space_properties(), PointerRNA::data, IFACE_, SpaceProperties::mainb, ptr, UI_ITEM_NONE, uiItemO(), uiItemR(), uiLayoutRow(), uiLayoutSetContextPointer(), uiLayoutSetPropSep(), uiTemplateCacheFilePointer(), and uiTemplateID().
Referenced by panel_draw().
| void uiTemplateCacheFileLayers | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | fileptr ) |
Draw the override layers related properties of the CacheFile.
Definition at line 7345 of file interface_templates.cc.
References BLI_listbase_count(), col, PointerRNA::data, RNA_pointer_is_null(), UI_TEMPLATE_LIST_FLAG_NONE, uiItemO(), uiItemS_ex(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetContextPointer(), UILST_LAYOUT_DEFAULT, and uiTemplateList().
Referenced by override_layers_panel_draw().
| bool uiTemplateCacheFilePointer | ( | PointerRNA * | ptr, |
| const char * | propname, | ||
| 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 7384 of file interface_templates.cc.
References printf, 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 ) |
Draw the render procedural related properties of the CacheFile.
Definition at line 7233 of file interface_templates.cc.
References BKE_scene_uses_cycles(), BKE_scene_uses_cycles_experimental_features(), CACHEFILE_TYPE_ALEMBIC, CTX_data_depsgraph_pointer(), CTX_data_engine_type(), CTX_data_scene(), PointerRNA::data, DEG_get_evaluated_id(), CacheFile::id, RE_engine_supports_alembic_procedural(), RNA_boolean_get(), RNA_pointer_is_null(), RPT_, CacheFile::type, UI_ITEM_NONE, uiItemL(), uiItemR(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetEnabled().
Referenced by render_procedural_panel_draw().
| void uiTemplateCacheFileTimeSettings | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the time related properties of the CacheFile.
Definition at line 7291 of file interface_templates.cc.
References IFACE_, RNA_boolean_get(), RNA_pointer_is_null(), UI_ITEM_NONE, uiItemDecoratorR(), uiItemR(), uiLayoutRow(), uiLayoutRowWithHeading(), uiLayoutSetActive(), uiLayoutSetContextPointer(), and uiLayoutSetPropDecorate().
Referenced by time_panel_draw().
| void uiTemplateCacheFileVelocity | ( | uiLayout * | layout, |
| PointerRNA * | fileptr ) |
Draw the velocity related properties of the CacheFile.
Definition at line 7220 of file interface_templates.cc.
References RNA_pointer_is_null(), UI_ITEM_NONE, uiItemR(), and uiLayoutSetContextPointer().
Referenced by velocity_panel_draw().
Definition at line 3105 of file interface_templates.cc.
References BLI_findlink(), BLI_listbase_is_empty(), PanelLayout::body, col, CTX_data_collection(), draw_export_controls(), draw_export_properties(), draw_exporter_item(), uiListType::draw_item, blender::bke::FileHandlerType::export_operator, blender::bke::FileHandlerType::get_default_filename(), PanelLayout::header, uiListType::idname, IFACE_, blender::bke::FileHandlerType::label, label, minimal_operator_create(), ot, RNA_pointer_create(), wmOperatorType::srna, STRNCPY, UI_block_set_active_operator(), UI_TEMPLATE_LIST_FLAG_NONE, uiItemIntO(), uiItemM(), uiItemO(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutPanelProp(), uiLayoutRow(), uiLayoutSetEnabled(), UILST_LAYOUT_DEFAULT, uiTemplateList(), WM_operatortype_find(), and WM_uilisttype_add().
| void uiTemplateColormanagedViewSettings | ( | uiLayout * | layout, |
| bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 7084 of file interface_templates.cc.
References col, COLORMANAGE_VIEW_USE_CURVES, COLORMANAGE_VIEW_USE_WHITE_BALANCE, PointerRNA::data, ColorManagedViewSettings::flag, IFACE_, printf, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, UI_ITEM_NONE, uiItemR(), uiLayoutColumn(), and uiTemplateCurveMapping().
Referenced by uiTemplateImageSettings().
| void uiTemplateColorPicker | ( | uiLayout * | layout, |
| 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 5627 of file interface_templates.cc.
References col, uiBut::custom_data, uiButHSVCube::gradient_type, len_v3(), lock, ColorPicker::luminosity_lock_value, 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_GRAD_HS, UI_GRAD_HV, UI_GRAD_L_ALT, UI_GRAD_SV, UI_GRAD_V_ALT, UI_SCALE_FAC, 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::ed::space_node::node_buts_rgb(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance_ex(), and blender::nodes::node_fn_input_color_cc::node_layout().
| void uiTemplateColorRamp | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| bool | expand ) |
Definition at line 3962 of file interface_templates.cc.
References colorband_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, 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 blender::panel_draw().
| void uiTemplateColorspaceSettings | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 7068 of file interface_templates.cc.
References IFACE_, printf, ptr, RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_identifier(), PointerRNA::type, UI_ITEM_NONE, 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 7161 of file interface_templates.cc.
References but_func_argN_copy(), but_func_argN_free(), component_menu(), ComponentMenuArgs::propname, ComponentMenuArgs::ptr, ptr, RNA_struct_find_property(), uiBut::rnaindex, uiBut::rnapoin, uiBut::rnaprop, STRNCPY, 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 3309 of file interface_templates.cc.
References PointerRNA::data, draw_constraint_header(), ERROR_LIBDATA_MESSAGE, GS, Object::id, ID_IS_EDITABLE, ID_OB, ID::name, PointerRNA::owner_id, ptr, 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 2582 of file interface_templates.cc.
References BLI_assert, bone_constraint_panel_id(), CONSTRAINT_IK_TEMP, constraint_reorder(), CONSTRAINT_TYPE_KINEMATIC, CONSTRAINT_TYPE_NULL, constraints, Object::constraints, blender::ed::object::context_active_object(), CTX_wm_region(), PanelType::flag, get_constraint_expand_flag(), PanelType::get_list_data_expand_flag, Object::id, LISTBASE_FOREACH, MAX_NAME, bConstraint::next, Panel::next, object_constraint_panel_id(), PANEL_TYPE_INSTANCED, blender::ed::object::pose_constraint_list(), PanelType::reorder, RNA_pointer_create(), set_constraint_expand_flag(), PanelType::set_list_data_expand_flag, 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 5940 of file interface_templates.cc.
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, uiDefIconButO(), uiLayoutGetBlock(), and WM_OP_INVOKE_DEFAULT.
Referenced by blender::nodes::node_composite_colorbalance_cc::node_composit_buts_colorbalance(), 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 5062 of file interface_templates.cc.
References curvemap_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, 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 blender::modifier::greasepencil::draw_custom_curve_settings(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), falloff_panel_draw(), blender::ed::sculpt_paint::greasepencil::grease_pencil_interpolate_sequence_ui(), blender::ed::sculpt_paint::mask::mask_from_cavity_ui(), modifier_grease_pencil_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_vector_curves_cc::node_buts_curvevec(), blender::ed::space_node::node_buts_time(), blender::ed::space_node::node_composit_buts_huecorrect(), blender::panel_draw(), 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 5588 of file interface_templates.cc.
References CurveProfile_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, 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 | ( | uiLayout * | layout, |
| const char * | text, | ||
| const wmKeyMapItem * | kmi, | ||
| bool | text_fallback ) |
Definition at line 7017 of file interface_templates.cc.
References ARRAY_SIZE, BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_IFACE_, wmKeyMapItem::type, ui_event_icon_offset(), UI_icon_from_keymap_item(), uiItemL(), uiItemS_ex(), and WM_key_event_string().
Referenced by uiTemplateStatusBarModalItem().
| void uiTemplateFileSelectPath | ( | uiLayout * | layout, |
| bContext * | C, | ||
| FileSelectParams * | params ) |
Definition at line 7591 of file interface_templates.cc.
References 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 2007 of file interface_templates.cc.
References ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_PREVIEWS, and ui_template_id().
Definition at line 120 of file interface_templates.cc.
References ED_area_header_switchbutton(), and uiLayoutAbsoluteBlock().
| void uiTemplateHistogram | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 4162 of file interface_templates.cc.
References col, PointerRNA::data, Histogram::height, 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 3998 of file interface_templates.cc.
References 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 4088 of file interface_templates.cc.
References but_func_argN_copy(), but_func_argN_free(), uiBlock::evil_C, IconViewMenuArgs::icon_scale, MEM_freeN(), 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 1872 of file interface_templates.cc.
References ptr, UI_ID_BROWSE, UI_ID_DELETE, UI_ID_RENAME, and ui_template_id().
Referenced by nla_panel_animdata(), blender::ed::space_node::node_buts_texture(), blender::ed::space_node::node_composit_buts_cryptomatte(), blender::nodes::node_composite_defocus_cc::node_composit_buts_defocus(), blender::ed::space_node::node_composit_buts_image(), blender::nodes::node_composite_keyingscreen_cc::node_composit_buts_keyingscreen(), blender::nodes::node_composite_mask_cc::node_composit_buts_mask(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip(), blender::nodes::node_composite_movieclip_cc::node_composit_buts_movieclip_ex(), blender::nodes::node_composite_moviedistortion_cc::node_composit_buts_moviedistortion(), blender::nodes::node_composite_planetrackdeform_cc::node_composit_buts_planetrackdeform(), blender::nodes::node_composite_stabilize2d_cc::node_composit_buts_stabilize2d(), blender::nodes::node_composite_trackpos_cc::node_composit_buts_trackpos(), blender::nodes::node_composite_render_layer_cc::node_composit_buts_viewlayers(), blender::nodes::node_geo_image_cc::node_layout(), blender::nodes::node_geo_string_to_curves_cc::node_layout(), blender::ed::space_node::node_shader_buts_tex_environment(), blender::ed::space_node::node_shader_buts_tex_image(), blender::ed::space_node::node_texture_buts_image(), blender::panel_draw(), panel_draw(), panel_draw(), blender::ed::space_node::std_node_socket_draw(), texture_panel_draw(), texture_panel_draw(), uiTemplateCacheFile(), uiTemplateImage(), uiTemplateMovieClip(), and weightvg_ui_common().
| 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 1947 of file interface_templates.cc.
References 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 1976 of file interface_templates.cc.
References 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 = UI_TEMPLATE_ID_FILTER_ALL ) |
Version of uiTemplateID using tabs.
Definition at line 2035 of file interface_templates.cc.
References ptr, UI_ID_BROWSE, UI_ID_RENAME, and ui_template_id().
Definition at line 6510 of file interface_templates.cc.
References BLI_rcti_isect_pt_v(), BLT_I18NCONTEXT_OPERATOR_DEFAULT, CTX_IFACE_, CTX_wm_screen(), CTX_wm_window(), CTX_wm_workspace(), uiBut::drawflag, wmWindow::eventstate, IFACE_, LISTBASE_FOREACH, WorkSpace::runtime, UI_BUT_ICON_INVERT, ui_event_icon_offset(), UI_LAYOUT_ALIGN_LEFT, uiItemL(), uiItemL_ex(), uiItemS_ex(), uiLayoutRow(), uiLayoutSetAlignment(), uiTemplateInputStatusAzone(), WM_window_cursor_keymap_status_get(), WM_window_modal_keymap_status_draw(), and wmEvent::xy.
|
static |
Definition at line 6482 of file interface_templates.cc.
References AZONE_AREA, AZONE_REGION, IFACE_, AZone::type, uiItemL(), and uiItemS_ex().
Referenced by uiTemplateInputStatus().
| void uiTemplateKeymapItemProperties | ( | uiLayout * | layout, |
| PointerRNA * | ptr ) |
Definition at line 6896 of file interface_templates.cc.
References uiBlock::buttons, PointerRNA::data, keymap_item_modified(), ListBase::last, uiBut::next, 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 5995 of file interface_templates.cc.
References col, handle_layer_buttons(), POINTER_FROM_INT, ptr, RNA_property_array_length(), RNA_property_boolean_get_index(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, uiBut::type, UI_BTYPE_TOGGLE, UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefAutoButR(), uiLayoutColumn(), uiLayoutGetBlock(), and uiLayoutRow().
Definition at line 2437 of file interface_templates.cc.
References BKE_modifier_get_info(), BLI_assert, blender::ed::object::context_active_object(), CTX_wm_region(), PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, modifier_panel_id(), Object::modifiers, Panel::next, ModifierTypeInfo::panel_register, PANEL_TYPE_INSTANCED, RNA_pointer_create(), Panel::type, UI_panel_add_instanced(), UI_panel_custom_data_set(), UI_panel_list_matches_data(), and UI_panels_free_instanced().
Definition at line 7199 of file interface_templates.cc.
References uiBut::col, 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().
Referenced by blender::nodes::node_geo_bake_cc::draw_bake_item(), blender::nodes::node_geo_attribute_capture_cc::draw_item(), blender::nodes::node_geo_foreach_geometry_element_cc::draw_item(), blender::nodes::node_geo_repeat_cc::draw_repeat_state_item(), and blender::nodes::node_geo_simulation_cc::draw_simulation_state_item().
| 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 2983 of file interface_templates.cc.
References CTX_wm_manager(), flag, template_operator_property_buts_draw_recursive(), ui_layout_operator_properties_only_booleans(), and UI_TEMPLATE_OP_PROPS_NO_SPLIT_LAYOUT.
Referenced by file_panel_operator(), wm_block_create_redo(), wm_block_dialog_create(), and wm_operator_ui_create().
Definition at line 2997 of file interface_templates.cc.
References ED_undo_operator_repeat_cb_evt(), IFACE_, 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().
Referenced by hud_panel_operator_redo_draw().
| void uiTemplatePalette | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| bool | colors ) |
Definition at line 5833 of file interface_templates.cc.
References col, Palette::colors, PointerRNA::data, ListBase::first, Palette::id, uiButColor::is_pallete_color, LISTBASE_FOREACH, 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_ensure(), 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 * | root_ptr, | ||
| const char * | text ) |
This is creating/editing RNA-Paths
Definition at line 2400 of file interface_templates.cc.
References PROP_STRING, ptr, RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_warning, PointerRNA::type, UI_ITEM_NONE, uiItemR(), and uiLayoutRow().
Referenced by graph_panel_driverVar__contextProp(), and graph_panel_driverVar__singleProp().
| void uiTemplatePreview | ( | uiLayout * | layout, |
| bContext * | C, | ||
| ID * | id, | ||
| bool | show_buttons, | ||
| ID * | parent, | ||
| MTex * | slot, | ||
| const char * | preview_id ) |
Definition at line 3351 of file interface_templates.cc.
References B_MATPRV, BKE_idtype_idcode_to_name(), BKE_scene_uses_blender_eevee(), BLI_addtail(), BLI_findstring(), BLT_I18NCONTEXT_ID_LIGHT, BLT_I18NCONTEXT_ID_WORLD, col, CTX_data_scene(), CTX_IFACE_, CTX_wm_region(), do_preview_buttons(), ED_preview_draw(), ELEM, GS, uiPreview::height, Material::id, ID_LA, ID_LS, ID_MA, uiPreview::id_session_uid, ID_TE, ID_WO, IFACE_, ID::name, offsetof, uiPreview::preview_id, RNA_pointer_create(), RNA_warning, ID::session_uid, SNPRINTF, STRNCPY, uiPreview::tag, 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_NONE, UI_ITEM_R_EXPAND, UI_PREVIEW_TAG_DIRTY, UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButS(), uiDefIconButS(), uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetKeepAspect(), and uiLayoutSetScaleX().
Definition at line 7555 of file interface_templates.cc.
References BKE_blendfile_extension_check(), BLI_path_basename(), BLI_strdup(), G, LISTBASE_FOREACH_INDEX, MEM_freeN(), ptr, RNA_boolean_set(), RNA_string_set(), UI_but_func_tooltip_custom_set(), ui_but_last(), UI_ITEM_NONE, uiItemFullO(), uiLayoutGetBlock(), uiTemplateRecentFiles_tooltip_func(), and WM_OP_INVOKE_DEFAULT.
Referenced by recent_files_menu_draw().
|
static |
Definition at line 7461 of file interface_templates.cc.
References BKE_main_thumbnail_to_imbuf(), BLI_exists(), BLI_file_attributes(), BLI_filelist_entry_datetime_to_string(), BLI_filelist_entry_size_to_string(), BLI_path_split_dir_part(), BLI_stat(), BLO_thumbnail_from_file(), BLO_version_from_file(), Checkerboard_Themed, FILE_ATTR_OFFLINE, FILE_MAX, FILELIST_DIRENTRY_DATE_LEN, FILELIST_DIRENTRY_TIME_LEN, uiTooltipImage::ibuf, IMB_freeImBuf(), IMB_metadata_get_field(), IMB_thumb_read(), MEM_freeN(), ImBuf::metadata, N_, SNPRINTF, THB_LARGE, UI_SCALE_FAC, UI_TIP_LC_ALERT, UI_TIP_LC_NORMAL, UI_TIP_STYLE_HEADER, UI_TIP_STYLE_NORMAL, UI_TIP_STYLE_SPACER, UI_tooltip_image_field_add(), UI_tooltip_text_field_add(), ImBuf::x, and ImBuf::y.
Referenced by uiTemplateRecentFiles().
Definition at line 6373 of file interface_templates.cc.
References add_v3_uchar_clamped(), BKE_reports_last_displayable(), BLF_width(), uiBut::col, copy_v3_v3_uchar(), copy_v4_v4_uchar(), CTX_wm_reports(), wmTimer::customdata, ReportTimerInfo::flash_progress, int, Report::len, max_ii(), Report::message, min_ii(), 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_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColorType4ubv(), UI_icon_colorid_from_report_type(), UI_icon_from_report_type(), UI_SCALE_FAC, UI_style_get(), UI_text_colorid_from_report_type(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefButO(), uiDefIconButO(), uiFontStyle::uifont_id, uiLayoutAbsolute(), uiLayoutGetBlock(), uiStyle::widget, ReportTimerInfo::widthfac, and WM_OP_INVOKE_REGION_WIN.
Definition at line 6142 of file interface_templates.cc.
References B_STOPANIM, B_STOPCLIP, B_STOPCOMPO, B_STOPFILE, B_STOPOTHER, B_STOPRENDER, B_STOPSEQ, CTX_data_main(), CTX_wm_area(), CTX_wm_manager(), do_running_jobs(), ED_screen_animation_no_scrub(), G, IFACE_, LISTBASE_FOREACH, MEM_freeN(), MEM_mallocN, ProgressTooltip_Store::owner, uiButProgress::progress_factor, progress_tooltip_func(), wmWindowManager::runtime, scene, Main::scenes, SNPRINTF, SPACE_NODE, TIP_, UI_block_func_handle_set(), UI_block_layout_set_current(), UI_BTYPE_BUT, UI_BTYPE_LABEL, UI_BTYPE_PROGRESS, UI_but_func_tooltip_set(), UI_fontstyle_string_width(), UI_FSTYLE_WIDGET, UI_UNIT_X, UI_UNIT_Y, uiDefIconButO(), uiDefIconTextBut(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetActive(), USER_RENDER_DISPLAY_NONE, ProgressTooltip_Store::wm, WM_JOB_TYPE_ANY, WM_JOB_TYPE_ASSET_LIBRARY_LOAD, 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(), WM_jobs_test(), and WM_OP_INVOKE_DEFAULT.
| void uiTemplateSearch | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| const char * | propname, | ||
| PointerRNA * | searchptr, | ||
| const char * | searchpropname, | ||
| const char * | newop, | ||
| const char * | unlinkop, | ||
| const char * | text = nullptr ) |
Search menu to pick an item from a collection. A version of uiTemplateID that works for non-ID types.
Definition at line 2354 of file interface_templates.cc.
References ptr, template_search_buttons(), and template_search_setup().
Referenced by nla_panel_actclip().
| 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, | ||
| const char * | text ) |
Definition at line 2370 of file interface_templates.cc.
References 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 2691 of file interface_templates.cc.
References BKE_shaderfx_get_info(), BLI_assert, blender::ed::object::context_active_object(), CTX_wm_region(), PanelType::flag, Object::id, LISTBASE_FOREACH, MAX_NAME, Panel::next, ShaderFxTypeInfo::panel_register, PANEL_TYPE_INSTANCED, 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().
| int uiTemplateStatusBarModalItem | ( | uiLayout * | layout, |
| const wmKeyMap * | keymap, | ||
| const EnumPropertyItem * | item ) |
Definition at line 6950 of file interface_templates.cc.
References ARRAY_SIZE, EnumPropertyItem::identifier, IFACE_, keymap_item_can_collapse(), keymap_item_from_enum_item(), KM_RELEASE, EnumPropertyItem::name, STREQ, UI_icon_from_keymap_item(), uiItemL(), uiItemS_ex(), uiTemplateEventFromKeymapItem(), and wmKeyMapItem::val.
Referenced by WM_window_modal_keymap_status_draw().
Definition at line 6617 of file interface_templates.cc.
References BKE_main_has_issues(), BLF_width(), BLI_str_format_integer_unit(), uiBlock::buttons, blender::StringRefNull::c_str(), uiBut::col, copy_v4_v4_uchar(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), ED_info_statusbar_string_ex(), wmWindowManager::extensions_blocked, wmWindowManager::extensions_updates, G, G_FLAG_INTERNET_ALLOW, G_FLAG_INTERNET_OVERRIDE_PREF_OFFLINE, Main::has_forward_compatibility_issues, uiBut::icon_overlay_text, blender::StringRefBase::is_empty(), ListBase::last, max_ii(), blender::StringRefBase::size(), SPACE_INFO, STATUSBAR_SHOW_EXTENSIONS_UPDATES, STATUSBAR_SHOW_VERSION, IconTextOverlay::text, TH_INFO_WARNING, TH_INFO_WARNING_TEXT, TH_TEXT, UI_block_align_begin(), UI_block_align_end(), UI_block_emboss_get(), UI_block_emboss_set(), UI_BTYPE_BUT, UI_BTYPE_ROUNDBOX, UI_but_func_tooltip_set(), UI_but_icon_indicator_color_set(), UI_EMBOSS_NONE, UI_fontstyle_set(), UI_GetThemeColor4ubv(), UI_GetThemeColorType4ubv(), UI_SCALE_FAC, UI_style_get(), ui_template_status_tooltip(), UI_UNIT_X, UI_UNIT_Y, uiDefBut(), uiDefIconBut(), uiFontStyle::uifont_id, uiItemL(), uiItemO(), uiItemS_ex(), uiLayoutAbsolute(), uiLayoutGetBlock(), uiLayoutRow(), uiLayoutSetEmboss(), uiStyle::widget, and WM_EXTENSIONS_UPDATE_CHECKING.
| void uiTemplateVectorscope | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| const char * | propname ) |
Definition at line 4267 of file interface_templates.cc.
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_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 4209 of file interface_templates.cc.
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.