24#ifndef  HOTKEYS_BASIC_H 
   25#define  HOTKEYS_BASIC_H 
   31#define EESCHEMA_HOTKEY_NAME wxT( "Eeschema" ) 
   32#define PCBNEW_HOTKEY_NAME wxT( "PcbNew" ) 
   50#define PSEUDO_WXK_CLICK    400 
   51#define PSEUDO_WXK_DBLCLICK 401 
   52#define PSEUDO_WXK_WHEEL    402 
  108                       std::map<std::string, std::pair<int, int>>& aHotKeys );
 
The base frame for deriving all KiCad main window classes.
 
void DisplayHotkeyList(EDA_BASE_FRAME *aFrame)
Display the current hotkey list.
 
int ReadLegacyHotkeyConfigFile(const wxString &aFilename, std::map< std::string, int > &aMap)
Read hotkey configuration for a given app.
 
void ReadHotKeyConfig(const wxString &aFileName, std::map< std::string, std::pair< int, int > > &aHotKeys)
Read a hotkey config file into a map.
 
wxString AddHotkeyName(const wxString &aText, int aHotKey, HOTKEY_ACTION_TYPE aStyle=IS_HOTKEY)
 
HOTKEY_ACTION_TYPE
In menus we can add a hot key, or an accelerator, or sometimes just a comment.
 
int ReadLegacyHotkeyConfig(const wxString &aAppname, std::map< std::string, int > &aMap)
Read configuration data and fill the current hotkey list with hotkeys.
 
int WriteHotKeyConfig(const std::vector< TOOL_ACTION * > &aActions)
Update the hotkeys config file with the hotkeys from the given actions map.
 
int KeyCodeFromKeyName(const wxString &keyname)
Return the key code from its user-friendly key name (ie: "Ctrl+M").
 
wxString KeyNameFromKeyCode(int aKeycode, bool *aIsFound=nullptr)
Return the key name from the key code.
 
void ReadHotKeyConfigIntoActions(const wxString &aFileName, std::vector< TOOL_ACTION * > &aActions)
Read a hotkey config file into a list of actions.
 
Some functions to handle hotkeys in KiCad.