54 if( linecount >= count )
55 linecount = count - 1;
66 int ii = GetFirstSelected();
71 libName.Trim(
false );
85 SetItemCount( lines );
100 if( (index >= 0) && (
GetCount() > 0) )
103 Select( index, State );
105 EnsureVisible( index );
139 int key =
event.GetKeyCode();
159 for(
unsigned ii = 0; ii < m_libraryList.GetCount(); ii++ )
161 wxString
text = m_libraryList.Item( ii );
167 for( ; jj <
text.Len(); jj++ )
170 if(
text[jj] ==
' ' )
174 for( ; jj <
text.Len(); jj++ )
177 if(
text[jj] !=
' ' )
181 int start_char = toupper(
text[jj] );
183 if( key == start_char )
185 SetSelection( ii,
true );
The CvPcb application main window.
@ FILTER_ENABLE
Turn on the filter.
void SetFootprintFilter(FOOTPRINTS_LISTBOX::FP_FILTER_T aFilter, CVPCB_MAINFRAME::CVPCB_FILTER_ACTION aAction)
Set a filter criteria to either on/off or toggle the criteria.
void OnSelectComponent(wxListEvent &event)
Called when clicking on a component in component list window:
Base class to display symbol and footprint lists.
void UpdateWidth(int aLine=-1)
Update the width of the column based on its contents.
virtual CVPCB_MAINFRAME * GetParent() const
void SetString(unsigned linecount, const wxString &text)
wxArrayString m_libraryList
wxString OnGetItemText(long item, long column) const override
void OnChar(wxKeyEvent &event)
Called on a key press.
void OnSelectLibrary(wxListEvent &event)
void AppendLine(const wxString &text)
LIBRARY_LISTBOX(CVPCB_MAINFRAME *parent, wxWindowID id)
void SetSelection(int index, bool State=true)
wxString GetSelectedLibrary()
static const wxString GetPinningSymbol()
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.