KiCad PCB EDA Suite
PANEL_SETUP_MASK_AND_PASTE_BASE Class Reference

Class PANEL_SETUP_MASK_AND_PASTE_BASE. More...

#include <panel_setup_mask_and_paste_base.h>

Inheritance diagram for PANEL_SETUP_MASK_AND_PASTE_BASE:
PANEL_SETUP_MASK_AND_PASTE

Public Member Functions

 PANEL_SETUP_MASK_AND_PASTE_BASE (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL)
 
 ~PANEL_SETUP_MASK_AND_PASTE_BASE ()
 

Protected Attributes

wxStaticText * m_staticTextInfoValPos
 
wxStaticText * m_staticTextInfoValNeg
 
wxStaticText * m_MaskMarginLabel
 
wxTextCtrl * m_MaskMarginCtrl
 
wxStaticText * m_MaskMarginUnits
 
wxStaticText * m_MaskMinWidthLabel
 
wxTextCtrl * m_MaskMinWidthCtrl
 
wxStaticText * m_MaskMinWidthUnits
 
wxStaticText * m_PasteMarginLabel
 
wxTextCtrl * m_PasteMarginCtrl
 
wxStaticText * m_PasteMarginUnits
 
wxStaticText * m_staticTextRatio
 
wxTextCtrl * m_SolderPasteMarginRatioCtrl
 
wxStaticText * m_SolderPasteRatioMarginUnits
 
wxStaticText * m_staticTextInfoCopper
 

Detailed Description

Constructor & Destructor Documentation

◆ PANEL_SETUP_MASK_AND_PASTE_BASE()

PANEL_SETUP_MASK_AND_PASTE_BASE::PANEL_SETUP_MASK_AND_PASTE_BASE ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxSize( -1,-1 ),
long  style = wxTAB_TRAVERSAL 
)

Definition at line 12 of file panel_setup_mask_and_paste_base.cpp.

