Add separate menu strings and name strings for ACTIONS
Description
We need to add another string field in TOOL_ACTION
to contain a string for the action's name in the hotkey list. Currently, the menu label field is being abused as this string, but that is inconvenient because in some instances we want them to be different (e.g. the menu for importing an item doesn't need the word "Import" but the name in the hotkey list does).
This is best done as a named parameter after #7617 (closed) since only a few actions will need to use this mechanism probably.
KiCad Version
Application: KiCad
Version: (5.99.0-10039-g6cbc3fb97d-dirty), debug build
Libraries:
wxWidgets 3.0.4
libcurl/7.66.0 OpenSSL/1.1.1g-fips zlib/1.2.11 brotli/1.0.7 libidn2/2.3.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.41.0
Platform: Linux 5.7.15-100.fc31.x86_64 x86_64, 64 bit, Little endian, wxGTK, mate, x11
Build Info:
Date: Mar 30 2021 01:21:15
wxWidgets: 3.0.4 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
Boost: 1.69.0
OCC: 7.4.0
Curl: 7.66.0
ngspice: 32
Compiler: Clang 9.0.1 with C++ ABI 1002
Build settings:
KICAD_SCRIPTING=ON
KICAD_SCRIPTING_MODULES=ON
KICAD_SCRIPTING_PYTHON3=ON
KICAD_SCRIPTING_WXPYTHON=ON
KICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
KICAD_SCRIPTING_ACTION_MENU=ON
KICAD_USE_OCC=ON
KICAD_SPICE=ON
KICAD_STDLIB_DEBUG=OFF
KICAD_STDLIB_LIGHT_DEBUG=ON
KICAD_SANITIZE=ON