29#include <wx/wupdlock.h>
37 wxLC_SINGLE_SEL | wxNO_BORDER )
54 if( linecount >= count )
55 linecount = count - 1;
66 wxString footprintName;
67 int ii = GetFirstSelected();
74 footprintName = msg.AfterFirst( wxChar(
' ' ) );
97 Select( aIndex, aState );
98 EnsureVisible( aIndex );
108 for(
int i = 0; i <
GetCount(); ++i )
112 if( candidate.CmpNoCase(
id ) == 0 )
123 const wxString &aFootPrintFilterPattern,
126 wxArrayString newList;
128 wxString oldSelection;
139 filter.FilterByLibrary( aLibName );
141 if( !aFootPrintFilterPattern.IsEmpty() )
142 filter.FilterByTextPattern( aFootPrintFilterPattern );
149 msg.Printf( wxS(
"%3d %s:%s" ),
150 int( newList.GetCount() + 1 ),
152 i.GetFootprintName() );
163 if( selection == wxNOT_FOUND )
168 wxWindowUpdateLocker freeze(
this );
190 GetParent()->RefreshFootprintViewer();
204 int key =
event.GetKeyCode();
222 key = toupper( key );
232 for( ; jj <
text.Len(); jj++ )
235 if(
text[jj] ==
' ' )
239 for( ; jj <
text.Len(); jj++ )
242 if(
text[jj] !=
' ' )
246 int start_char = toupper(
text[jj] );
248 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.