25#include <wx/wupdlock.h>
32 ITEMS_LISTBOX_BASE( parent, id, wxDefaultPosition, wxDefaultSize, wxLC_SINGLE_SEL | wxNO_BORDER )
49 if( linecount >= count )
50 linecount = count - 1;
61 wxString footprintName;
62 int ii = GetFirstSelected();
69 footprintName = msg.AfterFirst( wxChar(
' ' ) );
92 Select( aIndex, aState );
93 EnsureVisible( aIndex );
103 for(
int i = 0; i <
GetCount(); ++i )
107 if( candidate.CmpNoCase(
id ) == 0 )
118 const wxString &aFootPrintFilterPattern,
121 wxArrayString newList;
123 wxString oldSelection;
133 wxLogTrace(
"CVPCB_PINCOUNT",
134 wxT(
"FOOTPRINTS_LISTBOX::SetFootprints: ref='%s' pinCount filter=%d" ),
136 filter.FilterByPinCount( pc );
140 filter.FilterByLibrary( aLibName );
142 if( !aFootPrintFilterPattern.IsEmpty() )
143 filter.FilterByTextPattern( aFootPrintFilterPattern );
150 msg.Printf( wxS(
"%3d %s:%s" ),
151 int( newList.GetCount() + 1 ),
153 i.GetFootprintName() );
164 if( selection == wxNOT_FOUND )
169 wxWindowUpdateLocker freeze(
this );
214 int key =
event.GetKeyCode();
232 key = toupper( key );
242 for( ; jj <
text.Len(); jj++ )
245 if(
text[jj] ==
' ' )
249 for( ; jj <
text.Len(); jj++ )
252 if(
text[jj] !=
' ' )
256 int start_char = toupper(
text[jj] );
258 if( key == start_char )
Store all of the related component 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.
wxString dump(const wxArrayString &aArray)
Debug helper for printing wxArrayString contents.
wxLogTrace helper definitions.