20#ifndef DB_LIB_PREVIEW_PANEL_H
21#define DB_LIB_PREVIEW_PANEL_H
65 void SetSymbols(
const wxString& aLibNickname, std::vector<std::unique_ptr<LIB_SYMBOL>> aSymbols );
94 std::map<wxString, std::unique_ptr<LIB_SYMBOL>>
m_symbols;
void onFootprintSelected(wxCommandEvent &aEvent)
const LIB_SYMBOL * findSymbol(const LIB_ID &aLibId) const
void showSymbol(const LIB_SYMBOL *aSymbol, int aUnit)
void showFootprint(const wxString &aFootprint)
void onSymbolSelected(wxCommandEvent &aEvent)
WX_DEBOUNCED_ACTION m_footprintLoadRetry
Polls the footprint library load, which DisplayFootprint() needs finished.
FOOTPRINT_PREVIEW_WIDGET * m_footprintPreview
void SelectSymbol(const wxString &aSymbolName)
~DB_LIB_PREVIEW_PANEL() override
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > m_adapter
void SetSymbols(const wxString &aLibNickname, std::vector< std::unique_ptr< LIB_SYMBOL > > aSymbols)
Replaces the previewed library, keeping the selected symbol when it still exists.
DB_LIB_PREVIEW_PANEL(wxWindow *aParent, EDA_BASE_FRAME *aFrame, KIWAY *aKiway, EDA_DRAW_PANEL_GAL::GAL_TYPE aCanvasType)
SYMBOL_PREVIEW_WIDGET * m_symbolPreview
void SetStatus(const wxString &aText)
Shows a one-line status below the library tree.
wxChoice * m_footprintChoice
std::map< wxString, std::unique_ptr< LIB_SYMBOL > > m_symbols
APP_SETTINGS_BASE::LIB_TREE m_treeSettings
The base frame for deriving all KiCad main window classes.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
A logical library item identifier and consists of various portions much like a URI.
Define a library symbol object.
Widget displaying a tree of symbols with optional search text control and description panel.
Debounces an action: runs it only after a quiet period following the last trigger.