diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-24 17:07:34 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-24 21:06:30 +0300 |
commit | a5b7f1ef535038be549530612c7eed9109e1d4b4 (patch) | |
tree | c22cbabd5e9f2f58de8a268c7c57e9be0fdc109d /source/blender/editors/include/ED_screen.h | |
parent | a59d7374ea1ce165604975a807fb6e92f9c1d469 (diff) |
UI: internal changes to user-menu storage
- Use per context menu lists to support menu editing.
- Support for different kinds of menu items since this may be needed
in the future. Only use operator types for now.
Diffstat (limited to 'source/blender/editors/include/ED_screen.h')
-rw-r--r-- | source/blender/editors/include/ED_screen.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/editors/include/ED_screen.h b/source/blender/editors/include/ED_screen.h index 05b51dff4b4..cb4048ac63e 100644 --- a/source/blender/editors/include/ED_screen.h +++ b/source/blender/editors/include/ED_screen.h @@ -315,13 +315,18 @@ int ED_operator_camera(struct bContext *C); /* screen_user_menu.c */ -void ED_screen_user_menu_add( - struct bContext *C, const char *ui_name, +struct bUserMenu *ED_screen_user_menu_find(struct bContext *C); +struct bUserMenu *ED_screen_user_menu_ensure(struct bContext *C); + + +struct bUserMenuItem_Op *ED_screen_user_menu_item_find_operator( + struct ListBase *lb, struct wmOperatorType *ot, struct IDProperty *prop, short opcontext); -void ED_screen_user_menu_remove(struct bUserMenuItem *umi); -struct bUserMenuItem *ED_screen_user_menu_find( - struct bContext *C, +void ED_screen_user_menu_item_add_operator( + struct ListBase *lb, const char *ui_name, struct wmOperatorType *ot, struct IDProperty *prop, short opcontext); +void ED_screen_user_menu_item_remove( + struct ListBase *lb, struct bUserMenuItem *umi); void ED_screen_user_menu_register(void); /* Cache display helpers */ |