24#ifndef DIALOG_CHOOSE_SYMBOL_H
25#define DIALOG_CHOOSE_SYMBOL_H
35class wxStdDialogButtonSizer;
42class wxSplitterWindow;
107 wxObjectDataPtr<LIB_TREE_MODEL_ADAPTER>& aAdapter,
108 int aDeMorganConvert,
bool aAllowFieldEdits,
bool aShowFootprints,
109 bool aAllowBrowser );
Dialog class to select a symbol from the libraries.
void OnFootprintSelected(wxCommandEvent &aEvent)
static constexpr int DblClickDelay
wxPanel * ConstructRightPanel(wxWindow *aParent)
void ShowFootprintFor(const LIB_ID &aLibId)
Look up the footprint for a given symbol specified in the LIB_ID and display it.
wxButton * m_browser_button
void OnCharHook(wxKeyEvent &aEvt) override
LIB_ID GetSelectedLibId(int *aUnit=nullptr) const
To be called after this dialog returns from ShowModal().
static std::mutex g_Mutex
void ShowFootprint(const wxString &aFootprint)
Display the given footprint by name.
bool GetUseAllUnits() const
To be called after this dialog returns from ShowModal()
void OnInitDialog(wxInitDialogEvent &aEvent)
std::vector< std::pair< int, wxString > > GetFields() const
Get a list of fields edited by the user.
static wxString g_powerSearchString
SCH_BASE_FRAME * m_parent
void OnUseBrowser(wxCommandEvent &aEvent)
static wxString g_symbolSearchString
wxCheckBox * m_keepSymbol
bool m_external_browser_requested
wxTimer * m_dbl_click_timer
bool GetKeepSymbol() const
To be called after this dialog returns from ShowModal()
void OnComponentSelected(wxCommandEvent &aEvent)
Handle the selection of an item.
wxSplitterWindow * m_vsplitter
std::vector< std::pair< int, wxString > > m_field_edits
wxSplitterWindow * m_hsplitter
void PopulateFootprintSelector(const LIB_ID &aLibId)
Populate the footprint selector for a given alias.
SYMBOL_PREVIEW_WIDGET * m_symbol_preview
void OnCloseTimer(wxTimerEvent &aEvent)
bool IsExternalBrowserSelected() const
void OnComponentPreselected(wxCommandEvent &aEvent)
FOOTPRINT_SELECT_WIDGET * m_fp_sel_ctrl
FOOTPRINT_PREVIEW_WIDGET * m_fp_preview
DIALOG_CHOOSE_SYMBOL(SCH_BASE_FRAME *aParent, const wxString &aTitle, wxObjectDataPtr< LIB_TREE_MODEL_ADAPTER > &aAdapter, int aDeMorganConvert, bool aAllowFieldEdits, bool aShowFootprints, bool aAllowBrowser)
Create dialog to choose symbol.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
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....
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...