KiCad PCB EDA Suite
TEXT_BUTTON_URL Class Reference
Inheritance diagram for TEXT_BUTTON_URL:

Public Member Functions

 TEXT_BUTTON_URL (wxWindow *aParent, DIALOG_SHIM *aParentDlg, SEARCH_STACK *aSearchStack)
 

Protected Member Functions

void DoSetPopupControl (wxComboPopup *popup) override
 
void OnButtonClick () override
 

Protected Attributes

DIALOG_SHIMm_dlg
 
SEARCH_STACKm_searchStack
 

Detailed Description

Definition at line 317 of file grid_text_button_helpers.cpp.

Constructor & Destructor Documentation

◆ TEXT_BUTTON_URL()

TEXT_BUTTON_URL::TEXT_BUTTON_URL ( wxWindow *  aParent,
DIALOG_SHIM aParentDlg,
SEARCH_STACK aSearchStack 
)
inline

Definition at line 320 of file grid_text_button_helpers.cpp.

320 :
321 wxComboCtrl( aParent, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize,
322 wxTE_PROCESS_ENTER ),
323 m_dlg( aParentDlg ),
324 m_searchStack( aSearchStack )
325 {
326 SetButtonBitmaps( KiBitmap( BITMAPS::www ) );
327
328 // win32 fix, avoids drawing the "native dropdown caret"
329 Customize( wxCC_IFLAG_HAS_NONSTANDARD_BUTTON );
330 }
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Definition: bitmap.cpp:105

References KiBitmap(), and www.

Member Function Documentation

◆ DoSetPopupControl()

void TEXT_BUTTON_URL::DoSetPopupControl ( wxComboPopup *  popup)
inlineoverrideprotected

Definition at line 333 of file grid_text_button_helpers.cpp.

334 {
335 m_popup = nullptr;
336 }

◆ OnButtonClick()

void TEXT_BUTTON_URL::OnButtonClick ( )
inlineoverrideprotected

Definition at line 338 of file grid_text_button_helpers.cpp.

339 {
340 wxString filename = GetValue();
341
342 if( !filename.IsEmpty() && filename != wxT( "~" ) )
344 }
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
bool GetAssociatedDocument(wxWindow *aParent, const wxString &aDocName, PROJECT *aProject, SEARCH_STACK *aPaths)
Open a document (file) with the suitable browser.
Definition: eda_doc.cpp:74

References GetAssociatedDocument(), m_dlg, m_searchStack, and KIWAY_HOLDER::Prj().

Member Data Documentation

◆ m_dlg

DIALOG_SHIM* TEXT_BUTTON_URL::m_dlg
protected

Definition at line 346 of file grid_text_button_helpers.cpp.

Referenced by OnButtonClick().

◆ m_searchStack

SEARCH_STACK* TEXT_BUTTON_URL::m_searchStack
protected

Definition at line 347 of file grid_text_button_helpers.cpp.

Referenced by OnButtonClick().


The documentation for this class was generated from the following file: