29#include <wx/wupdlock.h>
36 ITEMS_LISTBOX_BASE( parent, id, wxDefaultPosition, wxDefaultSize, wxLC_SINGLE_SEL | wxNO_BORDER )
53 if( linecount >= count )
54 linecount = count - 1;
65 wxString footprintName;
66 int ii = GetFirstSelected();
73 footprintName = msg.AfterFirst( wxChar(
' ' ) );
96 Select( aIndex, aState );
97 EnsureVisible( aIndex );
107 for(
int i = 0; i <
GetCount(); ++i )
111 if( candidate.CmpNoCase(
id ) == 0 )
122 const wxString &aFootPrintFilterPattern,
125 wxArrayString newList;
127 wxString oldSelection;
138 filter.FilterByLibrary( aLibName );
140 if( !aFootPrintFilterPattern.IsEmpty() )
141 filter.FilterByTextPattern( aFootPrintFilterPattern );
148 msg.Printf( wxS(
"%3d %s:%s" ),
149 int( newList.GetCount() + 1 ),
151 i.GetFootprintName() );
162 if( selection == wxNOT_FOUND )
167 wxWindowUpdateLocker freeze(
this );
192 GetParent()->RefreshFootprintViewer();
212 int key =
event.GetKeyCode();
230 key = toupper( key );
240 for( ; jj <
text.Len(); jj++ )
243 if(
text[jj] ==
' ' )
247 for( ; jj <
text.Len(); jj++ )
250 if(
text[jj] !=
' ' )
254 int start_char = toupper(
text[jj] );
256 if( key == start_char )
Store all of the related footprint information found in a netlist.
const wxArrayString & GetFootprintFilters() const
static TOOL_ACTION associate
The CvPcb application main window.
Base class to display symbol and footprint lists.
void UpdateWidth(int aLine=-1)
Update the width of the column based on its contents.
void DeselectAll()
Remove all selection in lists which can have more than one item selected.
virtual CVPCB_MAINFRAME * GetParent() const
A logical library item identifier and consists of various portions much like a URI.
@ ID_CVPCB_FOOTPRINT_LIST
const wxChar *const kicadTraceKeyEvent
Flag to enable wxKeyEvent debug tracing.
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
wxString dump(const wxArrayString &aArray)
Debug helper for printing wxArrayString contents.
wxLogTrace helper definitions.