23#ifndef PANEL_DESIGN_BLOCK_CHOOSER_H 
   24#define PANEL_DESIGN_BLOCK_CHOOSER_H 
   32class wxSplitterWindow;
 
   52                                std::vector<LIB_ID>&  aHistoryList,
 
   53                                std::function<
void()> aSelectHandler,
 
   60    void OnChar( wxKeyEvent& aEvent );
 
 
The base class for create windows for drawing purpose.
 
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)
 
wxPanel * GetDetailsPanel()
 
PANEL_DESIGN_BLOCK_CHOOSER(EDA_DRAW_FRAME *aFrame, DESIGN_BLOCK_PANE *aParent, std::vector< LIB_ID > &aHistoryList, std::function< void()> aSelectHandler, TOOL_INTERACTIVE *aContextMenuTool)
Panel for using design blocks.
 
wxTimer * m_dbl_click_timer
 
DESIGN_BLOCK_PANE * m_parent
 
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 SetPreviewWidget(DESIGN_BLOCK_PREVIEW_WIDGET *aPreview)
 
void OnChar(wxKeyEvent &aEvent)
 
void OnDetailsCharHook(wxKeyEvent &aEvt)
 
wxBoxSizer * m_detailsSizer
 
static constexpr int DBLCLICK_DELAY
 
~PANEL_DESIGN_BLOCK_CHOOSER()
 
void rebuildHistoryNode()
 
void ShowChangedLanguage()
 
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)