12  : wxPanel( parent, id, pos, size, style )
13 {
14  wxBoxSizer* bMainSizer;
15  bMainSizer = new wxBoxSizer( wxVERTICAL );
16 
17  wxBoxSizer* bSizer3;
18  bSizer3 = new wxBoxSizer( wxVERTICAL );
19 
20  wxBoxSizer* bMessages;
21  bMessages = new wxBoxSizer( wxVERTICAL );
22 
23  m_staticTextInfoValPos = new wxStaticText( this, wxID_ANY, _("Positive clearance means area bigger than the pad (usual for mask clearance)."), wxDefaultPosition, wxDefaultSize, 0 );
24  m_staticTextInfoValPos->Wrap( 500 );
25  m_staticTextInfoValPos->SetFont( wxFont( 11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
26 
27  bMessages->Add( m_staticTextInfoValPos, 0, wxBOTTOM, 5 );
28 
29  m_staticTextInfoValNeg = new wxStaticText( this, wxID_ANY, _("Negative clearance means area smaller than the pad (usual for paste clearance)."), wxDefaultPosition, wxDefaultSize, 0 );
30  m_staticTextInfoValNeg->Wrap( 500 );
31  m_staticTextInfoValNeg->SetFont( wxFont( 11, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
32 
33  bMessages->Add( m_staticTextInfoValNeg, 0, wxBOTTOM, 12 );
34 
35 
36  bSizer3->Add( bMessages, 0, wxEXPAND|wxALL, 5 );
37 
38  wxFlexGridSizer* fgGridSolderMaskSizer;
39  fgGridSolderMaskSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
40  fgGridSolderMaskSizer->AddGrowableCol( 1 );
41  fgGridSolderMaskSizer->SetFlexibleDirection( wxBOTH );
42  fgGridSolderMaskSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
43 
44  m_MaskMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder mask clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
45  m_MaskMarginLabel->Wrap( -1 );
46  m_MaskMarginLabel->SetToolTip( _("This is the global clearance between pads and the solder mask\nThis value can be superseded by local values for a footprint or a pad.") );
47 
48  fgGridSolderMaskSizer->Add( m_MaskMarginLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
49 
50  m_MaskMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
51  fgGridSolderMaskSizer->Add( m_MaskMarginCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
52 
53  m_MaskMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
54  m_MaskMarginUnits->Wrap( -1 );
55  fgGridSolderMaskSizer->Add( m_MaskMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
56 
57  m_MaskMinWidthLabel = new wxStaticText( this, wxID_ANY, _("Solder mask minimum width:"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_MaskMinWidthLabel->Wrap( -1 );
59  m_MaskMinWidthLabel->SetToolTip( _("Min dist between 2 pad areas.\nTwo pad areas nearer than this value will be merged during plotting.\nThis parameter is used only to plot solder mask layers.") );
60 
61  fgGridSolderMaskSizer->Add( m_MaskMinWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
62 
63  m_MaskMinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
64  fgGridSolderMaskSizer->Add( m_MaskMinWidthCtrl, 0, wxEXPAND|wxALL, 5 );
65 
66  m_MaskMinWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
67  m_MaskMinWidthUnits->Wrap( -1 );
68  fgGridSolderMaskSizer->Add( m_MaskMinWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
69 
70 
71  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 10 );
72 
73 
74  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND, 5 );
75 
76 
77  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND, 5 );
78 
79  m_PasteMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder paste clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_PasteMarginLabel->Wrap( -1 );
81  m_PasteMarginLabel->SetToolTip( _("This is the global clearance between pads and the solder paste\nThis value can be superseded by local values for a footprint or a pad.\nThe final clearance value is the sum of this value and the clearance value ratio") );
82 
83  fgGridSolderMaskSizer->Add( m_PasteMarginLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
84 
85  m_PasteMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
86  fgGridSolderMaskSizer->Add( m_PasteMarginCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
87 
88  m_PasteMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
89  m_PasteMarginUnits->Wrap( -1 );
90  fgGridSolderMaskSizer->Add( m_PasteMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
91 
92  m_staticTextRatio = new wxStaticText( this, wxID_ANY, _("Solder paste ratio clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_staticTextRatio->Wrap( -1 );
94  m_staticTextRatio->SetToolTip( _("This is the global clearance ratio in percent between pads and the solder paste\nA value of 10 means the clearance value is 10 percent of the pad size\nThis value can be superseded by local values for a footprint or a pad.\nThe final clearance value is the sum of this value and the clearance value") );
95 
96  fgGridSolderMaskSizer->Add( m_staticTextRatio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
97 
98  m_SolderPasteMarginRatioCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
99  fgGridSolderMaskSizer->Add( m_SolderPasteMarginRatioCtrl, 0, wxEXPAND|wxALL, 5 );
100 
101  m_SolderPasteRatioMarginUnits = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
102  m_SolderPasteRatioMarginUnits->Wrap( -1 );
103  fgGridSolderMaskSizer->Add( m_SolderPasteRatioMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
104 
105 
106  bSizer3->Add( fgGridSolderMaskSizer, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
107 
108 
109  bSizer3->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
110 
111  m_staticTextInfoCopper = new wxStaticText( this, wxID_ANY, _("Note: solder mask and paste values are used only for pads on copper layers."), wxDefaultPosition, wxDefaultSize, 0 );
112  m_staticTextInfoCopper->Wrap( -1 );
113  m_staticTextInfoCopper->SetFont( wxFont( 12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
114 
115  bSizer3->Add( m_staticTextInfoCopper, 0, wxALL, 5 );
116 
117 
118  bMainSizer->Add( bSizer3, 1, wxRIGHT|wxLEFT, 5 );
119 
120 
121  this->SetSizer( bMainSizer );
122  this->Layout();
123  bMainSizer->Fit( this );
124 }

References m_MaskMarginCtrl, m_MaskMarginLabel, m_MaskMarginUnits, m_MaskMinWidthCtrl, m_MaskMinWidthLabel, m_MaskMinWidthUnits, m_PasteMarginCtrl, m_PasteMarginLabel, m_PasteMarginUnits, m_SolderPasteMarginRatioCtrl, m_SolderPasteRatioMarginUnits, m_staticTextInfoCopper, m_staticTextInfoValNeg, m_staticTextInfoValPos, and m_staticTextRatio.

◆ ~PANEL_SETUP_MASK_AND_PASTE_BASE()

PANEL_SETUP_MASK_AND_PASTE_BASE::~PANEL_SETUP_MASK_AND_PASTE_BASE ( )

Definition at line 126 of file panel_setup_mask_and_paste_base.cpp.

127 {
128 }

Member Data Documentation

◆ m_MaskMarginCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMarginCtrl
protected

Definition at line 37 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_MaskMarginLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMarginLabel
protected

Definition at line 36 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_MaskMarginUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMarginUnits
protected

Definition at line 38 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_MaskMinWidthCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMinWidthCtrl
protected

Definition at line 40 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_MaskMinWidthLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMinWidthLabel
protected

Definition at line 39 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_MaskMinWidthUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_MaskMinWidthUnits
protected

Definition at line 41 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_PasteMarginCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_PasteMarginCtrl
protected

◆ m_PasteMarginLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_PasteMarginLabel
protected

Definition at line 42 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_PasteMarginUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_PasteMarginUnits
protected

Definition at line 44 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_SolderPasteMarginRatioCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_SolderPasteMarginRatioCtrl
protected

◆ m_SolderPasteRatioMarginUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_SolderPasteRatioMarginUnits
protected

Definition at line 47 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoCopper

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoCopper
protected

◆ m_staticTextInfoValNeg

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoValNeg
protected

◆ m_staticTextInfoValPos

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoValPos
protected

◆ m_staticTextRatio

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextRatio
protected

Definition at line 45 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().


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