KiCad PCB EDA Suite
Loading...
Searching...
No Matches
HOTKEY_FILTER Class Reference

Manage logic for filtering hotkeys based on user input. More...

Public Member Functions

 HOTKEY_FILTER (const wxString &aFilterStr)
 
bool FilterMatches (const HOTKEY &aHotkey) const
 Check if the filter matches the given hotkey.
 

Private Attributes

bool m_valid
 
wxString m_normalised_filter_str
 

Detailed Description

Manage logic for filtering hotkeys based on user input.

Definition at line 250 of file widget_hotkey_list.cpp.

Constructor & Destructor Documentation

◆ HOTKEY_FILTER()

HOTKEY_FILTER::HOTKEY_FILTER ( const wxString &  aFilterStr)
inline

Definition at line 253 of file widget_hotkey_list.cpp.

References m_normalised_filter_str, and m_valid.

Member Function Documentation

◆ FilterMatches()

bool HOTKEY_FILTER::FilterMatches ( const HOTKEY aHotkey) const
inline

Check if the filter matches the given hotkey.

Returns
true on match (or if filter is disabled)

Definition at line 264 of file widget_hotkey_list.cpp.

References KeyNameFromKeyCode(), HOTKEY::m_Actions, HOTKEY::m_EditKeycode, m_normalised_filter_str, and m_valid.

Member Data Documentation

◆ m_normalised_filter_str

wxString HOTKEY_FILTER::m_normalised_filter_str
private

Definition at line 285 of file widget_hotkey_list.cpp.

Referenced by FilterMatches(), and HOTKEY_FILTER().

◆ m_valid

bool HOTKEY_FILTER::m_valid
private

Definition at line 284 of file widget_hotkey_list.cpp.

Referenced by FilterMatches(), and HOTKEY_FILTER().


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