KiCad PCB EDA Suite
TEMPLATE_SELECTION_PANEL_BASE Class Reference

Class TEMPLATE_SELECTION_PANEL_BASE. More...

#include <dialog_template_selector_base.h>

Inheritance diagram for TEMPLATE_SELECTION_PANEL_BASE:
TEMPLATE_SELECTION_PANEL

Public Member Functions

 TEMPLATE_SELECTION_PANEL_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1, 140), long style=wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString &name=wxEmptyString)
 
 ~TEMPLATE_SELECTION_PANEL_BASE ()
 

Public Attributes

wxBoxSizer * m_SizerBase
 
wxScrolledWindow * m_scrolledWindow
 
wxGridSizer * m_SizerChoice
 

Detailed Description

Constructor & Destructor Documentation

◆ TEMPLATE_SELECTION_PANEL_BASE()

TEMPLATE_SELECTION_PANEL_BASE::TEMPLATE_SELECTION_PANEL_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,140 ),
long  style = wxTAB_TRAVERSAL|wxBORDER_NONE,
const wxString &  name = wxEmptyString 
)

Definition at line 84 of file dialog_template_selector_base.cpp.

84 : wxPanel( parent, id, pos, size, style, name )
85{
86 m_SizerBase = new wxBoxSizer( wxHORIZONTAL );
87
88 wxBoxSizer* bSizerMargins;
89 bSizerMargins = new wxBoxSizer( wxVERTICAL );
90
91 m_scrolledWindow = new wxScrolledWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxALWAYS_SHOW_SB|wxHSCROLL );
92 m_scrolledWindow->SetScrollRate( 5, 5 );
93 m_SizerChoice = new wxGridSizer( 1, 0, 0, 0 );
94
95
97 m_scrolledWindow->Layout();
99 bSizerMargins->Add( m_scrolledWindow, 1, wxEXPAND|wxLEFT, 5 );
100
101
102 m_SizerBase->Add( bSizerMargins, 1, wxEXPAND|wxBOTTOM|wxLEFT, 5 );
103
104
105 this->SetSizer( m_SizerBase );
106 this->Layout();
107}
const char * name
Definition: DXF_plotter.cpp:56

References m_scrolledWindow, m_SizerBase, and m_SizerChoice.

◆ ~TEMPLATE_SELECTION_PANEL_BASE()

TEMPLATE_SELECTION_PANEL_BASE::~TEMPLATE_SELECTION_PANEL_BASE ( )

Definition at line 109 of file dialog_template_selector_base.cpp.

110{
111}

Member Data Documentation

◆ m_scrolledWindow

wxScrolledWindow* TEMPLATE_SELECTION_PANEL_BASE::m_scrolledWindow

Definition at line 84 of file dialog_template_selector_base.h.

Referenced by TEMPLATE_SELECTION_PANEL_BASE().

◆ m_SizerBase

wxBoxSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerBase

Definition at line 83 of file dialog_template_selector_base.h.

Referenced by TEMPLATE_SELECTION_PANEL_BASE().

◆ m_SizerChoice

wxGridSizer* TEMPLATE_SELECTION_PANEL_BASE::m_SizerChoice

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