KiCad PCB EDA Suite
Loading...
Searching...
No Matches
TEMPLATE_MRU_WIDGET Class Reference

A widget displaying a recently used template with a small icon and title. More...

#include <dialog_template_selector.h>

Inheritance diagram for TEMPLATE_MRU_WIDGET:

Public Member Functions

 TEMPLATE_MRU_WIDGET (wxWindow *aParent, DIALOG_TEMPLATE_SELECTOR *aDialog, const wxString &aPath, const wxString &aTitle, const wxBitmap &aIcon)
 
wxString GetTemplatePath () const
 

Protected Member Functions

void OnClick (wxMouseEvent &event)
 
void OnDoubleClick (wxMouseEvent &event)
 
void OnEnter (wxMouseEvent &event)
 
void OnLeave (wxMouseEvent &event)
 

Private Attributes

DIALOG_TEMPLATE_SELECTORm_dialog
 
wxString m_templatePath
 

Detailed Description

A widget displaying a recently used template with a small icon and title.

Definition at line 48 of file dialog_template_selector.h.

Constructor & Destructor Documentation

◆ TEMPLATE_MRU_WIDGET()

TEMPLATE_MRU_WIDGET::TEMPLATE_MRU_WIDGET ( wxWindow * aParent,
DIALOG_TEMPLATE_SELECTOR * aDialog,
const wxString & aPath,
const wxString & aTitle,
const wxBitmap & aIcon )

Member Function Documentation

◆ GetTemplatePath()

wxString TEMPLATE_MRU_WIDGET::GetTemplatePath ( ) const
inline

Definition at line 54 of file dialog_template_selector.h.

References m_templatePath.

◆ OnClick()

void TEMPLATE_MRU_WIDGET::OnClick ( wxMouseEvent & event)
protected

Definition at line 87 of file dialog_template_selector.cpp.

References m_dialog, and m_templatePath.

Referenced by TEMPLATE_MRU_WIDGET().

◆ OnDoubleClick()

void TEMPLATE_MRU_WIDGET::OnDoubleClick ( wxMouseEvent & event)
protected

Definition at line 95 of file dialog_template_selector.cpp.

References m_dialog, and m_templatePath.

Referenced by TEMPLATE_MRU_WIDGET().

◆ OnEnter()

void TEMPLATE_MRU_WIDGET::OnEnter ( wxMouseEvent & event)
protected

Definition at line 103 of file dialog_template_selector.cpp.

References Refresh().

Referenced by TEMPLATE_MRU_WIDGET().

◆ OnLeave()

void TEMPLATE_MRU_WIDGET::OnLeave ( wxMouseEvent & event)
protected

Definition at line 111 of file dialog_template_selector.cpp.

References Refresh().

Referenced by TEMPLATE_MRU_WIDGET().

Member Data Documentation

◆ m_dialog

DIALOG_TEMPLATE_SELECTOR* TEMPLATE_MRU_WIDGET::m_dialog
private

Definition at line 63 of file dialog_template_selector.h.

Referenced by OnClick(), OnDoubleClick(), and TEMPLATE_MRU_WIDGET().

◆ m_templatePath

wxString TEMPLATE_MRU_WIDGET::m_templatePath
private

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