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;
137 wxLogTrace(
"CVPCB_PINCOUNT",
138 wxT(
"FOOTPRINTS_LISTBOX::SetFootprints: ref='%s' pinCount filter=%d" ),
140 filter.FilterByPinCount( pc );
144 filter.FilterByLibrary( aLibName );
146 if( !aFootPrintFilterPattern.IsEmpty() )
147 filter.FilterByTextPattern( aFootPrintFilterPattern );
154 msg.Printf( wxS(
"%3d %s:%s" ),
155 int( newList.GetCount() + 1 ),
157 i.GetFootprintName() );
168 if( selection == wxNOT_FOUND )
173 wxWindowUpdateLocker freeze(
this );
218 int key =
event.GetKeyCode();
236 key = toupper( key );
246 for( ; jj <
text.Len(); jj++ )
249 if(
text[jj] ==
' ' )
253 for( ; jj <
text.Len(); jj++ )
256 if(
text[jj] !=
' ' )
260 int start_char = toupper(
text[jj] );
262 if( key == start_char )
Store all of the related footprint information found in a netlist.
const wxString & GetReference() const
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.
ITEMS_LISTBOX_BASE(CVPCB_MAINFRAME *aParent, wxWindowID aId, const wxPoint &aLocation=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0)
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.