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( (index >= 0) && (
GetCount() > 0) )
109 Select( index, State );
110 EnsureVisible( index );
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( wxT(
"%3d %s:%s" ),
162 int( newList.GetCount() + 1 ),
164 i.GetFootprintName() );
175 if( selection == wxNOT_FOUND )
180 wxWindowUpdateLocker freeze(
this );
202 if( m_footprintList.IsEmpty() )
209 bool hasFocus = HasFocus();
212 if( GetParent()->GetFootprintViewerFrame() )
215 GetParent()->DisplayStatus();
232 int key =
event.GetKeyCode();
250 key = toupper( key );
260 for( ; jj <
text.Len(); jj++ )
263 if(
text[jj] ==
' ' )
267 for( ; jj <
text.Len(); jj++ )
269 if(
text[jj] !=
' ' )
273 int start_char = toupper(
text[jj] );
275 if( key == start_char )
static TOOL_ACTION showFootprintViewer
Open the footprint viewer.
void DeselectAll()
Remove all selection in lists which can have more than one item selected.
A logical library item identifier and consists of various portions much like a URI.
Base class to display symbol and footprint lists.
void UpdateWidth(int aLine=-1)
Update the width of the column based on its contents.
wxString dump(const wxArrayString &aArray)
Debug helper for printing wxArrayString contents.
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
wxLogTrace helper definitions.
Store all of the related footprint information found in a netlist.
const wxChar *const kicadTraceKeyEvent
Flag to enable wxKeyEvent debug tracing.
const wxArrayString & GetFootprintFilters() const
static TOOL_ACTION associate
The CvPcb application main window.
virtual CVPCB_MAINFRAME * GetParent() const