28#define LIST_BOX_H_PADDING 20
29#define LIST_BOX_V_PADDING 8
31#define LIST_BOX_H_PADDING 40
32#define LIST_BOX_V_PADDING 5
34#define LIST_BOX_H_PADDING 10
35#define LIST_BOX_V_PADDING 5
38#define SHOW_TIME_MS 500
43 m_drawFrame( aParent )
56 [=,
this]( wxKeyEvent& aEvent )
58 aEvent.SetEventType( wxEVT_CHAR );
78 m_listBox->SetSelection( std::min( aSelection,
79 static_cast<int>(
m_listBox->GetCount() ) - 1 ) );
81 int width =
m_stTitle->GetTextExtent( aTitle ).x;
84 for(
const wxString& item : aItems )
86 wxSize extents =
m_listBox->GetTextExtent( item );
87 width = std::max( width, extents.x );
96 GetSizer()->Fit(
this );
115 if( aEvent.GetEventType() == wxEVT_CHAR || aEvent.GetEventType() == wxEVT_CHAR_HOOK )
117 aEvent.SetEventType( wxEVT_CHAR );
123 return EDA_VIEW_SWITCHER_BASE::TryBefore( aEvent );
bool Show(bool show) override
The base class for create windows for drawing purpose.
virtual EDA_DRAW_PANEL_GAL * GetCanvas() const
Return a pointer to GAL-based canvas of given EDA draw frame.
void OnEvent(wxEvent &aEvent)
Used to forward events to the canvas from popups, etc.
Class EDA_VIEW_SWITCHER_BASE.
#define LIST_BOX_V_PADDING
#define LIST_BOX_H_PADDING
KICOMMON_API const wxString s_FocusStealableInputName