39 m_warningAttr(
std::make_unique<wxListItemAttr>() )
42 : wxColour( 255, 248, 212 ) );
87 SetItemCount( lines );
132 if( (index >= 0) && (
GetCount() > 0) )
134 Select( index, State );
135 EnsureVisible( index );
148 int key =
event.GetKeyCode();
167 key = toupper( key );
169 for(
unsigned ii = 0; ii <
m_SymbolList.GetCount(); ii++ )
177 for( ; jj <
text.Len(); jj++ )
179 if(
text[jj] ==
' ' )
183 for( ; jj <
text.Len(); jj++ )
185 if(
text[jj] !=
' ' )
189 int start_char = toupper(
text[jj] );
191 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.
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.