KiCad PCB EDA Suite
dialog_hotkeys_editor.h File Reference

Go to the source code of this file.

Classes

class  HOTKEYS_EDITOR_DIALOG
 Class HOTKEYS_EDITOR_DIALOG is the child class of HOTKEYS_EDITOR_DIALOG_BASE. More...
 

Functions

void InstallHotkeyFrame (EDA_BASE_FRAME *aParent, EDA_HOTKEY_CONFIG *aHotkeys, EDA_HOTKEY_CONFIG *aShowHotkeys=NULL)
 Function InstallHotkeyFrame Create a hotkey editor dialog window with the provided hotkey configuration array. More...
 

Function Documentation

void InstallHotkeyFrame ( EDA_BASE_FRAME aParent,
EDA_HOTKEY_CONFIG aHotkeys,
EDA_HOTKEY_CONFIG aShowHotkeys = NULL 
)

Function InstallHotkeyFrame Create a hotkey editor dialog window with the provided hotkey configuration array.

Parameters
aParentis the parent window
aHotkeysis the hotkey configuration array for read/writing
aShowHotkeysis the hotkey configuration array that is displayed (subset)

Definition at line 26 of file dialog_hotkeys_editor.cpp.

References EDA_BASE_FRAME::ReCreateMenuBar().

Referenced by KICAD_MANAGER_FRAME::Process_Config(), LIB_EDIT_FRAME::Process_Config(), SCH_EDIT_FRAME::Process_Config(), PL_EDITOR_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), GERBVIEW_FRAME::Process_Config(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), and HOTKEYS_EDITOR_DIALOG::~HOTKEYS_EDITOR_DIALOG().

28 {
29  if( !aShowHotkeys )
30  aShowHotkeys = aHotkeys;
31 
32  HOTKEYS_EDITOR_DIALOG dialog( aParent, aHotkeys, aShowHotkeys );
33 
34  int diag = dialog.ShowModal();
35 
36  if( diag == wxID_OK )
37  {
38  aParent->ReCreateMenuBar();
39  aParent->Refresh();
40  }
41 }
Class HOTKEYS_EDITOR_DIALOG is the child class of HOTKEYS_EDITOR_DIALOG_BASE.
virtual void ReCreateMenuBar()
Function ReCreateMenuBar Creates recreates the menu bar.