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