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

#include <dialog_template_selector.h>

Inheritance diagram for TEMPLATE_SELECTION_PANEL:
TEMPLATE_SELECTION_PANEL_BASE

Public Member Functions

 TEMPLATE_SELECTION_PANEL (wxNotebookPage *aParent, const wxString &aPath)
 
const wxString & GetPath () const
 
void AddTemplateWidget (TEMPLATE_WIDGET *aTemplateWidget)
 
void SortAlphabetically ()
 
void SetIsUserTemplates (bool aIsUser)
 Set whether templates in this panel are user templates (can be edited/duplicated)
 
bool IsUserTemplates () const
 

Public Attributes

wxBoxSizer * m_SizerBase
 
wxScrolledWindow * m_scrolledWindow
 
wxBoxSizer * m_SizerChoice
 

Protected Attributes

wxNotebookPage * m_parent
 
wxString m_templatesPath
 the path to access to the folder containing the templates (which are also folders)
 
bool m_isUserTemplates
 true if this panel contains user templates
 

Detailed Description

Definition at line 83 of file dialog_template_selector.h.

Constructor & Destructor Documentation

◆ TEMPLATE_SELECTION_PANEL()

TEMPLATE_SELECTION_PANEL::TEMPLATE_SELECTION_PANEL ( wxNotebookPage * aParent,
const wxString & aPath )
Parameters
aParentThe window creating the dialog
aPaththe path

Definition at line 46 of file dialog_template_selector.cpp.

References m_isUserTemplates, m_parent, m_templatesPath, and TEMPLATE_SELECTION_PANEL_BASE::TEMPLATE_SELECTION_PANEL_BASE().

Member Function Documentation

◆ AddTemplateWidget()

void TEMPLATE_SELECTION_PANEL::AddTemplateWidget ( TEMPLATE_WIDGET * aTemplateWidget)

◆ GetPath()

const wxString & TEMPLATE_SELECTION_PANEL::GetPath ( ) const
inline

Definition at line 92 of file dialog_template_selector.h.

References m_templatesPath.

◆ IsUserTemplates()

bool TEMPLATE_SELECTION_PANEL::IsUserTemplates ( ) const
inline

Definition at line 102 of file dialog_template_selector.h.

References m_isUserTemplates.

◆ SetIsUserTemplates()

void TEMPLATE_SELECTION_PANEL::SetIsUserTemplates ( bool aIsUser)
inline

Set whether templates in this panel are user templates (can be edited/duplicated)

Definition at line 101 of file dialog_template_selector.h.

References m_isUserTemplates.

Referenced by DIALOG_TEMPLATE_SELECTOR::DIALOG_TEMPLATE_SELECTOR(), and DIALOG_TEMPLATE_SELECTOR::replaceCurrentPage().

◆ SortAlphabetically()

void TEMPLATE_SELECTION_PANEL::SortAlphabetically ( )

Member Data Documentation

◆ m_isUserTemplates

bool TEMPLATE_SELECTION_PANEL::m_isUserTemplates
protected

true if this panel contains user templates

Definition at line 108 of file dialog_template_selector.h.

Referenced by IsUserTemplates(), SetIsUserTemplates(), and TEMPLATE_SELECTION_PANEL().

◆ m_parent

wxNotebookPage* TEMPLATE_SELECTION_PANEL::m_parent
protected

Definition at line 105 of file dialog_template_selector.h.

Referenced by TEMPLATE_SELECTION_PANEL().

◆ m_scrolledWindow

wxScrolledWindow* TEMPLATE_SELECTION_PANEL_BASE::m_scrolledWindow
inherited

Definition at line 81 of file dialog_template_selector_base.h.

Referenced by TEMPLATE_SELECTION_PANEL_BASE().

◆ m_SizerBase

wxBoxSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerBase
inherited

◆ m_SizerChoice

wxBoxSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerChoice
inherited

◆ m_templatesPath

wxString TEMPLATE_SELECTION_PANEL::m_templatesPath
protected

the path to access to the folder containing the templates (which are also folders)

Definition at line 106 of file dialog_template_selector.h.

Referenced by GetPath(), and TEMPLATE_SELECTION_PANEL().


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