diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-23 17:31:28 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-23 21:52:47 +0300 |
commit | 85c1e61375532e91d5fc37b1d754cf76c17f7721 (patch) | |
tree | 459ed56b972e108036dc1c7e097003f2b234fdd7 /source/blender/makesdna | |
parent | 2fa231a86b4179ed513da2469df877497b346162 (diff) |
UI: Add user defined context menu
- Add/Remove from RMB context menu.
- Stored in user preferences.
- Access from Q key.
See T55027.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_userdef_types.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_userdef_types.h b/source/blender/makesdna/DNA_userdef_types.h index 71e7600d2ff..1230efbc247 100644 --- a/source/blender/makesdna/DNA_userdef_types.h +++ b/source/blender/makesdna/DNA_userdef_types.h @@ -430,6 +430,17 @@ typedef struct bPathCompare { char flag, pad[7]; } bPathCompare; +typedef struct bUserMenuItem { + struct bUserMenuItem *next, *prev; + char space_type; + char opcontext; + char _pad0[6]; + char ui_name[64]; + char opname[64]; + char context[64]; + struct IDProperty *prop; +} bUserMenuItem; + typedef struct SolidLight { int flag, pad; float col[4], spec[4], vec[4]; @@ -511,6 +522,8 @@ typedef struct UserDef { struct ListBase user_keymaps; struct ListBase addons; struct ListBase autoexec_paths; + struct ListBase user_menu_items; /* bUserMenuItem */ + char keyconfigstr[64]; short undosteps; |