38 : wxColour( 255, 248, 212 ) );
78 SetItemCount( lines );
124 Select(
index, State );
125 EnsureVisible(
index );
141 int key =
event.GetKeyCode();
160 key = toupper( key );
162 for(
unsigned ii = 0; ii <
m_SymbolList.GetCount(); ii++ )
170 for( ; jj <
text.Len(); jj++ )
172 if(
text[jj] ==
' ' )
176 for( ; jj <
text.Len(); jj++ )
178 if(
text[jj] !=
' ' )
182 int start_char = toupper(
text[jj] );
184 if( key == start_char )
The CvPcb application main window.
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.
ITEMS_LISTBOX_BASE(CVPCB_MAINFRAME *aParent, wxWindowID aId, const wxPoint &aLocation=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0)
virtual CVPCB_MAINFRAME * GetParent() const
wxString OnGetItemText(long item, long column) const override
This overloaded function MUST be provided for the wxLC_VIRTUAL mode because real data is not handled ...
std::vector< long > m_symbolWarning
void OnChar(wxKeyEvent &event)
Called on a key press.
wxListItemAttr * OnGetItemAttr(long item) const override
wxArrayString m_SymbolList
void OnSelectComponent(wxListEvent &event)
void SetString(unsigned linecount, const wxString &text)
SYMBOLS_LISTBOX(CVPCB_MAINFRAME *parent, wxWindowID id)
void SetSelection(int index, bool State=true)
void AppendWarning(int index)
std::unique_ptr< wxListItemAttr > m_warningAttr
void RemoveWarning(int index)
void AppendLine(const wxString &text)
@ ID_CVPCB_COMPONENT_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.