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

wxStaticText * m_staticTextInfoValPos
 
wxStaticText * m_staticTextInfoValNeg
 
wxStaticBitmap * m_bitmapWarning
 
wxStaticText * m_staticTextInfoMaskMinWidth
 
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
 
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( 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( wxNORMAL_FONT->GetPointSize(), 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( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
32 
33  bMessages->Add( m_staticTextInfoValNeg, 0, wxBOTTOM, 12 );
34 
35  wxBoxSizer* bSizer4;
36  bSizer4 = new wxBoxSizer( wxHORIZONTAL );
37 
38  m_bitmapWarning = new wxStaticBitmap( this, wxID_ANY, wxArtProvider::GetBitmap( wxART_WARNING, wxART_OTHER ), wxDefaultPosition, wxDefaultSize, 0 );
39  bSizer4->Add( m_bitmapWarning, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
40 
41  m_staticTextInfoMaskMinWidth = new wxStaticText( this, wxID_ANY, _("Note: Set Solder mask minimum bridge width and Solder mask clearance to 0,\nunless your board house asks for a specific value"), wxDefaultPosition, wxDefaultSize, 0 );
42  m_staticTextInfoMaskMinWidth->Wrap( -1 );
43  m_staticTextInfoMaskMinWidth->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_ITALIC, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
44 
45  bSizer4->Add( m_staticTextInfoMaskMinWidth, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
46 
47 
48  bMessages->Add( bSizer4, 1, wxEXPAND, 5 );
49 
50 
51  bSizer3->Add( bMessages, 0, wxEXPAND|wxALL, 5 );
52 
53  wxFlexGridSizer* fgGridSolderMaskSizer;
54  fgGridSolderMaskSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
55  fgGridSolderMaskSizer->AddGrowableCol( 1 );
56  fgGridSolderMaskSizer->SetFlexibleDirection( wxBOTH );
57  fgGridSolderMaskSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
58 
59  m_MaskMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder mask clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
60  m_MaskMarginLabel->Wrap( -1 );
61  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.") );
62 
63  fgGridSolderMaskSizer->Add( m_MaskMarginLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
64 
65  m_MaskMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
66  fgGridSolderMaskSizer->Add( m_MaskMarginCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
67 
68  m_MaskMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_MaskMarginUnits->Wrap( -1 );
70  fgGridSolderMaskSizer->Add( m_MaskMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
71 
72  m_MaskMinWidthLabel = new wxStaticText( this, wxID_ANY, _("Solder mask minimum bridge width:"), wxDefaultPosition, wxDefaultSize, 0 );
73  m_MaskMinWidthLabel->Wrap( -1 );
74  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.\nLeave it to 0, unless you know what you are doing.") );
75 
76  fgGridSolderMaskSizer->Add( m_MaskMinWidthLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
77 
78  m_MaskMinWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
79  fgGridSolderMaskSizer->Add( m_MaskMinWidthCtrl, 0, wxEXPAND|wxALL, 5 );
80 
81  m_MaskMinWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
82  m_MaskMinWidthUnits->Wrap( -1 );
83  fgGridSolderMaskSizer->Add( m_MaskMinWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
84 
85 
86  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND|wxTOP|wxBOTTOM, 10 );
87 
88 
89  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND, 5 );
90 
91 
92  fgGridSolderMaskSizer->Add( 0, 0, 1, wxEXPAND, 5 );
93 
94  m_PasteMarginLabel = new wxStaticText( this, wxID_ANY, _("Solder paste absolute clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
95  m_PasteMarginLabel->Wrap( -1 );
96  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") );
97 
98  fgGridSolderMaskSizer->Add( m_PasteMarginLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
99 
100  m_PasteMarginCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
101  fgGridSolderMaskSizer->Add( m_PasteMarginCtrl, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
102 
103  m_PasteMarginUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
104  m_PasteMarginUnits->Wrap( -1 );
105  fgGridSolderMaskSizer->Add( m_PasteMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
106 
107  m_staticTextRatio = new wxStaticText( this, wxID_ANY, _("Solder paste relative clearance:"), wxDefaultPosition, wxDefaultSize, 0 );
108  m_staticTextRatio->Wrap( -1 );
109  m_staticTextRatio->SetToolTip( _("This is the global clearance ratio in per cent between pads and the solder paste\nA value of 10 means the clearance value is 10 per cent 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") );
110 
111  fgGridSolderMaskSizer->Add( m_staticTextRatio, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
112 
113  m_SolderPasteMarginRatioCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
114  fgGridSolderMaskSizer->Add( m_SolderPasteMarginRatioCtrl, 0, wxEXPAND|wxALL, 5 );
115 
116  m_SolderPasteRatioMarginUnits = new wxStaticText( this, wxID_ANY, _("%"), wxDefaultPosition, wxDefaultSize, 0 );
117  m_SolderPasteRatioMarginUnits->Wrap( -1 );
118  fgGridSolderMaskSizer->Add( m_SolderPasteRatioMarginUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
119 
120 
121  bSizer3->Add( fgGridSolderMaskSizer, 0, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
122 
123 
124  bSizer3->Add( 0, 0, 0, wxEXPAND|wxTOP|wxBOTTOM, 10 );
125 
126  m_staticTextInfoCopper = new wxStaticText( this, wxID_ANY, _("Note: solder mask and paste values are used only for pads on copper layers."), wxDefaultPosition, wxDefaultSize, 0 );
127  m_staticTextInfoCopper->Wrap( -1 );
128  m_staticTextInfoCopper->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
129 
130  bSizer3->Add( m_staticTextInfoCopper, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
131 
132  m_staticTextInfoPaste = new wxStaticText( this, wxID_ANY, _("Note: solder paste clearances (absolute and relative) are added to determine the final clearance."), wxDefaultPosition, wxDefaultSize, 0 );
133  m_staticTextInfoPaste->Wrap( -1 );
134  m_staticTextInfoPaste->SetFont( wxFont( wxNORMAL_FONT->GetPointSize(), wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxEmptyString ) );
135 
136  bSizer3->Add( m_staticTextInfoPaste, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
137 
138 
139  bMainSizer->Add( bSizer3, 1, wxRIGHT|wxLEFT, 5 );
140 
141 
142  this->SetSizer( bMainSizer );
143  this->Layout();
144  bMainSizer->Fit( this );
145 }
BITMAP_DEF GetBitmap(GRAPHIC_PINSHAPE aShape)
Definition: pin_shape.cpp:68
const char * name
Definition: DXF_plotter.cpp:60
#define _(s)
Definition: 3d_actions.cpp:33

References _, GetBitmap(), m_bitmapWarning, 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_staticTextInfoMaskMinWidth, m_staticTextInfoPaste, 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 147 of file panel_setup_mask_and_paste_base.cpp.

148 {
149 }

Member Data Documentation

◆ m_bitmapWarning

wxStaticBitmap* PANEL_SETUP_MASK_AND_PASTE_BASE::m_bitmapWarning
protected

Definition at line 39 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 42 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 41 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 43 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 45 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 44 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 46 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 47 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 49 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 52 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

Definition at line 53 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 40 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

Definition at line 54 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoValNeg

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoValNeg
protected

Definition at line 38 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextInfoValPos

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextInfoValPos
protected

Definition at line 37 of file panel_setup_mask_and_paste_base.h.

Referenced by PANEL_SETUP_MASK_AND_PASTE_BASE().

◆ m_staticTextRatio

wxStaticText* PANEL_SETUP_MASK_AND_PASTE_BASE::m_staticTextRatio
protected

Definition at line 50 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: