64 if( linecount >= count )
65 linecount = count - 1;
76 int ii = GetFirstSelected();
81 libName.Trim(
false );
95 SetItemCount( lines );
110 if( (index >= 0) && (
GetCount() > 0) )
113 Select( index, State );
115 EnsureVisible( index );
147 int key =
event.GetKeyCode();
167 for(
unsigned ii = 0; ii < m_libraryList.GetCount(); ii++ )
169 wxString
text = m_libraryList.Item( ii );
175 for( ; jj <
text.Len(); jj++ )
178 if(
text[jj] ==
' ' )
182 for( ; jj <
text.Len(); jj++ )
184 if(
text[jj] !=
' ' )
188 int start_char = toupper(
text[jj] );
190 if( key == start_char )
192 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.