KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_board_class_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
14PANEL_BOARD_CLASS_BASE::PANEL_BOARD_CLASS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : CALCULATOR_PANEL( parent, id, pos, size, style, name )
15{
16 wxBoxSizer* bSizerBoardClass;
17 bSizerBoardClass = new wxBoxSizer( wxHORIZONTAL );
18
19 wxBoxSizer* bSizerUnitsMargins;
20 bSizerUnitsMargins = new wxBoxSizer( wxVERTICAL );
21
22 wxArrayString m_BoardClassesUnitsSelectorChoices;
23 m_BoardClassesUnitsSelector = new UNIT_SELECTOR_LEN( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_BoardClassesUnitsSelectorChoices, 0 );
24 m_BoardClassesUnitsSelector->SetSelection( 0 );
25 bSizerUnitsMargins->Add( m_BoardClassesUnitsSelector, 0, wxTOP|wxBOTTOM|wxRIGHT, 32 );
26
27
28 bSizerBoardClass->Add( bSizerUnitsMargins, 0, wxLEFT, 10 );
29
30 wxBoxSizer* brdclsSizerRight;
31 brdclsSizerRight = new wxBoxSizer( wxVERTICAL );
32
33 m_staticTextBrdClass = new wxStaticText( this, wxID_ANY, _("Note: Values are minimal values"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_staticTextBrdClass->Wrap( -1 );
35 m_staticTextBrdClass->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_BOLD, false, wxEmptyString ) );
36
37 brdclsSizerRight->Add( m_staticTextBrdClass, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );
38
39 m_gridClassesValuesDisplay = new wxGrid( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
40
41 // Grid
42 m_gridClassesValuesDisplay->CreateGrid( 5, 6 );
43 m_gridClassesValuesDisplay->EnableEditing( false );
44 m_gridClassesValuesDisplay->EnableGridLines( true );
45 m_gridClassesValuesDisplay->EnableDragGridSize( false );
46 m_gridClassesValuesDisplay->SetMargins( 0, 0 );
47
48 // Columns
49 m_gridClassesValuesDisplay->SetColSize( 0, 100 );
50 m_gridClassesValuesDisplay->SetColSize( 1, 100 );
51 m_gridClassesValuesDisplay->SetColSize( 2, 100 );
52 m_gridClassesValuesDisplay->SetColSize( 3, 100 );
53 m_gridClassesValuesDisplay->SetColSize( 4, 100 );
54 m_gridClassesValuesDisplay->SetColSize( 5, 100 );
55 m_gridClassesValuesDisplay->EnableDragColMove( false );
56 m_gridClassesValuesDisplay->EnableDragColSize( true );
57 m_gridClassesValuesDisplay->SetColLabelValue( 0, _("Class 1") );
58 m_gridClassesValuesDisplay->SetColLabelValue( 1, _("Class 2") );
59 m_gridClassesValuesDisplay->SetColLabelValue( 2, _("Class 3") );
60 m_gridClassesValuesDisplay->SetColLabelValue( 3, _("Class 4") );
61 m_gridClassesValuesDisplay->SetColLabelValue( 4, _("Class 5") );
62 m_gridClassesValuesDisplay->SetColLabelValue( 5, _("Class 6") );
63 m_gridClassesValuesDisplay->SetColLabelSize( 30 );
64 m_gridClassesValuesDisplay->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
65
66 // Rows
67 m_gridClassesValuesDisplay->SetRowSize( 0, 24 );
68 m_gridClassesValuesDisplay->SetRowSize( 1, 24 );
69 m_gridClassesValuesDisplay->SetRowSize( 2, 24 );
70 m_gridClassesValuesDisplay->SetRowSize( 3, 24 );
71 m_gridClassesValuesDisplay->SetRowSize( 4, 24 );
72 m_gridClassesValuesDisplay->EnableDragRowSize( false );
73 m_gridClassesValuesDisplay->SetRowLabelValue( 0, _("Lines width") );
74 m_gridClassesValuesDisplay->SetRowLabelValue( 1, _("Minimum clearance") );
75 m_gridClassesValuesDisplay->SetRowLabelValue( 2, _("Via: (diameter - drill)") );
76 m_gridClassesValuesDisplay->SetRowLabelValue( 3, _("Plated Pad: (diameter - drill)") );
77 m_gridClassesValuesDisplay->SetRowLabelValue( 4, _("NP Pad: (diameter - drill)") );
78 m_gridClassesValuesDisplay->SetRowLabelSize( 200 );
79 m_gridClassesValuesDisplay->SetRowLabelAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
80
81 // Label Appearance
82
83 // Cell Defaults
84 m_gridClassesValuesDisplay->SetDefaultCellAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
85 brdclsSizerRight->Add( m_gridClassesValuesDisplay, 0, wxALL, 5 );
86
87 m_panelShowClassPrms = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
88 brdclsSizerRight->Add( m_panelShowClassPrms, 1, wxALL|wxEXPAND, 5 );
89
90
91 bSizerBoardClass->Add( brdclsSizerRight, 1, wxEXPAND, 5 );
92
93
94 this->SetSizer( bSizerBoardClass );
95 this->Layout();
96 bSizerBoardClass->Fit( this );
97
98 // Connect Events
99 m_BoardClassesUnitsSelector->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_BOARD_CLASS_BASE::OnBoardClassesUnitsSelection ), NULL, this );
100}
101
103{
104 // Disconnect Events
105 m_BoardClassesUnitsSelector->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_BOARD_CLASS_BASE::OnBoardClassesUnitsSelection ), NULL, this );
106
107}
const char * name
Definition: DXF_plotter.cpp:57
UNIT_SELECTOR_LEN * m_BoardClassesUnitsSelector
virtual void OnBoardClassesUnitsSelection(wxCommandEvent &event)
PANEL_BOARD_CLASS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)