|
KiCad PCB EDA Suite
|
#include <panel_hotkeys_editor.h>
Public Member Functions | |
| PANEL_HOTKEYS_EDITOR (EDA_BASE_FRAME *aFrame, wxWindow *aWindow) | |
| ~PANEL_HOTKEYS_EDITOR () | |
| std::vector< TOOL_ACTION * > & | ActionsList () |
| bool | TransferDataToWindow () override |
| bool | TransferDataFromWindow () override |
| void | ResetPanel () override |
| Reset the contents of this panel. | |
| wxString | GetResetTooltip () const override |
| Get the tooltip the reset button should display when showing this panel. | |
| wxSizer * | GetBottomSizer () |
| wxString | GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override |
| Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. | |
Protected Attributes | |
| EDA_BASE_FRAME * | m_frame |
| wxSizer * | m_bottomSizer |
| std::vector< TOOL_ACTION * > | m_actions |
| 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) | |
| void | OnFilterSearch (wxCommandEvent &aEvent) |
| Handle a change in the hotkey filter text. | |
| void | ImportHotKeys () |
| Put up a dialog allowing the user to select a hotkeys file and then overlays those hotkeys onto the current hotkey store. | |
| void | dumpHotkeys () |
| Dump all actions and their hotkeys to a text file for inclusion in documentation. | |
Private Attributes | |
| wxSearchCtrl * | m_filterSearch |
Definition at line 42 of file panel_hotkeys_editor.h.
| PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR | ( | EDA_BASE_FRAME * | aFrame, |
| wxWindow * | aWindow ) |
Definition at line 67 of file panel_hotkeys_editor.cpp.
References _, CreateTextFilterBox(), installButtons(), m_bottomSizer, m_filterSearch, m_frame, m_hotkeyListCtrl, m_hotkeyStore, OnFilterSearch(), and RESETTABLE_PANEL::RESETTABLE_PANEL().
| PANEL_HOTKEYS_EDITOR::~PANEL_HOTKEYS_EDITOR | ( | ) |
Definition at line 108 of file panel_hotkeys_editor.cpp.
References m_filterSearch, and OnFilterSearch().
|
inline |
Definition at line 48 of file panel_hotkeys_editor.h.
References m_actions.
Referenced by EDA_BASE_FRAME::ShowPreferences().
|
private |
Dump 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 229 of file panel_hotkeys_editor.cpp.
References _, KeyNameFromKeyCode(), HOTKEY::m_Actions, HOTKEY::m_EditKeycode, m_frame, m_hotkeyStore, FILEEXT::TextFileExtension, and FILEEXT::TextFileWildcard().
Referenced by installButtons().
|
inline |
Definition at line 60 of file panel_hotkeys_editor.h.
References m_bottomSizer.
|
inlineoverrideinherited |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
Definition at line 72 of file resettable_panel.h.
References GetResetTooltip().
|
inlineoverridevirtual |
Get the tooltip the reset button should display when showing this panel.
Reimplemented from RESETTABLE_PANEL.
Definition at line 55 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 198 of file panel_hotkeys_editor.cpp.
References _, FILEEXT::HotkeyFileExtension, FILEEXT::HotkeyFileWildcard(), HOTKEY::m_Actions, HOTKEY::m_EditKeycode, HOTKEY::m_EditKeycodeAlt, m_frame, m_hotkeyListCtrl, m_hotkeyStore, and ReadHotKeyConfig().
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(), and m_hotkeyListCtrl.
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 191 of file panel_hotkeys_editor.cpp.
References m_hotkeyListCtrl.
Referenced by PANEL_HOTKEYS_EDITOR(), and ~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.
|
override |
Definition at line 180 of file panel_hotkeys_editor.cpp.
References m_actions, m_hotkeyListCtrl, and WriteHotKeyConfig().
|
override |
Definition at line 165 of file panel_hotkeys_editor.cpp.
References m_actions, m_filterSearch, m_hotkeyListCtrl, and m_hotkeyStore.
|
protected |
Definition at line 96 of file panel_hotkeys_editor.h.
Referenced by ActionsList(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 95 of file panel_hotkeys_editor.h.
Referenced by GetBottomSizer(), and PANEL_HOTKEYS_EDITOR().
|
private |
Definition at line 91 of file panel_hotkeys_editor.h.
Referenced by PANEL_HOTKEYS_EDITOR(), TransferDataToWindow(), and ~PANEL_HOTKEYS_EDITOR().
|
protected |
Definition at line 94 of file panel_hotkeys_editor.h.
Referenced by dumpHotkeys(), ImportHotKeys(), and PANEL_HOTKEYS_EDITOR().
|
protected |
Definition at line 98 of file panel_hotkeys_editor.h.
Referenced by ImportHotKeys(), installButtons(), OnFilterSearch(), PANEL_HOTKEYS_EDITOR(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protected |
Definition at line 97 of file panel_hotkeys_editor.h.
Referenced by dumpHotkeys(), ImportHotKeys(), PANEL_HOTKEYS_EDITOR(), and TransferDataToWindow().