62 if( linecount >= count )
63 linecount = count - 1;
73 int ii = GetFirstSelected();
88 SetItemCount( lines );
104 if( (index >= 0) && (
GetCount() > 0) )
107 Select( index, State );
109 EnsureVisible( index );
146 int key =
event.GetKeyCode();
166 for(
unsigned ii = 0; ii < m_libraryList.GetCount(); ii++ )
168 wxString
text = m_libraryList.Item( ii );
174 for( ; jj <
text.Len(); jj++ )
177 if(
text[jj] ==
' ' )
181 for( ; jj <
text.Len(); jj++ )
183 if(
text[jj] !=
' ' )
187 int start_char = toupper(
text[jj] );
189 if( key == start_char )
191 SetSelection( ii,
true );
void SetLibraryList(const wxArrayString &aList)
void AppendLine(const wxString &text)
void OnChar(wxKeyEvent &event)
Function OnChar called on a key pressed Call default handler for some special keys,...
wxString OnGetItemText(long item, long column) const override
void OnSelectLibrary(wxListEvent &event)
void OnSelectComponent(wxListEvent &event)
Function OnSelectComponent Called when clicking on a component in component list window.
void UpdateWidth(int aLine=-1)
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...
void SetString(unsigned linecount, const wxString &text)
wxString GetSelectedLibrary()
wxLogTrace helper definitions.
LIBRARY_LISTBOX(CVPCB_MAINFRAME *parent, wxWindowID id)
wxArrayString m_libraryList
void SetSelection(int index, bool State=true)
const wxChar *const kicadTraceKeyEvent
Flag to enable wxKeyEvent debug tracing.
void SetFootprintFilter(FOOTPRINTS_LISTBOX::FP_FILTER_T aFilter, CVPCB_MAINFRAME::CVPCB_FILTER_ACTION aAction)
Function SetFootprintFilter Set a filter criteria to either on/off or toggle the criteria.
The CvPcb application main window.
virtual CVPCB_MAINFRAME * GetParent() const