|
Blender V4.3
|
#include <algorithm>#include <cstdarg>#include <cstdlib>#include <cstring>#include <functional>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_hash.hh"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_rect.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BKE_context.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "RNA_access.hh"#include "UI_interface.hh"#include "BLT_translation.hh"#include "ED_screen.hh"#include "interface_intern.hh"#include "interface_regions_intern.hh"Go to the source code of this file.
Classes | |
| struct | uiPopupMenu |
Functions | |
Utility Functions | |
| bool | ui_but_menu_step_poll (const uiBut *but) |
| int | ui_but_menu_step (uiBut *but, int direction) |
Popup Menu Memory | |
Support menu-memory, a feature that positions the cursor over the previously used menu item.
| |
| static uint | ui_popup_string_hash (const StringRef str, const bool use_sep) |
| uint | ui_popup_menu_hash (const StringRef str) |
| static uiBut * | ui_popup_menu_memory__internal (uiBlock *block, uiBut *but) |
| uiBut * | ui_popup_menu_memory_get (uiBlock *block) |
| void | ui_popup_menu_memory_set (uiBlock *block, uiBut *but) |
Popup Menu with Callback or String | |
| static void | ui_popup_menu_create_block (bContext *C, uiPopupMenu *pup, const StringRef title, const StringRef block_name) |
| static uiBlock * | ui_block_func_POPUP (bContext *C, uiPopupBlockHandle *handle, void *arg_pup) |
| static void | ui_block_free_func_POPUP (void *arg_pup) |
| static uiPopupBlockHandle * | ui_popup_menu_create_impl (bContext *C, ARegion *butregion, uiBut *but, const char *title, std::function< void(bContext *, uiLayout *)> menu_func, const bool can_refresh) |
| uiPopupBlockHandle * | ui_popup_menu_create (bContext *C, ARegion *butregion, uiBut *but, uiMenuCreateFunc menu_func, void *arg) |
Popup Menu API with begin & end | |
| static void | create_title_button (uiLayout *layout, const char *title, int icon) |
| uiPopupMenu * | UI_popup_menu_begin_ex (bContext *C, const char *title, const char *block_name, int icon) |
| uiPopupMenu * | UI_popup_menu_begin (bContext *C, const char *title, int icon) |
| void | UI_popup_menu_but_set (uiPopupMenu *pup, ARegion *butregion, uiBut *but) |
| void | UI_popup_menu_end (bContext *C, uiPopupMenu *pup) |
| bool | UI_popup_menu_end_or_cancel (bContext *C, uiPopupMenu *pup) |
| uiLayout * | UI_popup_menu_layout (uiPopupMenu *pup) |
Standard Popup Menus | |
| void | UI_popup_menu_reports (bContext *C, ReportList *reports) |
| static void | ui_popup_menu_create_from_menutype (bContext *C, MenuType *mt, const char *title, const int icon) |
| int | UI_popup_menu_invoke (bContext *C, const char *idname, ReportList *reports) |
Popup Block API | |
| void | UI_popup_block_invoke_ex (bContext *C, uiBlockCreateFunc func, void *arg, uiFreeArgFunc arg_free, const bool can_refresh) |
| void | UI_popup_block_invoke (bContext *C, uiBlockCreateFunc func, void *arg, uiFreeArgFunc arg_free) |
| void | UI_popup_block_ex (bContext *C, uiBlockCreateFunc func, uiBlockHandleFunc popup_func, uiBlockCancelFunc cancel_func, void *arg, wmOperator *op) |
| static void | popup_block_template_close_cb (bContext *C, void *arg1, void *) |
| bool | UI_popup_block_template_confirm_is_supported (const uiBlock *block) |
| void | UI_popup_block_template_confirm (uiBlock *block, const bool cancel_default, blender::FunctionRef< uiBut *()> confirm_fn, blender::FunctionRef< uiBut *()> cancel_fn) |
| void | UI_popup_block_template_confirm_op (uiLayout *layout, wmOperatorType *ot, const char *confirm_text, const char *cancel_text, const int icon, bool cancel_default, PointerRNA *r_ptr) |
| void | UI_popup_block_close (bContext *C, wmWindow *win, uiBlock *block) |
| bool | UI_popup_block_name_exists (const bScreen *screen, const blender::StringRef name) |
| void | UI_popup_menu_close (const uiBlock *block, const bool is_cancel) |
| void | UI_popup_menu_close_from_but (const uiBut *but, const bool is_cancel) |
PopUp Menu Region
Definition in file interface_region_menu_popup.cc.
Definition at line 449 of file interface_region_menu_popup.cc.
References uiBut::drawflag, SNPRINTF, UI_BTYPE_LABEL, UI_BUT_TEXT_LEFT, UI_UNIT_Y, uiDefBut(), uiDefIconTextBut(), uiItemS(), and uiLayoutGetBlock().
Referenced by UI_popup_menu_begin_ex(), and ui_popup_menu_create_from_menutype().
|
static |
Definition at line 723 of file interface_region_menu_popup.cc.
References CTX_wm_window(), uiBlock::handle, printf, UI_popup_block_close(), UI_popup_menu_retval_set(), and UI_RETURN_CANCEL.
Referenced by UI_popup_block_template_confirm().
|
static |
Definition at line 382 of file interface_region_menu_popup.cc.
Referenced by ui_popup_menu_create_impl().
|
static |
Definition at line 220 of file interface_region_menu_popup.cc.
References BLI_findindex(), BLI_rctf_size_x(), uiBut::block, uiPopupMenu::block, uiPopupMenu::but, uiBlock::buttons, copy_v2_v2_int(), CTX_wm_region(), uiBlock::direction, uiBut::drawstr, uiBlock::flag, uiBut::flag, uiBlock::handle, uiPopupMenu::layout, LISTBASE_FOREACH, uiPopupMenu::menu_func, min_ii(), uiBlock::minbounds, uiPopupMenu::popup, uiBut::rect, RGN_ALIGN_BOTTOM, RGN_ALIGN_ENUM_FROM_MASK, RGN_TYPE_IS_HEADER_ANY, RGN_TYPE_TOOLS, uiPopupMenu::slideout, uiPopupMenu::title, UI_block_bounds_set_menu(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_block_flag_enable(), UI_block_layout_resolve(), UI_BLOCK_LOOP, UI_BLOCK_MOVEMOUSE_QUIT, UI_BLOCK_NUMSELECT, UI_BLOCK_POPUP_HOLD, UI_BLOCK_POPUP_MEMORY, UI_block_region_set(), UI_BLOCK_THEME_STYLE_POPUP, UI_block_theme_style_set(), ui_but_activate_over(), ui_but_is_editable(), UI_DIR_DOWN, UI_DIR_RIGHT, UI_DIR_UP, UI_MENU_WIDTH_MIN, ui_popup_menu_create_block(), ui_popup_menu_memory_get(), UI_SELECT_DRAW, UI_UNIT_X, UI_UNIT_Y, uiLayoutGetUnitsX(), rctf::xmin, and rctf::ymin.
Referenced by ui_popup_menu_create_impl(), and UI_popup_menu_end().
Definition at line 61 of file interface_region_menu_popup.cc.
References uiBut::block, uiBlock::evil_C, uiBut::menu_step_func, uiBut::poin, printf, RNA_property_enum_get(), RNA_property_enum_step(), uiBut::rnapoin, uiBut::rnaprop, uiBut::str, and ui_but_menu_step_poll().
Referenced by ui_do_but_BLOCK().
| bool ui_but_menu_step_poll | ( | const uiBut * | but | ) |
Definition at line 52 of file interface_region_menu_popup.cc.
References BLI_assert, uiBut::menu_step_func, PROP_ENUM, RNA_property_type(), uiBut::rnaprop, uiBut::type, and UI_BTYPE_MENU.
Referenced by ui_but_menu_step(), and ui_but_supports_cycling().
Definition at line 881 of file interface_region_menu_popup.cc.
References ED_region_tag_refresh_ui(), ED_workspace_status_text(), uiBlock::handle, LISTBASE_FOREACH, wmWindow::modalhandlers, ui_popup_block_free(), UI_popup_handlers_remove(), and WM_window_get_active_screen().
Referenced by dialog_cancel_cb(), dialog_exec_cb(), popup_block_template_close_cb(), save_file_overwrite_cancel(), save_file_overwrite_confirm(), save_file_overwrite_saveas(), text_insert_unicode_cancel(), text_insert_unicode_confirm(), wm_block_autorun_warning_enable_scripts(), wm_block_autorun_warning_ignore(), wm_block_autorun_warning_reload_with_scripts(), wm_block_file_close_cancel(), wm_block_file_close_discard(), wm_block_file_close_save(), and wm_block_splash_close().
| void UI_popup_block_ex | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| uiBlockHandleFunc | popup_func, | ||
| uiBlockCancelFunc | cancel_func, | ||
| void * | arg, | ||
| wmOperator * | op ) |
Definition at line 693 of file interface_region_menu_popup.cc.
References CTX_wm_window(), WorkspaceStatus::item(), wmWindow::modalhandlers, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), and WM_event_add_mousemove().
Referenced by ui_popup_context_menu_for_button(), WM_operator_confirm_ex(), WM_operator_props_dialog_popup(), wm_operator_props_popup_ex(), and WM_operator_ui_popup().
| void UI_popup_block_invoke | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | arg_free ) |
Definition at line 688 of file interface_region_menu_popup.cc.
References UI_popup_block_invoke_ex().
Referenced by blender::ed::outliner::merged_element_search_menu_invoke(), blender::ed::space_node::node_find_node_invoke(), ui_popup_context_menu_for_button(), wm_close_file_dialog(), WM_operator_redo_popup(), wm_save_file_overwrite_dialog(), wm_splash_about_invoke(), wm_splash_invoke(), wm_test_autorun_warning(), wm_test_gpu_backend_fallback(), and wm_test_opengl_deprecation_warning().
| void UI_popup_block_invoke_ex | ( | bContext * | C, |
| uiBlockCreateFunc | func, | ||
| void * | arg, | ||
| uiFreeArgFunc | arg_free, | ||
| bool | can_refresh ) |
| can_refresh | When true, the popup may be refreshed (updated after creation). |
Definition at line 669 of file interface_region_menu_popup.cc.
References CTX_wm_window(), WorkspaceStatus::item(), wmWindow::modalhandlers, UI_block_active_only_flagged_buttons(), ui_popup_block_create(), UI_popup_handlers_add(), and WM_event_add_mousemove().
Referenced by blender::ed::space_node::invoke_node_link_drag_add_menu(), text_insert_unicode_invoke(), UI_popup_block_invoke(), WM_enum_search_invoke(), and wm_search_menu_invoke().
| bool UI_popup_block_name_exists | ( | const bScreen * | screen, |
| const blender::StringRef | name ) |
Definition at line 902 of file interface_region_menu_popup.cc.
References LISTBASE_FOREACH, and uiBlock::name.
Referenced by wm_close_file_dialog(), and wm_save_file_overwrite_dialog().
| void UI_popup_block_template_confirm | ( | uiBlock * | block, |
| bool | cancel_default, | ||
| blender::FunctionRef< uiBut *()> | confirm_fn, | ||
| blender::FunctionRef< uiBut *()> | cancel_fn ) |
Create confirm & cancel buttons in a popup using callback functions.
Definition at line 751 of file interface_region_menu_popup.cc.
References ARRAY_SET_ITEMS, ARRAY_SIZE, uiBlock::flag, popup_block_template_close_cb(), UI_block_has_active_default_button(), UI_BLOCK_LOOP, UI_BUT_ACTIVE_DEFAULT, UI_but_flag_enable(), and UI_but_func_set().
Referenced by UI_popup_block_template_confirm_op().
| bool UI_popup_block_template_confirm_is_supported | ( | const uiBlock * | block | ) |
Return true when UI_popup_block_template_confirm and related functions are supported.
Definition at line 743 of file interface_region_menu_popup.cc.
References uiBlock::flag, UI_BLOCK_KEEP_OPEN, and UI_BLOCK_POPOVER.
| void UI_popup_block_template_confirm_op | ( | uiLayout * | layout, |
| wmOperatorType * | ot, | ||
| const char * | confirm_text, | ||
| const char * | cancel_text, | ||
| const int | icon, | ||
| bool | cancel_default, | ||
| PointerRNA * | r_ptr ) |
Create confirm & cancel buttons in a popup using an operator.
| confirm_text | The text to confirm, null for default text or an empty string to hide. |
| cancel_text | The text to cancel, null for default text or an empty string to hide. |
| r_ptr | The pointer for operator properties, set a "confirm" button has been created. |
Definition at line 786 of file interface_region_menu_popup.cc.
References uiBlock::buttons, IFACE_, ListBase::last, ot, UI_BTYPE_BUT, UI_ITEM_NONE, UI_popup_block_template_confirm(), UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiItemFullO_ptr(), uiLayoutGetBlock(), uiLayoutGetOperatorContext(), and uiLayoutSplit().
| uiPopupMenu * UI_popup_menu_begin | ( | bContext * | C, |
| const char * | title, | ||
| int | icon ) |
Definition at line 489 of file interface_region_menu_popup.cc.
References UI_popup_menu_begin_ex().
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
| uiPopupMenu * UI_popup_menu_begin_ex | ( | bContext * | C, |
| const char * | title, | ||
| const char * | block_name, | ||
| int | icon ) |
Directly create a popup menu that is not refreshed on redraw.
Only return handler, and set optional title.
| block_name | Assigned to uiBlock.name (useful info for debugging). |
Definition at line 468 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, create_title_button(), uiBlock::handle, uiPopupMenu::layout, uiPopupMenu::title, and ui_popup_menu_create_block().
Referenced by UI_popup_menu_begin(), and UI_popup_menu_reports().
| void UI_popup_menu_but_set | ( | uiPopupMenu * | pup, |
| ARegion * | butregion, | ||
| uiBut * | but ) |
Setting the button makes the popup open from the button instead of the cursor.
Definition at line 494 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, and uiPopupMenu::butregion.
Referenced by ui_item_menu_hold().
If block is displayed in a popup menu, tag it for closing.
| is_cancel | If set to true, the popup will be closed as being cancelled (e.g. when pressing escape) as opposed to being handled successfully. |
Definition at line 914 of file interface_region_menu_popup.cc.
References UI_popup_menu_retval_set(), UI_RETURN_CANCEL, and UI_RETURN_OK.
Referenced by UI_popup_menu_close_from_but().
Version of UI_popup_menu_close() that can be called on a button contained in a popup menu block. Convenience since the block may not be available.
Definition at line 919 of file interface_region_menu_popup.cc.
References uiBut::block, and UI_popup_menu_close().
Referenced by force_activate_view_item_but().
| uiPopupBlockHandle * ui_popup_menu_create | ( | bContext * | C, |
| ARegion * | butregion, | ||
| uiBut * | but, | ||
| uiMenuCreateFunc | menu_func, | ||
| void * | arg ) |
Definition at line 431 of file interface_region_menu_popup.cc.
References ui_popup_menu_create_impl().
Referenced by ui_block_open_begin().
|
static |
| title | Optional. If set, it will be used to store recently opened menus so they can be opened with the mouse over the last chosen entry again. |
Definition at line 180 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, uiPopupMenu::but, uiBut::context, uiBlock::flag, blender::StringRefBase::is_empty(), uiPopupMenu::layout, uiBlock::puphash, UI_block_begin(), UI_block_layout(), UI_BLOCK_POPUP_MEMORY, UI_EMBOSS_PULLDOWN, UI_LAYOUT_MENU, UI_LAYOUT_VERTICAL, UI_MENU_PADDING, ui_popup_menu_hash(), UI_style_get_dpi(), uiLayoutContextCopy(), uiLayoutSetOperatorContext(), WM_OP_EXEC_REGION_WIN, and WM_OP_INVOKE_REGION_WIN.
Referenced by ui_block_func_POPUP(), and UI_popup_menu_begin_ex().
|
static |
Definition at line 602 of file interface_region_menu_popup.cc.
References create_title_button(), MenuType::flag, MenuType::idname, IFACE_, WorkspaceStatus::item(), WorkspaceStatus::range(), SearchOnKeyPress, STRNCPY, ui_item_menutype_func(), and ui_popup_menu_create_impl().
Referenced by UI_popup_menu_invoke().
|
static |
Definition at line 388 of file interface_region_menu_popup.cc.
References uiBut::block, uiPopupMenu::but, CTX_wm_window(), wmWindow::eventstate, IFACE_, WorkspaceStatus::item(), uiPopupMenu::menu_func, wmWindow::modalhandlers, uiPopupMenu::mx, uiPopupMenu::my, uiPopupMenu::popup, uiPopupMenu::slideout, uiPopupMenu::title, uiBut::type, ui_block_free_func_POPUP(), ui_block_func_POPUP(), ui_block_is_menu(), UI_BTYPE_PULLDOWN, ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and wmEvent::xy.
Referenced by ui_popup_menu_create(), and ui_popup_menu_create_from_menutype().
| void UI_popup_menu_end | ( | bContext * | C, |
| uiPopupMenu * | pup ) |
Set the whole structure to work.
Definition at line 500 of file interface_region_menu_popup.cc.
References uiPopupMenu::but, uiPopupMenu::butregion, CTX_wm_window(), wmWindow::eventstate, wmWindow::modalhandlers, uiPopupMenu::mx, uiPopupMenu::my, uiPopupBlockHandle::popup, uiPopupMenu::popup, ui_block_func_POPUP(), ui_popup_block_create(), UI_popup_handlers_add(), WM_event_add_mousemove(), and wmEvent::xy.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_panel(), UI_popup_menu_end_or_cancel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
| bool UI_popup_menu_end_or_cancel | ( | bContext * | C, |
| uiPopupMenu * | pup ) |
Definition at line 525 of file interface_region_menu_popup.cc.
References uiPopupMenu::block, uiBlock::handle, MEM_freeN(), UI_block_free(), UI_block_is_empty_ex(), UI_block_layout_resolve(), and UI_popup_menu_end().
Referenced by ui_popup_context_menu_for_button().
Definition at line 102 of file interface_region_menu_popup.cc.
References blender::get_default_hash(), and str.
Referenced by UI_pie_menu_begin(), and ui_popup_menu_create_block().
| int UI_popup_menu_invoke | ( | bContext * | C, |
| const char * | idname, | ||
| ReportList * | reports ) |
Definition at line 631 of file interface_region_menu_popup.cc.
References BKE_reportf(), CTX_IFACE_, MenuType::label, OPERATOR_CANCELLED, OPERATOR_INTERFACE, OPERATOR_PASS_THROUGH, RPT_ERROR, MenuType::translation_context, UI_menutype_draw(), UI_popup_menu_begin(), ui_popup_menu_create_from_menutype(), UI_popup_menu_end(), UI_popup_menu_layout(), WM_menutype_find(), and WM_menutype_poll().
| uiLayout * UI_popup_menu_layout | ( | uiPopupMenu * | pup | ) |
Definition at line 538 of file interface_region_menu_popup.cc.
References uiPopupMenu::layout.
Referenced by armature_parent_clear_invoke(), armature_parent_set_invoke(), context_menu_invoke(), driver_dvar_invalid_name_query_cb(), blender::ed::sculpt_paint::dyntopo::dyntopo_warning_popup(), insert_key_menu_invoke(), keyingset_active_menu_invoke(), blender::ed::object::move_to_collection_invoke(), move_to_collection_regular_invoke(), blender::ed::space_node::node_group_separate_invoke(), blender::ed::object::object_hide_collection_invoke(), blender::ed::outliner::outliner_operator_menu(), blender::ed::object::parent_set_invoke_menu(), blender::ed::object::pose_ik_add_invoke(), repeat_history_invoke(), screen_area_options_invoke(), screen_context_menu_invoke(), blender::ed::object::select_grouped_collection(), select_orientation_invoke(), text_resolve_conflict_invoke(), toggle_cyclic_invoke(), ui_item_menu_hold(), ui_popup_context_menu_for_button(), ui_popup_context_menu_for_panel(), UI_popup_menu_invoke(), UI_popup_menu_reports(), unpack_all_invoke(), unpack_item_invoke(), unpack_menu(), blender::ed::object::bake_simulation::unpack_single_bake_invoke(), uv_mark_seam_invoke(), weight_sample_group_invoke(), wm_drop_import_file_invoke(), WM_menu_invoke_ex(), and workspace_add_invoke().
Definition at line 108 of file interface_region_menu_popup.cc.
References uiBlock::buttons, ELEM, uiBut::flag, hash, LISTBASE_FOREACH, uiBlock::puphash, uiBut::str, UI_BTYPE_LABEL, UI_BTYPE_SEPR, UI_BTYPE_SEPR_LINE, UI_BUT_HAS_SEP_CHAR, and ui_popup_string_hash().
Referenced by ui_popup_menu_memory_get(), and ui_popup_menu_memory_set().
Definition at line 145 of file interface_region_menu_popup.cc.
References ui_popup_menu_memory__internal().
Referenced by ui_block_func_POPUP().
Definition at line 150 of file interface_region_menu_popup.cc.
References ui_popup_menu_memory__internal().
Referenced by button_activate_exit().
| void UI_popup_menu_reports | ( | bContext * | C, |
| ReportList * | reports ) |
Definition at line 549 of file interface_region_menu_popup.cc.
References BKE_reports_lock(), BKE_reports_unlock(), BLI_strncpy(), CTX_wm_window(), ReportList::list, LISTBASE_FOREACH, ReportList::printlevel, RPT_, SNPRINTF, UI_icon_from_report_type(), UI_MAX_DRAW_STR, UI_popup_menu_begin_ex(), UI_popup_menu_end(), UI_popup_menu_layout(), uiItemL(), and uiItemS().
Referenced by blender::ed::object::bake_simulation::bake_simulation_invoke(), wm_handler_fileselect_do(), and wm_operator_reports().
Definition at line 92 of file interface_region_menu_popup.cc.
References blender::get_default_hash(), blender::StringRefBase::not_found, str, blender::StringRefBase::substr(), and UI_SEP_CHAR.
Referenced by ui_popup_menu_memory__internal().