KiCad PCB EDA Suite
panel_hotkeys_editor.cpp File Reference
#include <panel_hotkeys_editor.h>
#include <kiway_player.h>
#include <wx/srchctrl.h>
#include <wx/panel.h>
#include <wx/button.h>
#include <wx/sizer.h>
#include <hotkeys_basic.h>
#include <widgets/button_row_panel.h>
#include <widgets/ui_common.h>
#include <tool/tool_manager.h>
#include <tool/tool_action.h>
#include <wx/tokenzr.h>
#include <gestfich.h>

Go to the source code of this file.

Functions

static wxSearchCtrl * CreateTextFilterBox (wxWindow *aParent, const wxString &aDescriptiveText)
 Helper function to add a filter box to a panel, with some sensible defaults for that purpose. More...
 

Variables

static const wxSize default_dialog_size { 500, 350 }
 
static const wxSize min_dialog_size { -1, 350 }
 

Function Documentation

◆ CreateTextFilterBox()

static wxSearchCtrl* CreateTextFilterBox ( wxWindow *  aParent,
const wxString &  aDescriptiveText 
)
static

Helper function to add a filter box to a panel, with some sensible defaults for that purpose.

Parameters
aParentThe panrent widget/panel
aDescriptiveTextThe text to show when the box is empty.
Returns
A newly constructed filter box - the caller owns it

Definition at line 49 of file panel_hotkeys_editor.cpp.

50 {
51  auto search_widget = new wxSearchCtrl( aParent, wxID_ANY );
52 
53  search_widget->ShowSearchButton( false );
54  search_widget->ShowCancelButton( true );
55 
56  search_widget->SetDescriptiveText( aDescriptiveText);
57 
58  return search_widget;
59 }

Referenced by PANEL_HOTKEYS_EDITOR::PANEL_HOTKEYS_EDITOR().

Variable Documentation

◆ default_dialog_size

const wxSize default_dialog_size { 500, 350 }
static

Definition at line 38 of file panel_hotkeys_editor.cpp.

◆ min_dialog_size

const wxSize min_dialog_size { -1, 350 }
static

Definition at line 39 of file panel_hotkeys_editor.cpp.