KiCad PCB EDA Suite
TEMPLATE_WIDGET_BASE Class Reference

Class TEMPLATE_WIDGET_BASE. More...

#include <dialog_template_selector_base.h>

Inheritance diagram for TEMPLATE_WIDGET_BASE:
TEMPLATE_WIDGET

Public Member Functions

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

Protected Attributes

wxStaticBitmap * m_bitmapIcon
 
wxStaticText * m_staticTitle
 

Detailed Description

Class TEMPLATE_WIDGET_BASE.

Definition at line 96 of file dialog_template_selector_base.h.

Constructor & Destructor Documentation

◆ TEMPLATE_WIDGET_BASE()

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

Definition at line 113 of file dialog_template_selector_base.cpp.

113 : wxPanel( parent, id, pos, size, style, name )
114{
115 this->SetMinSize( wxSize( 108,-1 ) );
116 this->SetMaxSize( wxSize( 108,-1 ) );
117
118 wxBoxSizer* bSizerMain;
119 bSizerMain = new wxBoxSizer( wxVERTICAL );
120
121 m_bitmapIcon = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 64,64 ), 0 );
122 m_bitmapIcon->SetMinSize( wxSize( 64,64 ) );
123
124 bSizerMain->Add( m_bitmapIcon, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
125
126 m_staticTitle = new wxStaticText( this, wxID_ANY, _("Project Template Title"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
127 m_staticTitle->Wrap( 100 );
128 bSizerMain->Add( m_staticTitle, 1, wxALIGN_CENTER_HORIZONTAL|wxBOTTOM|wxRIGHT|wxLEFT, 2 );
129
130
131 this->SetSizer( bSizerMain );
132 this->Layout();
133}
const char * name
Definition: DXF_plotter.cpp:56
#define _(s)

References _, m_bitmapIcon, and m_staticTitle.

◆ ~TEMPLATE_WIDGET_BASE()

TEMPLATE_WIDGET_BASE::~TEMPLATE_WIDGET_BASE ( )

Definition at line 135 of file dialog_template_selector_base.cpp.

136{
137}

Member Data Documentation

◆ m_bitmapIcon

wxStaticBitmap* TEMPLATE_WIDGET_BASE::m_bitmapIcon
protected

◆ m_staticTitle

wxStaticText* TEMPLATE_WIDGET_BASE::m_staticTitle
protected

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