24#ifndef PANEL_SYMBOL_CHOOSER_H
25#define PANEL_SYMBOL_CHOOSER_H
34class wxSplitterWindow;
61 std::vector<PICKED_SYMBOL>& aHistoryList,
62 std::vector<PICKED_SYMBOL>& aAlreadyPlaced,
63 bool aAllowFieldEdits,
bool aShowFootprints,
64 std::function<
void()> aAcceptHandler,
65 std::function<
void()> aEscapeHandler );
69 void OnChar( wxKeyEvent& aEvent );
97 std::vector<std::pair<int, wxString>>
GetFields()
const
Add dark theme support to wxHtmlWindow.
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....
wxWindow * GetFocusTarget()
wxTimer * m_dbl_click_timer
SYMBOL_PREVIEW_WIDGET * m_symbol_preview
void onSymbolSelected(wxCommandEvent &aEvent)
void showFootprintFor(const LIB_ID &aLibId)
Look up the footprint for a given symbol specified in the LIB_ID and display it.
std::vector< std::pair< int, wxString > > GetFields() const
Get a list of fields edited by the user.
wxSplitterWindow * m_hsplitter
wxWindow * GetFocusTarget() const
FOOTPRINT_SELECT_WIDGET * m_fp_sel_ctrl
std::function< void()> m_escapeHandler
void OnDetailsCharHook(wxKeyEvent &aEvt)
static wxString g_symbolSearchString
void onCloseTimer(wxTimerEvent &aEvent)
wxSplitterWindow * m_vsplitter
std::vector< std::pair< int, wxString > > m_field_edits
wxTimer * m_open_libs_timer
void showFootprint(const wxString &aFootprint)
Display the given footprint by name.
void populateFootprintSelector(const LIB_ID &aLibId)
Populate the footprint selector for a given alias.
void onOpenLibsTimer(wxTimerEvent &aEvent)
static std::mutex g_Mutex
void onFootprintSelected(wxCommandEvent &aEvent)
static wxString g_powerSearchString
void OnChar(wxKeyEvent &aEvent)
void SetPreselect(const LIB_ID &aPreselect)
std::function< void()> m_acceptHandler
static constexpr int DBLCLICK_DELAY
FOOTPRINT_PREVIEW_WIDGET * m_fp_preview
wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > m_adapter
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
To be called after this dialog returns from ShowModal().
void onSymbolChosen(wxCommandEvent &aEvent)
Handle the selection of an item.
wxPanel * constructRightPanel(wxWindow *aParent)
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Helper object to filter a list of libraries.