Blender
V3.3
|
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "DNA_scene_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_blender_user_menu.h"
#include "BKE_context.h"
#include "BKE_idprop.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_path.h"
#include "RNA_prototypes.h"
Go to the source code of this file.
Definition at line 84 of file screen_user_menu.c.
References BKE_blender_user_menu_ensure(), C, blender::compositor::context, CTX_wm_space_data(), screen_menu_context_string(), and SpaceLink::spacetype.
Referenced by popup_user_menu_add_or_replace_func().
Definition at line 161 of file screen_user_menu.c.
References BKE_blender_user_menu_item_add(), MenuType::idname, bUserMenuItem_Menu::item, MenuType::label, bUserMenuItem_Menu::mt_idname, STREQ, STRNCPY, bUserMenuItem::ui_name, and USER_MENU_TYPE_MENU.
void ED_screen_user_menu_item_add_operator | ( | ListBase * | lb, |
const char * | ui_name, | ||
const wmOperatorType * | ot, | ||
const IDProperty * | prop, | ||
wmOperatorCallContext | opcontext | ||
) |
Definition at line 145 of file screen_user_menu.c.
References BKE_blender_user_menu_item_add(), wmOperatorType::idname, IDP_CopyProperty(), bUserMenuItem_Op::item, wmOperatorType::name, NULL, bUserMenuItem_Op::op_idname, bUserMenuItem_Op::opcontext, ot, bUserMenuItem_Op::prop, STREQ, STRNCPY, bUserMenuItem::ui_name, and USER_MENU_TYPE_OPERATOR.
void ED_screen_user_menu_item_add_prop | ( | ListBase * | lb, |
const char * | ui_name, | ||
const char * | context_data_path, | ||
const char * | prop_id, | ||
int | prop_index | ||
) |
Definition at line 171 of file screen_user_menu.c.
References BKE_blender_user_menu_item_add(), bUserMenuItem_Prop::context_data_path, bUserMenuItem_Prop::item, bUserMenuItem_Prop::prop_id, bUserMenuItem_Prop::prop_index, STRNCPY, bUserMenuItem::ui_name, and USER_MENU_TYPE_PROP.
Referenced by ui_but_user_menu_add().
struct bUserMenuItem_Menu* ED_screen_user_menu_item_find_menu | ( | struct ListBase * | lb, |
const struct MenuType * | mt | ||
) |
Definition at line 114 of file screen_user_menu.c.
References MenuType::idname, LISTBASE_FOREACH, bUserMenuItem_Menu::mt_idname, NULL, STREQ, and USER_MENU_TYPE_MENU.
Referenced by ui_but_user_menu_find().
bUserMenuItem_Op* ED_screen_user_menu_item_find_operator | ( | ListBase * | lb, |
const wmOperatorType * | ot, | ||
IDProperty * | prop, | ||
wmOperatorCallContext | opcontext | ||
) |
Definition at line 97 of file screen_user_menu.c.
References wmOperatorType::idname, IDP_EqualsProperties(), LISTBASE_FOREACH, NULL, bUserMenuItem_Op::op_idname, bUserMenuItem_Op::opcontext, ot, bUserMenuItem_Op::prop, STREQ, and USER_MENU_TYPE_OPERATOR.
struct bUserMenuItem_Prop* ED_screen_user_menu_item_find_prop | ( | struct ListBase * | lb, |
const char * | context_data_path, | ||
const char * | prop_id, | ||
int | prop_index | ||
) |
Definition at line 128 of file screen_user_menu.c.
References bUserMenuItem_Prop::context_data_path, LISTBASE_FOREACH, NULL, bUserMenuItem_Prop::prop_id, bUserMenuItem_Prop::prop_index, STREQ, and USER_MENU_TYPE_PROP.
Referenced by ui_but_user_menu_find().
void ED_screen_user_menu_item_remove | ( | ListBase * | lb, |
bUserMenuItem * | umi | ||
) |
Definition at line 185 of file screen_user_menu.c.
References BKE_blender_user_menu_item_free(), and BLI_remlink().
Referenced by popup_user_menu_remove_func().
Definition at line 306 of file screen_user_menu.c.
References BLT_I18NCONTEXT_DEFAULT_BPYRNA, MenuType::draw, MenuType::idname, MenuType::label, MEM_callocN, N_, screen_user_menu_draw(), MenuType::translation_context, and WM_menutype_add().
Referenced by ED_spacetypes_init().
Definition at line 59 of file screen_user_menu.c.
References BKE_blender_user_menu_find(), C, blender::compositor::context, CTX_data_mode_string(), CTX_wm_space_data(), MEM_calloc_arrayN, NULL, screen_menu_context_string(), SPACE_PROPERTIES, SPACE_TOPBAR, SPACE_VIEW3D, and SpaceLink::spacetype.
Referenced by screen_user_menu_draw().
Definition at line 44 of file screen_user_menu.c.
References C, CTX_data_mode_string(), SPACE_NODE, SpaceLink::spacetype, and SpaceNode::tree_idname.
Referenced by ED_screen_user_menu_ensure(), and ED_screen_user_menus_find().
Definition at line 197 of file screen_user_menu.c.
References C, bUserMenuItem_Prop::context_data_path, CTX_data_pointer_get(), CTX_IFACE_, ED_screen_user_menus_find(), IDP_CopyProperty(), bUserMenu::items, label, Menu::layout, LISTBASE_FOREACH, MEM_freeN, bUserMenuItem_Menu::mt_idname, NULL, bUserMenuItem_Op::op_idname, bUserMenuItem_Op::opcontext, ot, bUserMenuItem_Op::prop, bUserMenuItem_Prop::prop_id, bUserMenuItem_Prop::prop_index, ptr, RNA_path_resolve_full(), RNA_pointer_create(), RNA_struct_find_property(), SNPRINTF, TIP_, wmOperatorType::translation_context, PointerRNA::type, uiItemFullO_ptr(), uiItemFullR(), uiItemL(), uiItemM_ptr(), uiItemS(), USER_MENU_TYPE_MENU, USER_MENU_TYPE_OPERATOR, USER_MENU_TYPE_PROP, USER_MENU_TYPE_SEP, WM_menutype_find(), and WM_operatortype_find().
Referenced by ED_screen_user_menu_register().