23#ifndef PANEL_DESIGN_BLOCK_CHOOSER_H
24#define PANEL_DESIGN_BLOCK_CHOOSER_H
32class wxSplitterWindow;
50 std::vector<LIB_ID>& aHistoryList,
51 std::function<
void()> aSelectHandler );
55 void OnChar( wxKeyEvent& aEvent );
A logical library item identifier and consists of various portions much like a URI.
Widget displaying a tree of symbols with optional search text control and description panel....
static wxString g_designBlockSearchString
DESIGN_BLOCK_PREVIEW_WIDGET * m_preview
std::function< void()> m_selectHandler
void onOpenLibsTimer(wxTimerEvent &aEvent)
void addDesignBlockToHistory(const LIB_ID &aLibId)
wxTimer * m_dbl_click_timer
void SetPreselect(const LIB_ID &aPreselect)
void onCloseTimer(wxTimerEvent &aEvent)
wxSplitterWindow * m_vsplitter
void displayErrors(wxTopLevelWindow *aWindow)
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
To be called after this dialog returns from ShowModal().
void OnChar(wxKeyEvent &aEvent)
void OnDetailsCharHook(wxKeyEvent &aEvt)
static constexpr int DBLCLICK_DELAY
~PANEL_DESIGN_BLOCK_CHOOSER()
void rebuildHistoryNode()
void RefreshLibs(bool aProgress=false)
std::vector< LIB_ID > m_historyList
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > m_adapter
wxTimer * m_open_libs_timer
void onDesignBlockSelected(wxCommandEvent &aEvent)
void onDesignBlockChosen(wxCommandEvent &aEvent)
Handle the selection of an item.
void SelectLibId(const LIB_ID &aLibId)
Schematic editor (Eeschema) main window.