diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-03 16:07:46 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-07-03 16:55:22 +0300 |
commit | 947cdb3acd296d8e2e849586d5a41cc0d0dcb28c (patch) | |
tree | 36eb74d8f0185c747e50dc21c7087420d83afa47 /source/blender/editors/include/UI_interface.h | |
parent | 36426c3ee2d957c1898555f51ec828b31c5f746c (diff) |
UI: add ability to access/generate 'shortcuts strings' of modal keymaps.
We already had that for global keymaps (used e.g. to generate shortcuts for menu entries),
but this wasn’t possible for modal keymaps yet (e.g. help message in header during
transforms and other modal operation).
This commit only adds needing background code, it does not change anything from user PoV.
Modal operators will be updated to use it in comming weeks.
Thanks to Campbell for revisions & suggestions. :)
Differential Revision: https://developer.blender.org/D780
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index b5e1b9f08b1..bb6c9a1cb52 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -86,6 +86,7 @@ typedef struct uiLayout uiLayout; /* names */ #define UI_MAX_DRAW_STR 400 #define UI_MAX_NAME_STR 128 +#define UI_MAX_SHORTCUT_STR 64 /* use for clamping popups within the screen */ #define UI_SCREEN_MARGIN 10 |