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 ()
 
void AddTemplateWidget (TEMPLATE_WIDGET *aTemplateWidget)
 
int GetMinHeight ()
 

Public Attributes

wxBoxSizer * m_SizerBase
 
wxScrolledWindow * m_scrolledWindow
 

Protected Attributes

wxNotebookPage * m_parent
 
wxString m_templatesPath
 the path to access to the folder containing the templates (which are also folders)
 
int m_minHeight
 minimal height to show templates (this is the height of the biggest template widget)
 
wxBoxSizer * m_SizerChoice
 

Detailed Description

Definition at line 66 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 35 of file dialog_template_selector.cpp.

References m_minHeight, m_parent, and m_templatesPath.

Member Function Documentation

◆ AddTemplateWidget()

void TEMPLATE_SELECTION_PANEL::AddTemplateWidget ( TEMPLATE_WIDGET aTemplateWidget)

◆ GetMinHeight()

int TEMPLATE_SELECTION_PANEL::GetMinHeight ( )
inline

Definition at line 79 of file dialog_template_selector.h.

References m_minHeight.

Referenced by DIALOG_TEMPLATE_SELECTOR::AddTemplatesPage().

◆ GetPath()

const wxString & TEMPLATE_SELECTION_PANEL::GetPath ( )
inline

Definition at line 75 of file dialog_template_selector.h.

References m_templatesPath.

Member Data Documentation

◆ m_minHeight

int TEMPLATE_SELECTION_PANEL::m_minHeight
protected

minimal height to show templates (this is the height of the biggest template widget)

Definition at line 85 of file dialog_template_selector.h.

Referenced by AddTemplateWidget(), GetMinHeight(), and TEMPLATE_SELECTION_PANEL().

◆ m_parent

wxNotebookPage* TEMPLATE_SELECTION_PANEL::m_parent
protected

Definition at line 82 of file dialog_template_selector.h.

Referenced by TEMPLATE_SELECTION_PANEL().

◆ m_scrolledWindow

wxScrolledWindow* TEMPLATE_SELECTION_PANEL_BASE::m_scrolledWindow
inherited

◆ m_SizerBase

wxBoxSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerBase
inherited

◆ m_SizerChoice

wxBoxSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerChoice
protectedinherited

◆ 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 83 of file dialog_template_selector.h.

Referenced by GetPath(), and TEMPLATE_SELECTION_PANEL().


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