27#include <wx/listctrl.h>
36#define LISTBOX_STYLE ( wxBORDER_NONE | wxLC_NO_HEADER | wxLC_REPORT | wxLC_VIRTUAL | \
37 wxVSCROLL | wxHSCROLL )
46 const wxPoint& aLocation = wxDefaultPosition,
47 const wxSize& aSize = wxDefaultSize,
long aStyle = 0 );
121 const wxString& aFootPrintFilterPattern,
int aFilterType );
129 wxString
OnGetItemText(
long item,
long column )
const override;
134 void OnChar( wxKeyEvent& event );
157 wxString
OnGetItemText(
long item,
long column )
const override;
172 void OnChar( wxKeyEvent& event );
195 wxString
OnGetItemText(
long item,
long column )
const override;
220 void OnChar( wxKeyEvent& event );
Store all of the related footprint information found in a netlist.
The CvPcb application main window.
Base class to display symbol and footprint lists.
void UpdateWidth(int aLine=-1)
Update the width of the column based on its contents.
void DeselectAll()
Remove all selection in lists which can have more than one item selected.
void UpdateLineWidth(unsigned aLine, wxClientDC &dc)
Calculate the width of the given line, and increase the column width if needed.
ITEMS_LISTBOX_BASE(CVPCB_MAINFRAME *aParent, wxWindowID aId, const wxPoint &aLocation=wxDefaultPosition, const wxSize &aSize=wxDefaultSize, long aStyle=0)
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()
A logical library item identifier and consists of various portions much like a URI.
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)