![]() |
KiCad PCB EDA Suite
|
#include <panel_hotkeys_editor.h>
Public Member Functions | |
PANEL_HOTKEYS_EDITOR (EDA_BASE_FRAME *aFrame, wxWindow *aWindow, bool aReadOnly) | |
void | AddHotKeys (TOOL_MANAGER *aToolMgr) |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
void | ResetPanel () override |
Reset the contents of this panel. More... | |
wxString | GetResetTooltip () override |
Get the tooltip the reset button should display when showing this panel. More... | |
Protected Attributes | |
EDA_BASE_FRAME * | m_frame |
bool | m_readOnly |
std::vector< TOOL_MANAGER * > | m_toolManagers |
HOTKEY_STORE | m_hotkeyStore |
WIDGET_HOTKEY_LIST * | m_hotkeyListCtrl |
Private Member Functions | |
void | installButtons (wxSizer *aSizer) |
Install the button panel (global reset/default, import/export) More... | |
void | OnFilterSearch (wxCommandEvent &aEvent) |
Handle a change in the hotkey filter text. More... | |
void | ImportHotKeys () |
Put up a dialog allowing the user to select a hotkeys file and then overlays those hotkeys onto the current hotkey store. More... | |
void | dumpHotkeys () |
Dumps all actions and their hotkeys to a text file for inclusion in documentation. More... | |
Definition at line 41 of file panel_hotkeys_editor.h.
PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR | ( | EDA_BASE_FRAME * | aFrame, |
wxWindow * | aWindow, | ||
bool | aReadOnly | ||
) |
Definition at line 71 of file panel_hotkeys_editor.cpp.
References _, CreateTextFilterBox(), KIUI::GetStdMargin(), installButtons(), m_hotkeyListCtrl, m_hotkeyStore, m_readOnly, and OnFilterSearch().
void PANEL_HOTKEYS_EDITOR::AddHotKeys | ( | TOOL_MANAGER * | aToolMgr | ) |
Definition at line 109 of file panel_hotkeys_editor.cpp.
References m_toolManagers.
Referenced by DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), EDA_3D_VIEWER_FRAME::InstallPreferences(), KICAD_MANAGER_FRAME::InstallPreferences(), PL_EDITOR_FRAME::InstallPreferences(), FOOTPRINT_EDIT_FRAME::InstallPreferences(), SYMBOL_EDIT_FRAME::InstallPreferences(), GERBVIEW_FRAME::InstallPreferences(), PCB_EDIT_FRAME::InstallPreferences(), and SCH_EDIT_FRAME::InstallPreferences().
|
private |
Dumps all actions and their hotkeys to a text file for inclusion in documentation.
The format is asciidoc-compatible table rows. This function is hidden behind an advanced config flag and not intended for users.
Definition at line 223 of file panel_hotkeys_editor.cpp.
References _, EDA_BASE_FRAME::GetMruPath(), HOTKEY_STORE::GetSections(), KeyNameFromKeyCode(), HOTKEY::m_Actions, HOTKEY::m_EditKeycode, m_frame, m_hotkeyStore, TextFileExtension, and TextFileWildcard().
Referenced by installButtons().
|
inlineoverridevirtual |
Get the tooltip the reset button should display when showing this panel.
Reimplemented from RESETTABLE_PANEL.
Definition at line 53 of file panel_hotkeys_editor.h.
References _.
|
private |
Put up a dialog allowing the user to select a hotkeys file and then overlays those hotkeys onto the current hotkey store.
Definition at line 196 of file panel_hotkeys_editor.cpp.
References _, EDA_BASE_FRAME::GetMruPath(), HOTKEY_STORE::GetSections(), HotkeyFileExtension, HotkeyFileWildcard(), HOTKEY::m_Actions, HOTKEY::m_EditKeycode, m_frame, m_hotkeyListCtrl, m_hotkeyStore, ReadHotKeyConfig(), EDA_BASE_FRAME::SetMruPath(), and WIDGET_HOTKEY_LIST::TransferDataToControl().
Referenced by installButtons().
|
private |
Install the button panel (global reset/default, import/export)
aSizer | the dialog to install on. |
Definition at line 121 of file panel_hotkeys_editor.cpp.
References _, dumpHotkeys(), ADVANCED_CFG::GetCfg(), KIUI::GetStdMargin(), ImportHotKeys(), m_hotkeyListCtrl, and WIDGET_HOTKEY_LIST::ResetAllHotkeys().
Referenced by PANEL_HOTKEYS_EDITOR().
|
private |
Handle a change in the hotkey filter text.
aEvent | is the search event, used to get the search query. |
Definition at line 189 of file panel_hotkeys_editor.cpp.
References WIDGET_HOTKEY_LIST::ApplyFilterString(), and m_hotkeyListCtrl.
Referenced by PANEL_HOTKEYS_EDITOR().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 115 of file panel_hotkeys_editor.cpp.
References m_hotkeyListCtrl, and WIDGET_HOTKEY_LIST::ResetAllHotkeys().
|
override |
Definition at line 173 of file panel_hotkeys_editor.cpp.
References m_hotkeyListCtrl, m_readOnly, m_toolManagers, WIDGET_HOTKEY_LIST::TransferDataFromControl(), and WriteHotKeyConfig().
|
override |
Definition at line 166 of file panel_hotkeys_editor.cpp.
References HOTKEY_STORE::Init(), m_hotkeyListCtrl, m_hotkeyStore, m_readOnly, m_toolManagers, and WIDGET_HOTKEY_LIST::TransferDataToControl().
Referenced by DIALOG_LIST_HOTKEYS::TransferDataToWindow().
|
protected |
Definition at line 87 of file panel_hotkeys_editor.h.
Referenced by dumpHotkeys(), and ImportHotKeys().
|
protected |
Definition at line 92 of file panel_hotkeys_editor.h.
Referenced by ImportHotKeys(), installButtons(), OnFilterSearch(), PANEL_HOTKEYS_EDITOR(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 91 of file panel_hotkeys_editor.h.
Referenced by dumpHotkeys(), ImportHotKeys(), PANEL_HOTKEYS_EDITOR(), and TransferDataToWindow().
|
protected |
Definition at line 88 of file panel_hotkeys_editor.h.
Referenced by PANEL_HOTKEYS_EDITOR(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 90 of file panel_hotkeys_editor.h.
Referenced by AddHotKeys(), TransferDataFromWindow(), and TransferDataToWindow().