28 #define LIST_BOX_H_PADDING 20 29 #define LIST_BOX_V_PADDING 8 31 #define LIST_BOX_H_PADDING 10 32 #define LIST_BOX_V_PADDING 5 39 m_receivingEvents( false )
47 for(
const wxString& item : aItems )
49 wxSize extents =
m_listBox->GetTextExtent( item );
50 width = std::max( width, extents.x );
59 GetSizer()->Fit(
this );
97 return DIALOG_SHIM::TryBefore( aEvent );
107 if( wxGetKeyState( WXK_SHIFT ) )
116 if( ++idx >= (
int)
m_listBox->GetCount() )
132 if( !wxGetKeyState( WXK_RAW_CONTROL ) )
134 wxPostEvent(
this, wxCommandEvent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK ) );
137 return DIALOG_SHIM::TryBefore( aEvent );
EDA_VIEW_SWITCHER(wxWindow *aParent, const wxArrayString &aItems)
#define LIST_BOX_H_PADDING
Class EDA_VIEW_SWITCHER_BASE.
bool TryBefore(wxEvent &aEvent) override
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
#define LIST_BOX_V_PADDING
bool Show(bool show) override
bool Show(bool show) override