◆ TEXT_BUTTON_SYMBOL_CHOOSER()
TEXT_BUTTON_SYMBOL_CHOOSER::TEXT_BUTTON_SYMBOL_CHOOSER |
( |
wxWindow * |
aParent, |
|
|
DIALOG_SHIM * |
aParentDlg, |
|
|
const wxString & |
aPreselect |
|
) |
| |
|
inline |
Definition at line 183 of file grid_text_button_helpers.cpp.
184 :
185 wxComboCtrl( aParent ),
188 {
190
191
192 Customize( wxCC_IFLAG_HAS_NONSTANDARD_BUTTON );
193 }
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
References KiBitmap(), and small_library.
◆ DoSetPopupControl()
void TEXT_BUTTON_SYMBOL_CHOOSER::DoSetPopupControl |
( |
wxComboPopup * |
popup | ) |
|
|
inlineoverrideprotected |
◆ escapeLibId()
wxString TEXT_BUTTON_SYMBOL_CHOOSER::escapeLibId |
( |
const wxString & |
aRawValue | ) |
|
|
inlineprotected |
Definition at line 201 of file grid_text_button_helpers.cpp.
202 {
203 wxString itemName;
204 wxString libName = aRawValue.BeforeFirst( ':', &itemName );
206 }
wxString EscapeString(const wxString &aSource, ESCAPE_CONTEXT aContext)
The Escape/Unescape routines use HTML-entity-reference-style encoding to handle characters which are:...
References CTX_LIBID, and EscapeString().
Referenced by OnButtonClick().
◆ OnButtonClick()
void TEXT_BUTTON_SYMBOL_CHOOSER::OnButtonClick |
( |
| ) |
|
|
inlineoverrideprotected |
Definition at line 208 of file grid_text_button_helpers.cpp.
209 {
210
211 wxString rawValue = GetValue();
212
213 if( rawValue.IsEmpty() )
215
218
221
223 }
KIWAY & Kiway() const
Return a reference to the KIWAY that this object has an opportunity to participate in.
A wxFrame capable of the OpenProjectFiles function, meaning it can load a portion of a KiCad project.
virtual bool ShowModal(wxString *aResult=nullptr, wxWindow *aResultantFocusWindow=nullptr)
Show this wxFrame as if it were a modal dialog, with all other instantiated wxFrames disabled until t...
bool Destroy() override
Our version of Destroy() which is virtual from wxWidgets.
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
wxString escapeLibId(const wxString &aRawValue)
wxString UnescapeString(const wxString &aSource)
References KIWAY_PLAYER::Destroy(), escapeLibId(), FRAME_SCH_VIEWER_MODAL, KIWAY_HOLDER::Kiway(), m_dlg, m_preselect, KIWAY::Player(), KIWAY_PLAYER::ShowModal(), and UnescapeString().
◆ m_dlg
◆ m_preselect
wxString TEXT_BUTTON_SYMBOL_CHOOSER::m_preselect |
|
protected |
The documentation for this class was generated from the following file: