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, const wxString &name=wxEmptyString)
 
 ~PANEL_SETUP_MASK_AND_PASTE_BASE ()
 

Protected Attributes

wxStaticBitmap * m_bitmapWarning
 
wxStaticText * m_staticTextInfoMaskMinWidth
 
wxStaticText * m_staticTextInfoMaskMinWidth1
 
wxStaticLine * m_staticline1
 
wxStaticText * m_maskMarginLabel
 
wxTextCtrl * m_maskMarginCtrl
 
wxStaticText * m_maskMarginUnits
 
wxStaticText * m_maskMinWidthLabel
 
wxTextCtrl * m_maskMinWidthCtrl
 
wxStaticText * m_maskMinWidthUnits
 
wxStaticText * m_maskToCopperClearanceLabel
 
wxTextCtrl * m_maskToCopperClearanceCtrl
 
wxStaticText * m_maskToCopperClearanceUnits
 
wxCheckBox * m_allowBridges
 
wxCheckBox * m_tentVias
 
wxStaticText * m_pasteMarginLabel
 
wxTextCtrl * m_pasteMarginCtrl
 
wxStaticText * m_pasteMarginUnits
 
wxStaticText * m_pasteMarginRatioLabel
 
wxTextCtrl * m_pasteMarginRatioCtrl
 
wxStaticText * m_pasteMarginRatioUnits
 
wxStaticText * m_staticTextInfoPaste
 

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,
const wxString &  name = wxEmptyString 
)

Definition at line 12 of file panel_setup_mask_and_paste_base.cpp.

12 : wxPanel( parent, id, pos, size, style, name )
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( wxHORIZONTAL );
22
23
24 bMessages->Add( 4, 0, 0, wxEXPAND, 5 );
25
26 m_bitmapWarning = new wxStaticBitmap( this, wxID_ANY, wxArtProvider::GetBitmap( wxART_WARNING, wxART_OTHER ), wxDefaultPosition, wxDefaultSize, 0 );
27 bMessages->Add( m_bitmapWarning, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
28
29 wxBoxSizer* bSizer4;
30 bSizer4 = new wxBoxSizer( wxVERTICAL );
31
32 m_staticTextInfoMaskMinWidth = new wxStaticText( this, wxID_ANY, _("Use your board manufacturer's recommendations for solder mask expansion and minimum web width."), wxDefaultPosition, wxDefaultSize, 0 );
34 bSizer4->Add( m_staticTextInfoMaskMinWidth, 0, wxEXPAND, 1 );
35
36 m_staticTextInfoMaskMinWidth1 = new wxStaticText( this, wxID_ANY, _("If none are provided, setting the values to zero is suggested."), wxDefaultPosition, wxDefaultSize, 0 );
38 bSizer4->Add( m_staticTextInfoMaskMinWidth1, 0, wxEXPAND|wxTOP, 1 );
39
40
41 bMessages->Add( bSizer4, 1, wxEXPAND|wxLEFT, 5 );
42
43
44 bSizer3->Add( bMessages, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
45
46 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
47 bSizer3->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
48
49 wxGridBagSizer* gbSizer1;
50 gbSizer1 = new wxGridBagSizer( 5, 0 );
51 gbSizer1->SetFlexibleDirection( wxBOTH );
52 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
53
54 m_maskMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder mask expansion:"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_maskMarginLabel->Wrap( -1 );
56 m_maskMarginLabel->SetToolTip( _("Global clearance between pads and the solder mask.\nThis value can be superseded by local values for a footprint or a pad.") );
57
58 gbSizer1->Add( m_maskMarginLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
59
60 m_maskMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
61 m_maskMarginCtrl->SetToolTip( _("Positive clearance means area bigger than the pad (usual for solder mask clearance).") );
62
63 gbSizer1->Add( m_maskMarginCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
64
65 m_maskMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
66 m_maskMarginUnits->Wrap( -1 );
67 gbSizer1->Add( m_maskMarginUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
68
69 m_maskMinWidthLabel = new wxStaticText( this, wxID_ANY, _("Solder mask minimum web width:"), wxDefaultPosition, wxDefaultSize, 0 );
70 m_maskMinWidthLabel->Wrap( -1 );
71 m_maskMinWidthLabel->SetToolTip( _("Min. dist between 2 pad areas.\nTwo pad areas nearer than this value will be merged during plotting.\nThis parameter is only used to plot solder mask layers.\nLeave at 0 unless you know what you are doing.") );
72
73 gbSizer1->Add( m_maskMinWidthLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
74
75 m_maskMinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
76 m_maskMinWidthCtrl->SetToolTip( _("Minimum distance between openings in the solder mask. Pad openings closer than this distance will be plotted as a single opening.") );
77
78 gbSizer1->Add( m_maskMinWidthCtrl, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
79
80 m_maskMinWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_maskMinWidthUnits->Wrap( -1 );
82 gbSizer1->Add( m_maskMinWidthUnits, wxGBPosition( 1, 2 ), wxGBSpan( 1, 1 ), wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
83
84 m_maskToCopperClearanceLabel = new wxStaticText( this, wxID_ANY, _("Solder mask to copper clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
86 gbSizer1->Add( m_maskToCopperClearanceLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
87
88 m_maskToCopperClearanceCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
89 gbSizer1->Add( m_maskToCopperClearanceCtrl, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
90
91 m_maskToCopperClearanceUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
93 gbSizer1->Add( m_maskToCopperClearanceUnits, wxGBPosition( 2, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
94
95 m_allowBridges = new wxCheckBox( this, wxID_ANY, _("Allow bridged solder mask apertures between pads within footprints"), wxDefaultPosition, wxDefaultSize, 0 );
96 gbSizer1->Add( m_allowBridges, wxGBPosition( 3, 0 ), wxGBSpan( 1, 3 ), wxALL, 5 );
97
98 m_tentVias = new wxCheckBox( this, wxID_ANY, _("Tent vias"), wxDefaultPosition, wxDefaultSize, 0 );
99 gbSizer1->Add( m_tentVias, wxGBPosition( 4, 0 ), wxGBSpan( 1, 3 ), wxBOTTOM|wxRIGHT|wxLEFT, 5 );
100
101 m_pasteMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder paste absolute clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
102 m_pasteMarginLabel->Wrap( -1 );
103 m_pasteMarginLabel->SetToolTip( _("Global clearance between pads and the solder paste.\nThis value can be superseded by local values for a footprint or a pad.\nFinal clearance value is the sum of this value and the clearance value ratio.") );
104
105 gbSizer1->Add( m_pasteMarginLabel, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
106
107 m_pasteMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
108 m_pasteMarginCtrl->SetToolTip( _("Negative clearance means area smaller than the pad (usual for solder paste clearance).") );
109
110 gbSizer1->Add( m_pasteMarginCtrl, wxGBPosition( 6, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
111
112 m_pasteMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
113 m_pasteMarginUnits->Wrap( -1 );
114 gbSizer1->Add( m_pasteMarginUnits, wxGBPosition( 6, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
115
116 m_pasteMarginRatioLabel = new wxStaticText( this, wxID_ANY, _("Solder paste relative clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
117 m_pasteMarginRatioLabel->Wrap( -1 );
118 m_pasteMarginRatioLabel->SetToolTip( _("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.\nFinal clearance value is the sum of this value and the clearance value.") );
119
120 gbSizer1->Add( m_pasteMarginRatioLabel, wxGBPosition( 7, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
121
122 m_pasteMarginRatioCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
123 m_pasteMarginRatioCtrl->SetToolTip( _("Additional clearance as a percentage of the pad size.") );
124
125 gbSizer1->Add( m_pasteMarginRatioCtrl, wxGBPosition( 7, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
126
127 m_pasteMarginRatioUnits = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
128 m_pasteMarginRatioUnits->Wrap( -1 );
129 gbSizer1->Add( m_pasteMarginRatioUnits, wxGBPosition( 7, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
130
131
132 bSizer3->Add( gbSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
133
134 m_staticTextInfoPaste = new wxStaticText( this, wxID_ANY, _("Note: Solder paste clearances (absolute and relative) are added to determine the final clearance."), wxDefaultPosition, wxDefaultSize, 0 );
135 m_staticTextInfoPaste->Wrap( -1 );
136 bSizer3->Add( m_staticTextInfoPaste, 0, wxEXPAND|wxALL, 5 );
137
138
139 bMainSizer->Add( bSizer3, 1, wxRIGHT|wxLEFT|wxEXPAND, 5 );
140
141
142 this->SetSizer( bMainSizer );
143 this->Layout();
144 bMainSizer->Fit( this );
145}
const char * name
Definition: DXF_plotter.cpp:56
#define _(s)

References _, m_allowBridges, m_bitmapWarning, m_maskMarginCtrl, m_maskMarginLabel, m_maskMarginUnits, m_maskMinWidthCtrl, m_maskMinWidthLabel, m_maskMinWidthUnits, m_maskToCopperClearanceCtrl, m_maskToCopperClearanceLabel, m_maskToCopperClearanceUnits, m_pasteMarginCtrl, m_pasteMarginLabel, m_pasteMarginRatioCtrl, m_pasteMarginRatioLabel, m_pasteMarginRatioUnits, m_pasteMarginUnits, m_staticline1, m_staticTextInfoMaskMinWidth, m_staticTextInfoMaskMinWidth1, m_staticTextInfoPaste, and m_tentVias.

◆ ~PANEL_SETUP_MASK_AND_PASTE_BASE()

PANEL_SETUP_MASK_AND_PASTE_BASE::~PANEL_SETUP_MASK_AND_PASTE_BASE ( )

Definition at line 147 of file panel_setup_mask_and_paste_base.cpp.

148{
149}

Member Data Documentation

◆ m_allowBridges

wxCheckBox* PANEL_SETUP_MASK_AND_PASTE_BASE::m_allowBridges
protected

◆ m_bitmapWarning

wxStaticBitmap* PANEL_SETUP_MASK_AND_PASTE_BASE::m_bitmapWarning
protected

Definition at line 40 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_maskMarginCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskMarginCtrl
protected

Definition at line 45 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 44 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 46 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 48 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 47 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 49 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_maskToCopperClearanceCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceCtrl
protected

Definition at line 51 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_maskToCopperClearanceLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceLabel
protected

Definition at line 50 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_maskToCopperClearanceUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_maskToCopperClearanceUnits
protected

Definition at line 52 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

Definition at line 56 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_pasteMarginLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginLabel
protected

Definition at line 55 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_pasteMarginRatioCtrl

wxTextCtrl* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioCtrl
protected

Definition at line 59 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_pasteMarginRatioLabel

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioLabel
protected

Definition at line 58 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_pasteMarginRatioUnits

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_pasteMarginRatioUnits
protected

Definition at line 60 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 57 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticline1

wxStaticLine* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticline1
protected

Definition at line 43 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoMaskMinWidth

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoMaskMinWidth
protected

Definition at line 41 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoMaskMinWidth1

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoMaskMinWidth1
protected

Definition at line 42 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoPaste

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoPaste
protected

◆ m_tentVias

wxCheckBox* PANEL_SETUP_MASK_AND_PASTE_BASE::m_tentVias
protected

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