29#include <wx/wupdlock.h>
37 ITEMS_LISTBOX_BASE( parent, id, wxDefaultPosition, wxDefaultSize, wxLC_SINGLE_SEL|wxNO_BORDER )
58 if( linecount >= count )
59 linecount = count - 1;
69 wxString footprintName;
70 int ii = GetFirstSelected();
77 footprintName = msg.AfterFirst( wxChar(
' ' ) );
88 SetItemCount( lines );
107 if(( aIndex >= 0) && (
GetCount() > 0) )
109 Select( aIndex, aState );
110 EnsureVisible( aIndex );
120 for(
int i = 0; i <
GetCount(); ++i )
124 if( candidate.CmpNoCase(
id ) == 0 )
135 const wxString &aFootPrintFilterPattern,
138 wxArrayString newList;
140 wxString oldSelection;
151 filter.FilterByLibrary( aLibName );
153 if( !aFootPrintFilterPattern.IsEmpty() )
154 filter.FilterByTextPattern( aFootPrintFilterPattern );
161 msg.Printf( wxS(
"%3d %s:%s" ),
162 int( newList.GetCount() + 1 ),
164 i.GetFootprintName() );
175 if( selection == wxNOT_FOUND )
180 wxWindowUpdateLocker freeze(
this );
202 GetParent()->RefreshFootprintViewer();
216 int key =
event.GetKeyCode();
234 key = toupper( key );
244 for( ; jj <
text.Len(); jj++ )
247 if(
text[jj] ==
' ' )
251 for( ; jj <
text.Len(); jj++ )
253 if(
text[jj] !=
' ' )
257 int start_char = toupper(
text[jj] );
259 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.