KiCad PCB EDA Suite
EDA_HOTKEY Class Reference

class EDA_HOTKEY is a class to handle hot key commands. More...

#include <hotkeys_basic.h>

Public Member Functions

 EDA_HOTKEY (const wxChar *infomsg, int idcommand, int keycode, int idmenuevent=0)
 
 EDA_HOTKEY (const EDA_HOTKEY *base)
 
void ResetKeyCodeToDefault ()
 

Public Attributes

int m_KeyCode
 
wxString m_InfoMsg
 
int m_Idcommand
 
int m_IdMenuEvent
 

Private Attributes

int m_defaultKeyCode
 

Detailed Description

class EDA_HOTKEY is a class to handle hot key commands.

Hot keys have a default value. This class allows the real key code changed by user(from a key code list file)

Definition at line 57 of file hotkeys_basic.h.

Constructor & Destructor Documentation

EDA_HOTKEY::EDA_HOTKEY ( const wxChar *  infomsg,
int  idcommand,
int  keycode,
int  idmenuevent = 0 
)

Definition at line 58 of file hotkeys_basic.cpp.

58  :
59  m_defaultKeyCode( keycode ), m_KeyCode( keycode ), m_InfoMsg( infomsg ),
60  m_Idcommand( idcommand ), m_IdMenuEvent( idmenuevent )
61 {
62 }
wxString m_InfoMsg
Definition: hotkeys_basic.h:64
int m_defaultKeyCode
Definition: hotkeys_basic.h:60
int m_IdMenuEvent
Definition: hotkeys_basic.h:66
EDA_HOTKEY::EDA_HOTKEY ( const EDA_HOTKEY base)

Definition at line 65 of file hotkeys_basic.cpp.

References m_defaultKeyCode, m_Idcommand, m_IdMenuEvent, m_InfoMsg, and m_KeyCode.

66 {
67  m_defaultKeyCode = base->m_defaultKeyCode; // initialize default key code
68  m_KeyCode = base->m_KeyCode;
69  m_InfoMsg = base->m_InfoMsg;
70  m_Idcommand = base->m_Idcommand;
72 }
wxString m_InfoMsg
Definition: hotkeys_basic.h:64
int m_defaultKeyCode
Definition: hotkeys_basic.h:60
int m_IdMenuEvent
Definition: hotkeys_basic.h:66

Member Function Documentation

void EDA_HOTKEY::ResetKeyCodeToDefault ( )
inline

Member Data Documentation

int EDA_HOTKEY::m_defaultKeyCode
private

Definition at line 60 of file hotkeys_basic.h.

Referenced by EDA_HOTKEY(), and ResetKeyCodeToDefault().


The documentation for this class was generated from the following files: